/* 24&16 Films, trial build.
   Layout proportions and motion timing follow the reference site the team picked (measured, not copied).
   Words, images, code and fonts are ours. Free Google Fonts sit close to the reference's commercial faces:
   Inter Tight for headlines, Archivo (condensed width) for display caps, DM Mono for small labels. */

:root {
  --bone: #e8e8e3;
  --bone-2: #d1d1c7;
  --bubble: #ddddd5;
  --ink: #080807;
  --ink-2: #181715;
  --ink-3: #393632;
  --stone: #938f8a;
  --stone-dark: #6b645c;
  --line-on-dark: rgb(232 232 227 / 0.12);
  --line-on-light: rgb(8 8 7 / 0.12);

  --pad: clamp(16px, 1.8vw, 26px);
  --gap: clamp(16px, 1.7vw, 24px);
  --nav-h: 84px;

  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-display: "Archivo", "Inter Tight", sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  /* Hover curve for rolls and arrow swaps, plus a springy press */
  --ease-out: cubic-bezier(0.16, 1, 0.35, 1);
  --roll: 0.65s var(--ease-out);
  --spring: cubic-bezier(0.48, 1.68, 0.64, 1);

  /* z-index scale: content 0, curtain sections 1, nav 50, grain 60, cursor 70 */
  --z-nav: 50;
  --z-grain: 60;
  --z-cursor: 70;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { list-style: none; }

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

.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Text sits in a clipped box so it can rise into view */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; }

/* ---------- Themes per section ---------- */
[data-theme="light"] { background: var(--bone); color: var(--ink); }
[data-theme="dark"] { background: var(--ink); color: var(--bone); }

/* ---------- Grain + rough type ---------- */
/* Film grain on dark sections only: mid-grey specks of our own generated noise, blended
   with 'lighten', so they show on black and do nothing on the light sections (Nitin, 2026-10-01). */
.grain {
  position: fixed;
  inset: -50%;
  z-index: var(--z-grain);
  pointer-events: none;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
}
.grain::after { opacity: var(--grain-light, 0.14); mix-blend-mode: lighten; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 0 0.6 0 2.4 0 0 -0.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 0.5s steps(6) infinite; }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Soft, noisy edges on display type */
.rough { filter: url(#rough); }

/* ---------- Media frames ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme="light"] .media { background: var(--bone-2); }

/* ---------- Eyebrow: dot + label ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.3vw, 1.19rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.eyebrow__dot {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgb(137 138 133);
}
.eyebrow__text > span { display: inline-block; }

/* ---------- Buttons: label roll + arrow swap ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.35s var(--spring), background-color 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn__label { position: relative; display: block; overflow: hidden; line-height: 1.25; }
.btn__text { display: block; transition: transform var(--roll); }
.btn__text + .btn__text { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__text,
.btn:focus-visible .btn__text { transform: translateY(-100%); }

.btn__aside {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.95rem;
  line-height: 1;
}
.btn__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--aside-bg);
  transition: transform var(--roll);
}
.btn:hover .btn__aside::before,
.btn:focus-visible .btn__aside::before { transform: scale(0.82); }
.btn__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform var(--roll);
}
.btn__glyph + .btn__glyph { transform: translate(-100%, 100%); }
.btn:hover .btn__glyph,
.btn:focus-visible .btn__glyph { transform: translate(100%, -100%); }
.btn:hover .btn__glyph + .btn__glyph,
.btn:focus-visible .btn__glyph + .btn__glyph { transform: translate(0, 0); }

.btn--dark { background: var(--ink); color: var(--bone); --aside-bg: #4d4945; }
/* CTAs rise into view through a mask whose edge is the button's resting bottom */
.btn-mask { display: block; overflow: hidden; padding: 5px; margin: -5px; }
.btn-rise { display: block; }
.btn--light { background: var(--bone); color: var(--ink); --aside-bg: var(--ink); }
.btn--light .btn__aside { color: var(--bone); }
.btn--lg { font-size: 1.125rem; padding: 7px 7px 7px 14px; }
.btn--lg .btn__aside { width: 32px; height: 32px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: center;
  padding: 0 var(--pad);
  color: var(--ink);
  background: rgb(232 232 227 / 0.86);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transition: color 0.35s, background-color 0.35s, transform 0.45s var(--ease-out), opacity 0.3s;
}
.nav[data-nav-theme="dark"] { color: var(--bone); background: rgb(8 8 7 / 0.82); }
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bone); }
  .nav[data-nav-theme="dark"] { background: var(--ink); }
}
/* Steps out of the way once the footer is on screen */
.nav.is-away { transform: translateY(-110%); opacity: 0; pointer-events: none; }

