/* ───────────────────────────────────────────
   Soma Fukuta, site styles ("Cinema")
   Graphite and white so the footage carries the color.
   Geist for type, Geist Mono for timecode-style details.
   ─────────────────────────────────────────── */
/* Self-hosted variable fonts (SIL Open Font License) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #0c0d0e;
  --bg-2: #151719;
  --bg-3: #1d2023;
  --ink: #ededeb;
  --ink-2: #9a9da1;
  --line: rgba(237, 237, 235, 0.13);
  --line-2: rgba(237, 237, 235, 0.28);
  --rec: #e5484d; /* only for the "reel is playing" light */

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1680px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-morph: cubic-bezier(0.45, 0, 0.55, 1); /* easeInOutQuad: an even, gradual change with soft ends */

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-2); }
.narrow { max-width: 52ch; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* ── type ─────────────────────────────────── */
.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--ink-2); margin: 0; }
.eyebrow { color: rgba(237, 237, 235, 0.8); margin: 0 0 20px; }
.display {
  font-weight: 500;
  font-size: clamp(42px, 6.6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 15ch;
}
.h2 { font-weight: 500; font-size: clamp(32px, 3.8vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.lead { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.38; letter-spacing: -0.015em; margin: 0 0 1.1em; color: var(--ink); }

/* ── text animation ───────────────────────────
   Titles: each word rises out of its own mask, one after another, like a title card.
   Taglines: words come into focus, like a focus pull.
   load = when the page opens, view = when it scrolls in, soft = focus pull. */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.14em; margin: 0 -0.06em -0.14em; }
.split .w > span { display: inline-block; }
.split-load .w > span { animation: word-rise 1100ms var(--ease-out) both; animation-delay: calc(var(--d0, 120ms) + var(--i) * 75ms); }
.js .split-view .w > span { transform: translateY(105%); }
.js .split-view.is-in .w > span {
  transform: none;
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--d0, 0ms) + var(--i) * 75ms);
}
.split-soft .w { overflow: visible; }
.split-soft .w > span { animation: word-focus 900ms var(--ease-out) both; animation-delay: calc(var(--d0, 500ms) + var(--i) * 45ms); }
@keyframes word-rise { from { transform: translateY(105%); } }
@keyframes word-focus { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }



/* ── links & buttons ──────────────────────── */
/* Morph links (nav and text links): on hover the label turns bold and white sweeps across it from left to right
   as a soft gradient (painted through the text), and the link grows slightly.
   The label stays one piece of text, so its spacing never jumps; an invisible bold copy holds the width,
   so nothing next to the link moves. */
