/* ==========================================================================
   Elise Bengtsson — Foto / Film
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-2: #121211;
  --bg-3: #1a1918;
  --fg: #ece8e1;
  --fg-2: #c4bfb6;
  --muted: #8a857d;
  --line: rgba(236, 232, 225, 0.14);
  --line-2: rgba(236, 232, 225, 0.28);
  --accent: #ff4a1c;
  --accent-soft: rgba(255, 74, 28, 0.16);

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --sig: 'Mrs Saint Delafield', 'Brush Script MT', cursive;

  --pad: clamp(16px, 4vw, 64px);
  --gap: clamp(12px, 1.6vw, 28px);
  --nav-h: 64px;
  --lb: 0px; /* hero letterbox bar height (set by JS) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  scrollbar-gutter: stable;
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em, i { font-style: normal; }
::selection { background: var(--accent); color: #0b0b0a; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 1000;
  padding: 10px 14px; background: var(--fg); color: var(--bg);
  font: 500 13px/1 var(--mono); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }

/* SplitText helpers */
.line-mask { padding: 0.24em 0.14em 0.12em; margin: -0.24em -0.14em -0.12em; }
.char, .word { display: inline-block; will-change: transform; }

/* ==========================================================================
   PRELOADER — academy leader
   ========================================================================== */
.leader {
  position: fixed; inset: 0; z-index: 900;
  background: #0b0b0a;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
}
.leader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.leader::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 60vmin; height: 60vmin; margin: -30vmin 0 0 -30vmin;
  border-radius: 50%; border: 1.5px solid rgba(236,232,225,0.6);
  background: conic-gradient(rgba(236,232,225,0.08) 0 25%, transparent 0);
  animation: leaderSweep 0.64s linear infinite;
}
@keyframes leaderSweep { to { transform: rotate(1turn); } }
.leader__meta { position: absolute; display: flex; gap: 24px; text-transform: uppercase; }
.leader__meta--tl { top: 22px; left: var(--pad); }
.leader__meta--tr { top: 22px; right: var(--pad); }
.leader__meta--bl { bottom: 22px; left: var(--pad); }
.leader__pct { color: var(--fg); }
.leader__skip {
  position: absolute; bottom: 18px; right: var(--pad);
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--fg-2);
  transition: background 0.3s, color 0.3s;
}
.leader__skip:hover { background: var(--fg); color: var(--bg); }
.leader__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
html.no-js .leader { display: none; }
html.no-js .lang, html.no-js .hero__scroll, html.no-js .hero__ctrl, html.no-js .hero__slate, html.no-js .hud, html.no-js .nav__burger, html.no-js .grain { display: none; }
html.no-js .hero__media { background: #000 url(../img/mph-03-2048.webp) center / cover no-repeat; }
html.no-js .letterbox { height: 8vh; }

/* ==========================================================================
   GLOBAL LAYERS
   ========================================================================== */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 800; pointer-events: none; opacity: 0.075;
  mix-blend-mode: screen;
}
.vignette {
  position: fixed; inset: 0; z-index: 799; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.42) 100%);
}

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.cursor__dot {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--fg); mix-blend-mode: difference;
}
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(236,232,225,0.55); border-radius: 50%;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
              background-color 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor__label {
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg); opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.45s var(--ease);
  white-space: nowrap;
}
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--fg); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--fg); border-color: var(--fg); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(0.85); }

