/* AI Hustlers · page styles.
   Grammar: word plates. Each chapter is one word set edge to edge, and the
   chapter's media passes through it. scrollcraft.css is the floor; nothing
   here restyles an engine selector. */

:root {
  --sc-canvas:     #f6f7f8;
  --sc-surface:    #ffffff;
  --sc-ink:        #101215;
  --sc-ink-soft:   #4b525a;
  --sc-accent:     #2a46df;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-text:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-shadow-color: 214 18% 18%;

  --ground-hero: #c6ccd2;
  --ground-white: #f6f7f8;
  --ground-mist: #eaecee;
  --ground-grey: #e3e6e9;
  --ground-dark: #0e0f11;
  --ink-on-dark: #eff1f3;
  --soft-on-dark: #b9bfc6;
  --accent-on-dark: #9aabff;

  --curve: clamp(40px, 6vw, 96px);
  --bar-h: 52px;
  --plate-track: -0.055em;
}

/* ---------------------------------------------------------------- utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--sc-r-pill);
  background: var(--sc-ink); color: #fff; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

.no-js [data-sc-in], .no-js [data-sc-stagger] > * { opacity: 1; transform: none; }
/* The engine adds .sc-stage (sticky, one screen tall) when it mounts. Without
   it, give each stage one static screen so its absolute layers have a box. */
.no-js [data-sc-stage] { position: relative; height: 100vh; height: 100svh; overflow: clip; }
.no-js [data-sc-reveal] { clip-path: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-sm); font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn--ink { background: var(--sc-ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: #2b3036; }
}
.btn:active { transform: scale(0.97); }

/* -------------------------------------------------------------------- bar */
.bar {
  position: fixed; top: 12px; left: 50%; z-index: var(--sc-z-chrome);
  translate: -50% 0;
  display: flex; align-items: center; gap: 6px;
  height: var(--bar-h); padding: 6px 6px 6px 18px;
  background: var(--sc-surface); border-radius: var(--sc-r-pill);
  box-shadow: var(--sc-e2);
}
.bar__mark {
  font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: -0.02em;
  text-decoration: none; margin-right: 10px; white-space: nowrap;
}
.bar__plates { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.bar__plates a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  border-radius: var(--sc-r-pill); font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  text-decoration: none;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.bar__plates a[aria-current="true"] { background: #eceef1; color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) {
  .bar__plates a:hover { color: var(--sc-ink); background: #f1f2f4; }
}
.bar__cta { margin-left: 8px; }
.bar__index { display: none; position: relative; }
.bar__index summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  height: 40px; padding: 0 14px; border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-sm); color: var(--sc-ink);
}
.bar__index summary::-webkit-details-marker { display: none; }
.bar__index[open] summary { background: #eceef1; }
.bar__index ul {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 11rem;
  list-style: none; margin: 0; padding: 6px; border-radius: var(--sc-r-md);
  background: var(--sc-surface); box-shadow: var(--sc-e3);
}
.bar__index li a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--sc-r-sm); text-decoration: none; font-size: var(--sc-t-sm);
}

@media (max-width: 760px) {
  .bar { left: 12px; right: 12px; translate: none; padding-left: 16px; }
  .bar__mark { margin-right: auto; }
  .bar__plates { display: none; }
  .bar__index { display: block; }
}

/* ------------------------------------------------------- recast control --
   The signature's input. Real radio buttons, drawn as pills. */