.morph-link { --rest-ink: rgba(237, 237, 235, 0.62); position: relative; display: inline-grid; justify-items: start; transform-origin: 0 50%; transition: transform 600ms var(--ease-morph); }
.morph-link::before { content: attr(data-text); content: attr(data-text) / ""; grid-area: 1 / 1; font-weight: 700; white-space: pre; height: 0; overflow: hidden; visibility: hidden; }
.morph-link .morph {
  grid-area: 1 / 1; white-space: pre;
  color: transparent;
  background-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--rest-ink) 60%, var(--rest-ink) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  transition: font-weight 600ms var(--ease-morph), background-position 600ms var(--ease-morph);
}
.morph-link[aria-current="page"] .morph { background-position: 0 0; }
@media (hover: hover) and (pointer: fine) {
  .morph-link:hover { transform: scale(1.06); }
  .morph-link:hover .morph { font-weight: 700; background-position: 0 0; }
}
.text-link { font-size: 15px; }
.text-link .morph { text-decoration: underline 1px; text-decoration-color: var(--rest-ink); text-underline-offset: 5px; transition: font-weight 600ms var(--ease-morph), background-position 600ms var(--ease-morph), text-decoration-color 600ms var(--ease-morph); }
@media (hover: hover) and (pointer: fine) { .text-link:hover .morph { text-decoration-color: var(--ink); } }
.button {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.button:active { transform: scale(0.97); }
.button-ic {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  transition: transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover .button-ic { transform: translateX(3px); }
}
.play-tri { width: 0; height: 0; margin-left: 2px; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.arrow { position: relative; display: block; width: 12px; height: 1.5px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0.5px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.arrow-left { transform: scaleX(-1); }

/* ── header ───────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms ease, border-color 400ms ease;
}
.site-header.is-solid {
  background: rgba(12, 13, 14, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
/* The name always leads home. On inner pages it reads as a path ("Soma Fukuta / Services").
   On hover the name morphs the same way as the links: it turns bold and grows a little as one smooth movement.
   It grows through its font size rather than a transform, so the path beside it glides along instead of being covered. */
.brand { display: flex; align-items: baseline; gap: 0.45em; min-width: 0; font-size: 17px; line-height: 1.2; }
.wordmark { position: relative; font-size: 1em; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; transition: font-weight 600ms var(--ease-morph), font-size 600ms var(--ease-morph); }
.crumb { color: var(--ink-2); letter-spacing: -0.01em; white-space: nowrap; animation: crumb-in 400ms var(--ease-out) 150ms both; }
.crumb a { transition: color 200ms ease; }
.crumb a:hover { color: var(--ink); }
@keyframes crumb-in { from { opacity: 0; transform: translateX(-6px); } }
@media (hover: hover) and (pointer: fine) {
  .wordmark:hover { font-weight: 820; font-size: 1.06em; }
}

/* Nav links use the morph-link style (see "links & buttons"); centred so they grow evenly. */
.nav { display: flex; gap: clamp(20px, 2.6vw, 36px); font-size: 14px; }
.nav .morph-link { --rest-ink: rgba(237, 237, 235, 0.58); justify-items: center; transform-origin: 50% 50%; padding: 6px 0; }
.menu-btn { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: 48px; font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; animation: rise 500ms var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
.menu-foot { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; padding: 12px 0 12px 16px; }
  .brand { font-size: 16px; }
  .crumb { font-size: 14px; }
}
body.menu-open { overflow: hidden; }

/* ── home: one screen, reel only ─────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden;
  background: var(--bg-2);
}
.hero-video, .case-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 14, 0.6) 0%, rgba(12, 13, 14, 0) 22%),
    linear-gradient(0deg, rgba(12, 13, 14, 0.9) 0%, rgba(12, 13, 14, 0.32) 42%, rgba(12, 13, 14, 0) 66%);
}
.hero-content {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom, 0px));
}
.hero-title {
  font-weight: 500;
  font-size: clamp(54px, 8.8vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  --d0: 220ms;
}
/* Headline hover: the words morph from regular to bold (Geist is a variable font, so each weight
   in between is drawn) as one gradual movement over 900ms, the last word trailing the first by 180ms.
   Whole words change together, so letter pairs keep their kerning the entire time (no jumps, no snap at the end).
   Tracking opens up slightly as the weight grows, so the bold never looks crammed.
   It switches on once the entrance has finished (main.js adds .is-settled). */
.hero-title .split { display: inline-block; transform-origin: 0 100%; transition: transform 900ms var(--ease-morph); }
.hero-title .split .w > span { font-weight: 500; letter-spacing: -0.055em; transition: font-weight 900ms var(--ease-morph), letter-spacing 900ms var(--ease-morph); transition-delay: calc(var(--x) * 180ms); }
.hero-title.is-settled .split .w { overflow: visible; }
@media (hover: hover) and (pointer: fine) {
  .hero-title.is-settled .split:hover { transform: scale(1.035); }
  .hero-title.is-settled .split:hover .w > span { font-weight: 820; letter-spacing: -0.042em; }
}
.hero-tagline {
  font-size: clamp(17px, 1.5vw, 21px);
  color: rgba(237, 237, 235, 0.82);
  margin: 22px 0 32px; max-width: 46ch;
  --d0: 650ms;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-meta { display: grid; gap: 7px; justify-items: end; text-align: right; color: rgba(237, 237, 235, 0.72); }
.hero-meta a { transition: color 200ms ease; }
.hero-meta a:hover { color: var(--ink); }
.timecode { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.is-playing .rec { background: var(--rec); }
.hero .eyebrow { animation: rise 900ms var(--ease-out) 80ms both; }
.hero-actions { animation: rise 900ms var(--ease-out) 900ms both; }
.hero-meta { animation: fade 1200ms ease 1100ms both; }

/* ── page heads ───────────────────────────── */
.page-head { padding-top: calc(var(--header-h) + clamp(72px, 11vw, 168px)); padding-bottom: clamp(48px, 7vw, 104px); }
.page-head .display { --d0: 150ms; }
.page-head .lead { margin-top: clamp(28px, 3vw, 44px); }
.thanks { min-height: 72vh; }
.thanks .label { margin-bottom: 20px; }
.thanks .display { margin-bottom: 40px; }

section { position: relative; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-bottom: 18px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

/* ── projects: a stack of films ──────────────
   The project in view fills the screen. The others thin out into slim strips above and below it,
   still playing, with their names in the middle. Scrolling hands the space from one project to the next
   (main.js sets each band's position, crop and title size). Without script the bands simply stack. */
.stack { margin-top: var(--header-h); }
.stack-stage { position: relative; }
.pj { position: relative; display: block; overflow: hidden; background: var(--bg-2); aspect-ratio: 2.39 / 1; max-width: 100%; margin-bottom: 2px; color: var(--ink); }
.pj-media, .pj-shade, .pj-dim { position: absolute; inset: 0; display: block; }
.pj .loop { filter: none; }
.pj-shade { background: radial-gradient(60% 55% at 50% 50%, rgba(12, 13, 14, 0.42), rgba(12, 13, 14, 0.12) 75%), linear-gradient(0deg, rgba(12, 13, 14, 0.55), rgba(12, 13, 14, 0) 35%); }
.pj-dim { background: rgba(12, 13, 14, 0.62); opacity: 0; }
.pj-name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transform-origin: 50% 50%;
  white-space: nowrap; text-align: center;
  font-weight: 500; font-size: clamp(56px, 10vw, 184px); line-height: 0.84; letter-spacing: -0.055em;
  transition: font-weight 600ms var(--ease-morph);
}
.pj-meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(14px, 2vw, 26px); display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 14px; color: rgba(237, 237, 235, 0.82); }
.pj-meta .mono { color: var(--ink); white-space: nowrap; }
.gap { display: inline-block; width: 1.5em; }
@media (hover: hover) and (pointer: fine) {
  .pj:hover .pj-name { font-weight: 800; }
}
/* Resting the pointer on a strip fills this line along its bottom; when it's full, that project opens.
   It fills at an even (linear) pace because it's a timer, and drains quickly if the pointer moves off. */
.pj-dwell { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; display: block; pointer-events: none; }
.pj-dwell i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 220ms var(--ease-out); }
.pj.is-dwelling .pj-dwell i { transform: scaleX(1); transition: transform var(--dwell, 1500ms) linear; }
/* live: the stage pins under the header and every band is laid out by script */
.stack.is-live .stack-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); overflow: hidden; }
.stack.is-live .pj { position: absolute; left: 0; right: 0; top: 0; margin: 0; aspect-ratio: auto; will-change: transform, clip-path; }

.loop { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82); transition: filter 500ms ease; }
@media (hover: hover) and (pointer: fine) {
  .next:hover .loop { filter: brightness(1); }
}

