/* ==========================================================================
   MIND × FUSION — cinematic system
   Ink, bone and one signal red. Condensed display, editorial serif, mono slate.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #1a1a1a;
  --bone: #f2f1f1;
  --bone-2: rgba(242, 241, 241, 0.68);
  --bone-3: rgba(242, 241, 241, 0.42);
  --line: rgba(242, 241, 241, 0.14);
  --red: #e91e25;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --g: clamp(16px, 3.2vw, 48px);           /* side gutter */
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px;
  background: var(--red); color: var(--bone); transform: translateY(-200%);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.skip:focus { transform: none; }

/* ---------- type primitives ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
em.serif, .serif em { font-style: italic; }
.label { color: var(--bone-3); white-space: nowrap; }
b { font-weight: inherit; color: var(--red); }

.display, .section-head__title, .chapter__title, .hero__line,
.marquee, .contact__mail-word {
  font-family: var(--f-sans);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.012em;
}

/* line masks for reveal */
.mask { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.mask > span { display: block; }
.js .mask > span { transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease); }
.js .is-in .mask > span, .js .mask.is-in > span { transform: none; }
.js .is-in .mask:nth-child(2) > span { transition-delay: .08s; }
.js .is-in .mask:nth-child(3) > span { transition-delay: .16s; }

.js [data-reveal]:not(.chapter__title):not(.section-head__title) {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in:not(.chapter__title):not(.section-head__title) { opacity: 1; transform: none; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); } 100% { transform: translate(-2%, 6%); }
}

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
  }
  .cursor__ring {
    position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%;
    background: var(--red); transform: translate(-50%, -50%);
    display: grid; place-items: center;
    transition: width .5s var(--ease), height .5s var(--ease), background-color .3s;
  }
  .cursor__label {
    font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap;
  }
  .cursor.is-active .cursor__ring { width: 88px; height: 88px; background: var(--bone); }
  .cursor.is-active .cursor__label { opacity: 1; transition-delay: .12s; }
  .cursor.is-hidden .cursor__ring { width: 0; height: 0; }
}

/* ---------- intro (letterbox opening) ---------- */
.intro { display: none; }
.js:not(.seen) .intro {
  display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  animation: intro-out 0s linear 2.4s forwards;
}
.intro__bar { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.intro__bar--top { top: 0; animation: bar-up 1.15s var(--ease-io) 1.15s forwards; }
.intro__bar--bot { bottom: 0; animation: bar-down 1.15s var(--ease-io) 1.15s forwards; }
.intro__slate {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  animation: slate 1.1s var(--ease) both;
}
.intro__slate img { width: 72px; height: auto; }
.intro__slate .mono { color: var(--bone-2); }
@keyframes bar-up { to { transform: translateY(-101%); } }
@keyframes bar-down { to { transform: translateY(101%); } }
@keyframes slate {
  0% { opacity: 0; transform: scale(.96); }
  25%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes intro-out { to { visibility: hidden; } }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); padding: 0 var(--g);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand img { width: 132px; height: auto; }
.nav__links { display: flex; gap: 40px; }
.nav__links a, .nav__cta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.nav__links a { position: relative; padding: 6px 0; color: var(--bone-2); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  justify-self: end; position: relative; overflow: hidden;
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .4s;
}
.nav__cta::before {
  content: ""; position: absolute; inset: 0; background: var(--red); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.nav__cta span { position: relative; }
.nav__cta:hover { border-color: var(--red); }
.nav__cta:hover::before { transform: none; }
.nav__toggle { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  padding: calc(var(--nav-h) + 6vh) var(--g) var(--g);
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: .9;
  font-size: clamp(56px, 17vw, 120px);
  border-bottom: 1px solid var(--line); padding: 8px 0 10px;
}
.menu__links a .mono { color: var(--red); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--bone-2); }
.menu.is-open .menu__links a { animation: menu-in .8s var(--ease) both; }
.menu.is-open .menu__links a:nth-child(2) { animation-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { animation-delay: .12s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(40px); } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 175vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; background: var(--ink-2);
  clip-path: inset(calc(var(--p, 0) * 17%) calc(var(--p, 0) * 7%) round calc(var(--p, 0) * 6px));
  will-change: clip-path;
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.14 - var(--p, 0) * 0.14));
  will-change: transform;
}
.js:not(.seen) .hero__video { animation: hero-zoom 3.2s var(--ease) 1.1s both; }
@keyframes hero-zoom { from { scale: 1.12; } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 28%, rgba(10,10,10,0) 55%, rgba(10,10,10,.75) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.45));
}

