/* =============================================================
   CGFHQ — visual prototype
   ============================================================= */

/* ---------- self-hosted Montserrat (CGF HQ brand) ----------
   Full weight range, used for both display (heavy) and body. Italic is
   synthesized by the browser (no italic files shipped). */
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Light.otf')     format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Regular.otf')   format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Medium.otf')    format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-SemiBold.otf')  format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Bold.ttf')      format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Black.ttf')     format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

/* registered custom property so --p can be animated by keyframes */
@property --p {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* ---------- tokens ---------- */
:root {
  /* --p drives every color-mix below; 0 = warm endpoint, 1 = cool endpoint.
     Scroll morph removed (CGF HQ reference is single electric-blue HUD) —
     pinned to 1 so the cool (blue) palette renders everywhere. */
  --p: 1;

  /* warm endpoints (analog / post-house) */
  --bg-w:       #0D0907;
  --bg-2-w:     #16100C;
  --bg-3-w:     #1F1812;
  --line-w:     rgba(220,200,170,0.08);
  --line-2-w:   rgba(220,200,170,0.16);
  --ink-w:      #E8DFCE;
  --ink-mute-w: #8A7F70;
  --ink-dim-w:  #5A5246;
  --bronze-w:   #B87333;
  --bronze-2-w: #D89855;
  --bronze-3-w: #8A5526;
  --steel-w:    #4A5868;
  --blue-w:     #4F7A8C;

  /* cool endpoints — electric-blue HUD (matches CGF HQ reference).
     --bronze* is the legacy accent name, now repurposed to electric blue so
     every existing accent (buttons, hovers, dot, dept glow) turns blue. */
  --bg-c:       #0A0D14;
  --bg-2-c:     #0F1622;
  --bg-3-c:     #16202F;
  --line-c:     rgba(90,165,230,0.12);
  --line-2-c:   rgba(90,165,230,0.26);
  --ink-c:      #EAF1FA;
  --ink-mute-c: #95A6BC;
  --ink-dim-c:  #4C5970;
  --bronze-c:   #34A7E8;
  --bronze-2-c: #62C4FF;
  --bronze-3-c: #1E5E88;
  --steel-c:    #2A3650;
  --blue-c:     #3F8FD6;

  /* interpolated tokens (consumed everywhere via existing names) */
  --bg:       color-mix(in oklab, var(--bg-w),       var(--bg-c)       calc(var(--p) * 100%));
  --bg-2:     color-mix(in oklab, var(--bg-2-w),     var(--bg-2-c)     calc(var(--p) * 100%));
  --bg-3:     color-mix(in oklab, var(--bg-3-w),     var(--bg-3-c)     calc(var(--p) * 100%));
  --line:     color-mix(in oklab, var(--line-w),     var(--line-c)     calc(var(--p) * 100%));
  --line-2:   color-mix(in oklab, var(--line-2-w),   var(--line-2-c)   calc(var(--p) * 100%));
  --ink:      color-mix(in oklab, var(--ink-w),      var(--ink-c)      calc(var(--p) * 100%));
  --ink-mute: color-mix(in oklab, var(--ink-mute-w), var(--ink-mute-c) calc(var(--p) * 100%));
  --ink-dim:  color-mix(in oklab, var(--ink-dim-w),  var(--ink-dim-c)  calc(var(--p) * 100%));
  --bronze:   color-mix(in oklab, var(--bronze-w),   var(--bronze-c)   calc(var(--p) * 100%));
  --bronze-2: color-mix(in oklab, var(--bronze-2-w), var(--bronze-2-c) calc(var(--p) * 100%));
  --bronze-3: color-mix(in oklab, var(--bronze-3-w), var(--bronze-3-c) calc(var(--p) * 100%));
  --steel:    color-mix(in oklab, var(--steel-w),    var(--steel-c)    calc(var(--p) * 100%));
  --blue:     color-mix(in oklab, var(--blue-w),     var(--blue-c)     calc(var(--p) * 100%));

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  /* CGF HQ brand: Montserrat for everything; headings just use a heavier weight.
     --font-mono kept as alias to Montserrat so existing .micro / label styles still work. */
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-serif:   'Montserrat', Georgia, serif;
  --font-mono:    'Montserrat', ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw:   1440px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
/* locks page scroll while the mobile menu sheet is open */
body.no-scroll { overflow: hidden; }

/* ---------- display headings — corporate Druk Text Wide ---------- */
.hero__title,
.section__title,
.dept__title,
.step__title,
.contact__big,
.studio__principle h4,
.work-slide__title {
  font-family: var(--font-display);
  /* Druk Text Wide is intrinsically heavy & wide — looks balanced at slightly
     tighter tracking and a touch less weight than the previous Space Grotesk setup. */
  letter-spacing: -0.01em;
}

/* ---------- utility ---------- */
/* Body italic uses Montserrat italic (real glyphs). In display headings the
   italic span instead gets a bronze accent color — Druk has no italic and
   synthesized slant looks broken on a wide display face. */
.italic { font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.hero__title .italic,
.section__title .italic {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
}
/* Parent brand "CGF" highlighted inside body copy — set in Druk so it stands
   apart from Montserrat body, but white and regular weight to feel more like
   a quiet brand mark than a shouted accent. */
.brand-cgf {
  font-weight: 600;
}
.brand-name {
  font-weight: 600;
  color: var(--ink);
}
.micro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ---------- ambient bronze glow ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient__blob {
  position: absolute;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.09;
  animation: drift 22s ease-in-out infinite alternate;
}
.ambient__blob--1 {
  background: radial-gradient(circle, var(--bronze) 0%, transparent 60%);
  top: -20vw; left: -10vw;
}
.ambient__blob--2 {
  background: radial-gradient(circle, var(--blue) 0%, transparent 60%);
  bottom: -25vw; right: -15vw;
  animation-delay: -8s;
  opacity: 0.05;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(8vw,6vw) scale(1.15); }
}

/* ---------- custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
}
.cursor.is-link { width: 56px; height: 56px; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.9); }
.cursor.is-play { width: 84px; height: 84px; background: var(--bronze); border-color: var(--bronze); }
.cursor.is-card { width: 72px; height: 72px; border-color: var(--bronze-2); }
.cursor.is-view { width: 96px; height: 96px; background: color-mix(in oklab, var(--bronze), transparent 85%); border-color: var(--bronze-2); }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- HUD frame (CGF HQ reference: glowing tech border) ---------- */
.hud-frame {
  position: fixed;
  inset: 10px;
  z-index: 95;
  pointer-events: none;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  box-shadow:
    inset 0 0 70px color-mix(in oklab, var(--bronze), transparent 94%),
    0 0 0 1px color-mix(in oklab, var(--bronze), transparent 92%);
}
.hud-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--bronze);
  filter: drop-shadow(0 0 5px color-mix(in oklab, var(--bronze), transparent 45%));
}
.hud-corner--tl { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.hud-corner--tr { top: -1px; right: -1px; border-left: 0;  border-bottom: 0; border-top-right-radius: 5px; }
.hud-corner--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; border-bottom-left-radius: 5px; }
.hud-corner--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; border-bottom-right-radius: 5px; }
@media (max-width: 640px) {
  .hud-frame { inset: 6px; }
  .hud-corner { width: 18px; height: 18px; }
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg), transparent 60%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg), transparent 15%);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.nav__logo img { width: auto; height: 34px; object-fit: contain; }
/* wordmark "Q" built from an O + a straight tail (Montserrat has no straight-tail Q) */
.brand-q { position: relative; display: inline-block; }
.brand-q::after {
  content: "";
  position: absolute;
  right: 0.04em;
  bottom: 0.06em;
  width: 0.34em;
  height: 0.1em;
  background: currentColor;
  border-radius: 0.06em;
  transform: rotate(45deg);
  transform-origin: center;
}
.nav__links {
  display: flex; gap: 32px;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  color: var(--ink-mute);
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  transition: border-color 0.25s var(--ease);
}
.lang-toggle:hover { border-color: var(--line-2); }
.lang-toggle__opt {
  transition: color 0.2s var(--ease);
}
.lang-toggle__opt.is-active { color: var(--bronze-2); }
.lang-toggle__sep { color: var(--ink-dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--bronze);
  color: var(--bronze-2);
  box-shadow: 0 0 18px color-mix(in oklab, var(--bronze), transparent 72%);
}
/* primary = glowing electric-blue outline pill (CGF HQ reference) */
.btn--solid {
  background: color-mix(in oklab, var(--bronze), transparent 90%);
  color: var(--ink);
  border: 1px solid var(--bronze);
  font-weight: 500;
  box-shadow:
    inset 0 0 14px color-mix(in oklab, var(--bronze), transparent 82%),
    0 0 22px color-mix(in oklab, var(--bronze), transparent 64%);
}
.btn--solid:hover {
  background: color-mix(in oklab, var(--bronze), transparent 80%);
  border-color: var(--bronze-2);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 16px color-mix(in oklab, var(--bronze-2), transparent 76%),
    0 0 30px color-mix(in oklab, var(--bronze-2), transparent 55%);
}
.btn--block { width: 100%; padding: 16px 22px; }
.btn--lg { padding: 16px 32px; font-size: 14px; letter-spacing: 0.07em; }
.btn--lg .btn__play { width: 24px; height: 24px; }
.btn__play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  font-size: 9px;
  padding-left: 2px;
}