/* ── CTA ──────────────────────────────────── */
.cta { padding-block: clamp(112px, 15vw, 220px) clamp(88px, 11vw, 150px); }
.cta .display { margin-bottom: clamp(32px, 4vw, 56px); }
.cta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }
.big-link {
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 56px);
  letter-spacing: -0.04em; line-height: 1.1;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  padding-bottom: 6px;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0% 2px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat;
  transition: color 300ms ease, background-size 600ms var(--ease-out);
}
.big-link:hover { color: var(--ink); background-size: 100% 2px, 100% 1px; }

/* ── project page ─────────────────────────── */
.case-hero { position: relative; height: 88vh; height: 88svh; min-height: 520px; overflow: hidden; background: var(--bg-2); }
.case-hero .loop { filter: none; }
/* a hero film with burned-in subtitles: the video box runs 14% past the bottom, so the subtitle strip is cut off */
.case-hero.crop-subs .case-hero-video { height: calc(100% / 0.86); }
.case-hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 6vh, 64px); }
.case-hero .eyebrow { animation: rise 900ms var(--ease-out) 60ms both; }
.case-title { font-weight: 500; font-size: clamp(64px, 13vw, 220px); line-height: 0.84; letter-spacing: -0.06em; --d0: 140ms; }
.case-tagline { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; color: rgba(237, 237, 235, 0.84); margin-top: 18px; --d0: 520ms; }

.case-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-block: clamp(72px, 10vw, 140px); }
.meta { display: grid; gap: 22px; align-content: start; }
.meta div { border-top: 1px solid var(--line); padding-top: 12px; }
dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); margin-bottom: 6px; }
dd { margin: 0; font-size: 15px; }
.case-text { max-width: 760px; }
.case-text .muted { font-size: 17px; max-width: 58ch; }