.nav__logo { grid-column: 1 / span 4; display: inline-flex; align-items: baseline; gap: 6px; justify-self: start; }
.nav__mark {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__sub { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; }

.nav__links {
  grid-column: 5 / span 5;
  justify-self: start;
  display: flex;
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: -0.02em;
}
.nav__links a { position: relative; padding: 4px 8px; isolation: isolate; }
/* A tinted box wipes in behind the link */
.nav__links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2px;
  background: rgb(40 38 10 / 0.2);
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.85s var(--ease-out);
}
.nav[data-nav-theme="dark"] .nav__links a::before { background: currentColor; opacity: 0.17; }
.nav__links a:hover::before,
.nav__links a:focus-visible::before { transform: scaleX(1); }

.btn--nav {
  font-size: 0.94rem;
  gap: 8px;
  background: var(--ink);
  color: var(--bone);
  --aside-bg: var(--ink-3);
}
.btn-mask--nav { grid-column: 10 / -1; justify-self: end; }
.btn--nav { --aside-bg: #4d4945; }
.btn--nav .btn__aside { width: 22px; height: 22px; font-size: 0.85rem; }
.nav[data-nav-theme="dark"] .btn--nav { background: var(--bone); color: var(--ink); --aside-bg: var(--ink); }
.nav[data-nav-theme="dark"] .btn--nav .btn__aside { color: var(--bone); }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  display: none;
}
.cursor__bubble {
  display: block;
  padding: 7px 10px;
  border-radius: 2.4px;
  background: var(--bubble);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  translate: 14px 14px;
  opacity: 0;
  scale: 0.92;
}
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-content: start;
  padding: 120px var(--pad) clamp(48px, 5.3vw, 76px);
  overflow: hidden;
}
.hero__glyph {
  position: absolute;
  left: -4vw;
  top: 8vh;
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 700;
  font-size: min(80vw, 120vh);
  line-height: 0.8;
  color: rgb(8 8 7 / 0.045);
  pointer-events: none;
  user-select: none;
}
.hero__hint {
  position: absolute;
  left: var(--pad);
  top: calc(100svh - 44px);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.hero__aside {
  position: relative;
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 10px;
}
.hero__intro { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 21ch; font-weight: 600; }
.hero__intro .mask { margin-bottom: -0.08em; padding-bottom: 0.08em; }

.hero__title {
  position: relative;
  grid-column: 5 / -1;
  font-weight: 800;
  font-size: clamp(3.1rem, 9.2vw, 8.6rem);
  line-height: 0.87;
  letter-spacing: -0.045em;
  padding-bottom: 0.06em;
}

.hero__media {
  position: relative;
  grid-column: 5 / -1;
  margin-top: clamp(36px, 5.3vw, 76px);
}
.media--hero { aspect-ratio: 3 / 2; border-radius: 2px; }
/* Oversized just enough for a short parallax: Pragya's stills show almost whole (5 Oct, the crop cut too much) */
.media--hero img {
  position: absolute;
  left: 0;
  top: -30px;
  height: calc(100% + 60px);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.media--hero img.is-active { opacity: 1; }

.hero__cards {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  gap: 10px;
  width: min(310px, 70%);
}
.news {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: rgb(232 232 227 / 0.92);
  color: var(--ink);
  transform-origin: center;
  transform: scale(0.95);
  background-color: rgb(98 97 94 / 0.92);
  transition: transform var(--roll), background-color var(--roll);
}
.news.is-active { transform: scale(1); background-color: rgb(232 232 227 / 0.92); }
.news__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  transition: background-color var(--roll);
}
.news:not(.is-active) .news__badge { background: var(--ink-3); }
.news__body { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.news__body strong { font-weight: 600; font-size: 0.98rem; line-height: 1.1; letter-spacing: -0.02em; }
.news__body .mono { opacity: 0.6; }

/* ---------- 2. About + ticker ---------- */
.about {
  position: relative;
  z-index: 0;
  padding: clamp(14px, 1.3vw, 19px) var(--pad) clamp(120px, 15.6vw, 225px);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.about__label { grid-column: 1 / span 4; align-self: start; margin-top: 8px; }
.about__body { grid-column: 5 / -1; }
.about__lead {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.65vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 24ch;
  font-kerning: none;
}
.about__lead .w { display: inline; }
.js-motion .about__lead .c { opacity: 0.2; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--line-on-dark);
  padding-top: 20px;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stat dd {
  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.65vw, 3.65rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.stat dt { color: var(--stone); font-size: 0.95rem; max-width: 18ch; }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  margin: 0 calc(var(--pad) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; align-items: center; gap: clamp(56px, 7vw, 112px); padding: 64px clamp(28px, 3.5vw, 56px); }
@media (prefers-reduced-motion: no-preference) {
  /* 21 logos: 69s keeps the reference's ~64px/s drift */
  .ticker__track { animation: ticker 69s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Client logos, white on the dark strip. Heights balance each mark's visual weight (set per logo as --h) */
.logo { display: flex; align-items: center; flex: none; }
.logo img { width: auto; max-width: none; height: calc(var(--h) * var(--logo-scale, 1)); opacity: 0.92; }

/* Darkens as the next section slides over */
.about__shade {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Display type (shared) ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 72%;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
}

/* ---------- 3. Statement ---------- */
.statement { position: relative; z-index: 1; padding-block: 26px 28px; }
.statement__pin { height: calc(200vh - 54px); }
.statement__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: clip;
}
.statement__word {
  position: relative;
  z-index: 2;
  display: grid;
  white-space: nowrap;
  /* 7.8vw so the longer "When camera meets code" line (Pragya, 5 Oct) fits with a 20px+ margin */
  font-size: clamp(3rem, 7.8vw, 9rem);
  /* The two halves sit side by side and the whole line is centred (Pragya, 5 Oct: "not centre aligned") */
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 0.22em;
  width: 100%;
}
.statement__half { display: block; }
.statement__half--l { justify-self: end; }
.statement__half--r { justify-self: start; }
.statement__media {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: clamp(160px, 17.7vw, 300px);
  aspect-ratio: 4 / 5;
  border-radius: 0.25rem;
}
/* Seven stills stacked in one frame; main.js shows one at a time as the section scrolls (hard cuts, like an edit) */
.statement__media img { position: absolute; inset: 0; opacity: 0; }
.statement__media img.is-active { opacity: 1; }
.statement__copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 8.3vh;
  translate: -50% 0;
  width: min(25.5ch, calc(100% - 2 * var(--pad)));
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.28;
}

/* ---------- 4. Case studies ---------- */
.work { position: relative; z-index: 1; padding: clamp(96px, 8.33vw, 150px) var(--pad) clamp(80px, 7vw, 104px); }

.cases { position: relative; display: grid; }
.cases::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--line-on-light);
}
.work__eyebrow { position: absolute; left: 0; top: 25px; }

.case {
  position: relative;
  display: grid;
  grid-template-columns: 215fr 660fr 466fr;
  column-gap: 16px;
  padding: 31px 0;
}
.case:last-of-type { padding-bottom: 24px; }
.case + .case::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 16.8%;
  height: 1px;
  background: var(--line-on-light);
}
.case__media { grid-column: 2; aspect-ratio: 3 / 2; border-radius: 0.25rem; }
/* Oversized image layer, drifts inside the frame on scroll */
.case__media img {
  position: absolute;
  left: 0;
  top: -125px;
  height: calc(100% + 250px);
}
/* The metric card on hover fills the frame exactly: no drift, so its text is never cropped */
.case__media .case__alt { top: 0; height: 100%; opacity: 0; transition: opacity 0.15s linear; }
@media (hover: hover) { .case__media:hover .case__alt { opacity: 1; } }
/* Keyboard focus or a tap (main.js) shows the card too */
.case__media:focus-visible .case__alt, .case__media.is-open .case__alt { opacity: 1; }
/* Homepage cases hold Pragya's 3:2 stills: show the whole frame, no drift layer */
#work .case__media img { top: 0; height: 100%; }
@media (hover: none) {
  #work .case__media::after {
    content: "Tap for the numbers";
    position: absolute; right: 10px; bottom: 10px; z-index: 1;
    padding: 4px 8px; border-radius: 2px;
    background: rgb(8 8 7 / 0.72); color: var(--bone);
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.02em; text-transform: uppercase;
  }
  #work .case__media.is-open::after { content: "Tap to close"; }
}
.case__info { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.case__index { font-size: 0.75rem; font-weight: 500; letter-spacing: 0; }
.case__index span { display: inline-block; border: 1px solid currentColor; border-radius: 2px; padding: 0 4px; line-height: 13px; }
.case__title { font-weight: 700; font-size: clamp(1.25rem, 1.55vw, 1.4rem); line-height: 1.05; letter-spacing: -0.03em; max-width: none; }
.case__desc { color: #62605a; font-size: 1.05rem; line-height: 1.22; max-width: 26.5rem; text-wrap: balance; }
.case__metric { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 54px; font-weight: 600; }
.case__metric > span:last-child { max-width: 14rem; line-height: 1.15; text-wrap: balance; }
.chip {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bone-2);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.case__note { margin-top: 54px; max-width: 30ch; }
.case__note p { font-weight: 600; font-style: italic; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.02em; }
.case__note footer { margin-top: 10px; color: var(--stone-dark); }
.case__aside { margin-top: 24px; color: var(--stone-dark); }

/* ---------- 5. Services ---------- */
.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: clamp(150px, 14.1vw, 203px) var(--pad) clamp(50px, 5.1vw, 74px);
}
.services__main { grid-column: 5 / -1; }
.notes { grid-column: 1 / span 4; align-self: start; max-width: 332px; margin-top: 4px; }
.notes__bar { position: relative; height: 1px; background: var(--line-on-dark); overflow: hidden; }
.notes__progress { position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0); }
.notes__progress.is-running { animation: notes-progress var(--notes-duration, 12s) linear forwards; }
.notes:hover .notes__progress.is-running,
.notes:focus-within .notes__progress.is-running,
.notes.is-offscreen .notes__progress.is-running { animation-play-state: paused; }
@keyframes notes-progress { to { transform: scaleX(1); } }
.notes__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.notes__arrows { display: flex; gap: 4px; }
.notes__btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.35s var(--spring), opacity 0.35s var(--ease-out);
}
.notes__btn:hover { opacity: 0.7; }
.notes__btn:active { transform: scale(0.85); }
.notes__count { color: var(--stone); }
.notes__label { margin-top: 30px; color: var(--stone); }
.notes__slides { display: grid; margin-top: 30px; }
.notes__slide { grid-area: 1 / 1; visibility: hidden; }
.notes__slide.is-active { visibility: visible; }
.notes__text { font-weight: 600; font-size: 1.1rem; line-height: 1.22; letter-spacing: -0.02em; }
.notes__text .mask { margin-bottom: -0.1em; padding-bottom: 0.1em; }
.notes__by { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.notes__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.notes__by > span { display: flex; flex-direction: column; gap: 2px; }
.notes__by strong { font-weight: 600; font-size: 0.98rem; color: var(--stone); }
.notes__by span span { font-size: 0.8rem; color: var(--stone-dark); }
.services__label { margin-bottom: 27px; }
.service { display: block; opacity: 0.33; transition: opacity 0.15s var(--ease-out); }
.service.is-active { opacity: 1; }
.service__name {
  display: block;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.service__desc { display: none; }
/* Outer box follows the lit row; the inner frame carries the scroll-in */
.services__visual {
  position: absolute;
  right: var(--pad);
  top: 0;
  width: 9.75vw; /* 35% smaller than the reference's 15vw (Pragya, 5 Oct) */
  aspect-ratio: 4 / 5;
  translate: 0 172px;
  transition: translate var(--roll);
}
.services__frame { position: absolute; inset: 0; border-radius: 2px; }
.services__visual img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.services__visual img.is-active { opacity: 1; }

/* ---------- 6. Process ---------- */
.process { padding: clamp(96px, 10vw, 152px) var(--pad) clamp(120px, 14.6vw, 211px); border-top: 1px solid var(--line-on-dark); }
.process__title {
  font-size: clamp(3.6rem, 13.63vw, 13.2rem);
  font-stretch: 81%;
  margin-left: -0.055em;
  margin-bottom: clamp(44px, 4.4vw, 64px);
  white-space: nowrap;
}
.step {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
}
.step__text {
  grid-column: 1 / span 6;
  display: grid;
  grid-template-columns: 141px 1fr;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  margin-right: -20px;
}
.step__num { padding-top: 1px; }
.step h3 { font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.5rem); letter-spacing: -0.03em; line-height: 1; }
.step p { margin-top: 20px; color: var(--stone); font-size: 1.05rem; line-height: 1.25; max-width: 32ch; }
.step__media { grid-column: 7 / -1; aspect-ratio: 16 / 9; }

/* ---------- 7. Team + portal ---------- */
.team { position: relative; z-index: 1; padding: clamp(96px, 10vw, 160px) var(--pad); }
.team__title {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.team__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.founder { grid-column: span 3; }
.founder--offset { margin-top: clamp(40px, 8vw, 140px); }
.founder__photo { aspect-ratio: 4 / 5; }
.founder__photo img { filter: grayscale(1) contrast(1.05); }
.founder figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.founder figcaption strong { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.founder figcaption span { color: var(--stone-dark); font-size: 0.95rem; }

.portal { grid-column: 8 / -1; display: grid; gap: var(--gap); }
.portal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  min-height: 220px;
  background: var(--bone-2);
  transition: transform 0.4s var(--ease-out);
}
.portal__card:hover { transform: translateY(-3px); }
.portal__card strong { font-weight: 800; font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -0.04em; line-height: 0.95; }
.portal__card > span:not(.portal__kicker):not(.portal__arrow) { max-width: 30ch; color: var(--stone-dark); }
.portal__card--dark { background: var(--ink); color: var(--bone); }
.portal__card--dark > span:not(.portal__kicker):not(.portal__arrow) { color: var(--stone); }
.portal__kicker { margin-bottom: auto; }
.portal__arrow { position: absolute; top: 24px; right: 28px; font-size: 1.4rem; transition: transform var(--roll); }
.portal__card:hover .portal__arrow { transform: translate(3px, -3px); }

/* ---------- 8. FAQ ---------- */
.faq {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: clamp(64px, 6.25vw, 90px) var(--pad) 32px;
  background: #100f0e;
}
.faq__aside { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.faq__label { margin-top: 10px; }
.faq__fit { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.faq__photo { width: 136px; aspect-ratio: 1; }
.faq__photo img { object-position: 50% 18%; } /* Pragya's portrait: keep her face in the square */
.faq__fit p { font-weight: 700; font-size: 1.4rem; line-height: 1.18; letter-spacing: -0.03em; color: var(--stone); max-width: 14ch; }
.faq__main { grid-column: 5 / -1; }
.faq__title {
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: clamp(40px, 4vw, 64px);
}
.qa { border-top: 1px solid rgb(232 232 227 / 0.07); }
.qa:last-child { border-bottom: 1px solid var(--line-on-dark); }
.qa__h { font: inherit; }
/* The open question becomes a light bar; the text steps in and the ring fills */
.qa__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 15px 10px 15px 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--roll), color var(--roll);
}
.qa__q:hover { background: rgb(232 232 227 / 0.05); }
.qa__text { display: block; transition: transform var(--roll); }
.qa__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink-3);
  transition: background-color var(--roll), border-color var(--roll), transform var(--roll);
}
.qa.is-open .qa__q { background: var(--bone); color: var(--ink); }
.qa.is-open .qa__text { transform: translateX(10px); }
.qa.is-open .qa__dot { background: var(--ink); border-color: var(--ink); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 0.6s; }
.qa.is-open .qa__inner { visibility: visible; transition-delay: 0s; }
.qa__inner p { padding: 19px 0 22px; max-width: 26rem; color: var(--stone); font-size: 1rem; line-height: 1.35; }