.nav__burger { display: none; }

/* =============================================================
   HERO  — pinned splash: .hero is 200vh, .hero__stage sticks at
   top:0 for 100vh (the "pin range"). Scroll within that range
   drives --p (warm → cool morph). After it, the stage releases
   and the next section scrolls in naturally.
   ============================================================= */
.hero {
  position: relative;
  padding: 0;
  z-index: 1;
  height: 100vh;
}
@supports (height: 100svh) {
  .hero { height: 100svh; }
}
.hero__stage {
  position: relative;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
@supports (height: 100svh) {
  .hero__stage { height: 100svh; }
}
.hero__cover {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
  overflow: hidden;
}
.hero__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: opacity, transform;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
.hero__cover-img--warm {
  opacity: calc(1 - var(--p));
  filter: contrast(1.04) saturate(0.92);
}
.hero__cover-img--cool {
  opacity: var(--p);
  filter: contrast(1.05) saturate(0.9);
  animation-duration: 30s;
  animation-direction: alternate-reverse;
  /* shift the frame as far right as possible (anchor left edge) */
  object-position: left center;
}
@keyframes hero-drift {
  0%   { transform: scale(1); }
  100% { transform: scale(1.03); }
}
.hero__cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 16%;
  background: linear-gradient(180deg, color-mix(in oklab, rgba(13,9,7,0.45), rgba(6,9,18,0.45) calc(var(--p) * 100%)), transparent);
  pointer-events: none;
  z-index: 1;
}
.hero__cover::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, rgba(13,9,7,0.85), rgba(6,9,18,0.9) calc(var(--p) * 100%)));
  pointer-events: none;
  z-index: 1;
}
/* ---------- hero overlay panel (framed translucent block over the image) ---------- */
.hero__panel {
  position: absolute;
  z-index: 3;
  left: clamp(48px, 11vw, 220px);
  top: 38%;
  transform: translateY(-50%);
  width: min(820px, calc(100% - var(--gutter) * 2));
  padding: clamp(32px, 3vw, 52px);
  background: color-mix(in oklab, var(--bg), transparent 42%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--bronze), transparent 90%),
    0 0 60px color-mix(in oklab, var(--bronze), transparent 92%),
    0 30px 80px rgba(0,0,0,0.5);
}
.hero__panel .hero__sub { max-width: none; margin-bottom: 14px; }
.hero__panel .hero__cta { margin-bottom: 0; }
/* formats — separate muted bullet line (like the mockup) */
.hero__formats {
  font-size: clamp(14px, 1.15vw, 17px);
  color: var(--ink-mute);
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 36px;
}
/* narrow windows / tablets: pull the panel in and tighten it up */
@media (max-width: 900px) {
  .hero__panel {
    left: 50%;
    right: auto;
    top: 44%;
    transform: translate(-50%, -50%);
    width: min(640px, calc(100% - 40px));
    padding: clamp(26px, 4vw, 40px);
  }
  .hero__panel .hero__eyebrow { margin-bottom: 20px; }
  .hero__panel .hero__title { margin-bottom: 16px; }
  .hero__panel .hero__sub { margin-bottom: 14px; }
  .hero__panel .hero__formats { margin-bottom: 24px; }
}