.films { display: grid; gap: clamp(64px, 8vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.film { width: 100%; max-width: min(1240px, calc(78vh * var(--ar))); margin-inline: auto; }
.film-frame { position: relative; aspect-ratio: var(--ar); max-width: 100%; background: var(--bg-2); overflow: hidden; cursor: pointer; }
.film-frame img, .film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-frame img { filter: brightness(0.8); transition: filter 500ms ease, transform 1200ms var(--ease-out); }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500;
  transition: transform 160ms var(--ease-out);
}
.film-play:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .film-frame:hover img { filter: brightness(0.95); transform: scale(1.015); }
  .film-frame:hover .button-ic { transform: translateX(3px); }
}
.film figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.film-text { display: grid; gap: 4px; }
.film-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.film-sub { font-size: 14px; color: var(--ink-2); }
/* project sections: a banner (label, big title, sub), the description, then the films */
/* project pages with several films (MAMANI): each section uses the case-info layout */
.case-info.is-more { padding-top: clamp(24px, 4vw, 56px); }
.section-title { margin-bottom: clamp(24px, 2.6vw, 36px); }
.section-title h2 { font-weight: 500; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; margin: 12px 0 0; }
.section-sub { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.01em; color: var(--ink-2); margin: 10px 0 0; }
.films-pair .film { max-width: none; }
@media (min-width: 900px) {
  .films-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); align-items: start; max-width: min(1240px, 100%); margin-inline: auto; }
}
.case-info.is-meta { display: block; padding-block: clamp(40px, 5vw, 72px) 0; }
.case-info.is-meta .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { padding-top: clamp(80px, 10vw, 150px); }
.feature + .feature { padding-top: clamp(112px, 13vw, 200px); }
.feature.is-last { padding-bottom: clamp(80px, 10vw, 140px); }
.feature-inner { --w: min(1600px, 86vh * var(--ar)); width: 100%; max-width: calc(var(--w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.feature-head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.feature-title { font-weight: 500; font-size: clamp(52px, 9vw, 150px); line-height: 0.88; letter-spacing: -0.055em; margin: 14px 0 0; }
.feature-pair .feature-title { font-size: clamp(44px, 7vw, 116px); }
.feature-sub { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.015em; color: rgba(237, 237, 235, 0.84); margin: 16px 0 0; }
.feature-text { max-width: 760px; margin-top: clamp(28px, 3vw, 44px); }
.feature-text .lead:last-child { margin-bottom: 0; }
.feature-text .muted { font-size: 17px; max-width: 58ch; margin: 0; }
.feature-films { display: grid; gap: clamp(48px, 6vw, 80px); }
.feature .film { max-width: none; }
@media (min-width: 901px) {
  .feature-pair .feature-films { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
}
@media (max-width: 900px) {
  .case-info.is-meta .meta { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}
.lb-embed { --ar: 16 / 9; position: relative; width: min(100%, calc((100dvh - 128px) * var(--ar))); aspect-ratio: var(--ar); background: var(--bg-2); }
.lb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* stills: masonry that keeps each image's ratio */
.stills { padding-bottom: clamp(80px, 10vw, 140px); }
.masonry { columns: 3 320px; column-gap: clamp(12px, 1.4vw, 20px); }
.masonry.is-js { columns: auto; display: flex; align-items: flex-start; gap: clamp(12px, 1.4vw, 20px); }
.masonry-col { flex: 1 1 0; min-width: 0; }
.still {
  display: block; break-inside: avoid;
  margin-bottom: clamp(12px, 1.4vw, 20px);
  aspect-ratio: var(--ar); max-width: 100%;
  overflow: hidden; background: var(--bg-2);
  cursor: zoom-in;
}
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .still:hover img { transform: scale(1.02); } }

/* next project */
.next { display: block; padding-block: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.next-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 16px; }
.next-name { font-weight: 500; font-size: clamp(56px, 10vw, 168px); line-height: 0.86; letter-spacing: -0.06em; }
.next-media { position: relative; display: block; width: clamp(140px, 26vw, 400px); aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); flex: none; }

/* ── services ─────────────────────────────── */
/* services: one wide behind-the-scenes photo, and the projects' clips */
.svc-visual { margin-top: 0; margin-bottom: 0; }
.svc-visual-frame { aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg-2); }
.svc-visual-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-visual figcaption { padding-top: 14px; }
.svc-work { padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(24px, 4vw, 56px); }
.svc-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.svc-work-item { display: block; color: var(--ink); text-decoration: none; }
.svc-work-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.svc-work-item:hover .loop { filter: brightness(1); }
.svc-work-text { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; }
.svc-work-name { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.02em; }
@media (max-width: 640px) { .svc-visual-frame { aspect-ratio: 4 / 3; } .svc-work-grid { grid-template-columns: minmax(0, 1fr); } }
.process { padding-top: clamp(96px, 12vw, 180px); }
.process .h2 { margin-bottom: clamp(36px, 4vw, 56px); }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.process-grid li { border-top: 1px solid var(--line); padding-top: 18px; transition-delay: calc(var(--i) * 70ms); }
.process-grid h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; margin: 14px 0 10px; }
.process-grid p { font-size: 15px; max-width: 34ch; }
.num { color: var(--ink-2); }

/* ── contact ──────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 120px); padding-bottom: clamp(96px, 12vw, 180px); }
.contact-list { margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 12px; }
.contact-list a { border-bottom: 1px solid var(--line-2); transition: border-color 200ms ease; }
.contact-list a:hover { border-color: var(--ink); }
.form { display: grid; gap: 24px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); }
.field em { font-style: normal; color: var(--ink-2); opacity: 0.75; margin-left: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  padding: 10px 0; border-radius: 0;
  transition: border-color 200ms ease;
}
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9da1'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 24px; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder { color: var(--ink-2); opacity: 0.7; }
.form .button { justify-self: start; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-status a { border-bottom: 1px solid var(--line-2); }
.form .button[disabled] { opacity: 0.5; pointer-events: none; }

/* ── footer ───────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-name { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--ink-2); transition: color 200ms ease; width: max-content; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; color: var(--ink-2); }
.footer-bottom a:hover { color: var(--ink); }

/* ── lightbox ─────────────────────────────── */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 11, 12, 0.97);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(10, 11, 12, 0.9); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lightbox[open] .lb-stage > * { animation: lb-in 320ms var(--ease-out) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lb-stage { grid-column: 2; display: grid; place-items: center; height: 100%; padding: 64px 0; min-width: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100dvh - 128px); object-fit: contain; }
.lb-stage video { width: min(100%, calc((100dvh - 128px) * 16 / 9)); background: var(--bg-2); }
.lb-close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: var(--gutter); font-family: var(--mono); font-size: 12px; padding: 8px 0; color: var(--ink-2); transition: color 200ms ease; }
.lb-close:hover { color: var(--ink); }
.lb-prev, .lb-next { height: 100%; display: grid; place-items: center; color: var(--ink-2); transition: color 200ms ease; }
.lb-prev:hover, .lb-next:hover { color: var(--ink); }
.lb-prev .arrow, .lb-next .arrow { width: 18px; }
.lb-count { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: var(--ink-2); margin: 0; }
.lightbox.is-video .lb-prev, .lightbox.is-video .lb-next, .lightbox.is-video .lb-count { visibility: hidden; }