.hud {
  position: absolute; z-index: 2; pointer-events: none;
  inset: calc(var(--p, 0) * 17% + var(--nav-h) + 4px) calc(var(--p, 0) * 7% + var(--g)) calc(var(--p, 0) * 17% + 96px);
  opacity: calc(1 - var(--p, 0) * 0.4);
}
.hud__corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(242,241,241,.7); }
.hud__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud__meta { position: absolute; top: 14px; color: var(--bone-2); display: flex; align-items: center; gap: 10px; }
.hud__meta--tl { left: 34px; }
.hud__meta--tr { right: 34px; }
.hud__meta [data-tc] { color: var(--bone); font-variant-numeric: tabular-nums; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.hud__cross {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); opacity: .5;
  background: linear-gradient(var(--bone), var(--bone)) center/1px 100% no-repeat,
              linear-gradient(var(--bone), var(--bone)) center/100% 1px no-repeat;
}

.hero__title {
  position: absolute; z-index: 3; left: var(--g); right: var(--g); bottom: clamp(110px, 17vh, 180px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  transform: translate3d(0, calc(var(--p, 0) * -6vh), 0);
}
.hero__line { font-size: clamp(54px, 10.4vw, 200px); white-space: nowrap; }
.hero__line--1 { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.hero__line--2 { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
.hero__x {
  grid-column: 2; grid-row: 2; justify-self: center;
  font-family: var(--f-sans); font-weight: 900; font-style: italic; font-stretch: 100%;
  color: var(--red); line-height: .7; font-size: clamp(80px, 13vw, 250px);
  /* asymmetric so the visible gap to "Minds fused" (empty descender space)
     matches the gap to "Stories born." (cap tops sit high in their box) */
  margin: -0.11em 0 0.01em;
}
.hero__x span { display: block; }
.js:not(.seen) .hero__x span { animation: x-in 1.4s var(--ease) 1.55s both; }
@keyframes x-in { from { transform: rotate(-90deg) scale(.2); opacity: 0; } }
.js .hero__title .mask > span { transform: none; animation: rise 1.2s var(--ease) .15s both; }
.js .hero__title .hero__line--2 .mask > span { animation-delay: .3s; }
.js:not(.seen) .hero__title .mask > span { animation-delay: 1.35s; }
.js:not(.seen) .hero__title .hero__line--2 .mask > span { animation-delay: 1.5s; }
@keyframes rise { from { transform: translate3d(0, 105%, 0); } }

.hero__foot {
  position: absolute; z-index: 3; left: var(--g); right: var(--g); bottom: 34px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  color: var(--bone-2);
  opacity: calc(1 - var(--p, 0) * 2.2);
}
.hero__cue { display: flex; align-items: center; gap: 14px; color: var(--bone); }
.hero__cue-count { color: var(--bone-3); }
.hero__cue-line { width: 64px; height: 1px; background: var(--bone-3); position: relative; overflow: hidden; }
.hero__cue-line::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- shared section scaffolding ---------- */
.about, .work, .chapters, .words, .contact { padding-left: var(--g); padding-right: var(--g); }

.section-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  padding-bottom: clamp(32px, 5vw, 64px);
}
.section-head__title { font-size: clamp(64px, 12.5vw, 232px); display: flex; flex-wrap: wrap; justify-content: center; column-gap: .18em; text-align: center; }
.section-head__title em { font-size: 1.08em; line-height: .8; letter-spacing: -.02em; color: var(--bone); }
.section-head__count { justify-self: end; }

/* ---------- ABOUT ---------- */
.about {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 56px;
  padding-top: clamp(96px, 16vw, 220px); padding-bottom: clamp(96px, 14vw, 200px);
}
.about__side { grid-column: 1 / 5; display: grid; align-content: start; gap: 28px; }
.about__title { font-size: clamp(36px, 3.6vw, 60px); line-height: 1; font-weight: 400; }
.about__title span { display: block; }
.about__title em { color: var(--bone-2); }
.about__text {
  grid-column: 5 / 13;
  font-size: clamp(28px, 3.5vw, 58px); line-height: 1.12; font-weight: 500; font-stretch: 92%;
  letter-spacing: -0.02em; text-wrap: balance;
}
.about__text .w { transition: color .3s; color: var(--bone); }
.js .about__text .w { color: rgba(242, 241, 241, .16); }
.js .about__text .w.on { color: var(--bone); }
.about__crafts {
  grid-column: 5 / 13; display: flex; flex-wrap: wrap; gap: 10px;
}
.about__crafts li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--bone-2); }

