/* Sanjin-inspired portfolio – minimal, bold */

:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #22c55e;
  --border: #262626;
  --card-bg: #141414;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --page-gutter: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header – aligned with content column */
.site-header {
  padding: 1.5rem 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.logo-bold {
  font-weight: 600;
  color: #5f5f5f;
}

.nav a {
  margin-left: 1.5rem;
  color: #fff;
  font-size: 0.9rem;
}

.nav a:hover {
  color: #fff;
}

/* Hero – name + tagline + value prop */
.hero {
  max-width: 1144px;
  margin: 0 auto;
  padding: 8rem var(--page-gutter) 8rem;
  text-align: left;
}

.hero > * {
  max-width: 60%;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-name .role {
  color: #5f5f5f;
  font-weight: 400;
}

.hero-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  margin: 2rem 0 0;
  color: #7c7c7c;
  letter-spacing: -0.02em;
}

/* Section labels */
.section-label {
  font-size: 32px;
  text-transform: lowercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0 0 40px;
}

/* Main / Work grid */
.main {
  max-width: 1144px;
  margin: 0 auto;
  padding: 60px var(--page-gutter) 60px;
  border-top: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}

.heading-dot {
  color: #5f5f5f;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--text-muted);
}

.project-card-image {
  aspect-ratio: 4/3;
  background: var(--border);
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 1.2rem;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.35em;
  letter-spacing: -0.01em;
}

.project-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Brands section */
.brands-section {
  max-width: 1144px;
  margin: 0 auto;
  padding: 60px var(--page-gutter) 60px;
  border-top: 1px solid var(--border);
}

.brands-section .section-label {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  color: var(--text);
}

.brands-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

.brand-logo {
  flex: 1 1 0;
  min-width: 0;
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  transform: scale(1.2);
}

.brand-logo:hover {
  opacity: 1;
}

/* CTA section */
.cta-section {
  max-width: 1144px;
  margin: 0 auto;
  padding: 6rem var(--page-gutter) 8rem;
  border-top: 1px solid var(--border);
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0;
}

.skills-group {
  margin-bottom: 1.92rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-subheading {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.478rem;
  letter-spacing: -0.02em;
}

.skills-list {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.6;
}

.skills-list li {
  margin-bottom: 2.4px;
  padding-left: 0;
  list-style: none;
}

/* Footer */
.site-footer {
  max-width: 1144px;
  margin: 0 auto;
  padding: 3rem var(--page-gutter) 6rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Project page */
.project-page .main {
  padding-top: 4rem;
  padding-bottom: 8rem;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.project-back:hover {
  color: var(--text);
}

.project-hero {
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.project-hero-image {
  aspect-ratio: 16/9;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-header {
  margin-bottom: 2rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.project-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.project-content {
  max-width: 65ch;
}

.project-content p {
  margin: 0 0 1.25em;
  color: var(--text-muted);
}

.project-content p:last-child {
  margin-bottom: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.project-gallery img {
  width: 100%;
  height: auto;
  background: var(--border);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.project-hero-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.project-hero-grid img:hover {
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Case study sections */
.project-intro {
  max-width: 65ch;
  margin-bottom: 3rem;
}

.project-intro p {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.project-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-intro-meta div {
  font-size: 0.9rem;
}

.project-intro-meta strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.project-intro-meta span {
  color: var(--text-muted);
}

.project-section {
  max-width: 65ch;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.project-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.project-section p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.project-section p:last-child {
  margin-bottom: 0;
}

.project-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.project-section ul li {
  margin-bottom: 0.5rem;
}

.project-section ul li:last-child {
  margin-bottom: 0;
}

.project-images {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-images img {
  width: 100%;
  height: auto;
  background: var(--border);
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-images img:hover {
  transform: scale(1.02);
}

/* Desktop-only message – shown on tablet and mobile */
.desktop-only-message {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-only-message {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
  }

  .desktop-only-message p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    max-width: 28ch;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 1rem 0;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 6rem;
  }

  .nav a {
    margin-left: 1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
