:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-dark: #161616;
  --fg: #333333;
  --fg-soft: #555555;
  --muted: #888888;
  --line: #e6e6e6;
  --line-dark: rgba(255,255,255,0.12);
  --radius: 16px;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
  --t: 500ms cubic-bezier(.2,.8,.2,1);
  --t-fast: 250ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* TYPOGRAPHY */
.display {
  font-weight: 200;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg-soft);
  margin: 0;
}
.display-2 {
  font-weight: 200;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg-soft);
  margin: 8px 0 0;
  max-width: 18ch;
}
.display-2.light, .eyebrow.light { color: #fafafa; }
.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad);
  /* Lock nav height so logo can shrink without the bar collapsing. */
  min-height: 80px;
  box-sizing: border-box;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.nav.is-sticky {
  background: var(--bg-dark);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.logo {
  font-weight: 500;
  letter-spacing: 0.25em;
  font-size: 18px;
  color: #000;
  transition: color var(--t);
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  display: block;
  height: 48px;          /* nav height locked at 80px via min-height */
  width: auto;           /* canvas is square so width = height */
  transition: filter var(--t);
}
.nav.is-sticky .logo { color: #fff; }
/* Dark backgrounds: flip the black mark to white. PNG is transparent so no blend tricks needed. */
.nav.is-sticky .logo img { filter: invert(1); }
.logo-light { color: #fff; }
.logo-light img {
  filter: invert(1);
  height: 64px;
  width: auto;
}

@media (max-width: 640px) {
  .nav { min-height: 64px; }
  .logo img { height: 38px; width: auto; }
  .logo-light img { height: 48px; width: auto; }
}

.burger {
  width: 36px; height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 0;
}
.burger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: #000;
  transition: transform var(--t), width var(--t), background var(--t);
}
.burger span:nth-child(2) { width: 20px; }
.nav.is-sticky .burger span { background: #fff; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); width: 28px; }
body.menu-open .burger span { background: #fff; }

/* FULLSCREEN MENU */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg-dark);
  color: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu-nav a {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fafafa;
  position: relative;
  padding-left: 70px;
  opacity: 0;
  transform: translateY(24px);
  transition: color var(--t-fast), opacity var(--t), transform var(--t);
}
.menu-overlay.is-open .menu-nav a {
  opacity: 1;
  transform: none;
}
.menu-overlay.is-open .menu-nav a:nth-child(1) { transition-delay: 80ms; }
.menu-overlay.is-open .menu-nav a:nth-child(2) { transition-delay: 140ms; }
.menu-overlay.is-open .menu-nav a:nth-child(3) { transition-delay: 200ms; }
.menu-overlay.is-open .menu-nav a:nth-child(4) { transition-delay: 260ms; }
.menu-overlay.is-open .menu-nav a:nth-child(5) { transition-delay: 320ms; }
.menu-overlay.is-open .menu-nav a:nth-child(6) { transition-delay: 380ms; }
.menu-nav a::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 14px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 400;
}
.menu-nav a:hover { color: #888; }
.menu-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 180px var(--pad) 120px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; }
.reveal-words {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reveal-words span {
  display: block;
  /* overflow removed: it clipped descenders (g, y) on tight line-height headings */
  opacity: 0;
  transform: translateY(80%);
  transition: opacity 1s var(--t), transform 1s var(--t);
}
.reveal-words.is-visible span { opacity: 1; transform: none; }
.reveal-words.is-visible span:nth-child(1) { transition-delay: 100ms; }
.reveal-words.is-visible span:nth-child(2) { transition-delay: 250ms; }
.reveal-words.is-visible span:nth-child(3) { transition-delay: 400ms; }
.reveal-words.is-visible span:nth-child(4) { transition-delay: 550ms; }

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-indicator .line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: #000;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 96px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn-dark {
  background: #000;
  color: #cfcfcf;
}
.btn-dark:hover { background: #1f1f1f; color: #fff; transform: translateY(-2px); }
.btn-outline {
  border-color: #000;
  color: #000;
}
.btn-outline:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* INTRO */
.intro { padding: 140px 0 100px; }
.intro .display-2 { max-width: 22ch; }

/* PORTFOLIO */
.portfolio { padding: 80px 0 140px; background: var(--bg-alt); }
.portfolio-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
}
.work {
  display: block;
  transition: transform var(--t-fast);
}
.work:hover { transform: translateY(-6px); }
.work-img {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--c, #ccc) 0%, #666 100%);
  border-radius: 2px;
  transition: filter var(--t);
  overflow: hidden;
}
.work:hover .work-img { filter: brightness(1.05); }
.work-meta {
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-meta h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--fg-soft);
  letter-spacing: -0.01em;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.year {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.center-row {
  margin-top: 72px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SERVICES — dark section */
.services { padding: 140px 0; background: var(--bg-dark); color: #fafafa; }
.svc-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.svc {
  padding: 40px 28px;
  background: var(--bg-dark);
  transition: background var(--t-fast);
}
.svc:hover { background: #1f1f1f; }
.svc-num {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 32px;
}
.svc h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 300;
  color: #fafafa;
  letter-spacing: -0.01em;
}
.svc p {
  color: #aaa;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ABOUT / STATS */
.about { padding: 140px 0; }
.stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 200;
  color: var(--fg-soft);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* PROCESS */
.process { padding: 140px 0; background: var(--bg-alt); }
.steps {
  list-style: none;
  margin: 60px auto 0;
  padding-left: var(--pad);
  padding-right: var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps li {
  padding: 40px 28px;
  background: var(--bg-alt);
}
.steps li .num {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 32px;
}
.steps li h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 300;
  color: var(--fg-soft);
}
.steps li p { margin: 0; color: var(--muted); font-size: 14px; }

/* SHOWREEL — dark */
.showreel { padding: 140px 0; background: var(--bg-dark); color: #fafafa; }
.reel {
  margin-top: 60px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0a0a0a 80%);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--t);
  border: 1px solid var(--line-dark);
}
.reel:hover { transform: scale(1.005); }
.play {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
  animation: pulse 2.4s infinite;
  padding-left: 6px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  100% { box-shadow: 0 0 0 30px rgba(255,255,255,0); }
}

/* CAPABILITIES — dark */
.capabilities { padding: 140px 0; background: var(--bg-dark); color: #fafafa; border-top: 1px solid var(--line-dark); }
.cap-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.cap-grid h4 {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
}
.cap-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.cap-grid li {
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  color: #fafafa;
  font-size: 16px;
  font-weight: 300;
  transition: padding var(--t-fast), color var(--t-fast);
  cursor: default;
}
.cap-grid li:hover { padding-left: 10px; color: #aaa; }
.cap-grid ul li:last-child { border-bottom: 1px solid var(--line-dark); }

/* CLIENTS */
.clients { padding: 140px 0; }
.logos {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-box {
  aspect-ratio: 2 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  transition: background var(--t-fast), color var(--t-fast);
}
.logo-box:hover { background: var(--bg-alt); color: var(--fg); }

/* FAQ */
.faq { padding: 140px 0; background: var(--bg-alt); }
.faq-list {
  margin-top: 60px;
  max-width: 960px;
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: var(--fg-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color var(--t-fast);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 200;
  color: var(--muted);
  transition: transform var(--t);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: #000; }
.faq-list p {
  color: var(--muted);
  margin: 16px 0 0;
  padding-right: 48px;
  max-width: 70ch;
}

/* CONTACT */
.contact { padding: 140px 0; }
.contact-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-form { display: grid; gap: 20px; }
.contact-form label {
  display: grid;
  gap: 8px;
}
.contact-form label span {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  padding: 12px 0;
  font: inherit;
  transition: border-color var(--t-fast);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; margin-top: 12px; }
.form-status { color: var(--fg); margin: 0; font-size: 13px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.contact-info p { margin: 0; color: var(--fg-soft); font-size: 16px; }
.chat-links { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* FOOTER */
.footer-cta {
  background: var(--bg-dark);
  color: #fafafa;
  padding: 120px var(--pad) 40px;
}
.footer-cta .container { max-width: 1400px; }
.footer-cta-head { margin-bottom: 80px; }
.footer-cta-title {
  color: #fff;
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(34px, 4.2vw, 68px);
}
.footer-cta-title .muted {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-col p {
  margin: 0;
  color: #e9e9e9;
  font-size: 15px;
  line-height: 1.7;
}
.footer-col a {
  color: #e9e9e9;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }
.footer-label {
  font-size: 11px !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4) !important;
  margin: 0 0 14px !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-copy {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.footer-socials {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.footer-socials a:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}
.footer-socials svg { display: block; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--t), transform 1s var(--t);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ACCESSIBILITY: respect users who reduce motion (vestibular sensitivity, etc.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-words span { opacity: 1 !important; transform: none !important; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-cta { padding: 80px var(--pad) 32px; }
  .footer-cta-head { margin-bottom: 56px; }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; gap: 32px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .scroll-indicator { display: none; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ─────── REAL IMAGE THUMBS ─────── */
.work .work-img {
  background-size: cover;
  background-position: center;
}

/* ─────── HOME HERO TWEAKS ─────── */
.hero-sub {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  margin: 40px 0 32px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.reveal-words.is-visible ~ .reveal,
.reveal.is-visible { opacity: 1; transform: none; }

/* ─────── PAGE HEAD (subpages) ─────── */
.page-head {
  padding: 200px var(--pad) 100px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  max-width: 22ch;
  margin-top: 8px;
}
.page-light { background: #fff; }

/* ─────── PROJECT DETAIL ─────── */
.project-hero {
  width: 100%;
  margin-top: 0;
  background: var(--bg-alt);
}
.project-hero-img {
  display: block;
  width: 100%;
  max-height: 90vh;
  object-fit: cover;
}
.project-intro { padding: 100px 0 60px; }
.project-intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.project-intro-meta h1 { margin: 8px 0 20px; max-width: none; }
.project-intro-body p {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 64ch;
  margin: 0 0 20px;
}
.project-sub {
  font-size: 22px !important;
  color: var(--fg) !important;
  font-weight: 300;
}
.project-role {
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  color: var(--muted) !important;
  letter-spacing: 0.02em;
}
.project-role strong { color: var(--fg); letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; font-weight: 500; }

.project-gallery { padding: 40px 0 120px; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.g-item {
  margin: 0;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
}
.g-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.g-item:hover img { transform: scale(1.02); }
.g-wide { grid-column: 1 / -1; }

/* ─────── CONTACT CTA ─────── */
.contact-cta {
  padding: 100px 0;
  background: var(--bg-dark);
  color: #fafafa;
  text-align: center;
}
.contact-cta h2 {
  max-width: none;
  color: #fafafa;
  margin: 0 auto 32px;
  text-align: center;
}
.contact-cta .btn-dark {
  background: #fff;
  color: #000;
}
.contact-cta .btn-dark:hover { background: #e5e5e5; }

/* ─────── RELATED ─────── */
.related { padding: 120px 0 80px; background: var(--bg-alt); }

/* ─────── LIGHTBOX ─────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lb-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
  transition: background var(--t-fast);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.15); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ─────── SERVICES LONG ─────── */
.svc-long { padding: 60px 0 120px; }
.svc-block {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 1px solid var(--line); }
.svc-block > div h2 {
  margin: 0 0 20px;
  font-weight: 200;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--fg-soft);
}
.svc-block > div p {
  color: var(--fg-soft);
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.svc-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.svc-block ul li {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.svc-block .svc-num {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3em;
}

/* ─────── ABOUT LONG ─────── */
.about-long { padding: 60px 0 100px; }
.about-long-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-body .lead {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 200;
  line-height: 1.4;
  color: var(--fg-soft);
  margin: 0 0 36px;
  max-width: 32ch;
}
.about-body p {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 0 20px;
}
.about-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.about-meta .label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.about-meta p { margin: 0; color: var(--fg); font-size: 16px; }

/* ─────── ACTIVE NAV ─────── */
.menu-nav a.is-active { color: var(--muted); }
.menu-nav a.is-active::after {
  content: " →";
  color: #fafafa;
}

/* ─────── RESPONSIVE ADDITIONS ─────── */
@media (max-width: 1024px) {
  .project-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-block { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .about-long-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-meta { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 32px; }
}
@media (max-width: 640px) {
  .g-grid { grid-template-columns: 1fr; }
  .page-head { padding: 140px var(--pad) 60px; }
  .lb-close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; }
}

/* ─────── PINNED HORIZONTAL-SCROLL PORTFOLIO (doubles as landing hero) ─────── */
.hscroll {
  position: relative;
  /* tall container: enough vertical room for the horizontal translation */
  height: 500vh;
  background: var(--bg);
}
.hscroll-hero { height: 520vh; }
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 36vw) 1fr;
  align-items: center;
  overflow: hidden;
}
.hscroll-intro {
  padding: 120px var(--pad) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  height: 100%;
  box-sizing: border-box;
}
.hscroll-intro .eyebrow { margin: 0; }
.hscroll-title {
  font-weight: 200;
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-soft);
  margin: 0;
  max-width: 16ch;
}
.hscroll-title span {
  display: block;
  /* No overflow:hidden — tight line-height + overflow clipped descenders (g, y, p). */
  padding-bottom: 0.04em;
}
.hscroll-sub {
  color: var(--fg);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  margin: 0;
  max-width: 34ch;
}
.hscroll-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hscroll-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hscroll-count { font-variant-numeric: tabular-nums; }
.hscroll-scroll {
  /* Hidden — the intro panel's progress bar + count already conveys scroll position,
     and this floating indicator overlaps the cards' meta row at the bottom. */
  display: none;
}
.hscroll-progress {
  width: 140px;
  height: 1px;
  background: var(--line);
  position: relative;
  margin-top: 12px;
  overflow: hidden;
}
.hscroll-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #161616;
  transition: width 80ms linear;
}
.hscroll-track {
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  /* Soft edge fade on partial cards. Kept narrow so it hints at clipping
     without eating visible card content. Disabled on mobile (native scroll). */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 16px), transparent 100%);
}
.hscroll-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: 0 clamp(24px, 4vw, 80px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.h-work {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 480px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--fg);
  transition: transform var(--t);
}
.h-work:hover { transform: translateY(-4px); }
.h-work-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-alt);
  filter: grayscale(0);
  transition: filter var(--t), transform var(--t);
}
.h-work:hover .h-work-img { filter: brightness(1.04); }
.h-work-meta h3 {
  margin: 0 0 12px;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.h-work-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-work-tags { white-space: nowrap; }
.h-work-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.h-work-year { font-variant-numeric: tabular-nums; }

.after-hscroll {
  padding: 80px 0 40px;
  background: var(--bg);
}

@media (max-width: 900px) {
  .hscroll, .hscroll-hero { height: auto; }
  .hscroll-sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .hscroll-intro {
    padding: 120px var(--pad) 32px;
    gap: 20px;
  }
  .hscroll-title { font-size: clamp(32px, 8vw, 52px); }
  .hscroll-track {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Disable edge mask on mobile — native scroll already cues partial cards
       and the mask was eating visible chunks of titles. */
    -webkit-mask-image: none;
            mask-image: none;
    /* Make scroll-snap respect the row's leading padding so the first card
       doesn't sit flush against the screen edge. */
    scroll-padding-inline-start: var(--pad);
  }
  .hscroll-row {
    transform: none !important;
    /* A bit more breathing room than --pad on mobile — feels less cramped. */
    padding: 0 var(--pad) 40px;
    gap: 16px;
  }
  .h-work {
    width: 78vw;
    scroll-snap-align: start;
  }
  /* Horizontal padding on the meta row so titles/tags never kiss the screen edge
     even when the card image goes full-bleed at the leftmost scroll position. */
  .h-work-meta { padding-inline: 4px; }
  .hscroll-progress { flex: 1; }
  .hscroll-scroll { display: none; }
}

/* ─────── CINEMATIC HERO (home) ─────── */
.hero-cine {
  position: relative;
  height: 100vh;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  display: block;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1400ms cubic-bezier(.4,.0,.2,1),
              transform 8000ms linear;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.0);
  transition: opacity 1400ms cubic-bezier(.4,.0,.2,1),
              transform 8000ms linear;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0) 100%);
}

.hero-inner-cine {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px var(--pad) 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 28px;
  font-weight: 400;
}
.display-cine {
  color: #fff;
  font-weight: 200;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-shadow: 0 6px 40px rgba(0,0,0,0.25);
}
.hero-cine .hero-sub {
  color: rgba(255,255,255,0.85);
  max-width: 44ch;
  margin: 0 0 32px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
}
.hero-cine .hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cine .btn-dark {
  background: #fff;
  color: #161616;
  border-color: #fff;
}
.hero-cine .btn-dark:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: #161616;
  border-color: #fff;
}

/* caption strip */
.hero-caption {
  position: absolute;
  left: var(--pad);
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 18px;
  pointer-events: none;
}
.hero-cap {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--t), transform 600ms var(--t);
}
.hero-cap.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero-cap-num { color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
.hero-cap-sep {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero-cap-title { color: #fff; font-weight: 400; }
.hero-cap-cat { color: rgba(255,255,255,0.55); }

/* dots */
.hero-dots {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 300ms var(--t), transform 300ms var(--t);
}
.hero-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}
.hero-dot:hover { background: rgba(255,255,255,0.75); }

.hero-cine .scroll-indicator {
  color: rgba(255,255,255,0.75);
  bottom: 40px;
  right: calc(var(--pad) + 32px);
}
.hero-cine .scroll-indicator .line { background: rgba(255,255,255,0.4); }
.hero-cine .scroll-indicator .line::after { background: #fff; }

@media (max-width: 900px) {
  .hero-inner-cine { padding: 120px var(--pad) 140px; }
  .hero-dots { display: none; }
  .hero-caption { bottom: 28px; font-size: 10px; }
  .hero-cap-sep { width: 24px; }
  .hero-cine .scroll-indicator { display: none; }
}