/* ---------- WORK HEADING ---------- */
.work { padding-top: clamp(40px, 6vw, 80px); position: relative; }

/* ---------- CHAPTERS ---------- */
.chapters { display: grid; gap: clamp(120px, 18vw, 280px); padding-bottom: clamp(120px, 16vw, 240px); }
.chapter {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.chapter__rule {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; color: var(--bone-2);
}
.chapter__rule > span:first-child { color: var(--red); }
.chapter__rule-line { flex: 1; height: 1px; background: var(--line); }
.chapter__title { grid-column: 1 / -1; grid-row: 2; font-size: clamp(64px, 13.2vw, 252px); position: relative; z-index: 1; }
.chapter--b .chapter__title { text-align: right; }
.chapter__num {
  grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: end;
  font-weight: 800; font-stretch: 72%; line-height: .78; font-size: clamp(120px, 24vw, 460px);
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 241, .16);
  font-variant-numeric: tabular-nums; user-select: none; pointer-events: none;
}
.chapter--b .chapter__num { justify-self: start; }
.js .chapter__num { opacity: 0; transform: translate3d(0, 6%, 0); transition: opacity 1.4s var(--ease) .2s, transform 1.8s var(--ease) .2s; }
.js .chapter.is-seen .chapter__num { opacity: 1; transform: none; }

.film { position: relative; grid-column: 1 / 9; }
.chapter--b .film { grid-column: 5 / 13; grid-row: 3; }
.film__frame {
  position: relative; aspect-ratio: var(--aspect, 16/9); overflow: hidden; background: var(--ink-3);
  clip-path: inset(var(--clip, 0%) round 2px);
}
.js .film__frame { --clip: 8%; transition: clip-path 1.6s var(--ease); }
.js .film.is-in .film__frame { --clip: 0%; }
.film video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transition: transform 2.2s var(--ease);
}
.film.is-in video { transform: none; }
.film__cap { display: flex; justify-content: space-between; padding-top: 12px; color: var(--bone-3); }
.film__tc { font-variant-numeric: tabular-nums; }