/* ---------- 9. CTA ---------- */
.cta { position: relative; z-index: 1; background: transparent; }
.cta__wrap {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: 120svh;
  overflow: hidden;
  background: var(--ink);
}
.cta__bg { position: absolute; inset: -113px 0; }
.cta__bg img { filter: grayscale(1) contrast(1.3) brightness(0.55); }
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 28svh var(--pad) clamp(96px, 10vw, 160px);
  z-index: 1;
}
.cta__title {
  align-self: center;
  width: min(66vw, 1000px);
  font-size: clamp(3.6rem, 10vw, 10rem);
  line-height: 0.83;
  text-align: left;
}
.cta__title .line:nth-child(1) { margin-left: 2.5%; }
.cta__title .line:nth-child(2) { margin-left: 11%; }
.cta__title .line:nth-child(3) { margin-left: 28%; }
.cta__slide { display: inline-block; }
.cta__title .line { display: block; }
.cta__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(28svh - 150px);
  width: min(92vw, 1320px);
  height: 660px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(8 8 7 / 0.5) 40%, rgb(8 8 7 / 0));
  pointer-events: none;
}
.cta__copy { color: var(--bone); opacity: 0.8; max-width: 34ch; font-weight: 600; font-size: 1.15rem; text-align: center; }
.cta .btn--lg { font-size: clamp(1.5rem, 2.8vw, 2.6rem); font-weight: 700; gap: 0.4em; padding: 0.3em 0.3em 0.3em 0.4em; }
.cta .btn--lg .btn__aside { width: 1.33em; height: 1.33em; font-size: 1em; }
.cta .btn--lg .btn__glyph { font-size: 0.8em; }