/* phones: full-width compact card that always fits between nav and meta */
@media (max-width: 640px) {
  .hero__panel {
    left: 14px;
    right: 14px;
    top: 50%;
    width: auto;
    transform: translateY(-50%);
    padding: 22px 20px;
  }
  .hero__panel .hero__eyebrow { margin-bottom: 14px; font-size: 10px; }
  .hero__panel .hero__title {
    /* sized so the longest line ("FINISHED TO THE FRAME") never clips,
       down to ~320px-wide phones */
    font-size: clamp(19px, 5.4vw, 27px);
    margin-bottom: 12px;
  }
  .hero__panel .hero__sub {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .hero__panel .hero__formats {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .hero__panel .btn--lg {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   HERO INTRO — the page that follows the splash
   ============================================================= */
.hero-intro {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(100px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  z-index: 1;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.dot {
  width: 6px; height: 6px;
  background: var(--bronze);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--bronze);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(28px, 3.1vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 780px;
}
/* both heading lines share the heavy weight (mockup) — override .italic's 500 */
.hero__title .italic { font-weight: 800; }
.hero__title-line { display: block; }

.hero__sub {
  max-width: 540px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-mute);
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px var(--gutter) clamp(28px, 3.5vh, 40px);
  margin: 0 auto;
  max-width: var(--maxw);
  width: 100%;
  border-top: 1px solid var(--line);
}
.hero__meta-col {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.hero__meta-col .micro { color: var(--ink-dim); }

.hero__scroll {
  display: none;
}
.hero__scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--bronze);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  padding: 28px 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  animation: marquee 35s linear infinite;
}
.marquee__track i {
  color: var(--bronze);
  font-style: normal;
  font-size: 0.5em;
}
.marquee__track span:nth-child(odd) { color: var(--ink); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================================
   SECTION
   ============================================================= */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__head { max-width: 880px; margin-bottom: 80px; }
.section__label { display: block; margin-bottom: 32px; }
.section__title {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.section__title > span { display: block; }
.section__lead {
  max-width: 620px;
  color: var(--ink-mute);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
}

/* =============================================================
   STUDIO (manifesto)
   ============================================================= */
.studio { padding-top: clamp(100px, 14vw, 180px); }
.studio__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.studio__head { position: sticky; top: 120px; margin-left: 0; }
.studio__head .section__title { margin-bottom: 0; font-weight: 800; letter-spacing: -0.02em; }
.studio__body { display: flex; flex-direction: column; gap: 56px; }
.studio__cgf { align-self: flex-start; margin-top: 4px; }
.studio__intro { display: flex; flex-direction: column; gap: 16px; }
.studio__lead {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 640px;
}
.studio__formats {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  color: var(--ink-mute);
  opacity: 0.85;
}
.studio__principles {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.studio__principle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.studio__principle:hover { padding-left: 12px; }
.studio__principle h4 {
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--ink);
}
.studio__principle p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 560px;
}

/* =============================================================
   WORKS NOTE
   ============================================================= */
.works__note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: right;
}

/* =============================================================
   DEPARTMENTS
   ============================================================= */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.dept {
  position: relative;
  grid-column: span 2;
  padding: 32px;
  min-height: 340px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.dept--wide { grid-column: span 3; }
.dept::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,30%) var(--my,30%), color-mix(in oklab, var(--bronze), transparent 82%), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.dept:hover {
  border-color: var(--bronze-3);
  background: var(--bg-3);
  transform: translateY(-4px);
}
.dept:hover::before { opacity: 1; }
.dept__num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}
.dept__head { margin-bottom: 16px; }
.dept__title {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.dept__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-2);
}
.dept__desc {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 24px;
}
.dept__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.dept__tools li {
  position: relative;
  padding-right: 14px;
}
.dept__tools li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--ink-dim);
}
.dept__more {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--bronze-3);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.dept__more:hover { color: var(--bronze-2); border-color: var(--bronze); }