.recast { border: 0; margin: 0; padding: 0; min-width: 0; }
.recast legend {
  padding: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); font-weight: 500;
}
.recast__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.recast label { position: relative; display: inline-flex; }
.recast input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.recast label span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: var(--sc-r-pill); white-space: nowrap;
  background: color-mix(in oklab, #fff 80%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 10%, transparent);
  color: var(--sc-ink); font-size: var(--sc-t-sm); font-weight: 500;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.recast input:checked + span { background: var(--sc-ink); color: #fff; box-shadow: none; }
.recast input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.recast label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .recast label:hover input:not(:checked) + span { background: #fff; }
}

/* ------------------------------------------------------------------ plates */
.plate { margin: 0; text-align: center; pointer-events: none; }
.plate__word {
  display: inline-block; white-space: nowrap;
  font-family: var(--sc-font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--plate-track);
  line-height: 0.8; padding-top: 0.06em;
  /* JS fits this to the stage width; this is the no-JS fallback. */
  font-size: clamp(4rem, 22vw, 24rem);
  margin-right: var(--plate-track); /* recentre: tracking adds a trailing gap */
}

/* ------------------------------------------------------------------ sheets
   Each new ground slides up over the last on a curved edge. */
.sheet {
  position: relative;
  border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0;
  margin-top: calc(-1 * var(--curve));
}
.sheet--white { background: var(--ground-white); }
.sheet--mist  { background: var(--ground-mist); }
.sheet--grey  { background: var(--ground-grey); }
.sheet--dark  {
  background: var(--ground-dark); color: var(--ink-on-dark);
  --sc-ink: var(--ink-on-dark); --sc-ink-soft: var(--soft-on-dark); --sc-accent: var(--accent-on-dark);
}

/* ==================================================================== HERO */
.hero__stage {
  --hp: 0; --mx: 0; --my: 0;
  background:
    radial-gradient(70% 60% at 30% 20%, #d3d8dd 0%, transparent 70%),
    linear-gradient(180deg, #cbd0d6 0%, #c3c9cf 58%, #bac1c8 100%);
}
.hero__plane { position: absolute; inset: 0; pointer-events: none; }
.hero__plane--rear  { z-index: 1; transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0); }
.hero__plane--front { z-index: 3; transform: translate3d(calc(var(--mx) * 24px), calc(var(--my) * 18px), 0); }

.hero__marquee {
  position: absolute; left: 0; right: 0; top: 48%; z-index: 2;
  translate: 0 -50%; white-space: nowrap; pointer-events: none;
  transform: translate3d(calc(var(--hp) * -16vw), calc(var(--hp) * -5vh), 0);
}
.hero__track {
  display: inline-flex; align-items: center; gap: 0.16em;
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: clamp(5.5rem, 16vw, 21rem); line-height: 0.92;
  letter-spacing: -0.055em; color: #f8f9fa;
  animation: hero-run 60s linear infinite;
}
.hero__track > span { flex: none; }
.hero__sep { font-size: 0.34em; letter-spacing: 0; translate: 0 -0.08em; }
@keyframes hero-run { to { transform: translate3d(-50%, 0, 0); } }

.frame {
  position: absolute; margin: 0; overflow: hidden;
  border-radius: 3px; background: #b4bbc2;
  box-shadow: var(--sc-e2);
  will-change: transform;
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  transition: opacity 560ms var(--sc-ease-out);
}
.frame img.is-next { opacity: 0; }
.frame--rear {
  filter: saturate(0.85);
  transform: translate3d(calc(var(--d) * var(--hp) * 2vw), calc(var(--hp) * -5vh), 0) scale(calc(1 + var(--hp) * 0.04));
}
.frame--front {
  box-shadow: var(--sc-e3);
  transform: translate3d(calc(var(--d) * var(--hp) * 11vw), calc(var(--hp) * -22vh), 0) scale(calc(1 + var(--hp) * 0.18));
}
.frame--s1 { --d: -1;   left: 5%;   top: 15%; width: 12.5vw; aspect-ratio: 4 / 5; }
.frame--s4 { --d: 1;    right: 19%; top: 10%; width: 11vw;   aspect-ratio: 1; }
.frame--s5 { --d: 0.3;  left: 47%;  top: 71%; width: 10vw;   aspect-ratio: 4 / 3; }
.frame--s6 { --d: -0.6; left: 27%;  top: 12%; width: 8.5vw;  aspect-ratio: 3 / 4; }
.frame--s3 { --d: 1;    right: 5%;  top: 36%; width: 15vw;   aspect-ratio: 4 / 5; }
.frame--s2 { --d: 0.5;  right: 31%; bottom: -7%; width: 13vw; aspect-ratio: 3 / 4; }

.hero__copy {
  position: absolute; z-index: 4;
  left: var(--sc-gutter); bottom: clamp(1.75rem, 7vh, 4.5rem);
  max-width: 44rem;
}
.hero__copy h1 {
  margin: 0 0 1.25rem;
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: clamp(1.55rem, 1.1rem + 1.2vw, 2.3rem); max-width: 16em;
  line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance;
}
.hero .recast legend { color: #2f353c; }
/* Unpinned (no JS, or reduced motion), the next sheet's curve rises into the
   bottom of this one screen, so the copy sits above it. */
.no-js .hero__copy { bottom: calc(var(--curve) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  .hero .hero__copy { bottom: calc(var(--curve) + 1rem); }
}
.avail {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 1rem; padding: 6px 13px 6px 11px; border-radius: var(--sc-r-pill);
  background: color-mix(in oklab, #fff 82%, transparent);
  font-size: var(--sc-t-sm); font-weight: 500; line-height: 1.2; color: var(--sc-ink);
}
.avail__dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #1c8a4a; box-shadow: 0 0 0 3px color-mix(in oklab, #1c8a4a 22%, transparent);
}

@media (max-width: 760px) {
  .hero__track { font-size: 31vw; }
  .hero__marquee { top: 47%; }
  .frame--s1 { left: -7%;  top: 14%; width: 34vw; }
  .frame--s4 { right: -5%; top: 16%; width: 27vw; }
  .frame--s5 { display: none; }
  .frame--s6 { left: 33%;  top: 10%; width: 19vw; }
  .frame--s3 { right: -9%; top: 45%; width: 35vw; }
  .frame--s2 { left: -6%;  right: auto; top: 37%; bottom: auto; width: 29vw; }
  .hero__copy { right: var(--sc-gutter); bottom: max(1.25rem, 3.5vh); }
}

/* =================================================================== INTRO */
/* The intro rises over the pinned hero only when the hero is actually pinned.
   Without JS or with reduced motion the hero is one static screen, and this
   overlap would cover its headline. */
.intro { z-index: 5; }
@media (prefers-reduced-motion: no-preference) {
  .js .intro { margin-top: -34vh; margin-top: -34svh; }
}
.intro {
  padding-block: calc(var(--curve) + clamp(3rem, 10vh, 7rem)) clamp(4rem, 12vh, 8rem);
}
.intro__lede {
  margin: 0 auto; max-width: 46ch; text-align: center; text-wrap: balance;
  font-size: clamp(1.25rem, 0.95rem + 1.05vw, 1.9rem);
  line-height: 1.32; letter-spacing: -0.02em; color: var(--sc-ink);
}
.intro__lede + .intro__lede { margin-top: 1em; }
.proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3rem, 7vw, 5.5rem) 0 0; padding: 0;
  border-top: 1px solid var(--sc-hairline);
}
.proof__item { padding: 1.25rem 1.5rem 0 0; }
.proof dt {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--sc-t-2xl); line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.proof dd { margin: 0.6rem 0 0; max-width: 24ch; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.45; }
@media (max-width: 760px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
}

/* ==================================================================== WORK */
.work__stage { background: var(--ground-white); }
.plate--work { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; z-index: 1; }

.work__bar {
  position: absolute; z-index: 5;
  left: var(--sc-gutter); top: calc(var(--bar-h) + 30px);
  display: flex; align-items: center; gap: 12px;
  padding: 5px 5px 5px 16px; border-radius: var(--sc-r-pill);
  background: var(--sc-surface); box-shadow: var(--sc-e1);
  max-width: calc(100vw - 2 * var(--sc-gutter));
}
.work__order { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); white-space: nowrap; }
.recast--compact .recast__opts { margin: 0; gap: 4px; flex-wrap: nowrap; }
.recast--compact label span { height: 34px; padding: 0 13px; background: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .recast--compact label:hover input:not(:checked) + span { background: #eef0f2; }
}

.work__deck { position: absolute; inset: 0; z-index: 2; }
.piece { position: absolute; inset: 0; pointer-events: none; }
.piece__visual {
  position: absolute; left: 50%; top: 52%;
  translate: -50% -50%; transform-origin: 50% 60%;
  will-change: transform;
}
.piece--social .piece__visual, .piece--app .piece__visual { left: 56%; }
.piece--web .piece__visual { left: 57%; }

.phone {
  position: relative; height: min(62vh, 620px); aspect-ratio: 9 / 16;
  border: 6px solid #111316; border-radius: clamp(18px, 3.2vh, 32px);
  overflow: hidden; background: #111316; box-shadow: var(--sc-e3);
}
.phone img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.phone--screen img { object-position: top; }
.phone--back {
  position: absolute; left: 0; top: 9%; height: 82%;
  translate: -64% 0; rotate: -6deg;
  box-shadow: var(--sc-e2);
}
.phone--back img { filter: brightness(0.9); }
.browser {
  position: relative; width: min(50vw, 86vh); aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: var(--sc-e3), 0 0 0 1px color-mix(in oklab, var(--sc-ink) 8%, transparent);
}
.browser img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.phone--mini {
  position: absolute; right: -8%; bottom: -13%; height: 74%;
  border-width: 5px; border-radius: clamp(14px, 2.4vh, 24px);
}
.phone--mini img { object-position: top; }
.piece--commerce .piece__visual { left: 57%; }
.photo {
  position: relative; width: min(46vw, 78vh); aspect-ratio: 3 / 2;
  border-radius: 12px; overflow: hidden; background: #d9dce0;
  box-shadow: var(--sc-e3);
}
.photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* The client's own mark, pinned to the corner of the work. */
.badge {
  position: absolute; right: -6%; top: -11%; width: 23%; aspect-ratio: 1;
  border-radius: 14px; overflow: hidden; background: #faf7f2;
  box-shadow: var(--sc-e2);
}
.badge img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* A logo card, for work with no photographs to show. Its ground is the
   logo's own, so the mark sits in it without a seam. */
.piece__visual:has(.spec) { top: 48%; }
.spec {
  position: relative; width: max(270px, min(26vw, 42vh)); aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(1.25rem, 3vh, 2rem);
  border-radius: 12px; background: #231f20; color: var(--ink-on-dark);
  box-shadow: var(--sc-e3);
}
.spec p { margin: 0; }
.spec__brand { display: block; width: 88%; margin: auto 0; }
.spec__logo { display: block; width: 100%; height: auto; }
/* The group's own shops, as white marks that open each site: one per row on
   a single centre line. Each mark gets the height that makes its name read at
   about the same size (Burrells stacks a crest over its name; House of
   Watches is a long, fine wordmark). */
.spec__sites {
  display: grid; gap: 2px;
  width: 100%; list-style: none; margin: 0; padding: 0.7rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.spec__sites a {
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 10px; border-radius: 8px;
  transition: background-color 160ms var(--sc-ease-out);
}
.spec__sites img {
  width: auto; height: var(--h, 22px); max-width: 100%; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.88;
  transition: opacity 160ms var(--sc-ease-out);
}
.spec__sites img[src*="burrells"] { --h: 36px; }
.spec__sites img[src*="houseofwatches"] { --h: 20px; }
.spec__sites img[src*="thejewelhut"] { --h: 24px; }
.piece.is-active .spec a { pointer-events: auto; }
.spec a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .spec__sites a:hover { background: rgba(255, 255, 255, 0.09); }
  .spec__sites a:hover img { opacity: 1; }
}
.spec__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0.8rem 0 0; padding: 0; }
.spec__chips li {
  padding: 5px 11px; border-radius: var(--sc-r-pill); font-size: var(--sc-t-xs);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
/* The app in a 16:9 scene: the landing page's marble courtyard behind two
   real screens, shown whole rather than cropped to the phone. */
.stage {
  position: relative; width: min(46vw, 78vh); aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #e9e4dc;
  box-shadow: var(--sc-e3);
}
.stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.stage .phone {
  position: absolute; top: 9%; height: 82%; aspect-ratio: 600 / 1220;
  border-width: 4px; border-radius: clamp(12px, 2vh, 20px);
}
.stage .phone:not(.phone--back) { left: 72%; }
.stage .phone--back { left: 57%; top: 14%; height: 72%; translate: none; rotate: -5deg; }
.stage .phone img { object-position: top; }

/* The caption is a label card: it sits over the plate word, so it carries its
   own ground rather than asking the word to move out of the way. */
.piece__caption {
  position: absolute; z-index: 40;
  left: var(--sc-gutter); bottom: clamp(1.25rem, 5vh, 3.5rem);
  width: min(23rem, 28vw);
  padding: 1.15rem 1.3rem 1.05rem;
  border-radius: var(--sc-r-md); background: var(--sc-surface);
  box-shadow: var(--sc-e2), var(--sc-edge);
  opacity: 0; transform: translateY(10px);
  transition: opacity 280ms var(--sc-ease-out), transform 280ms var(--sc-ease-out);
}
.piece.is-active .piece__caption { opacity: 1; transform: none; pointer-events: auto; }
.piece__kind {
  display: flex; align-items: center; gap: 0.5em; margin: 0 0 0.55rem;
  font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--sc-accent);
}
.piece__kind::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.piece__name {
  margin: 0; font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--sc-t-xl); line-height: 1.05; letter-spacing: -0.03em;
}
.piece__meta { margin: 0.5rem 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.piece__did { margin: 0.9rem 0 0; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); text-wrap: pretty; }
.piece__result { margin: 0.9rem 0 0; font-size: var(--sc-t-base); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.piece__result--concept { font-size: var(--sc-t-sm); }
.piece__result--concept::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em;
  border: 1.5px solid currentColor; border-radius: 50%; vertical-align: 0.05em;
}
.piece__links { margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--sc-t-sm); }
.piece__links a { min-height: 32px; display: inline-flex; align-items: center; }