/* HUD — viewfinder */
.hud { position: fixed; inset: 0; z-index: 700; pointer-events: none; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; color: rgba(236,232,225,0.72); text-transform: uppercase; }
.hud__corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(236,232,225,0.55); }
.hud__corner--tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.hud__corner--tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.hud__corner--bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.hud__corner--br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.hud__rec { position: absolute; left: 44px; bottom: 19px; display: flex; align-items: center; gap: 8px; color: var(--fg); }
.hud__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.15; } }
.hud__tc { position: absolute; left: 112px; bottom: 19px; font-variant-numeric: tabular-nums; }
.hud__frame { position: absolute; right: 44px; bottom: 19px; font-variant-numeric: tabular-nums; }
.hud__meter { position: absolute; right: 148px; bottom: 22px; width: 90px; height: 3px; background: rgba(236,232,225,0.18); }
.hud__meter-fill { height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.hud__spec { position: absolute; right: 19px; top: 50%; transform: translate(50%, -50%) rotate(90deg) translateY(-50%); transform-origin: center; white-space: nowrap; }
.hud__spec b { color: var(--accent); font-weight: 500; }
.hud__section { position: absolute; left: 19px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg) translateY(-50%); white-space: nowrap; }
.hud__section span { display: inline-block; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 720;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 calc(var(--pad) + 8px);
  mix-blend-mode: difference;
  color: #ece8e1;
}
.nav__logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.nav__logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%;
  font: 600 11px/1 var(--mono); letter-spacing: 0.06em;
}
.nav__logo-text { font-weight: 600; font-size: 14px; letter-spacing: 0.01em; font-variation-settings: 'wdth' 90; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); }
.nav__link { position: relative; display: inline-flex; overflow: hidden; height: 1.5em; font: 500 12px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.nav__link span { display: block; height: 1.5em; transition: transform 0.6s var(--ease); }
.nav__link span:last-child { position: absolute; left: 0; top: 100%; }
.nav__link:hover span { transform: translateY(-100%); }
.nav__link:focus-visible { outline-offset: -2px; }
.nav__link sup { font-size: 8px; margin-right: 5px; opacity: 0.6; vertical-align: top; }
.nav__link.is-active::before { content: ''; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: currentColor; }
.nav__link { overflow: visible; clip-path: inset(0 -20px 0 -20px); }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; }
.lang span { opacity: 0.4; }
.lang button { opacity: 0.6; transition: opacity 0.3s; padding: 6px 2px; }
.lang button.is-active, .lang button:hover { opacity: 1; }
.nav__burger { display: none; align-items: center; gap: 10px; height: 40px; }
.nav__burger span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.nav__burger span + span { margin-top: -6px; }
.nav__burger { flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }
.nav__burger span + span { margin-top: 0; width: 14px; }
.nav__burger em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-of-type(2) { width: 22px; transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 710; visibility: hidden; }
.menu__bg { position: absolute; inset: 0; background: var(--bg-2); clip-path: inset(0 0 100% 0); }
.menu__links { position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 80px var(--pad) 120px; gap: 2px; }
.menu__link { display: flex; align-items: baseline; gap: 14px; font-size: clamp(44px, 13vw, 96px); line-height: 1; font-weight: 700; font-variation-settings: 'wdth' 75; text-transform: uppercase; overflow: hidden; }
.menu__link > span { display: inline-block; }
.menu__link sup { font: 500 11px/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; }
.menu__foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font: 500 12px/1.4 var(--mono); color: var(--fg-2); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fallback { position: absolute; inset: 0; display: none; }
.hero__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__fallback img.is-on { opacity: 1; }
.hero.no-gl .hero__gl { display: none; }
.hero.no-gl .hero__fallback { display: block; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.62) 100%),
    radial-gradient(80% 70% at 30% 70%, rgba(0,0,0,0.25), transparent 70%);
}
.letterbox { position: absolute; left: 0; right: 0; height: calc(var(--lb) + var(--lbx, 0px)); background: #000; z-index: 3; pointer-events: none; }
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

.hero__content {
  position: absolute; z-index: 4; left: 0; right: 0;
  bottom: calc(var(--lbt, 0px) + clamp(64px, 11vh, 120px));
  padding: 0 var(--pad);
  pointer-events: none;
}
.hero__kicker { position: relative; }
.hero__kicker::before, .hero__sub::before { content: ''; position: absolute; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(0,0,0,0.5), rgba(0,0,0,0.22) 60%, transparent); }
.hero__kicker::before { inset: -26px -40px -26px -36px; }
.hero__sub::before { inset: -40px -50px -40px -60px; }
.hero__kicker, .hero__sub { text-shadow: 0 0 1px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.6), 0 0 24px rgba(0,0,0,0.5); }
.hero__kicker {
  margin: 0 0 clamp(10px, 2vh, 22px);
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg);
}
.hero__kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.hero__title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 15.2vw, 300px);
  line-height: 0.8; letter-spacing: -0.015em;
  font-variation-settings: 'wdth' 82, 'wght' 760;
  white-space: nowrap;
  pointer-events: auto;
}
.hero__row { display: block; clip-path: inset(-40% -20% 0 -20%); }
.hero__row--2 { padding-left: clamp(0px, 6vw, 140px); }
.hero__title .char { font-variation-settings: inherit; }
.hero__sub {
  position: absolute; right: calc(var(--pad) + 28px); top: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right;
}
.hero__line { margin: 0; font-size: clamp(16px, 1.45vw, 24px); line-height: 1.25; color: var(--fg); max-width: 22ch; }
.hero__line em { font-family: var(--serif); font-style: italic; font-size: 1.18em; }
.hero__role { margin: 0; font: 500 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); display: flex; gap: 8px; }
.hero__role-text { color: var(--fg); min-width: 22ch; text-align: center; }
.hero__role-bracket { color: var(--accent); }

.hero__bottom {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(var(--lbt, 0px) + 22px);
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.hero__slate { display: grid; grid-template-columns: auto auto; gap: 6px 12px; color: var(--fg-2); justify-self: start; }
.hero__slate-k { color: var(--muted); }
.hero__slate-v { color: var(--fg); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--fg); }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--fg), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { top: -40%; } 100% { top: 110%; } }
.hero__ctrl { justify-self: end; display: flex; align-items: center; gap: 14px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 22px; height: 24px; position: relative; overflow: hidden; }
.hero__dot::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(236,232,225,0.25); }
.hero__dot i { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.hero__pause { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(236,232,225,0.4); display: grid; place-items: center; color: var(--fg); transition: background 0.3s, color 0.3s; }
.hero__pause:hover { background: var(--fg); color: var(--bg); }
.hero__pause svg { width: 12px; height: 12px; grid-area: 1 / 1; }
.hero__pause .i-play, .hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; }
.hero__dot.is-done i { transform: scaleX(1); }