/* =============================================================
   WORKS
   ============================================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.work {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work:hover { transform: translateY(-4px); border-color: var(--line-2); }
.work__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--g1, #2a2a2a) 0%, var(--g2, #0a0a0a) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.work__media::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><rect width='120' height='120' fill='none'/><path d='M0 60 L120 60 M60 0 L60 120' stroke='rgba(255,255,255,0.04)' stroke-width='1'/></svg>");
  background-size: 60px 60px;
  opacity: 0.5;
}
.work__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6));
}
.work__lock {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line-2);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.3);
}
.work__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 24px;
}
.work__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.work__type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =============================================================
   PROCESS
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 36px 24px 36px 0;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s var(--ease);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:hover { background: linear-gradient(180deg, color-mix(in oklab, var(--bronze), transparent 96%), transparent 80%); }
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bronze-2);
}
.step__title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.step__desc {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.step + .step { padding-left: 24px; }

/* =============================================================
   CALCULATOR (UI shell)
   ============================================================= */
.calc__wizard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.calc__wizard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--bronze), transparent 60%), transparent 50%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.calc__steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.calc__step {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-mute);
  transition: all 0.3s var(--ease);
}
.calc__step span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.calc__step b { font-weight: 500; }
.calc__step.is-active {
  background: var(--bronze);
  border-color: var(--bronze);
  color: #1a0f06;
}
.calc__step.is-active span { color: #1a0f06; opacity: 0.7; }

.calc__panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.calc__panel-left { display: flex; flex-direction: column; gap: 28px; }
.calc__field { display: flex; flex-direction: column; gap: 12px; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.calc__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-mute);
  cursor: not-allowed;
}
.chip.is-on {
  background: color-mix(in oklab, var(--bronze), transparent 90%);
  border-color: var(--bronze-3);
  color: var(--bronze-2);
}