/* ---------- Footer: sits under the page and is uncovered ---------- */
.footer {
  position: relative;
  z-index: 0;
  display: grid;
  min-height: 100svh;
  overflow: visible;
  grid-template-rows: 1fr auto;
}
.footer__wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 32px;
  padding: clamp(64px, 7vw, 96px) var(--pad) 0;
  grid-template-rows: auto 1fr;
  padding-bottom: 32px;
}
.footer__links { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.footer__links a {
  font-weight: 800;
  font-size: clamp(2rem, 3.65vw, 3.6rem);
  line-height: 1.37;
  letter-spacing: -0.045em;
  color: var(--bone);
  border-bottom: 1px solid var(--line-on-dark);
  transition: color 0.3s, padding-left var(--roll);
}
.footer__links a:hover { padding-left: 12px; }
.footer__links:hover a:not(:hover) { color: var(--stone); }
.footer__meta { grid-column: 8 / span 3; display: flex; flex-direction: column; gap: 16px; color: #b9b5ae; }
.footer__mail { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.footer__social { grid-column: 11 / -1; display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
.footer__top { grid-column: 5 / span 3; grid-row: 2; align-self: end; font-size: 0.95rem; font-weight: 500; color: var(--bone); }
.footer__top:hover { color: var(--stone); }
.footer__band { overflow: hidden; padding: 0 var(--pad); }
.footer__band-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap);
  font-size: clamp(3.6rem, 16vw, 16rem);
  line-height: 0.92;
  color: var(--bone);
  white-space: nowrap;
}
.footer__band-inner > span { display: block; }
.footer__shade {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Red variant (/red): Pragya's red (#720201), used sparingly ----------
   Black and white stay the page; red marks small things only: section dots, the
   arrow square on buttons, the ampersand, the slider timer and the open FAQ marker. */
[data-palette="red"] {
  --accent: #720201;
  --accent-on-dark: #9b1410;
}
[data-palette="red"] ::selection { background: var(--accent); color: var(--bone); }
[data-palette="red"] .eyebrow__dot { background: var(--accent); }
[data-palette="red"] [data-theme="dark"] .eyebrow__dot { background: var(--accent-on-dark); }
[data-palette="red"] .amp { color: var(--accent); }
[data-palette="red"] .nav[data-nav-theme="dark"] .amp,
[data-palette="red"] .footer .amp { color: var(--accent-on-dark); }
[data-palette="red"] .btn--dark,
[data-palette="red"] .btn--light,
[data-palette="red"] .btn--nav,
[data-palette="red"] .nav[data-nav-theme="dark"] .btn--nav { --aside-bg: var(--accent); }
[data-palette="red"] .btn__aside { color: var(--bone); }
[data-palette="red"] .nav__links a::before { background: rgb(114 2 1 / 0.16); }
[data-palette="red"] .nav[data-nav-theme="dark"] .nav__links a::before { background: rgb(155 20 16 / 0.35); opacity: 1; }
[data-palette="red"] .hero__glyph { color: rgb(114 2 1 / 0.045); }
[data-palette="red"] .notes__progress { background: var(--accent-on-dark); }
[data-palette="red"] .qa.is-open .qa__dot { background: var(--accent); border-color: var(--accent); }
[data-palette="red"] .chip { box-shadow: inset 2px 0 0 var(--accent); }

/* ---------- Motion start states (only when JS + GSAP are running) ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(24px); }
.js-motion .hero__intro .mask > span,
.js-motion .nav__links .mask > span { transform: translateY(110%); }
.js-motion .hero__media { clip-path: inset(14% 0% 0% 14%); }
.js-motion .hero__title:not(.is-split) { visibility: hidden; }
.hero__line { display: block; }
.js-motion .btn-rise { transform: translateY(125%); }
.js-motion .nav__logo { transform: translateY(12px); }
.js-motion .hero__intro:not(.is-split) { visibility: hidden; }
.js-motion .hero__hint .mask > span { transform: translateY(110%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .btn-mask--nav { grid-column: 7 / -1; }
  .case { grid-template-columns: 660fr 466fr; }
  .case__media { grid-column: 1; }
  .case__info { grid-column: 2; }
  .case + .case::before { left: 0; }
  /* Homepage cases stack below 1100px so the metric card stays readable */
  #work .case { grid-template-columns: 1fr; row-gap: 20px; }
  #work .case__media, #work .case__info { grid-column: 1 / -1; }
  .work__eyebrow { position: static; margin-bottom: 24px; }
  .services__visual { display: none; }
}

@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .nav__logo { grid-column: 1 / span 6; }
  .btn-mask--nav { grid-column: 7 / -1; }
  .btn--nav { font-size: 0.9rem; }
  .hero, .about__grid, .services, .team__grid, .faq, .footer__wrap, .case, .step { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 32px); row-gap: 32px; }
  .hero__aside, .hero__title, .hero__media,
  .about__label, .about__body,
  .notes, .services__main,
  .step__text, .step__media,
  .founder, .portal,
  .faq__aside, .faq__main,
  .case__media, .case__info,
  .footer__links, .footer__meta, .footer__social, .footer__top { grid-column: 1 / -1; }
  .footer__wrap { grid-template-rows: none; }
  .footer__top { grid-row: auto; }
  .hero__title { order: -1; }
  .hero__cards { position: static; width: 100%; margin-top: 12px; }
  /* The phone hero is taller than one screen, so the scroll note would sit on the cards */
  .hero__hint { display: none; }
  .notes { max-width: none; margin: 0 0 56px; }
  .about__label { margin-bottom: 24px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .ticker { --logo-scale: 0.72; }
  .statement__word { display: flex; flex-direction: column; align-items: center; gap: 0; font-size: clamp(3rem, 15vw, 6rem); }
  .statement__half--l, .statement__half--r { justify-self: auto; }
  .case { row-gap: 20px; }
  .case__metric, .case__note { margin-top: 24px; }
    .service { opacity: 1; padding: 10px 0; }
  .service__desc { display: block; color: var(--stone); font-size: 1rem; margin-top: 4px; }
  .process__title { white-space: normal; font-stretch: 72%; }
  .step { row-gap: 16px; padding-bottom: 32px; }
  .step__text { grid-template-columns: 48px 1fr; margin-right: 0; }
  .founder--offset { margin-top: 0; }
  .faq__aside { gap: 24px; margin-bottom: 40px; }
  .faq__fit { display: none; }
  .cta__title { width: 100%; }
  .cta__title .line { margin-left: 0 !important; }
  .cta__wrap { min-height: 100svh; }
  .footer__social { flex-direction: row; gap: 20px; }
  /* At phone sizes the edge noise eats too much of the letterforms */
  .rough { filter: none; }
}

@media (hover: none) {
  .service { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 10. Casting page (casting.html): brands and creators on one page ---------- */
.hero__doors { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); --aside-bg: var(--ink); }
.btn--line .btn__aside { color: var(--bone); }
.btn--line:hover,
.btn--line:focus-visible { background: var(--ink); color: var(--bone); --aside-bg: #4d4945; }
.hero--casting { padding-bottom: clamp(56px, 6vw, 96px); }
.hero__stats { grid-column: 1 / -1; margin-top: clamp(64px, 8vw, 128px); border-top-color: var(--line-on-light); }
.hero__stats dt { color: var(--stone-dark); }

.work--casting { padding-top: clamp(56px, 6vw, 96px); }
.case--portrait { grid-template-columns: 215fr 400fr 726fr; }
.case--portrait .case__media { aspect-ratio: 4 / 5; }
.case--portrait .case__info { padding-left: clamp(0px, 2vw, 32px); }
.case__link { margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 600; transition: opacity 0.3s; }
.case__link:hover { opacity: 0.6; }

.roster, .brands, .creators { position: relative; z-index: 1; padding: clamp(96px, 10vw, 160px) var(--pad); }
.casting-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-bottom: clamp(48px, 6vw, 96px); }
.casting-head > .eyebrow { grid-column: 1 / span 4; align-self: start; margin-top: 12px; }
.casting-head > div { grid-column: 5 / -1; }
.casting-title { font-weight: 800; font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: 0.92; letter-spacing: -0.045em; max-width: 16ch; }
.casting-lede { margin-top: 24px; max-width: 40ch; color: var(--stone-dark); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.18; letter-spacing: -0.02em; }
[data-theme="dark"] .casting-lede { color: var(--stone); }

.roster__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.roster__grid > li { grid-column: span 4; }
.roster__grid > li:nth-child(2) { margin-top: clamp(40px, 8vw, 140px); }
.creator { display: flex; flex-direction: column; gap: 12px; }
.creator__photo { aspect-ratio: 4 / 5; border-radius: 2px; }
.creator__photo img { filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease-out), transform 0.9s var(--ease-out); }
.creator:hover .creator__photo img,
.creator:focus-visible .creator__photo img { filter: grayscale(0); transform: scale(1.03); }
.creator__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.creator__row strong { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.creator__count { font-family: var(--f-display); font-stretch: 75%; font-weight: 600; font-size: 1.7rem; line-height: 1; }
.creator__meta { color: var(--stone); text-transform: none; }
.roster__note { max-width: 34ch; margin: clamp(56px, 7vw, 112px) 0 0 calc((100% - 11 * var(--gap)) / 12 * 4 + 4 * var(--gap)); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em; }

.casting-sub { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.casting-sub__title { grid-column: 1 / span 6; font-weight: 800; font-size: clamp(2rem, 3.65vw, 3.6rem); line-height: 0.95; letter-spacing: -0.04em; }
.casting-sub p { grid-column: 8 / -1; max-width: 36ch; color: var(--stone-dark); font-size: 1.05rem; line-height: 1.3; }
[data-theme="dark"] .casting-sub p { color: var(--stone); }

.why, .flow, .photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.why, .flow, .formats { margin-bottom: clamp(96px, 10vw, 160px); }
.why li, .flow li, .photos li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-on-light); }
[data-theme="dark"] .why li,
[data-theme="dark"] .flow li,
[data-theme="dark"] .photos li { border-color: var(--line-on-dark); }
.why .mono, .flow .mono { color: var(--stone-dark); }
.why h3, .why h4 { margin-top: 20px; font-weight: 700; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.flow h4 { margin-top: 28px; font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; letter-spacing: -0.035em; }
.why p, .flow p, .photos p, .formats p { max-width: 32ch; color: var(--stone-dark); line-height: 1.3; }
[data-theme="dark"] .why .mono,
[data-theme="dark"] .flow .mono,
[data-theme="dark"] .why p,
[data-theme="dark"] .flow p,
[data-theme="dark"] .photos p { color: var(--stone); }
.brands > :last-child { margin-bottom: 0; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-on-light); }
/* Same padding on every card, so every image is the same size */
.formats li { display: flex; flex-direction: column; gap: 20px; padding: 24px 24px 32px; border-bottom: 1px solid var(--line-on-light); }
.formats li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line-on-light); }
.formats__img { display: block; aspect-ratio: 3 / 2; border-radius: 2px; }
.formats h4 { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 0.95; letter-spacing: -0.04em; }
.formats p { margin-top: auto; }