/* Autofocus box */
.af {
  position: absolute; z-index: 5; left: 0; top: 0; width: 96px; height: 70px; margin: -35px 0 0 -48px;
  pointer-events: none; opacity: 0;
  background:
    linear-gradient(var(--fg), var(--fg)) left top / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left top / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right top / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right top / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right bottom / 1px 14px no-repeat;
  transition: filter 0.3s;
}
.af__label { position: absolute; left: 0; top: -18px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.14em; color: var(--fg); }
.af.is-locked { filter: drop-shadow(0 0 0 var(--accent)) ; }
.af.is-locked { background:
    linear-gradient(var(--accent), var(--accent)) left top / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1px 14px no-repeat; }
.af.is-locked .af__label { color: var(--accent); }

/* ==========================================================================
   SHARED SECTION BITS
   ========================================================================== */
.main { position: relative; z-index: 2; background: transparent; outline: none; }
.section { position: relative; padding: clamp(110px, 18vh, 220px) var(--pad); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
}
.label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 8vh, 110px); }
.sec-head__label { grid-column: 1 / 4; align-self: start; }
.sec-head__title {
  grid-column: 1 / 10; margin: 18px 0 0;
  font-size: clamp(56px, 11vw, 200px); line-height: 0.84; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; font-variation-settings: 'wdth' 72, 'wght' 780;
}
.sec-head__num { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--accent); font-size: 0.32em; vertical-align: top; margin-left: 0.15em; letter-spacing: 0; }
.sec-head__intro { grid-column: 10 / 13; margin: 0; color: var(--fg-2); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; max-width: 34ch; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 26px 0 28px; border-radius: 99px;
  border: 1px solid var(--line-2);
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease), border-color 0.5s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg); border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: none; }
.btn__arrow { display: inline-block; transition: transform 0.6s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: #0b0b0a; border-color: var(--accent); }

/* Image figure (used everywhere) */
.ph { position: relative; display: block; width: 100%; text-align: left; }
.ph__frame { position: relative; display: block; overflow: hidden; background-color: var(--c, #151515); background-size: cover; background-position: center; }
.ph__frame::before { content: ''; display: block; padding-top: var(--ar, 66.66%); }
.ph__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; opacity: 0; transition: opacity 0.9s var(--ease); }
.ph__frame img.is-loaded { opacity: 1; }
.ph__frame .ph__lqip { position: absolute; inset: -10%; width: 120%; height: 120%; filter: blur(18px); transform: scale(1.1); opacity: 0.85; }
.ph__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
button.ph .ph__frame img, a.ph .ph__frame img { transition: opacity 0.9s var(--ease), filter 0.8s var(--ease); }
button.ph:hover .ph__frame img, a.ph:hover .ph__frame img { filter: brightness(1.08) contrast(1.04); }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(120px, 22vh, 260px); }
.intro__label { grid-column: 1 / 4; }
.intro__text {
  grid-column: 1 / 12; margin: 34px 0 0;
  font-size: clamp(32px, 5.3vw, 96px); line-height: 1.02; font-weight: 500; letter-spacing: -0.02em;
  font-variation-settings: 'wdth' 88, 'wght' 520;
  text-wrap: balance;
}
.intro__text em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--fg); }
.intro__text em .word { color: inherit; }
.intro__side { grid-column: 7 / 12; margin-top: clamp(40px, 7vh, 90px); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.intro__side p { margin: 0; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; max-width: 44ch; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { position: relative; padding: clamp(20px, 4vh, 50px) 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__row { display: flex; white-space: nowrap; will-change: transform; }
.marquee__inner { display: flex; flex-shrink: 0; align-items: center; }
.marquee__item {
  font-size: clamp(54px, 9.5vw, 170px); line-height: 1.02; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; font-variation-settings: 'wdth' 70, 'wght' 800; padding: 0 0.18em;
}
.marquee__row--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px rgba(236,232,225,0.55); font-variation-settings: 'wdth' 110, 'wght' 300; }
.marquee__row--outline .marquee__item.serif { -webkit-text-stroke: 0; color: var(--fg); font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-variation-settings: normal; }
.marquee__star { display: inline-block; color: var(--accent); font-size: clamp(30px, 4.5vw, 80px); line-height: 1; padding: 0 0.3em; }

/* ==========================================================================
   FILM STRIP
   ========================================================================== */
.films { padding-bottom: 0; }
.strip-wrap { position: relative; }
@media (min-width: 861px) and (min-height: 501px) { .strip-wrap { margin: 0 calc(var(--pad) * -1); } }
.strip { position: relative; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; display: flex; align-items: center; background: #060606; }
.strip__track { display: flex; align-items: stretch; height: min(78vh, 760px); will-change: transform; }
.strip__film {
  position: relative; display: flex; align-items: center; gap: 0; height: 100%;
  padding: 46px 0; background: #030303;
}
.strip__film::before, .strip__film::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='28'%3E%3Crect x='13' y='7' width='18' height='14' rx='3.2' fill='%23ece8e1' fill-opacity='.88'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 44px 28px; opacity: 0.9;
}
.strip__film::before { top: 8px; }
.strip__film::after { bottom: 8px; }
.strip__edge { position: absolute; left: 0; right: 0; font: 500 9px/1 var(--mono); letter-spacing: 0.2em; color: #e2a33c; opacity: 0.75; white-space: nowrap; overflow: hidden; pointer-events: none; }
.strip__edge--top { top: 37px; }
.strip__edge--bottom { bottom: 37px; }
.strip__reel { display: flex; height: 100%; align-items: stretch; padding-right: 14px; }
.strip__frame { position: relative; height: 100%; aspect-ratio: 16 / 9; margin: 0 7px; flex-shrink: 0; overflow: hidden; background: #111; border-radius: 3px; }
.strip__frame:first-of-type { margin-left: 14px; }
.strip__frame img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.strip__frame--title {
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 3cqw, 26px);
  padding: 6%; text-align: center; color: var(--fg);
  background: radial-gradient(ellipse 70% 60% at 50% 46%, #2a0c06 0%, #0a0404 58%, #000 100%);
}
.tf__top, .tf__credit { font: 500 clamp(8px, 1.15cqw, 12px)/1.5 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.tf__credit { color: var(--fg-2); }
.tf__title {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase; line-height: 0.86; letter-spacing: 0.02em;
  font-size: clamp(26px, 9.5cqw, 104px); font-variation-settings: 'wdth' 62, 'wght' 820; text-wrap: balance;
  text-shadow: 0 0 28px rgba(255, 74, 28, 0.38), 0 0 2px rgba(255, 74, 28, 0.5);
  animation: tfFlicker 5s steps(1) infinite;
}
@keyframes tfFlicker { 0%, 90%, 100% { opacity: 1; } 91% { opacity: 0.35; } 92% { opacity: 1; } 95% { opacity: 0.65; } 96% { opacity: 1; } }
.strip__frame-num { position: absolute; left: 10px; bottom: 10px; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; color: rgba(255,255,255,0.8); mix-blend-mode: difference; }
.strip__card {
  position: relative; flex-shrink: 0; width: clamp(340px, 46vw, 760px); height: 100%;
  padding: clamp(16px, 2vw, 34px) clamp(26px, 4vw, 70px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.strip__card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.strip__index { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.strip__status { font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255,74,28,0.5); border-radius: 99px; padding: 7px 11px; white-space: nowrap; }
.strip__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 6.4vw, 124px); line-height: 0.92; letter-spacing: -0.02em; text-wrap: balance; }
.strip__head { display: flex; flex-direction: column; }
.strip__latest { margin: 0 0 16px; color: var(--accent); }
.strip__latest::before { box-shadow: 0 0 12px var(--accent); animation: rec 1.6s steps(1) infinite; }
.strip__title-en { display: block; margin-top: 10px; font: 500 12px/1.3 var(--mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.strip__meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; font-size: 14px; }
.strip__meta dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.strip__meta dd { margin: 0; color: var(--fg); }
.strip__text { margin: 0; color: var(--fg-2); max-width: 46ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; }
.strip__end { flex-shrink: 0; width: clamp(300px, 36vw, 560px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 clamp(30px, 5vw, 90px); }
.strip__end-title { margin: 0; font-size: clamp(40px, 4.4vw, 72px); line-height: 0.9; font-weight: 800; text-transform: uppercase; font-variation-settings: 'wdth' 70, 'wght' 800; }
.strip__end-title em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.strip__hint { position: absolute; left: var(--pad); top: calc(var(--nav-h) + 12px); display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); z-index: 2; }
.strip__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: max(52px, 6.5vh); height: 1px; background: var(--line); z-index: 2; }
.strip__progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   FILMOGRAPHY
   ========================================================================== */
.fg__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fg__head, .fg__row { display: grid; grid-template-columns: 90px minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1fr) 160px 30px; gap: var(--gap); align-items: center; }
.fg__head { padding: 0 0 14px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fg__item { border-bottom: 1px solid var(--line); position: relative; }
.fg__group {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: clamp(36px, 6vh, 64px) 0 14px; border-bottom: 1px solid var(--line-2);
  font: 500 11px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.fg__group:first-child { padding-top: 22px; }
.fg__group-years { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg__row { position: relative; width: 100%; padding: clamp(18px, 2.6vh, 30px) 0; text-align: left; isolation: isolate; color: var(--fg); }
.fg__row::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.fg__row:hover::before, .fg__row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.fg__row:hover, .fg__row:focus-visible { color: var(--bg); }
.fg__row:hover .fg__muted, .fg__row:focus-visible .fg__muted { color: rgba(11,11,10,0.62); }
.fg__year { font: 500 13px/1 var(--mono); letter-spacing: 0.08em; }
.fg__titlecell { min-width: 0; }
.fg__title { font-size: clamp(26px, 3.4vw, 60px); line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-variation-settings: 'wdth' 76, 'wght' 720; transition: transform 0.7s var(--ease); display: inline-block; }
.fg__row:hover .fg__title { transform: translateX(12px); }
.fg__muted { color: var(--fg-2); font-size: 14px; transition: color 0.4s; }
.fg__status { justify-self: start; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; border: 1px solid var(--line-2); white-space: nowrap; }
.fg__status--live { color: var(--accent); border-color: rgba(255,74,28,0.55); }
.fg__arrow { justify-self: end; font-size: 18px; transition: transform 0.6s var(--ease); }
.fg__row:hover .fg__arrow { transform: rotate(-45deg); }
.fg__note { display: block; margin-top: 6px; font: 500 10.5px/1.45 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

.preview { position: fixed; left: 0; top: 0; z-index: 650; width: clamp(240px, 22vw, 380px); pointer-events: none; opacity: 0; visibility: hidden; }
.preview__inner { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.preview__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.preview__img.is-on { opacity: 1; }
.preview__card { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; opacity: 0; background: radial-gradient(circle at 50% 40%, #222 0%, #050505 75%); }
.preview__card.is-on { opacity: 1; }
.preview__card-title { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 52px); line-height: 0.95; }
.preview__card-sub { position: absolute; left: 0; right: 0; bottom: 16px; font: 500 10px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.preview__card::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 2px; }

/* ==========================================================================
   PHOTO SERIES
   ========================================================================== */
.photos { padding-bottom: clamp(60px, 10vh, 120px); }
.series { position: relative; padding: clamp(60px, 12vh, 160px) 0; }
.series + .series { border-top: 1px solid var(--line); }
.series__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 8vh, 100px); }
.series__num {
  grid-column: 1 / 4; font-size: clamp(80px, 14vw, 240px); line-height: 0.78; font-weight: 300;
  font-variation-settings: 'wdth' 62, 'wght' 260; color: transparent; -webkit-text-stroke: 1px rgba(236,232,225,0.4);
  letter-spacing: -0.03em;
}
.series__title-wrap { grid-column: 4 / 10; }
.series__kicker { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.series__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 7vw, 132px); line-height: 0.9; letter-spacing: -0.02em; text-wrap: balance; }
.series__credits { margin: 16px 0 0; font: 500 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.series__credits span + span::before { content: ' / '; color: var(--accent); }
.series__aside { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 14px; }
.series__text { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; max-width: 32ch; }
.series__count { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(30px, 6vw, 90px); align-items: start; }
.grid > * { grid-column: 1 / -1; }

.g-portraits > :nth-child(1) { grid-column: 1 / 6; }
.g-portraits > :nth-child(2) { grid-column: 7 / 11; margin-top: 22vw; }
.g-portraits > :nth-child(3) { grid-column: 2 / 6; margin-top: 4vw; }
.g-portraits > :nth-child(4) { grid-column: 7 / 10; margin-top: 3vw; }
.g-portraits > :nth-child(5) { grid-column: 10 / 13; margin-top: 12vw; }

.g-trio > :nth-child(1) { grid-column: 1 / 9; }
.g-trio > :nth-child(2) { grid-column: 9 / 13; margin-top: 18vw; }
.g-trio > :nth-child(3) { grid-column: 4 / 11; }

.g-cinema > :nth-child(1) { grid-column: 1 / 13; }
.g-cinema > :nth-child(2) { grid-column: 1 / 6; }
.g-cinema > :nth-child(3) { grid-column: 7 / 13; margin-top: 12vw; }
.g-cinema > :nth-child(4) { grid-column: 2 / 8; margin-top: -2vw; }
.g-cinema > :nth-child(5) { grid-column: 9 / 13; margin-top: 10vw; }

.g-mosaic > :nth-child(1) { grid-column: 1 / 8; }
.g-mosaic > :nth-child(2) { grid-column: 9 / 13; margin-top: 12vw; }
.g-mosaic > :nth-child(3) { grid-column: 3 / 7; }
.g-mosaic > :nth-child(4) { grid-column: 8 / 13; margin-top: -4vw; }
.g-mosaic > :nth-child(5) { grid-column: 1 / 6; margin-top: 2vw; }
.g-mosaic > :nth-child(6) { grid-column: 7 / 12; margin-top: 10vw; }

.g-wide > :nth-child(1) { grid-column: 1 / 13; }
.g-wide > :nth-child(2) { grid-column: 1 / 7; }
.g-wide > :nth-child(3) { grid-column: 7 / 13; margin-top: 12vw; }

/* ==========================================================================
   COMMERCIAL
   ========================================================================== */
.case { padding: clamp(40px, 8vh, 100px) 0; }
.case + .case { border-top: 1px solid var(--line); }
.case:first-of-type { padding-top: 0; }
.case__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 6vh, 70px); }
.case__title { grid-column: 1 / 8; margin: 0; font-size: clamp(64px, 12vw, 220px); line-height: 0.8; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-variation-settings: 'wdth' 66, 'wght' 800; }
.case__subtitle { display: block; margin-top: 14px; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-size: 0.26em; line-height: 1.1; color: var(--fg-2); font-variation-settings: normal; }
.case__info { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 22px; }
.case__meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.case__meta dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.case__meta dd { margin: 0; }
.case__text { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.link-u { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 6px; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease); }
.link-u:hover::after { transform: scaleX(0); }
.link-u:hover { color: var(--accent); }

.slider { position: relative; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); overflow: hidden; overflow: clip; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slider.is-dragging { cursor: grabbing; }
.slider__track { display: flex; gap: var(--gap); width: max-content; will-change: transform; }
.slider__item { flex-shrink: 0; height: clamp(300px, 62vh, 680px); }
.slider__item .ph { height: 100%; }
.slider__item .ph__frame { height: 100%; }
.slider__item .ph__frame::before { display: none; }
.slider__item img { pointer-events: none; -webkit-user-drag: none; }
.slider__bar { margin-top: 26px; display: flex; align-items: center; gap: 18px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.slider__progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.slider__progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0.1); }

.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 4px; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease), filter 1s; filter: brightness(0.82); }
.video:hover .video__poster { transform: scale(1.0); filter: brightness(0.95); }
.video__play {
  position: absolute; left: 50%; top: 50%; width: clamp(100px, 11vw, 160px); height: clamp(100px, 11vw, 160px); margin: calc(clamp(100px, 11vw, 160px) / -2) 0 0 calc(clamp(100px, 11vw, 160px) / -2);
  border-radius: 50%; display: grid; place-items: center; background: rgba(236,232,225,0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(236,232,225,0.4); color: var(--fg); font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.video__play svg { width: 26px; height: 26px; margin-bottom: 8px; }
.video__play-inner { display: flex; flex-direction: column; align-items: center; }
.video__tc { position: absolute; left: 18px; top: 16px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; color: var(--fg); display: flex; gap: 10px; align-items: center; }
.video__tc i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.about__media { grid-column: 1 / 6; position: sticky; top: calc(var(--nav-h) + 20px); }
.about__media > .ph .ph__frame::before { padding-top: min(var(--ar), calc(100vh - var(--nav-h) - 250px)); }
.about__bts-title { margin: 26px 0 10px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.about__bts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.about__bts .ph__frame::before { padding-top: 66.66%; }
.about__media .ph__frame { border-radius: 2px; }
.about__media-cap { margin-top: 12px; display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.about__body { grid-column: 7 / 13; padding-top: clamp(0px, 4vh, 40px); }
.about__hello { margin: 0 0 clamp(28px, 4vh, 48px); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(54px, 6.6vw, 128px); line-height: 0.9; letter-spacing: -0.02em; }
.about__p { margin: 0 0 1.1em; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.38; font-variation-settings: 'wdth' 92, 'wght' 420; color: var(--fg); max-width: 34ch; }
.about__p:first-of-type { font-size: clamp(22px, 2.1vw, 34px); line-height: 1.25; }
.about__sig { display: block; width: min(320px, 70%); height: auto; margin: clamp(20px, 4vh, 40px) 0 clamp(40px, 7vh, 80px); overflow: visible; }
.about__sig text { font-family: var(--sig); font-size: 120px; fill: transparent; stroke: var(--fg); stroke-width: 1.1; }
.about__signoff { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts__title { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
.facts__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.facts__row dt { font: 500 10.5px/1.7 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts__row dd { margin: 0; font-size: 16px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding-bottom: clamp(60px, 10vh, 120px); overflow: hidden; }
.contact__title {
  margin: 24px 0 clamp(40px, 7vh, 80px); font-size: clamp(52px, 9.6vw, 190px); line-height: 0.86; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.025em; font-variation-settings: 'wdth' 70, 'wght' 800; max-width: 12ch;
}
.contact__title em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--accent); letter-spacing: -0.02em; font-variation-settings: normal; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.contact__main { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 26px; }
.contact__lead { margin: 0; color: var(--fg-2); font-size: clamp(16px, 1.3vw, 20px); max-width: 36ch; }
.contact__email { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.contact__email-link { font-size: clamp(22px, 2.6vw, 44px); font-weight: 500; letter-spacing: -0.01em; font-variation-settings: 'wdth' 88, 'wght' 480; position: relative; word-break: break-all; }
.contact__email-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease); }
.contact__email-link:hover::after { transform: scaleX(1); transform-origin: left; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chip:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.contact__phone { font-size: clamp(18px, 1.6vw, 26px); font-variation-settings: 'wdth' 90; }
.contact__phone small { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact__socials { display: flex; gap: 10px; flex-wrap: wrap; }

.form { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 6px; }
.field { position: relative; display: block; border-bottom: 1px solid var(--line-2); padding-top: 22px; }
.field span { position: absolute; left: 0; top: 30px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: transform 0.5s var(--ease), color 0.3s; transform-origin: left; pointer-events: none; }
.field input, .field textarea { width: 100%; background: none; border: 0; outline: none; color: var(--fg); font: 400 18px/1.4 var(--sans); padding: 8px 0 12px; resize: none; }
.field textarea { min-height: 110px; }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within span, .field.has-value span { transform: translateY(-26px) scale(0.9); color: var(--fg-2); }
.form__error { margin: 0 0 4px; min-height: 1.4em; color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; }
.field [aria-invalid="true"] + *, .field:has([aria-invalid="true"])::after { transform: scaleX(1); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form__note { margin: 0; font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); max-width: 30ch; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; padding: clamp(40px, 8vh, 80px) var(--pad) 0; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__top { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); font: 500 11px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.footer__top b { display: block; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.footer__top a:hover { color: var(--accent); }
.footer__clock { font-variant-numeric: tabular-nums; color: var(--fg); }
.footer__big {
  margin: clamp(40px, 8vh, 90px) 0 0; font-size: 15.8vw; line-height: 0.74; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; font-variation-settings: 'wdth' 76, 'wght' 820; white-space: nowrap;
  display: flex; justify-content: space-between; transform: translateY(6%);
}
.footer__big .char { display: inline-block; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; padding: 18px 0 46px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer__bottom button:hover { color: var(--fg); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 850; visibility: hidden; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
.lightbox.is-open { visibility: visible; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(6,6,6,0.97); opacity: 0; }
.lightbox__top { position: absolute; left: 0; right: 0; top: 0; height: 74px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; z-index: 3; }
.lightbox__title { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { color: var(--fg); font-variant-numeric: tabular-nums; }
.lightbox__close { justify-self: end; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.3s, transform 0.6s var(--ease); }
.lightbox__close:hover { background: var(--fg); transform: rotate(90deg); }
.lightbox__close span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; margin-left: -8px; background: var(--fg); transition: background 0.3s; }
.lightbox__close:hover span { background: var(--bg); }
.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }
.lightbox__stage { position: absolute; inset: 82px var(--pad) 150px; display: grid; place-items: center; z-index: 1; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.lightbox__nav { position: absolute; top: 74px; bottom: 140px; width: 50%; z-index: 2; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__caption { position: absolute; left: var(--pad); right: var(--pad); bottom: 104px; text-align: center; font: 400 14px/1.4 var(--sans); color: var(--fg-2); z-index: 3; pointer-events: none; }
.lightbox__thumbs { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 8px; padding: 0 var(--pad); z-index: 3; overflow-x: auto; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumb { flex-shrink: 0; width: 64px; height: 48px; overflow: hidden; opacity: 0.35; transition: opacity 0.3s, transform 0.5s var(--ease); border-radius: 2px; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb.is-active { opacity: 1; transform: translateY(-4px); outline: 1px solid var(--fg); outline-offset: 2px; }
.lightbox__thumb:hover { opacity: 0.8; }

/* Curtain (language switch) */
.curtain { position: fixed; inset: 0; z-index: 880; background: var(--fg); color: var(--bg); display: grid; place-items: center; clip-path: inset(100% 0 0 0); pointer-events: none; }
.curtain__label { font-size: clamp(80px, 22vw, 360px); font-weight: 800; line-height: 0.8; text-transform: uppercase; font-variation-settings: 'wdth' 70, 'wght' 820; letter-spacing: -0.03em; }

.toast { position: fixed; left: 50%; bottom: 60px; z-index: 860; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 99px; background: var(--fg); color: var(--bg); font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transition: opacity 0.4s, transform 0.6s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: relative; z-index: 3; padding: 120px var(--pad); max-width: 900px; }
.noscript img { height: auto; margin: 24px 0; }
.noscript ul { padding-left: 1.2em; color: var(--fg-2); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .fg__head, .fg__row { grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, 1fr) 130px 24px; }
  .fg__type, .fg__head .fg__type { display: none; }
  .sec-head__intro { grid-column: 1 / 13; }
  .sec-head__title { grid-column: 1 / 13; }
}

@media (max-width: 860px) {
  :root { --nav-h: 58px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__logo-text { display: none; }
  .hud__spec, .hud__section, .hud__meter { display: none; }
  .hud__corner { width: 14px; height: 14px; }
  .hud__corner--tl, .hud__corner--tr { top: 8px; }
  .hud__corner--bl, .hud__corner--br { bottom: 8px; }
  .hud__corner--tl, .hud__corner--bl { left: 8px; }
  .hud__corner--tr, .hud__corner--br { right: 8px; }
  .hud__rec { left: 28px; bottom: 13px; }
  .hud__tc { left: 92px; bottom: 13px; }
  .hud__frame { right: 28px; bottom: 13px; }

  .hero__title { font-size: clamp(44px, 16.2vw, 200px); }
  .hero__row--2 { padding-left: 0; }
  .hero__sub { position: relative; right: auto; top: auto; align-items: flex-start; text-align: left; margin-top: 22px; }
  .hero__role-text { text-align: left; min-width: 0; }
  .hero__content { bottom: calc(var(--lbt, 0px) + 84px); }
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__scroll { display: none; }
  .hero__slate-v { max-width: 52vw; }

  .sec-head__label, .sec-head__title, .sec-head__intro { grid-column: 1 / -1; }
  .intro__text, .intro__label { grid-column: 1 / -1; }
  .intro__side { grid-column: 1 / -1; }


  .fg__head { display: none; }
  .fg__row { grid-template-columns: 52px minmax(0, 1fr) 22px; row-gap: 6px; }
  .fg__role { grid-column: 2 / 3; grid-row: 2; }
  .fg__statuscell { grid-column: 2 / 3; grid-row: 3; }
  .fg__statuscell:empty { display: none; }
  .fg__arrow { grid-column: 3; grid-row: 1; }
  .fg__year { grid-row: 1; }
  .preview { display: none; }

  .series__head { grid-template-columns: 1fr; gap: 18px; }
  .series__num, .series__title-wrap, .series__aside { grid-column: 1 / -1; }
  .series__num { font-size: 26vw; }
  .grid > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .grid > :nth-child(3n+2) { width: 84%; justify-self: end; }
  .grid > :nth-child(3n) { width: 90%; }

  .case__head { grid-template-columns: 1fr; }
  .case__title, .case__info { grid-column: 1 / -1; }
  .slider__item { height: 56vh; }

  .about__media { grid-column: 1 / -1; position: relative; top: 0; }
  .about__body { grid-column: 1 / -1; padding-top: 30px; }

  .contact__main, .form { grid-column: 1 / -1; }
  .form { margin-top: 30px; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .footer__big { font-size: 15.4vw; }
  .footer__bottom { flex-direction: column; gap: 14px; padding-bottom: 60px; }
  .hud__rec, .hud__tc, .hud__frame { transition: opacity 0.5s; }
  .past-hero .hud__rec, .past-hero .hud__tc, .past-hero .hud__frame { opacity: 0; }

  .lightbox__stage { inset: 74px 12px 140px; }
  .lightbox__thumbs { justify-content: flex-start; }
  .lightbox__top { grid-template-columns: minmax(0, 1fr) auto 44px; column-gap: 14px; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__top a[href^="tel"] { white-space: nowrap; }
  .lang button { padding: 10px 7px; min-height: 44px; }
  .nav__burger { min-width: 44px; height: 44px; }
  .chip { height: 40px; }
}

/* Phones, and short landscape screens: the film strip becomes a swipeable reel (no pin) */
@media (max-width: 860px), (max-height: 500px) {
  .strip { height: auto; overflow: visible; display: block; background: transparent; }
  .strip__hint, .strip__progress { display: none; }
  .strip__track { flex-direction: column; height: auto; gap: 40px; }
  .strip__film { flex-direction: column; align-items: stretch; height: auto; padding: 0; background: transparent; }
  .strip__film::before, .strip__film::after, .strip__edge { display: none; }
  .strip__card { width: 100%; height: auto; padding: 0 var(--pad) 26px; gap: 22px; }
  .strip__reel {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 16px; margin: 0;
    background: #030303; position: relative; scrollbar-width: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Crect x='9' y='5' width='14' height='11' rx='2.6' fill='%23ece8e1' fill-opacity='.85'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Crect x='9' y='6' width='14' height='11' rx='2.6' fill='%23ece8e1' fill-opacity='.85'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-position: 0 4px, 0 calc(100% - 4px); background-size: 32px 22px;
    background-attachment: local;
  }
  .strip__reel::-webkit-scrollbar { display: none; }
  .strip__frame { width: min(82vw, 120vh); height: auto; margin: 0; scroll-snap-align: center; }
  .strip__frame:first-of-type { margin-left: 0; }
  .strip__frame img { left: 0; width: 100%; }
  .strip__end { width: 100%; padding: 30px var(--pad) 0; }
}

@media (max-width: 520px) {
  .hero__line { font-size: 17px; }
  .hero__bottom { bottom: calc(var(--lbt, 0px) + 40px); }
  .hero__content { bottom: calc(var(--lbt, 0px) + 104px); }
  .hero__dots { display: none; }
  .hero__bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__slate-v { max-width: calc(100vw - 2 * var(--pad) - 110px); }
  .footer__top > :nth-child(2) { grid-column: 1 / -1; }
  .facts__row { grid-template-columns: 1fr; gap: 6px; }
  .case__meta, .strip__meta { grid-template-columns: 1fr; gap: 2px; }
  .case__meta dd, .strip__meta dd { margin-bottom: 10px; }
  .contact__title { font-size: 13.4vw; }
  .strip__card-top { flex-wrap: wrap; row-gap: 10px; }
}

/* Short laptop screens: pinned strip fits between nav and HUD */
@media (min-width: 861px) and (min-height: 501px) and (max-height: 720px) {
  .strip__track { height: min(78vh, calc(100vh - 166px)); }
  .strip__title { font-size: clamp(40px, 9.5vh, 124px); }
}

/* Short landscape screens (phones turned sideways) */
@media (max-height: 500px) {
  .menu__links { padding: 64px var(--pad) 56px; }
  .menu__link { font-size: clamp(28px, 11vh, 96px); flex-shrink: 0; }
  .menu__foot { bottom: 16px; }
  .lightbox__top { height: 52px; }
  .lightbox__stage { inset: 52px 12px 40px; }
  .lightbox__nav { top: 52px; bottom: 40px; }
  .lightbox__caption { bottom: 12px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lightbox__thumbs { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 0; }
  .hero__title { font-size: 19vh; }
  .hero__scroll { display: none; }
  .hero__sub { position: absolute; right: calc(var(--pad) + 28px); top: 0; margin: 0; align-items: flex-end; text-align: right; }
  .hero__role-text { text-align: right; }
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > * { grid-column: auto !important; width: auto !important; justify-self: stretch !important; }
  .about__media { grid-column: 1 / 5; position: relative; top: 0; }
  .about__body { grid-column: 6 / -1; padding-top: 0; }
  .about__media > .ph .ph__frame::before { padding-top: min(var(--ar), calc(100vh - var(--nav-h) - 24px)); }
}

/* Touch devices: no custom cursor, no AF box */
@media (hover: none) {
  .af { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .hud__rec i { animation: none; }
  .leader::before { animation: none; }
}