.sound {
  position: absolute; z-index: 2; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(10,10,10,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; transition: background .3s, border-color .3s;
}
.sound:hover { border-color: var(--bone-3); }
.sound[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.sound__bars { display: flex; align-items: end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

.chapter__body { grid-column: 9 / 13; display: grid; gap: 22px; align-self: end; padding-bottom: 36px; }
.chapter--b .chapter__body { grid-column: 1 / 5; grid-row: 3; }
.chapter__note { color: var(--red); }
.chapter__desc { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--bone-2); max-width: 46ch; }
.chapter__desc::first-line { color: var(--bone); }

.chapter__pull { grid-column: 2 / 12; padding: clamp(24px, 4vw, 64px) 0; text-align: center; }
.chapter__pull p {
  font-size: clamp(26px, 3.2vw, 52px); line-height: 1.14; font-style: italic; color: var(--bone);
  text-wrap: balance;
}
.chapter__pull p::before, .chapter__pull p::after { color: var(--red); }
.chapter__pull p::before { content: "“"; }
.chapter__pull p::after { content: "”"; }

/* stills collage */
.stills { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: var(--g); align-items: start; }
.still { position: relative; }
.still__btn { display: block; width: 100%; overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.still img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.14);
  transition: filter .6s var(--ease);
}
.still__btn:hover img { filter: brightness(1.08); }
.still__no { position: absolute; left: 0; bottom: -22px; color: var(--bone-3); }
.still--1 { grid-column: 1 / 6; }
.still--1 .still__btn { aspect-ratio: 4 / 5; }
.still--2 { grid-column: 7 / 13; margin-top: 14vw; }
.still--2 .still__btn { aspect-ratio: 16 / 10; }
.still--3 { grid-column: 4 / 10; margin-top: 6vw; }
.still--3 .still__btn { aspect-ratio: 16 / 9; }
.still--1, .still--2 { grid-row: 1; }
.still--3 { grid-row: 2; }
.chapter--b .still--1 { grid-column: 8 / 13; }
.chapter--b .still--2 { grid-column: 1 / 7; }
.chapter--b .still--3 { grid-column: 5 / 11; }
.chapter--scope .still__btn { aspect-ratio: var(--aspect) !important; }
.chapter--scope .still { grid-row: auto; }
.chapter--scope .still--1 { grid-column: 1 / 8; }
.chapter--scope .still--2 { grid-column: 6 / 13; margin-top: 2vw; }
.chapter--scope .still--3 { grid-column: 2 / 10; margin-top: 0; }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; padding: clamp(28px, 4vw, 56px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(64px, 11vw, 200px);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  color: transparent; -webkit-text-stroke: 1px rgba(242, 241, 241, .55); padding: 0 .22em;
}
.marquee__group b { font-style: italic; font-weight: 900; font-stretch: 100%; color: var(--red); -webkit-text-stroke: 0; }
html:not(.js) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- TESTIMONIALS ---------- */
.words {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 56px;
  padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(96px, 14vw, 200px);
}
.words__head { grid-column: 1 / 6; display: grid; gap: 28px; align-content: start; position: sticky; top: 120px; }
.words__head .section-head__title { justify-content: start; text-align: left; font-size: clamp(56px, 8.4vw, 160px); }
.words__ctrl { display: flex; align-items: center; gap: 12px; }
.words__count { min-width: 74px; text-align: center; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.words__count [data-words-now] { color: var(--bone); }
.words__progress { height: 1px; background: var(--line); max-width: 220px; overflow: hidden; }
.words__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.words__progress span.run { animation: progress var(--dur, 8s) linear forwards; }
.words.is-paused .words__progress span.run { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color .3s, background .3s, color .3s;
}
.arrow:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.arrow svg { width: 28px; height: 28px; }

.words__stage { grid-column: 7 / 13; display: grid; }
.quote { display: grid; gap: 40px; align-content: start; }
.js .quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.js .quote.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease) .15s, visibility 0s; }
html:not(.js) .quote + .quote { margin-top: 80px; }
.quote__mark { font-size: clamp(120px, 14vw, 240px); line-height: .5; height: .36em; color: var(--red); display: block; }
.quote blockquote p { font-size: clamp(28px, 3.3vw, 54px); line-height: 1.12; text-wrap: pretty; }
.js .quote blockquote p { transform: translateY(18px); transition: transform 1.1s var(--ease); }
.js .quote.is-active blockquote p { transform: none; }
.quote figcaption { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote__name { font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.quote__role { color: var(--bone-2); }

/* ---------- CONTACT / FOOTER ---------- */
.contact { position: relative; padding-top: clamp(96px, 14vw, 200px); padding-bottom: 28px; border-top: 1px solid var(--line); overflow: hidden; }
.contact__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.contact__kicker { font-size: clamp(26px, 2.6vw, 42px); }
.contact__kicker em { color: var(--red); font-style: italic; }

.contact__mail {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px;
  margin: clamp(40px, 7vw, 100px) 0 clamp(64px, 9vw, 140px);
  padding: clamp(16px, 2vw, 28px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.contact__mail-word { position: relative; font-size: clamp(76px, 17vw, 330px); line-height: .82; display: block; }
.contact__mail-word::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--red);
  clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-io);
}
.contact__mail:hover .contact__mail-word::after, .contact__mail:focus-visible .contact__mail-word::after { clip-path: inset(0 0 0 0); }
.contact__mail-arrow { width: clamp(48px, 9vw, 160px); transition: transform .8s var(--ease), color .4s; }
.contact__mail-arrow svg { width: 100%; height: auto; }
.contact__mail:hover .contact__mail-arrow { transform: rotate(45deg); color: var(--red); }
.contact__mail-addr { grid-column: 1 / -1; padding-top: 16px; color: var(--bone-2); font-size: 12px; }

/* base: wordmark left, link columns aligned to the right half of the same 12-col grid */
.contact__base {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: end;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.contact__brand { grid-column: 1 / 6; justify-self: start; }
.contact__col { display: grid; gap: 10px; align-content: start; }
.contact__base .contact__col:nth-of-type(1) { grid-column: 7 / 10; }
.contact__base .contact__col:nth-of-type(2) { grid-column: 10 / 13; }
.contact__col h3 { margin-bottom: 6px; }
.link { position: relative; width: fit-content; font-size: 18px; }
.link.mono { font-size: 11px; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link:hover { color: var(--bone); }

/* official wordmark (same file as the original site); source PNG is 512px wide, so cap it there.
   The PNG has ~50/512 transparent padding on each side; negative margins line the letters up with the gutter. */
.contact__logo {
  --w: clamp(220px, 22vw, 320px);
  display: block; width: var(--w); height: auto; user-select: none;
  margin: calc(var(--w) * -0.0977) 0 calc(var(--w) * -0.0977) calc(var(--w) * -0.0977);   /* 50px of 512 */
}
/* legal line: © · motto · back to top, under one hairline */
.contact__legal {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line); color: var(--bone-3);
}
.contact__motto { text-align: center; }
.contact__top-link { justify-self: end; color: var(--bone-2); }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; border: 0; padding: 0; background: rgba(6, 6, 6, .97); color: var(--bone);
  display: none;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in .5s var(--ease); }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__fig { display: grid; gap: 14px; width: min(calc(100vw - 2 * var(--g) - 150px), calc(82vh * 16 / 9)); }
@media (max-width: 900px) { .lightbox__fig { width: 100vw; } .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; } }
.lightbox__fig img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.lightbox__fig figcaption { display: flex; justify-content: space-between; color: var(--bone-2); }
.lightbox__close { position: absolute; top: 24px; right: var(--g); display: flex; gap: 10px; align-items: center; }
.lightbox__close span { color: var(--red); font-size: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--g); }
.lightbox__next { right: var(--g); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 28px; }
  .about__side { grid-column: 1 / -1; }
  .about__text, .about__crafts { grid-column: 1 / -1; }
  .words__head { grid-column: 1 / -1; position: static; }
  .words__stage { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__brand img { width: 112px; }
  .nav__toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; justify-self: end;
    position: relative; z-index: 2;
  }
  .nav__toggle-line { width: 26px; height: 1.5px; background: var(--bone); transition: transform .5s var(--ease); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { height: 150vh; }
  .hero__title { grid-template-columns: 1fr; bottom: 120px; }
  .hero__line { font-size: clamp(52px, 15.5vw, 120px); white-space: normal; }
  .hero__line--1, .hero__line--2 { grid-column: 1; }
  .hero__x { grid-column: 1; font-size: clamp(76px, 24vw, 160px); justify-self: center; }
  .hud__meta--tr { display: none; }
  .hero__foot p { display: none; }
  .hero__foot { justify-content: flex-end; }

  .section-head { grid-template-columns: 1fr auto; }
  .section-head__title { grid-column: 1 / -1; grid-row: 2; justify-content: start; text-align: left; }

  .chapter { grid-template-columns: 1fr; }
  .chapter > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .chapter--b .chapter__title { text-align: left; }
  .chapter__num { display: none; }
  .chapter__title { font-size: clamp(56px, 17vw, 140px); }
  .film { margin: 0 calc(var(--g) * -1); }
  .film__cap { padding-left: var(--g); padding-right: var(--g); }
  .chapter__body { padding-bottom: 0; }
  .stills { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stills .still { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; }
  .stills .still--1 { grid-column: 1 / -1 !important; }
  .still--1 .still__btn { aspect-ratio: 16 / 10; }
  .still--2 .still__btn, .still--3 .still__btn { aspect-ratio: 4 / 5; }
  .chapter--scope .stills .still { grid-column: 1 / -1 !important; }

  .contact__mail { grid-template-columns: 1fr auto; }
  .contact__base { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .contact__brand { grid-column: 1 / -1; }
  .contact__base .contact__col:nth-of-type(1), .contact__base .contact__col:nth-of-type(2) { grid-column: auto; }
  .contact__legal { grid-template-columns: 1fr auto; }
  .contact__motto { display: none; }

}

@media (max-width: 520px) {
  .about__text { font-size: 26px; }
  .hud__meta--tl { left: 30px; top: 10px; }
  .quote blockquote p { font-size: 26px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
  .js:not(.seen) .intro { display: none; }
  .hero { height: 100vh; height: 100svh; }
  .hero__media, .hero__video, .hero__title, .hud { --p: 0 !important; }
  .still img { transform: none; }
}

/* ==========================================================================
   DESKTOP MOTION LAYER — project selector + modals, stills wipe, link roll. Mobile (≤900px) untouched
   ========================================================================== */
@media (min-width: 901px) {

  /* 1 · Projects live in full-screen modals opened from the selector (§6),
     so the inline chapters leave the desktop page. */
  .chapters { display: block; padding: 0; }
  .pmodal { display: none; }

  /* 2 · Stills: angled wipe reveal (ref 03). The slanted leading edge is
     kept by moving the two top corners by the same distance. */
  .js .chapter .still[data-reveal] { opacity: 1; transform: none; }
  .js .still .still__btn {
    clip-path: polygon(0% 130%, 100% 100%, 100% 130%, 0% 130%);
    transition: clip-path 1.5s var(--ease-io);
  }
  .js .chapter--b .still .still__btn { clip-path: polygon(0% 100%, 100% 130%, 100% 130%, 0% 130%); }
  .js .still.is-in .still__btn,
  .js .chapter--b .still.is-in .still__btn { clip-path: polygon(0% 0%, 100% -30%, 100% 130%, 0% 130%); }
  .js .chapter--b .still.is-in .still__btn { clip-path: polygon(0% -30%, 100% 0%, 100% 130%, 0% 130%); }
  .js .still--2 .still__btn { transition-delay: .12s; }
  .js .still--3 .still__btn { transition-delay: .2s; }
  .js .still__no { opacity: 0; transition: opacity .6s var(--ease) .9s; }
  .js .still.is-in .still__no { opacity: 1; }

  /* 4 · Contact: close the gap above "Email us" */
  .words { padding-bottom: clamp(72px, 8vw, 120px); }
  .contact { padding-top: clamp(48px, 5vw, 80px); }
  .contact__mail { margin-top: clamp(20px, 2.4vw, 40px); margin-bottom: clamp(48px, 6vw, 96px); }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .js .still .still__btn, .js .chapter--b .still .still__btn { clip-path: none; }
  .js .still__no { opacity: 1; }
}

@media (min-width: 901px) {
  /* 5 · Letter roll on nav + footer links (ref 08): each glyph slides up and
     its text-shadow copy slides in from below, staggered left to right. */
  .roll { display: inline-flex; overflow: hidden; line-height: 1.15; vertical-align: bottom; }
  .roll span {
    display: inline-block; text-shadow: 0 1.15em 0 currentColor;
    transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 16ms);
  }
  a:hover > .roll span, a:focus-visible > .roll span { transform: translateY(-1.15em); }
}

/* ==========================================================================
   6 · PROJECT SELECTOR under "Selected work" (ref 03 · column wipe)
   One full-bleed layer per project, cut into one slice per column.
   Hover: that column's slice wipes up on a slant.
   Open: every slice of that layer wipes up, cascading out from the column.
   ========================================================================== */
.picker { display: none; }
@media (min-width: 901px) {
  .work { padding-bottom: clamp(96px, 12vw, 180px); }
  .picker {
    display: block; position: relative; overflow: hidden;
    margin-inline: calc(var(--g) * -1);
    height: clamp(560px, 86vh, 880px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--ink);
  }

  .picker__layers, .picker__layer { position: absolute; inset: 0; }
  .picker__layer { pointer-events: none; }
  .picker__layer.is-top { z-index: 1; }
  .picker__slice {
    --l: calc(var(--c) * 100% / var(--n));
    --r: calc((var(--c) + 1) * 100% / var(--n));
    position: absolute; inset: 0;
    background: var(--img) center / cover no-repeat;
    clip-path: polygon(var(--l) 112%, var(--r) 104%, var(--r) 112%, var(--l) 112%);
    transition: clip-path .95s var(--ease-io);
    transition-delay: var(--d, 0ms);
  }
  .picker.no-anim .picker__slice { transition: none; }
  .picker__slice.is-on { clip-path: polygon(var(--l) 0%, var(--r) -8%, var(--r) 112%, var(--l) 112%); }

  .picker__shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(10,10,10,.82), rgba(10,10,10,0) 42%),
                linear-gradient(to bottom, rgba(10,10,10,.45), rgba(10,10,10,0) 22%);
    opacity: 0; transition: opacity .6s var(--ease);
  }
  .picker.is-peek .picker__shade { opacity: .75; }

  /* columns + labels */
  .picker__cols { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
  .picker__col + .picker__col { border-left: 1px solid var(--line); }
  .picker__btn {
    width: 100%; height: 100%; display: grid; align-content: end; gap: 10px;
    padding: 0 clamp(14px, 1.4vw, 22px) clamp(18px, 2vw, 28px); text-align: left; cursor: pointer;
  }
  .picker__no { color: var(--red); }
  .picker__name {
    font-family: var(--f-sans); font-weight: 800; font-stretch: 72%; text-transform: uppercase;
    font-size: clamp(22px, 2.1vw, 38px); line-height: .9; letter-spacing: -.01em; color: var(--bone);
    text-wrap: balance;
  }
  .picker__disc { color: var(--bone-3); transition: color .4s; }
  .picker__btn:hover .picker__disc, .picker__btn:focus-visible .picker__disc { color: var(--bone); }
  .picker__btn:focus-visible { outline: 1px solid var(--red); outline-offset: -1px; }
  .picker__col > * { transition: opacity .5s var(--ease); }
  .picker.is-open .picker__cols { pointer-events: none; }
  .picker.is-open .picker__col > * { opacity: 0; }
  .picker.is-open .picker__col + .picker__col { border-left-color: transparent; transition: border-color .5s; }

  /* travel: a fixed copy of the frame carries you from the selector to the chapter's film */
  .picker-curtain {
    position: fixed; z-index: 115; pointer-events: none;
    background: var(--ink) center / cover no-repeat;
  }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .picker__slice, .picker__shade { transition: none !important; }
}

/* ==========================================================================
   7 · PROJECT MODAL (desktop). Mobile keeps the chapters inline.
   First screen is the film, full-bleed, with the same poster frame the
   selector opened, so the hand-off reads as one image.
   ========================================================================== */
.pmodal__close, .pmodal__next, .film__more { display: none; }
@media (min-width: 901px) {
  html.has-pmodal { overflow: hidden; }
  .pmodal.is-open {
    display: block; position: fixed; inset: 0; z-index: 110;
    overflow-y: auto; overscroll-behavior: contain; background: var(--ink);
    opacity: 0; transition: opacity .45s var(--ease);
  }
  .pmodal.is-open.is-visible { opacity: 1; }
  .pmodal:focus { outline: none; }

  .pmodal .chapter { padding: 0 var(--g); row-gap: clamp(28px, 4vw, 56px); }

  /* film: the whole first screen */
  .pmodal .film, .pmodal .chapter--b .film {
    grid-row: 1; grid-column: 1 / -1; margin-inline: calc(var(--g) * -1);
    height: 100vh; height: 100svh;
  }
  .pmodal .film__frame { aspect-ratio: auto; height: 100%; }
  .js .pmodal .film__frame { clip-path: none; transition: none; }
  .js .pmodal .film video, .js .pmodal .film.is-in video { transform: none; transition: none; }
  .pmodal .film__cap {
    position: absolute; left: var(--g); right: var(--g); bottom: 22px; z-index: 2;
    padding: 0; color: var(--bone-2);
  }
  .pmodal .film::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
    background: linear-gradient(to top, rgba(10,10,10,.7), rgba(10,10,10,0));
  }
  .js .pmodal .sound { top: auto; right: var(--g); bottom: 56px; }

  /* scroll cue: tells you the project continues below the film */
  .pmodal .film__more {
    display: grid; justify-items: center; gap: 10px;
    position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
    padding: 6px 10px; color: var(--bone); cursor: pointer;
    opacity: 0; transition: opacity .5s var(--ease);
  }
  .pmodal.is-visible .film__more { opacity: 1; transition-delay: .7s; }
  .pmodal.is-visible.is-scrolled .film__more { opacity: 0; pointer-events: none; transition-delay: 0s; }
  .film__more-line { width: 1px; height: 46px; background: var(--bone-3); position: relative; overflow: hidden; }
  .film__more-line::after {
    content: ""; position: absolute; inset: 0; background: var(--red);
    animation: cue-down 2.2s var(--ease-io) infinite;
  }
  .film__more:hover .film__more-line { background: var(--bone-2); }
  .film__more:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
  @keyframes cue-down { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

  /* then the chapter itself */
  .pmodal .chapter__rule { grid-row: 2; margin-top: clamp(56px, 7vw, 110px); }
  .pmodal .chapter__title, .pmodal .chapter__num { grid-row: 3; }
  .pmodal .chapter__body, .pmodal .chapter--b .chapter__body { grid-row: 4; align-self: start; padding-bottom: 0; }
  .pmodal .chapter__body { grid-column: 7 / 13; }
  .pmodal .chapter--b .chapter__body { grid-column: 1 / 7; }

  /* chrome */
  .pmodal__close {
    display: grid; place-items: center; position: fixed; z-index: 3; top: 22px; right: var(--g);
    width: 52px; height: 52px; border-radius: 50%; color: var(--bone);
    border: 1px solid var(--line); background: rgba(10,10,10,.45);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: background .3s, border-color .3s, transform .6s var(--ease);
  }
  .pmodal__close:hover, .pmodal__close:focus-visible { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

  .pmodal__next {
    display: grid; gap: 14px; width: 100%; text-align: left;
    margin-top: clamp(120px, 14vw, 220px); padding: clamp(40px, 5vw, 72px) var(--g) clamp(56px, 6vw, 96px);
    border-top: 1px solid var(--line);
  }
  .pmodal__next .label b { color: var(--red); font-weight: inherit; }
  .pmodal__next-title {
    font-family: var(--f-sans); font-weight: 800; font-stretch: 72%; text-transform: uppercase;
    font-size: clamp(64px, 11vw, 210px); line-height: .84; letter-spacing: -.012em;
    transition: color .4s, transform .8s var(--ease);
  }
  .pmodal__next-disc { color: var(--bone-3); }
  .pmodal__next:hover .pmodal__next-title { color: var(--red); transform: translateX(1.4vw); }
}