.photos__n { font-family: var(--f-display); font-stretch: 72%; font-weight: 600; font-size: clamp(4rem, 9vw, 8.5rem); line-height: 0.82; }
.photos h4 { margin-top: 12px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.dodont { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin: clamp(48px, 5vw, 72px) 0 clamp(96px, 10vw, 160px); }
.dodont > div:first-child { grid-column: 5 / span 4; }
.dodont > div:last-child { grid-column: 9 / span 4; }
.dodont .mono { margin-bottom: 14px; color: var(--stone); }
.dodont li { padding: 10px 0; border-top: 1px solid var(--line-on-dark); font-weight: 600; letter-spacing: -0.015em; }

/* Join the roster: a six-step form. Without JS every step shows at once and still submits. */
.join { --error: #e4655c; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; padding-top: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line-on-dark); }
.join__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.join__head .casting-title { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.join__body { grid-column: 5 / -1; }
.join__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join__progress { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.join__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.join__bars button { position: relative; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.join__bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--ink-3); transition: background-color 0.4s var(--ease-out); }
.join__bars button.is-ok::before { background: var(--stone-dark); }
.join__bars button.is-cur::before { background: var(--bone); }
.join__step { color: var(--stone); }
.join__form:not(.is-stepper) .join__progress,
.join__form:not(.is-stepper) .join__back,
.join__form:not(.is-stepper) .join__next,
.join__form:not(.is-stepper) .join__left { display: none; }
.join__form.is-stepper .join__set:not(.is-on) { display: none; }
.join__form { scroll-margin-top: calc(var(--nav-h) + 16px); }
.join__form:not(.is-stepper) .join__set + .join__set { margin-top: 64px; }
.join__set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); min-width: 0; margin: 0; padding: 0; border: 0; }
.join__set legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1; letter-spacing: -0.04em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide, .field__help, .rate, .checks { grid-column: 1 / -1; }
.field label, .rate__name { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.opt { color: var(--stone); font-weight: 500; }
.field__help { max-width: 56ch; color: var(--stone); line-height: 1.35; }
.field__help strong { color: var(--bone); font-weight: 600; }
.join :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea) {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-3);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.join textarea { min-height: 96px; resize: vertical; }
.join ::placeholder { color: var(--stone-dark); opacity: 1; }
.join :is(input, textarea):focus { outline: none; border-bottom-color: var(--bone); box-shadow: 0 1px 0 var(--bone); }
.join input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.join input[type="number"]::-webkit-inner-spin-button,
.join input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.join :is(input, textarea).is-miss { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.rate { display: grid; grid-template-columns: 1fr minmax(240px, 300px); align-items: end; gap: 12px var(--gap); padding-top: 18px; border-top: 1px solid var(--line-on-dark); }
.rate__name span:not(.opt) { display: block; margin-top: 4px; color: var(--stone); font-weight: 500; font-size: 0.9rem; }
.rate__range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.rate__range > span { padding-bottom: 12px; color: var(--stone); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--gap); }
.checks--stack { grid-template-columns: 1fr; }
.check { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--ink-3); border-radius: 2px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.checks--stack .check { font-weight: 500; }
.check:has(input:checked) { border-color: var(--stone-dark); background: rgb(232 232 227 / 0.04); }
.check input { appearance: none; flex: none; display: grid; place-content: center; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--stone); border-radius: 2px; background: transparent; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 10px; background: var(--ink); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); transform: scale(0); transition: transform 0.25s var(--spring); }
.check input:checked { border-color: var(--bone); background: var(--bone); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.check.is-miss { border-color: var(--error); }
.join__error { margin-top: 28px; color: var(--error); font-weight: 600; }
.join__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-on-dark); }
.join__back, .join__next { padding: 10px 0; border: 0; background: none; color: var(--bone); font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: opacity 0.3s; }
.join__back:hover, .join__next:hover { opacity: 0.65; }
.join__left { flex: 1; min-width: 12rem; color: var(--stone); font-size: 0.9rem; line-height: 1.4; }
.join__left.is-ready { color: var(--bone); }
.join__jump { padding: 0; border: 0; background: none; color: var(--bone); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.join__send.is-pending { opacity: 0.45; }
.join__send[hidden], .join__next[hidden] { display: none; }
.join__fine { margin-top: 16px; color: var(--stone); font-size: 0.9rem; }
.join__done { padding: 24px 0 40px; }
.join__done:focus { outline: none; }
.join__done h3 { font-weight: 800; font-size: clamp(2rem, 3.65vw, 3.6rem); line-height: 0.95; letter-spacing: -0.04em; }
.join__done p { max-width: 40ch; margin-top: 20px; color: var(--stone); font-size: 1.15rem; line-height: 1.3; }

[data-palette="red"] .join__bars button.is-cur::before { background: var(--accent-on-dark); }

@media (max-width: 1100px) {
  .case--portrait { grid-template-columns: 5fr 7fr; }
  .why, .flow, .photos { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .formats li:not(:nth-child(3n + 1)) { border-left: 0; }
  .formats li:nth-child(even) { border-left: 1px solid var(--line-on-light); }
  .join__head { grid-column: 1 / -1; position: static; }
  .join__body { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .hero__stats { margin-top: 16px; }
  .casting-head, .casting-sub, .roster__grid, .dodont, .join { grid-template-columns: 1fr; }
  .casting-head { row-gap: 24px; }
  .casting-sub { row-gap: 14px; }
  .casting-head > .eyebrow, .casting-head > div,
  .casting-sub__title, .casting-sub p,
  .roster__grid > li,
  .dodont > div:first-child, .dodont > div:last-child { grid-column: 1 / -1; }
  .roster__grid > li:nth-child(2) { margin-top: 0; }
  .roster__note { margin-left: 0; }
  .why, .flow, .photos, .formats { grid-template-columns: 1fr; }
  .formats li, .formats li:nth-child(even) { padding: 24px 0 32px; border-left: 0; }
  .dodont { row-gap: 32px; }
  .join__set, .checks, .rate { grid-template-columns: 1fr; }
}