.work__index { position: absolute; z-index: 5; right: var(--sc-gutter); bottom: clamp(1.5rem, 6vh, 4rem); }
.work__index ul {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px;
  list-style: none; margin: 0; padding: 4px 16px; max-width: 27rem;
  border-radius: var(--sc-r-md); background: var(--sc-surface); box-shadow: var(--sc-e1);
}
.work__index button {
  min-height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  transition: color 160ms var(--sc-ease-out);
}
.work__index button[aria-current="true"] {
  color: var(--sc-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
@media (hover: hover) and (pointer: fine) {
  .work__index button:hover { color: var(--sc-ink); }
}

@media (max-width: 1100px) {
  .piece__caption { width: min(20rem, 34vw); }
  .work__index { display: none; }
  /* The card is too narrow here for the platform chips; the caption names them. */
  .spec__chips { display: none; }
}

@media (max-width: 760px) {
  .plate--work { top: 41%; }
  .work__bar { top: calc(var(--bar-h) + 22px); left: 12px; right: 12px; padding: 4px; max-width: none; }
  .work__order { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .recast--compact { overflow-x: auto; scrollbar-width: none; }
  .recast--compact .recast__opts { width: max-content; }
  .piece__visual, .piece--social .piece__visual, .piece--web .piece__visual, .piece--commerce .piece__visual, .piece--app .piece__visual { left: 50%; top: 41%; }
  .piece__kind { margin-bottom: 0.35rem; }
  .piece__caption { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 0.85rem 1rem 0.8rem; }
  .piece__name { font-size: var(--sc-t-lg); }
  .piece__did { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.45; }
  .piece__result { margin-top: 0.5rem; font-size: 0.92rem; }
  .piece__links { margin-top: 0.4rem; }
}

/* The list layout: no JavaScript, or reduced motion. The same pieces, in
   reading order, with no pinned travel. */
.no-js .work, .work.is-list { height: auto !important; }
:is(.no-js .work, .work.is-list) .work__stage {
  position: relative; height: auto; overflow: visible;
  padding: calc(var(--bar-h) + 4rem) var(--sc-gutter) clamp(4rem, 9vw, 8rem);
}
:is(.no-js .work, .work.is-list) .plate--work { position: static; translate: none; }
:is(.no-js .work, .work.is-list) .work__bar { position: static; display: inline-flex; margin-top: 2rem; }
:is(.no-js .work, .work.is-list) .work__deck { position: static; display: grid; gap: clamp(3rem, 7vw, 6rem); margin-top: 3rem; }
:is(.no-js .work, .work.is-list) .piece {
  position: relative; inset: auto; pointer-events: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
:is(.no-js .work, .work.is-list) .piece__visual { position: relative; left: auto; top: auto; translate: none; transform: none !important; justify-self: center; visibility: visible !important; }
:is(.no-js .work, .work.is-list) .piece__visual > .phone { height: min(56vh, 520px); }
:is(.no-js .work, .work.is-list) :is(.browser, .photo, .stage) { width: min(40vw, 640px); }
:is(.no-js .work, .work.is-list) .spec { width: max(280px, min(30vw, 400px)); }
:is(.no-js .work, .work.is-list) .piece__caption { position: static; opacity: 1; transform: none; width: auto; max-width: 30rem; }
:is(.no-js .work, .work.is-list) .work__index { display: none; }
@media (max-width: 760px) {
  :is(.no-js .work, .work.is-list) .piece { grid-template-columns: 1fr; }
}

/* On a phone every piece is one 16:9 frame, in the deck and in the list, so
   nothing is cut to a tall phone shape or spills past its card. */
@media (max-width: 760px) {
  .work .piece__visual {
    width: 88vw; aspect-ratio: 16 / 9;
    border-radius: 14px; overflow: hidden;
    background: var(--tint, #e3e6ea); box-shadow: var(--sc-e3);
  }
  .work .piece__visual > :is(.photo, .browser, .spec, .stage) {
    position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto;
    border-radius: 0; box-shadow: none;
  }
  .work .piece__visual .phone { border-width: 3px; border-radius: 12px; }
  .work .piece--social .phone { position: absolute; top: 9%; height: 82%; translate: none; }
  .work .piece--social .phone--screen { left: 51%; }
  .work .piece--social .phone--back { left: auto; right: 51%; top: 14%; height: 72%; rotate: -5deg; }
  .work .phone--mini { right: 4%; bottom: 7%; height: 80%; }
  .work .badge { right: 4%; bottom: 7%; width: 24%; border-radius: 10px; }
  /* In the 16:9 frame the card turns sideways: the T.H. Baker mark on the
     left, the group's shops stacked on the right, either side of a rule. */
  .work .spec { flex-direction: row; padding: 0.75rem 0.9rem; }
  .work .spec__brand { width: 47%; margin: 0; padding-right: 0.9rem; }
  .work .spec__sites {
    width: 53%; padding: 0 0 0 0.9rem;
    border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
  .work .spec__sites a { height: auto; min-height: 44px; padding: 0 6px; }
  .work .spec__sites img[src*="burrells"] { --h: 32px; }
  .work .spec__sites img[src*="houseofwatches"] { --h: 17px; }
  .work .spec__sites img[src*="thejewelhut"] { --h: 21px; }
  /* The platforms are in the caption too; the frame keeps the logos. */
  .work .spec__chips { display: none; }
  .work [data-piece="tetangga"] { --tint: #d8463a; }
  .work [data-piece="shawarmawala"] { --tint: #2b2220; }
  .work [data-piece="botanical"] { --tint: #e8e0d2; }
}

/* ================================================================= ARCHIVE */
.archive { z-index: 7; }
.archive__stage {
  border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0;
}
.archive__tilt {
  position: absolute; inset: -18% -12%;
  display: flex; align-items: center;
  rotate: -9deg;
}
.archive__rail { flex-direction: column; gap: 16px; width: max-content; padding-left: 8vw; }
.archive__row { display: flex; gap: 16px; }
.archive__row--b { transform: translate3d(calc((var(--sc-p, 0) - 0.5) * 34vw), 0, 0); }
.tile {
  position: relative; flex: none; margin: 0;
  height: 25vh; border-radius: 3px; overflow: hidden; background: #1b1d21;
}
.tile--land { aspect-ratio: 3 / 2; }
.tile--port { aspect-ratio: 3 / 4; }
.tile--sq   { aspect-ratio: 1; }
.tile img {
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  filter: saturate(0.55) brightness(0.62) contrast(1.05);
}
.tile figcaption {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 0.72rem; letter-spacing: 0.02em; color: rgba(239, 241, 243, 0.82);
}
.archive__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(58% 46% at 50% 50%, rgba(14, 15, 17, 0.9) 0%, rgba(14, 15, 17, 0.62) 55%, rgba(14, 15, 17, 0) 100%);
}
.archive__copy {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--sc-gutter);
}
.plate--light .plate__word { color: var(--ink-on-dark); }
.archive__note { margin: 1.5rem 0 1rem; font-size: var(--sc-t-sm); color: var(--soft-on-dark); text-wrap: balance; }
.archive__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; margin: 0; padding: 0; max-width: 46rem;
}
.archive__links :is(a, span) {
  display: inline-flex; align-items: center; height: 38px; padding: 0 15px;
  border-radius: var(--sc-r-pill); text-decoration: none; font-size: var(--sc-t-sm);
  color: var(--ink-on-dark); background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .archive__links a:hover { background: rgba(255, 255, 255, 0.2); }
}
@media (max-width: 760px) {
  .tile { height: 17vh; }
  .archive__scrim { background: radial-gradient(90% 52% at 50% 50%, rgba(14, 15, 17, 0.92) 0%, rgba(14, 15, 17, 0.7) 60%, rgba(14, 15, 17, 0.1) 100%); }
  .archive__links :is(a, span) { height: 36px; padding: 0 12px; }
}

/* =================================================================== OFFER */
/* What a visitor can buy: the website first, the rest as what keeps it busy. */
.offer {
  z-index: 8;
  padding-block: calc(var(--curve) + clamp(3rem, 8vh, 5.5rem)) clamp(5rem, 11vw, 9rem);
}
.offer__inner { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.offer__lede {
  margin: 0 auto; max-width: 40ch; text-align: center; text-wrap: balance;
  font-size: var(--sc-t-lg); line-height: 1.4; letter-spacing: -0.012em; color: var(--sc-ink);
}
.offer__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem;
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
}
.offer__item { border-top: 1px solid var(--sc-hairline-strong); padding-top: 1rem; }
.offer__item--lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2rem;
  padding: 1.5rem; border: 0; border-radius: 4px;
  background: var(--sc-ink); color: #fff;
}
.offer__item--lead .offer__tag { grid-column: 1; color: #b9bfc6; }
.offer__item--lead .offer__name { grid-column: 1; font-size: var(--sc-t-2xl); }
.offer__item--lead .offer__what { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: #e3e6e9; font-size: var(--sc-t-base); }
.offer__tag {
  margin: 0; font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sc-ink-soft);
}
.offer__name {
  margin: 0.4rem 0 0; font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--sc-t-xl); line-height: 1.05; letter-spacing: -0.03em;
}
.offer__what { margin: 0.6rem 0 0; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); text-wrap: pretty; }
.offer__start {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2rem; row-gap: 1rem;
  align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1rem; border-top: 1px solid var(--sc-hairline-strong);
}
.offer__h { margin: 0; font-size: var(--sc-t-base); font-weight: 600; letter-spacing: -0.01em; }
.offer__steps { grid-column: 2; margin: 0; padding-left: 1.25rem; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); }
.offer__steps li + li { margin-top: 0.5rem; }
.offer__steps strong { color: var(--sc-ink); font-weight: 500; }
.offer__start .btn { grid-column: 2; justify-self: start; min-height: 44px; }
@media (max-width: 860px) {
  .offer__list { grid-template-columns: 1fr; }
  .offer__item--lead { grid-template-columns: 1fr; padding: 1.25rem; }
  .offer__item--lead .offer__what { grid-column: 1; grid-row: auto; margin-top: 0.75rem; }
  .offer__start { grid-template-columns: 1fr; }
  .offer__steps, .offer__start .btn { grid-column: 1; }
}

/* ================================================================== METHOD */
.method {
  z-index: 9;
  padding-block: calc(var(--curve) + clamp(3rem, 8vh, 5.5rem)) clamp(5rem, 11vw, 9rem);
}
.rows {
  list-style: none; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0;
  border-top: 1px solid var(--sc-hairline-strong);
}
.row {
  --rp: 0.5;
  display: grid; grid-template-columns: minmax(7rem, 15%) minmax(0, 1fr);
  align-items: baseline; gap: 1.5rem;
  padding: clamp(0.9rem, 1.6vw, 1.35rem) var(--sc-gutter);
  border-bottom: 1px solid var(--sc-hairline-strong);
}
.row__label {
  font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sc-ink-soft);
}
.row__line {
  margin: 0; overflow: hidden; white-space: nowrap; padding-left: 5vw;
  font-size: clamp(1.15rem, 0.85rem + 1.15vw, 1.95rem);
  line-height: 1.3; letter-spacing: -0.02em;
}
.row__text, .row__echo {
  display: inline-block;
  transform: translate3d(calc((0.5 - var(--rp)) * var(--dir) * 10vw), 0, 0);
}
.row__echo { margin-left: 1.5em; color: color-mix(in oklab, var(--sc-ink) 26%, transparent); }
.row__echo::before { content: "·"; margin-right: 1.5em; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 0.35rem; }
  .row__line { white-space: normal; padding-left: 0; font-size: 1.08rem; line-height: 1.4; text-wrap: pretty; }
  .row__text { transform: none; }
  .row__echo { display: none; }
}

/* ================================================================== STUDIO */
.studio {
  z-index: 10;
  padding-block: calc(var(--curve) + clamp(3rem, 8vh, 5.5rem)) clamp(5rem, 11vw, 9rem);
}
.studio__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 7rem); align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.studio__portrait { margin: 0; position: sticky; top: calc(var(--bar-h) + 36px); }
.studio__photo { border-radius: 4px; overflow: hidden; aspect-ratio: 5 / 6; background: #d9dce0; }
.studio__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.studio__portrait figcaption { margin-top: 0.8rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.studio__lede {
  margin: 0; max-width: 42ch;
  font-size: var(--sc-t-lg); line-height: 1.45; letter-spacing: -0.012em; color: var(--sc-ink);
}
.studio__h {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
  font-size: var(--sc-t-base); font-weight: 600; letter-spacing: -0.01em;
}
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 0; }
.caps > div { border-top: 1px solid var(--sc-hairline-strong); padding-top: 0.8rem; }
.caps dt { font-weight: 500; }
.caps dd { margin: 0.3rem 0 0; font-size: var(--sc-t-sm); line-height: 1.5; color: var(--sc-ink-soft); }
.road { list-style: none; margin: 0; padding: 0; }
.road li {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem;
  padding: 0.95rem 0; border-top: 1px solid var(--sc-hairline-strong);
  font-size: var(--sc-t-sm); line-height: 1.5;
}
.road__when { color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.road__what { color: var(--sc-ink-soft); }
.road__what strong { color: var(--sc-ink); font-weight: 500; }
.studio__creds { margin: 2.25rem 0 0; max-width: 62ch; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
@media (max-width: 860px) {
  .studio__grid { grid-template-columns: 1fr; }
  .studio__portrait { position: static; max-width: 24rem; }
  .caps { grid-template-columns: 1fr; }
  .road li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* =================================================================== CLOSE */
/* The close is the last screen: it fills the viewport and stands still, with
   the footer inside it, so the page finishes rather than trailing off. */
.close { z-index: 11; }
.close__stage {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--curve) + clamp(2rem, 10vh, 7rem)) var(--sc-gutter) 1.5rem;
}
.close__main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.close__line {
  --big: clamp(2.3rem, 1rem + 5.6vw, 7rem);
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--big); line-height: 1.04; letter-spacing: -0.045em;
  max-width: 15.5em; text-wrap: balance;
}
.close__contact {
  --chip: max(44px, calc(var(--big) * 0.5)); /* the pills' height; the picture keeps its own, larger size */
  display: inline-flex; align-items: center; gap: 0.4rem;
  vertical-align: calc(var(--big) * 0.12); margin-right: 0.25em;
  letter-spacing: 0; line-height: 1;
}
.close__avatar {
  --d: max(var(--chip), calc(var(--big) * 0.8)); /* original size; never smaller than the pills */
  width: var(--d); height: var(--d); max-width: none;
  border-radius: 50%; object-fit: cover; flex: none;
}
.pill {
  display: inline-flex; align-items: center; height: var(--chip, 44px);
  min-height: 44px; padding: 0 clamp(14px, 1.2vw, 20px);
  border-radius: var(--sc-r-pill); background: var(--sc-surface);
  font-size: clamp(0.8rem, 0.7rem + 0.25vw, 0.94rem); font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; color: var(--sc-ink);
  box-shadow: var(--sc-e1);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: #f1f2f4; }
}
.pill:active { transform: scale(0.97); }
.close__q { display: inline; margin: 0; font: inherit; letter-spacing: inherit; }
.close__q:focus { outline: none; }
.recast--close { margin-top: clamp(1.75rem, 4vh, 3rem); }
.recast--close legend { float: left; margin-right: 12px; line-height: 40px; }
.recast--close .recast__opts { margin-top: 0; }
.close__aside { margin: 1rem 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: end; gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 1.25rem; margin-top: 1.5rem;
  border-top: 1px solid var(--sc-hairline-strong);
  font-size: var(--sc-t-sm);
}
.foot__k {
  display: block; margin-bottom: 0.3rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.foot__nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.foot a:not(.btn) { min-height: 32px; display: inline-flex; align-items: center; }
.foot__small { margin: 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.foot__base {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
/* Private partner area (password gated). Quiet pill so it never competes with the CTA. */
.foot a.foot__partners {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 14px;
  border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: -0.005em;
  color: var(--sc-ink-soft); text-decoration: none;
  transition: color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .foot a.foot__partners:hover { color: var(--sc-ink); border-color: var(--sc-ink); background: var(--sc-surface); }
}
.foot a.foot__partners:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

@media (max-width: 860px) {
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__nav { grid-column: 1 / -1; }
  .foot__cta { justify-self: start; }
  .recast--close legend { float: none; line-height: 1.4; }
  .recast--close .recast__opts { margin-top: 10px; }
}

/* ========================================================= reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto !important; }
  .hero__stage { position: relative; }
  .hero__track { animation: none; }
  .hero__marquee, .frame, .hero__plane { transform: none !important; }
  .archive { height: auto !important; }
  .archive [data-sc-stage].archive__stage { position: relative; overflow: clip; }
  .archive__row--b { transform: none; }
  .row__text, .row__echo { transform: none; }
  .frame img { transition-duration: 200ms; }
}

/* ======================================================== compact phones */
@media (max-width: 760px) {
  .recast--compact label span { padding: 0 9px; font-size: 0.8125rem; }
}
@media (max-width: 760px) and (max-height: 700px) {
  /* Lift the front frames clear of the headline on short screens. */
  .frame--s3 { top: 31%; width: 29vw; }
  .frame--s2 { top: 28%; width: 25vw; }
  .frame--s1 { top: 12%; width: 29vw; }
  .hero__marquee { top: 36%; }
  /* The work frame rides higher so the caption card never covers it. */
  .work .piece__visual { top: 34%; }
  /* Five answers take three rows here, so the copy gives back some height. */
  .avail { margin-bottom: 0.6rem; padding: 4px 11px 4px 9px; font-size: 0.78rem; }
  .hero__copy h1 { margin-bottom: 0.8rem; }
  .hero .recast__opts { margin-top: 6px; gap: 6px; }
  .hero .recast label span { height: 36px; padding: 0 14px; }
}