/* ── reveal on scroll ─────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion: keep gentle fades, drop movement and blur */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .split-load .w > span, .split-soft .w > span { animation: fade 500ms ease both; animation-delay: 0ms; transform: none; filter: none; }
  .js .split-view .w > span, .js .split-view.is-in .w > span { transform: none; filter: none; transition: none; }
  .hero .eyebrow, .hero-actions, .case-hero .eyebrow, .menu nav a { animation: fade 500ms ease both; }
  .js .reveal { transform: none; transition: opacity 500ms ease; }
  .pj-name { transition: none; }
  .button, .button-ic, .film-frame img, .still img, .loop, .hero-title .split, .morph-link, .wordmark { transition: none; }
  .hero-title .split .w > span, .morph-link .morph { transition-duration: 0ms; transition-delay: 0ms; }
  .hero-title.is-settled .split:hover, .morph-link:hover { transform: none; }
  .crumb { animation: none; }
}

/* ── responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { display: none; }
  .case-info, .contact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .meta-spacer { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .meta { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}
@media (max-width: 640px) {
  .pj { aspect-ratio: 4 / 5; }
  .pj-meta { font-size: 13px; }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .next-row { flex-direction: column; align-items: flex-start; }
  .next-media { width: 100%; }
  .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 8px; height: 48px; width: 64px; z-index: 2; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-stage { padding: 56px 12px; }
  .film figcaption { flex-direction: column; gap: 6px; }
  .hero-actions { gap: 20px; }
}