.calc__slider {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
  border: 1px solid var(--line);
}
.calc__slider-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bronze-3), var(--bronze));
  border-radius: 999px;
}
.calc__val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.calc__bars { display: flex; flex-direction: column; gap: 8px; }
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
}
.bar::before {
  content: "";
  position: absolute; inset: 0;
  width: var(--w);
  background: color-mix(in oklab, var(--bronze), transparent 92%);
}
.bar span, .bar b { position: relative; z-index: 1; }
.bar b { color: var(--bronze-2); font-weight: 500; }
.bar--hero::before { background: color-mix(in oklab, var(--bronze), transparent 82%); }
.bar--low::before  { background: color-mix(in oklab, var(--steel), transparent 85%); }

.calc__panel-right {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc__range {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 4px;
}
.calc__range-val {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.calc__range-cur {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}
.calc__note {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  border-left: 2px solid var(--bronze-3);
  padding-left: 14px;
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 60px;
}
.contact__col { display: flex; flex-direction: column; gap: 16px; }
.contact__big {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
a.contact__big:hover { color: var(--bronze-2); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  position: relative;
  z-index: 2;
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 60px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.footer__brand img { width: auto; height: 32px; object-fit: contain; }
.footer__tag { color: var(--ink-mute); font-size: 14px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer__social { display: flex; gap: 24px; }
.footer__social a { transition: color 0.25s var(--ease); }
.footer__social a:hover { color: var(--bronze-2); }

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-in:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-in:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-in:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  :root { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .ambient__blob, .dot, .hero__scroll-line::after,
  .hero__cover-img { animation: none !important; }
  .hero__cover-img { transform: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  /* ---- mobile slide-down menu sheet ---- */
  .nav__links {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: calc(env(safe-area-inset-top, 0px) + 74px) var(--gutter) 28px;
    background: color-mix(in oklab, var(--bg), transparent 2%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-2);
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
    z-index: 90; /* behind the nav bar (z 100) so the burger stays tappable */
    font-size: 19px;
  }
  .nav.is-menu-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    color: var(--ink);
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.01em;
  }
  .nav__links a::after { display: none; }

  /* ---- burger → X ---- */
  .nav__burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    position: relative; z-index: 101;
  }
  .nav__burger span {
    width: 18px; height: 1px; background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav.is-menu-open .nav__burger span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav.is-menu-open .nav__burger span:last-child  { transform: translateY(-3px) rotate(-45deg); }

  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .dept, .dept--wide { grid-column: span 1; }
  .dept--wide:first-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .step + .step { padding-left: 0; }
  .calc__panel { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__meta { gap: 16px; font-size: 12px; padding-top: 16px; padding-bottom: 20px; }
  .hero__meta-col { font-size: 12px; }
  .hero__scroll { display: none; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__head { position: static; margin-left: 0; }
  .studio__principle { grid-template-columns: 1fr; row-gap: 8px; }
}
@media (max-width: 640px) {
  .nav__actions .btn { display: none; }
  .dept-grid { grid-template-columns: 1fr; }
  .dept--wide:first-child { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: 1fr; }
  .calc__wizard { padding: 24px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* on phones the 3-col meta is too cramped — drop Format, keep Studio + Approach */
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 11px; }
  .hero__meta-col:nth-child(3) { display: none; }

  /* tighter rhythm so sections aren't a wall of whitespace on small screens */
  .section__head { margin-bottom: 44px; }
  .section__label { margin-bottom: 22px; }
  /* dept cards: drop the tall fixed min-height, they stack 1-up now */
  .dept { min-height: 0; padding: 24px 22px; }
  .dept__num { top: 20px; right: 22px; }
  .studio__body { gap: 40px; }
  .work-slide__meta { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
  .work-slide__title { font-size: 17px; }
  .contact__grid { padding-top: 40px; }

  /* perf: heavy 120px blur on a 70vw blob is costly on phones — soften & freeze */
  .ambient__blob { filter: blur(80px); animation: none; }
}

/* =============================================================
   WORKS — single-tile slider with arrows
   ============================================================= */
.work-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.work-slider__viewport {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.work-slide {
  display: none;
}
.work-slide.is-active {
  display: block;
  animation: work-fade 0.5s var(--ease);
}
@keyframes work-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.work-slide__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.work-slide__media video {
  width: 100%;
  height: 100%;
  display: block;
  /* contain (not cover) so ultrawide reels like KIA Tasman are letterboxed
     rather than cropped; 16:9 reels still fill the frame edge to edge. */
  object-fit: contain;
  background: #000;
}
.work-slide__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.work-slide__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.work-slide__type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.work-slider__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.work-slider__arrow:hover {
  border-color: var(--bronze);
  background: var(--bg-3);
  color: var(--bronze-2);
}
.work-slider__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.work-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--line-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.work-slider__dot.is-active {
  background: var(--bronze-2);
  transform: scale(1.25);
}
@media (max-width: 720px) {
  .work-slider { grid-template-columns: 1fr; }
  .work-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    font-size: 22px;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.4);
  }
  .work-slider__arrow--prev { left: 10px; }
  .work-slider__arrow--next { right: 10px; }
}

/* =============================================================
   FILM POSTER MARQUEE — strip of project posters
   ============================================================= */
.film-marquee {
  position: relative;
  z-index: 2;
  background: var(--bg);
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0 0;
}
.film-marquee__track {
  display: inline-flex;
  align-items: stretch;
  gap: 18px;
  white-space: nowrap;
  animation: film-marquee 90s linear infinite;
  padding-left: 18px;
}
@keyframes film-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.film-poster {
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 2 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.85) brightness(0.92);
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.film-poster:hover {
  border-color: var(--bronze);
  transform: translateY(-4px);
  filter: saturate(1) brightness(1.05);
}
