/* H / Print — one viewport per brand. Compact project summaries share the cover with its card.
   Wheel, touch and keyboard navigation change brands; project detail pages retain their own scroll. */

@property --bg   { syntax: '<color>'; inherits: true; initial-value: #f6f4f0; }
@property --ink  { syntax: '<color>'; inherits: true; initial-value: #151515; }
@property --acc  { syntax: '<color>'; inherits: true; initial-value: #151515; }
@property --holo { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: light;
  --button-bg: #000;
  --button-ink: #fff;
  --paper-light: #f6f4f0;
  --paper-dark: #18191b;
  --bg: var(--paper-light);
  --ink: #111110;
  --accent-light: #1c2b6b;
  --accent-dark: #aabaff;
  --acc: var(--accent-light);
  --body-ink: #383835;
  --meta-ink: #3c3c38;
  --eyebrow-ink: #50504b;
  --panel-ink: #161616;
  --panel-muted: #8a8a84;
  --panel-rule: rgba(0,0,0,.12);
  --control-hover: rgba(0,0,0,.06);
  --control-muted: #777;
  --placeholder: #353535;
  --pad: 7vw;
  --top-y: 4.6vh;
  --slot-h: clamp(46px, 6.8vh, 64px);
  --slot-w: calc(var(--slot-h) * .716);
  --picker-y: 13vh;
  --stage-y: 25vh;
  --stage-b: 11vh;
  --hero-h: min(calc(100vh - var(--stage-y) - var(--stage-b)), 52vh, calc(26vw / .716));
  --hero-w: calc(var(--hero-h) * .716);
  --col-gap: 9vw;
  --text-x: calc(var(--hero-w) + var(--col-gap) + var(--lab));   /* where every headline starts */
  --media-w: calc(var(--hero-w) + var(--col-gap) * .78);
  --radius: clamp(16px, 1.9vw, 30px);
  --lab: clamp(84px, 7.6vw, 124px);   /* the label column every text block hangs from */
  --thumb-w: clamp(92px, 9.5vw, 152px);
  --row-gap: clamp(20px, 2.2vw, 36px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --f: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-card: "Gill Sans", "Gill Sans MT", "Archivo", ui-sans-serif, sans-serif;

  --mute: color-mix(in srgb, var(--ink) 68%, transparent);
  --soft: color-mix(in srgb, var(--ink) 82%, transparent);
  --faint: color-mix(in srgb, var(--ink) 13%, transparent);
  --rim: #fdfcfa;
  --shade: rgba(20, 20, 20, .2);

  /* Switch surfaces and text together; a cross-scheme fade loses contrast. */
}

.cover { --acc: var(--accent-light); }



* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0; height: 100svh; overflow: hidden; overscroll-behavior: none; background: var(--bg); color: var(--ink);
  font: 400 15px/1.4 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 4px; border-radius: 6px; }

/* Static paper texture: no full-screen animated blend layers. */
.paper { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); }
.paper__tone { position: absolute; inset: 0; background: url(assets/h/paper-tone.webp) 0 0 / 640px; opacity: .12; }

/* ── Typography after Aicher / Ulm: one grotesque, flush left, hierarchy by weight and size only.
      Every block hangs from two columns: a narrow label column and the text column. ── */
.hud { font: 400 13px/1.25 var(--f); letter-spacing: 0; text-transform: none; }

/* ── Header: one line ───────────────────── */
.top {
  position: absolute; z-index: 6; left: var(--pad); right: var(--pad); top: var(--top-y);
  display: flex; align-items: baseline; gap: 24px; font: 400 13px/1.25 var(--f); transition: opacity .6s var(--ease-io);
}
.me { display: flex; align-items: baseline; gap: 14px; }
.me img { width: 22px; height: 22px; object-fit: cover; filter: grayscale(1) contrast(1.05); align-self: center; }
.me p { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.me__name { font-weight: 700; }
.me__role { position: absolute; left: calc(var(--hero-w) + var(--col-gap)); color: var(--mute); }
.top__right { margin-left: auto; display: flex; align-items: baseline; gap: 22px; position: relative; }
.top__btn { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--ink); }
.top__btn:hover, .top__btn[aria-expanded="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.top__btn.ph { color: var(--mute); cursor: default; text-decoration: none; }
.about { display: grid; gap: 24px; margin-top: 36px; color: var(--body-ink); font: 400 14px/1.5 var(--f); scroll-margin-top: 32px; }
.about h2 { margin: 0 0 10px; color: var(--ink); font: 700 14px/1.35 var(--f); }
.about ul { margin: 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 10px; }
.about li { padding-left: .15em; }
.about .links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.about .links a { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.about .links .ph { color: var(--mute); }
.me .me__flag { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; object-fit: contain; filter: none; }

/* ── Picker: the deck at rest. Quiet until pointed at. ── */
.picker {
  position: absolute; z-index: 4; left: var(--pad); top: var(--picker-y);
  display: flex; align-items: flex-end; gap: 10px;
  transition: opacity .6s var(--ease-io), transform .8s var(--ease-out);
}
.slot {
  appearance: none; padding: 0; border: 0; cursor: pointer;
  position: relative; width: var(--slot-w); height: var(--slot-h);
  border-radius: calc(var(--slot-h) * .05);
  background: color-mix(in srgb, var(--bg) 95%, black);
  box-shadow: inset 1px 1.5px 2px rgba(20,20,20,.14), inset -1px -1px 0 rgba(255,255,255,.7);
}
.slot > .slot__name { position: absolute; left: 6px; bottom: 5px; font: 700 11px/1 var(--f); color: var(--mute); opacity: 0; transition: opacity .4s var(--ease-io) .3s; }
.slot[aria-current="true"] > .slot__name { opacity: 1; }
.slot .slot__name { display: none; }
.slot .card { pointer-events: none; }
.picker__label { position: absolute; left: calc(var(--hero-w) + var(--col-gap)); bottom: -.2em; white-space: nowrap; color: var(--mute); }
.picker__label b { color: var(--ink); font-weight: 700; margin-right: .5em; font-variant-numeric: tabular-nums; }

/* ── Cover: the brand's card, its numeral and an index of its projects ── */
.page { position: relative; z-index: 2; height: 100svh; }
.cover {
  display: grid; grid-template-columns: var(--hero-w) minmax(0, 1fr); column-gap: var(--col-gap);
  padding: var(--stage-y) var(--pad) 14svh; height: 100svh; align-items: center;
}
.brand-content { min-width: 0; height: 100%; display: flex; flex-direction: column; gap: clamp(24px, 4svh, 48px); }
.stage__card { position: relative; width: var(--hero-w); height: var(--hero-h); }
.story {
  min-width: 0; flex: none;
  font: 400 13px/1.3 var(--f);
}
/* the timetable head: a bold numeral, then small stacked details */
.mast { display: grid; grid-template-columns: calc(var(--thumb-w) + var(--row-gap)) minmax(0, 1fr); align-items: last baseline; }
.mast__no { display: block; overflow: hidden; padding-top: .06em; margin-left: -.05em; font: 700 clamp(40px, 4vw, 72px)/.8 var(--f); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mast__no span { display: block; }
.mast__meta { margin: 0; color: var(--soft); }
.mast__meta b { color: var(--ink); font-weight: 700; }
.swatch { display: inline-block; width: .62em; height: .62em; margin-right: .45em; vertical-align: .02em; background: var(--sw); }

.nw { white-space: nowrap; }

/* ── Rows: one project each — a rounded picture or film, then the words ── */
.rows { padding: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: clamp(24px, 4svh, 44px); }
.row {
  display: grid; grid-template-columns: var(--thumb-w) minmax(0, 1fr);
  column-gap: var(--row-gap); align-items: center;
}
.row + .row { margin-top: 0; }
.row .row__media { width: 100%; aspect-ratio: 16 / 10; border-radius: clamp(8px, 1vw, 14px); }
.row .row__media.is-film { aspect-ratio: 16 / 9; }
.row__media {
  position: relative; width: var(--media-w); aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 6%, transparent);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps the rounding while children transform */
}
.row__media > img, .row__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.row__media > img { transition: transform 1.4s var(--ease-out); }
.row__media.is-film { background: #0b0b0b; aspect-ratio: 16 / 9; }
.row__media::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(20,20,20,.06); }
/* a screen set on a ground of its own colour, bleeding off the corner */
.row__media.is-inset { background: var(--ground); }
.row__media.is-inset img { inset: auto; left: 9%; top: 12%; width: 122%; height: auto; border-radius: 6px 0 0 0; box-shadow: 0 18px 40px -16px rgba(10,30,50,.4); }
.row__media iframe { pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-io); }
.row__media iframe.is-ready { opacity: 1; }
a.row__media:hover img { transform: scale(1.025); }
.row__toggle {
  position: absolute; right: 4.5%; bottom: 5.5%; z-index: 2; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(70, 70, 70, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s, transform .5s var(--ease-out);
}
.row__toggle:hover { background: rgba(40, 40, 40, .85); transform: scale(1.05); }
.row .row__toggle { width: 32px; height: 32px; right: 4px; bottom: 4px; }
.row__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.row__toggle .i-play { display: none; }
.row__toggle[aria-pressed="false"] .i-play { display: block; }
.row__toggle[aria-pressed="false"] .i-pause { display: none; }
.row__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.row__ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.row__ph path { fill: none; stroke: var(--faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.row__ph span { position: relative; padding: 4px 8px; background: var(--bg); color: var(--mute); font-size: 13px; }

.row__text { min-width: 0; font: 400 12px/1.3 var(--f); }
.row__eyebrow { margin: 0 0 9px; color: var(--mute); }
.row__eyebrow > span { margin-right: 12px; font-variant-numeric: tabular-nums; }
.row__title { margin: 0; font: 700 clamp(23px, 2.15vw, 36px)/1.08 var(--f); letter-spacing: -.027em; }
.row__p { margin: 9px 0 0; max-width: 29em; font: 400 clamp(14px, 1.05vw, 17px)/1.4 var(--f); letter-spacing: -.008em; color: var(--mute); text-wrap: pretty; }
.row__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 28px; margin-top: 16px; padding: 5px 10px; border: 0; border-radius: 4px;
  background: var(--button-bg);
  color: var(--button-ink); font: 600 12px/18px var(--f); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.row__link:hover { background: color-mix(in srgb, var(--button-bg) 82%, var(--button-ink)); }
.row__link:active { background: color-mix(in srgb, var(--button-bg) 70%, var(--button-ink)); }

/* Extend the case-study link across its row while keeping media controls usable. */
.row:has(.row__link) { position: relative; isolation: isolate; cursor: pointer; }
.row__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.row:has(.row__link) > .row__media { z-index: 2; }
.row:has(.row__link):is(:hover, :focus-within) .row__title {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .12em;
}

/* brief: a smaller picture and a sentence */
.row.is-brief .row__media { width: 100%; }

/* rows arrive once, as they enter */
.js .row .row__media, .js .row .row__text > * { opacity: 0; }
.row.is-in .row__media { animation: rise-media .24s var(--ease-out) both; }
.row.is-in .row__text > * { animation: rise .22s var(--ease-out) both; }
@keyframes rise-media { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Next: the following brand ── */
.next { position: absolute; left: var(--pad); right: var(--pad); bottom: 4.5svh; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.next a {
  display: flex; align-items: baseline; gap: 14px; min-height: 32px; padding: 8px 0; color: var(--ink); text-decoration: none;
}
.next__k, .next__hint { font-size: 12px; color: var(--mute); }
.next__hint { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
.next__hint > span { margin-left: 10px; }
.next__name { font: 700 13px/1.2 var(--f); }
.next__name .swatch { width: .3em; height: .3em; margin-right: .3em; vertical-align: .3em; }
.next__name i:not(.swatch) { display: inline-block; margin-left: .25em; font-style: normal; font-weight: 400; transition: transform .5s var(--ease-out); }
.next a:hover .next__name i:not(.swatch) { transform: translateX(.15em); }
.next__from { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--mute); }

/* ── Cards ──────────────────────────────── */
/* a card lives in its slot or in the hero slot; between the two it travels in a fixed flight layer */
.flight { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.flight .card { pointer-events: none; }
.card {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  container-type: inline-size; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .6s var(--ease-io), filter .5s var(--ease-io), --holo 1.4s var(--ease-io);
}
.card.is-hero { cursor: default; --holo: 1; perspective: 1500px; }
.card.is-away { opacity: 0; pointer-events: none; }
.card.in-slot { opacity: .42; filter: grayscale(1); }
.card.in-slot:hover, .card.in-slot.is-pointed { opacity: 1; filter: none; }
.card:focus-visible .card__face { outline: 2px solid var(--acc); outline-offset: 4cqw; }
/* rest stays cheap: the moving print layers exist only on the heroes */
.card.in-slot .card__rainbow, .card.in-slot .card__glare, .card.in-slot .c-paper { display: none; }

.card__tilt { position: absolute; inset: 0; }
.card__rotor { position: absolute; inset: 0; }
.card.is-spinning :is(.card__tilt, .card__rotor) { transform-style: preserve-3d; }
.card.is-spinning .card__rotor { will-change: transform; }
/* Keep the spinning faces cheap to composite; restore the foil once the reel stops. */
.card.is-spinning :is(.card__sheen, .card__rainbow, .card__glare, .k-foil, .k-glit, .c-paper),
.card.is-spinning .card__rotor::before { display: none; }
.card__rotor > .card__face, .card__reverse {
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card.is-spinning .card__rotor > .card__face { transform: translateZ(.6px); }
.card__reverse {
  position: absolute; inset: 0; overflow: hidden; border-radius: 3.6cqw;
  display: none; place-content: center; justify-items: center; gap: 5cqw;
  transform: rotateX(180deg) translateZ(.6px); pointer-events: none;
  color: #e8dfbd; border: 2.4cqw solid #d7cba6;
  background:
    repeating-linear-gradient(45deg, transparent 0 3cqw, #ffffff06 3cqw 3.3cqw),
    radial-gradient(ellipse at center, #344978, #182747 75%);
  box-shadow: inset 0 0 0 .7cqw #182747, inset 0 0 0 1cqw #d7cba688, 0 .8cqw 1.6cqw -.4cqw #1414142e;
}
.card.is-spinning .card__reverse { display: grid; }
.card__reverse-mark {
  display: grid; place-items: center; width: 42cqw; height: 42cqw;
  border: .4cqw solid #d7cba677; border-radius: 50%; font: 400 25cqw/1 Georgia, serif;
}
.card__reverse-label { text-align: center; text-transform: uppercase; letter-spacing: .6cqw; font: 600 2.7cqw/1.8 var(--f); }
.card__rotor:has(.is-image) > .card__reverse { border-radius: 5cqw; }
@media (prefers-reduced-motion: reduce) {
  .card.is-spinning .card__rotor { transform: none !important; will-change: auto; }
}
.card.in-slot:hover .card__tilt, .card.in-slot.is-pointed .card__tilt { transform: translateY(-8%); transition: transform .5s var(--ease-out); }

/* The shadow rides with the reel, so no flat silhouette remains behind a spinning card. */
.card__tilt::before, .card__rotor::before {
  content: ""; position: absolute; inset: 3% 4% -1%; z-index: -1; border-radius: 4cqw; pointer-events: none;
  box-shadow: 0 4cqw 10cqw -2cqw rgba(20,20,20,.26);
}
.card.is-hero:has(.card__rotor) .card__tilt::before { content: none; }
.card.in-slot .card__tilt::before { box-shadow: 0 2cqw 5cqw -2cqw rgba(20,20,20,.2); }

/* ── The trading card. Frame: brushed foil (silver for brands, gold for Austin) with a travelling rainbow. ── */
.card__face {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate; border-radius: 3.6cqw; padding: 2.4cqw;
  background: url(assets/h/foil-silver.webp) 0 0 / 60cqw, #c9ccd1;
  box-shadow: inset 0 0 0 .22cqw rgba(255,255,255,.6), inset 0 0 0 .6cqw rgba(0,0,0,.1), 0 .8cqw 1.6cqw -.4cqw rgba(20,20,20,.18);
}
.card[data-foil="gold"] .card__face { background: url(assets/h/foil-gold.webp) 0 0 / 60cqw, #c8a14b; }
.card__rainbow, .k-spec {
  position: absolute; pointer-events: none;
  background: repeating-linear-gradient(118deg, #ff7a9a 0%, #ffd36e 4%, #9bf5a0 8%, #74dcff 12%, #a593ff 16%, #ff86e0 20%, #ff7a9a 24%);
}
.card__rainbow { inset: -40%; z-index: 0; mix-blend-mode: color; opacity: .62; }
.card[data-foil="gold"] .card__rainbow { opacity: .4; }

.card__panel {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  padding: 3.6cqw 4.2cqw 2.6cqw; border-radius: 1.8cqw;
  background: var(--p1); color: var(--cink); font: 400 2.5cqw/1.3 var(--f); letter-spacing: -.005em;
  box-shadow: 0 0 0 .18cqw rgba(0,0,0,.3);
}
.card__panel p { margin: 0; }
.c-paper {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; mix-blend-mode: overlay; opacity: .15;
  background: url(assets/h/paper-xn.webp) 0 0 / 64cqw, url(assets/h/paper-yn.webp) 0 0 / 64cqw; background-blend-mode: overlay;
}

/* head: kind, name, then the figure a card would print as HP */
.k-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; column-gap: 2.2cqw; }
.k-kicker { grid-column: 1 / -1; margin-bottom: 1.1cqw !important; font: 600 2.3cqw/1 var(--f); opacity: .74; }
.k-name { margin: 0; min-width: 0; font: 800 7.4cqw/.9 var(--f); letter-spacing: -.05em; white-space: nowrap; overflow: hidden; }
.k-hp { padding-bottom: .3cqw; font: 800 4.4cqw/1 var(--f); letter-spacing: -.035em; white-space: nowrap; color: var(--cacc); font-variant-numeric: tabular-nums; }
.k-hp small { font: 600 2.1cqw/1 var(--f); letter-spacing: 0; color: var(--cink); opacity: .74; }
.k-type { align-self: center; display: grid; place-items: center; width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: var(--cink); }
.k-type svg, .k-cost svg { width: 56%; height: 56%; fill: none; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.k-type svg { stroke: var(--p1); }

/* art window: three depth layers, each with its own foil; glitter where the light falls */
.k-art {
  position: relative; flex: none; margin-top: 2.6cqw; aspect-ratio: 1000 / 688; overflow: hidden; isolation: isolate;
  border-radius: .8cqw; background: color-mix(in srgb, var(--cink) 20%, var(--p1));
  box-shadow: 0 0 0 .45cqw var(--cink);
}
.k-art > .k-l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-d { position: absolute; left: -4%; top: -4%; width: 108%; height: 108%; isolation: isolate; }
.k-d .k-l { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-foil {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; mix-blend-mode: color-dodge; opacity: .92;
  -webkit-mask: var(--foil) 0 0 / 100% 100% no-repeat; mask: var(--foil) 0 0 / 100% 100% no-repeat;
}
.k-spec { inset: -30%; filter: saturate(1.15); }
.k-foil::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; background: var(--etch, none); }
/* blend groups are isolated explicitly: Chrome otherwise lets the multiply inside reach the art below */
.k-glit { position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; background: url(assets/h/glitter.webp) 0 0 / 40cqw; }
.k-spot { position: absolute; inset: -60%; mix-blend-mode: multiply; background: radial-gradient(circle at 50% 50%, #bbb 0%, #555 7%, #000 17%); }
.card__glare {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none; mix-blend-mode: overlay; opacity: .5;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.8) 0%, rgba(255,255,255,.28) 13%, rgba(0,0,0,.16) 36%, rgba(0,0,0,0) 58%);
}

/* The supplied full-card prints retain their exact proportions and original borders.
   Only transparent reflection sheets move; the printed illustration stays rigid. */
.stage__card { height: auto; aspect-ratio: var(--card-ratio, .716); }
.card__face.is-image {
  padding: 0; background: transparent; border-radius: 5cqw;
  box-shadow: 0 .22cqw 0 #b4b2b8, 0 .5cqw 0 #77757b, 0 .8cqw 1.6cqw -.4cqw rgba(20,20,20,.18);
}
.card__image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
/* One normal-alpha sheen replaces nested masks, blend modes and oversized sheets. */
.card__sheen {
  position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(118deg, transparent 32%, #bcefff12 43%, #ffffff40 49%, #f0c3ff18 54%, transparent 65%);
}
/* the etched pattern each foil is struck with */
.card[data-etch="rays"]    { --etch: repeating-conic-gradient(from 0deg at 74.2% 38.1%, #fff 0deg 2.2deg, #5c5c5c 2.2deg 4.5deg); }
.card[data-etch="diamond"] { --etch: repeating-linear-gradient(45deg, #fff 0 1.1cqw, #6a6a6a 1.1cqw 1.4cqw), repeating-linear-gradient(-45deg, #fff 0 1.1cqw, #6a6a6a 1.1cqw 1.4cqw); }
.card[data-etch="star"]    { --etch: repeating-conic-gradient(from 0deg at 74.4% 31.7%, #fff 0deg 1.4deg, #555 1.4deg 3deg); }
.card[data-etch="rings"]   { --etch: repeating-radial-gradient(circle at 50% 75.6%, #fff 0 .9cqw, #5e5e5e .9cqw 1.25cqw); }
.card[data-etch="tiles"]   { --etch: repeating-linear-gradient(0deg, #fff 0 1.6cqw, #666 1.6cqw 1.85cqw), repeating-linear-gradient(90deg, #fff 0 1.6cqw, #666 1.6cqw 1.85cqw); }
.card[data-etch="diamond"] .k-foil::after, .card[data-etch="tiles"] .k-foil::after { background-blend-mode: multiply; }

.k-strip { display: flex; gap: 1.8cqw; margin-top: 2cqw !important; font: 600 2.2cqw/1.2 var(--f); white-space: nowrap; overflow: hidden; }
.k-strip span { font-weight: 800; color: var(--cacc); font-variant-numeric: tabular-nums; }

/* moves: each figure set like an attack, its cost an energy disc */
.k-moves { list-style: none; margin: 1.6cqw 0 0; padding: 0; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.k-move {
  display: grid; grid-template-columns: 5.2cqw minmax(0, 1fr) auto; column-gap: 2.2cqw; align-items: center;
  padding: 1.4cqw 0; border-top: .18cqw solid color-mix(in srgb, var(--cink) 24%, transparent);
}
.k-move:first-child { border-top: 0; }
.k-cost { grid-row: 1 / span 2; display: grid; place-items: center; width: 5.2cqw; height: 5.2cqw; border-radius: 50%; box-shadow: inset 0 0 0 .34cqw var(--cink); }
.k-cost svg { stroke: var(--cink); }
.k-mname { grid-column: 2; min-width: 0; font: 800 3.9cqw/1.05 var(--f); letter-spacing: -.03em; }
.k-val { grid-column: 3; grid-row: 1 / span 2; font: 800 6.6cqw/.9 var(--f); letter-spacing: -.05em; color: var(--cacc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-mtext { grid-column: 2; margin-top: .55cqw !important; font: 400 2.3cqw/1.3 var(--f); opacity: .8; }
.k-move.is-ability { grid-template-columns: auto minmax(0, 1fr); row-gap: .2cqw; }
.k-tag { grid-row: 1; padding: .9cqw 1.5cqw; border-radius: 99px; background: var(--cacc); color: var(--p1); font: 800 2.2cqw/1 var(--f); }
.is-ability .k-mtext { grid-column: 1 / -1; margin-top: 1cqw !important; }

.k-foot { margin-top: 1.4cqw !important; padding-top: 1.6cqw; border-top: .3cqw solid var(--cink); font: 600 2.3cqw/1.3 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-foot span { margin-right: 1.6cqw; font-weight: 800; color: var(--cacc); }
.k-flavour { margin-top: 1.6cqw !important; padding: 1.4cqw 2cqw; font: 500 2.4cqw/1.35 var(--f); box-shadow: inset 0 0 0 .2cqw color-mix(in srgb, var(--cink) 38%, transparent); border-radius: .6cqw; }
.k-set { display: flex; justify-content: space-between; gap: 2cqw; margin-top: 1.3cqw !important; font: 500 1.9cqw/1.2 var(--f); opacity: .66; }
.k-set span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-set span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Full art (Austin): after a special illustration rare. The art fills the card; type sits on a pale veil. ── */
.card__panel.is-full { --pv: #1c1033; padding: 0; background: #2a1259; color: var(--pv); }
.is-full > .k-art { position: absolute; inset: 0; z-index: 0; margin: 0; aspect-ratio: auto; border-radius: inherit; box-shadow: none; background: #2a1259; }
.is-full > .k-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247,242,255,.86) 0%, rgba(247,242,255,.55) 9%, rgba(247,242,255,0) 18%),
    linear-gradient(0deg, rgba(247,242,255,.92) 0%, rgba(247,242,255,.8) 24%, rgba(247,242,255,.45) 34%, rgba(247,242,255,0) 43%);
}
.is-full > .k-head, .is-full > .k-moves, .is-full > .k-wrr, .is-full > .k-set { position: relative; z-index: 2; }
.is-full .k-head { padding: 3cqw 4.4cqw 0; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 2cqw; }
.k-stage {
  grid-column: 1 / -1; justify-self: start; margin-bottom: 1.2cqw; padding: .75cqw 1.8cqw .7cqw; border-radius: 99px;
  font: 800 2cqw/1 var(--f); color: #2b2440; background: linear-gradient(180deg, #f1eef6, #bdb7c9);
  box-shadow: inset 0 0 0 .2cqw rgba(255,255,255,.7), 0 .2cqw .5cqw rgba(40,20,70,.2);
}
.is-full .k-name { font: 800 8.2cqw/.92 var(--f); letter-spacing: -.05em; color: var(--pv); text-shadow: 0 0 1.4cqw rgba(255,255,255,.65); }
.is-full .k-hp { padding: 0; display: flex; align-items: center; gap: .8cqw; font: 800 3cqw/1 var(--f); color: var(--pv); }
.is-full .k-hp small { font: 800 2.6cqw/1 var(--f); color: var(--pv); opacity: 1; }
.k-sub { grid-column: 1 / -1; margin-top: .9cqw !important; font: 600 2.4cqw/1.2 var(--f); color: color-mix(in srgb, var(--pv) 78%, transparent); }
.k-energy {
  flex: none; display: inline-grid; place-items: center; width: 6.6cqw; height: 6.6cqw; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d7b3ff 0%, #8a4fd6 46%, #4b1e8a 100%);
  box-shadow: 0 0 0 .4cqw #fff, 0 .4cqw 1cqw rgba(40,10,80,.35);
}
.k-energy svg { width: 64%; height: 64%; fill: none; stroke: #fff; stroke-width: 2.3; }
.k-energy svg circle { fill: #fff; stroke: none; }
.is-full .k-moves { margin: auto 0 0; padding: 0 4.4cqw; flex: none; display: block; }
.is-full .k-move { grid-template-columns: auto minmax(0, 1fr); column-gap: 2.8cqw; row-gap: .5cqw; padding: 1.9cqw 0; border: 0; }
.k-costs { grid-row: 1 / span 2; display: flex; gap: .9cqw; }
.k-costs .k-energy { width: 5cqw; height: 5cqw; box-shadow: 0 0 0 .3cqw #fff, 0 .3cqw .7cqw rgba(40,10,80,.3); }
.is-full .k-mname { grid-column: 2; font: 800 5.6cqw/1 var(--f); letter-spacing: -.035em; color: var(--pv); }
.is-full .k-mtext { grid-column: 2; margin: 0 !important; font: 500 2.65cqw/1.25 var(--f); color: var(--pv); opacity: .86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-wrr {
  display: flex; justify-content: space-between; gap: 2cqw; margin: 1cqw 4.4cqw 0 !important; padding-top: 1.5cqw;
  border-top: .25cqw solid color-mix(in srgb, var(--pv) 45%, transparent); font: 600 2.1cqw/1 var(--f); color: var(--pv);
}
.k-wrr span, .k-set span { display: inline-flex; align-items: center; }
.k-ph { display: inline-block; width: 6cqw; height: 2.6cqw; margin-left: 1cqw; border-radius: .7cqw; border: .2cqw dashed currentColor; opacity: .45; }
.is-full .k-set { margin: 1.4cqw 4.4cqw 2.8cqw !important; display: flex; justify-content: space-between; font: 700 2.1cqw/1 var(--f); color: var(--pv); opacity: .8; }
.is-full .k-set .k-ph { margin-left: 0; }
.card[data-etch="swirl"] { --etch: repeating-radial-gradient(circle at 50% 41%, #fff 0 .7cqw, #777 .7cqw .95cqw); }
.card[data-etch="swirl"] .card__rainbow { opacity: .7; }
@container (max-width: 320px) {
  .is-full .k-mtext, .k-wrr, .is-full .k-set, .k-sub { display: none; }
}
@container (max-width: 220px) {
  .k-stage, .is-full .k-hp { display: none; }
  .is-full .k-name { font-size: 10cqw; }
  .is-full .k-mname { font-size: 7cqw; }
}

/* only the selected hero carries compositor layers for its moving parts */
/* The browser can release card layers when their transforms settle. */

@container (max-width: 320px) {
  .k-mtext, .k-set, .k-flavour, .k-strip { display: none; }
  .k-move { padding: 2cqw 0; }
}
@container (max-width: 220px) {
  .k-kicker, .k-foot, .k-hp small, .k-tag { display: none; }
  .is-ability .k-mname { grid-column: 1 / -1; }
  .k-mname { font-size: 5cqw; }
  .k-val { font-size: 8cqw; }
}

/* ── Project page (level 3) ─────────────── */
.sub {
  position: fixed; inset: 0; z-index: 7; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-io), visibility 0s .5s;
}
body[data-level="3"] .sub { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-io), visibility 0s; }
body[data-level="3"] { overflow: hidden; }
.sub__grid {
  display: grid; grid-template-columns: var(--media-w) minmax(0, 1fr); column-gap: calc(var(--text-x) - var(--media-w));
  padding: var(--stage-y) var(--pad) 18vh; align-items: start;
}
.sub__hero { position: sticky; top: calc(var(--stage-y) - 2vh); }
.sub__hero .row__media { width: 100%; }
.sub__hero .row__media > img { cursor: default; }
.sub__copy { min-width: 0; font: 400 13px/1.3 var(--f); }
.sc__eyebrow { margin: 0 0 1.6em; color: var(--mute); }
.sc__title { margin: 0; max-width: 12em; font: 700 clamp(28px, 2.9vw, 52px)/1.04 var(--f); letter-spacing: -.028em; text-wrap: balance; }
.sc__lede { margin: 1.1em 0 0; max-width: 26em; font: 400 clamp(15px, 1.18vw, 19px)/1.42 var(--f); color: var(--mute); }
.sc__sections { margin: 9vh 0 0; padding: 0; list-style: none; }
.sc__sec { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); padding: 2.2em 0 2.6em; border-top: 1px solid var(--faint); margin-left: calc(var(--lab) * -1); }
.sc__lab { color: var(--mute); padding-top: .45em; }
.sc__h { margin: 0; max-width: 18em; font: 700 clamp(18px, 1.5vw, 25px)/1.18 var(--f); letter-spacing: -.016em; }
.sc__p { margin: .9em 0 0; max-width: 31em; font: 400 clamp(15px, 1.1vw, 18px)/1.45 var(--f); color: var(--soft); }
.sc__p + .sc__p { color: var(--mute); }
.sc__bullets { padding-left: 1.2em; list-style: disc; }
.sc__bullets li + li { margin-top: .8em; }
.sc__bullets li::marker { color: #008e4c; }
.sc__media { margin-top: 2em; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
.sc__media::-webkit-scrollbar { display: none; }
.sc__media figure { margin: 0; flex: none; height: min(30vh, 300px); overflow: hidden; border-radius: calc(var(--radius) * .5); background: #fff; box-shadow: 0 0 0 1px var(--faint); }
.sc__media img { height: 100%; width: auto; cursor: default; }
.flyer { position: fixed; z-index: 12; object-fit: cover; pointer-events: none; }

.back {
  position: fixed; z-index: 8; left: var(--pad); top: var(--top-y);
  display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 700 13px/1.25 var(--f);
  opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity .5s var(--ease-io), transform .7s var(--ease-out);
}
.back:hover span { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body[data-level="3"] .back { opacity: 1; transform: none; pointer-events: auto; transition-delay: .3s; }

/* ── Viewer ─────────────────────────────── */
.viewer { position: fixed; inset: 0; z-index: 20; overflow: hidden; display: grid; place-items: center; touch-action: none; background: color-mix(in srgb, var(--bg) 92%, transparent); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-io); }
.viewer.is-open { opacity: 1; pointer-events: auto; }
.viewer__frame { position: relative; }
.illustrative-label {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 88%;
  color: #27322e;
  font: 700 clamp(16px, 2.8vw, 40px)/1.1 Helvetica, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .025em;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.story-showcase__screen--phone .illustrative-label { font-size: clamp(11px, 1.6vw, 20px); }
.viewer__illustrative { display: none; font-size: clamp(20px, 5vw, 64px); }
.viewer[data-illustrative="true"] .viewer__illustrative { display: block; }
.viewer__frame img { width: 100%; height: 100%; transform-origin: 50% 50%; border-radius: 10px; background: #fff; box-shadow: 0 40px 90px -20px rgba(0,0,0,.45); cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.viewer.is-zoomed .viewer__frame img { cursor: grab; }
.viewer.is-panning .viewer__frame img { cursor: grabbing; }
.viewer__bar { position: fixed; left: 50%; bottom: 3.4vh; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; background: var(--rim); color: var(--panel-ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); font: 400 13px/1 var(--f); }
.viewer__bar button { min-width: 34px; height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: none; cursor: pointer; font: inherit; }
.viewer__bar button[data-z] { font: 400 18px/1 var(--f); }
.viewer__bar button:hover { background: var(--control-hover); }
.viewer__close { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); margin-left: 6px; }
.viewer__pct { min-width: 48px; text-align: center; color: var(--control-muted); }

@media (max-height: 700px) and (min-width: 761px) {
  :root { --picker-y: 12vh; --stage-y: 24vh; --stage-b: 6vh; }
  .brand-content { gap: 20px; }
  .rows { gap: 20px; }
  .row__title { font-size: clamp(21px, 2vw, 28px); }
  .row__eyebrow { margin-bottom: 5px; }
  .row__p { margin-top: 6px; font-size: 14px; }
}

/* ── Mobile: a compact brand cover and every project within the same viewport ── */
@media (max-width: 760px) {
  :root { --pad: 22px; --top-y: 18px; --slot-h: 36px; --picker-y: 62px; --col-gap: 24px; --lab: 44px;
          --hero-w: min(24vw, 13svh); --hero-h: calc(var(--hero-w) / .716); --media-w: calc(100vw - 44px); --radius: 18px;
          --thumb-w: 76px; --row-gap: 20px; }
  .me__role { display: none; }
  .top__right { gap: 16px; position: static; }
  .picker { gap: 8px; }
  .picker__label { display: none; }
  .cover { grid-template-rows: var(--hero-h) minmax(0, 1fr); align-items: center; row-gap: clamp(26px, 4svh, 44px); padding: 132px var(--pad) 88px; }
  .brand-content { display: contents; }
  .stage__card { grid-column: 1; grid-row: 1; margin: 0; }
  .story { grid-column: 2; grid-row: 1; }
  .mast { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .mast__no { font-size: 38px; }
  .mast__meta { font-size: 12px; }
  .rows { grid-column: 1 / -1; grid-row: 2; height: 100%; gap: 22px; }
  .row__title { font-size: 22px; }
  .row__eyebrow { font-size: 11px; margin-bottom: 6px; }
  .row__eyebrow > span { margin-right: 8px; }
  .row__p { font-size: 14px; margin-top: 7px; }
  .next { bottom: 20px; gap: 12px; }
  .next a { gap: 8px; }
  .next__hint { display: none; }
  .sub__grid { display: block; padding: 64px var(--pad) 14vh; }
  .sub__hero { position: relative; top: 0; }
  .sub__copy { padding-top: 30px; }
  .sc__sec { margin-left: 0; grid-template-columns: 1fr; row-gap: 10px; }
  .back { top: 22px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  :root { --pad: 18px; --hero-w: 66px; --thumb-w: 64px; --row-gap: 16px; --slot-h: 30px; --picker-y: 58px; }
  .cover { padding-top: 108px; padding-bottom: 64px; row-gap: 22px; }
  .rows { gap: 16px; }
  .mast { gap: 10px; }
  .mast__no { font-size: 32px; }
  .row__title { font-size: 18px; }
  .row__eyebrow { display: none; }
  .row__p { font-size: 13px; margin-top: 6px; }
  .next { bottom: 14px; }
}

@media (max-height: 500px) and (min-width: 600px) {
  :root { --pad: 6vw; --picker-y: 19vh; --slot-h: 32px; --stage-y: 26vh; --hero-h: 54vh; --hero-w: calc(var(--hero-h) * .716); --thumb-w: 76px; --col-gap: 8vw; --row-gap: 20px; }
  .cover { grid-template-rows: 1fr; padding: var(--stage-y) var(--pad) 14svh; }
  .brand-content { display: flex; height: 100%; gap: 12px; }
  .stage__card, .story { grid-column: auto; grid-row: auto; }
  .mast { display: grid; grid-template-columns: calc(var(--thumb-w) + var(--row-gap)) minmax(0, 1fr); gap: 0; align-items: last baseline; }
  .mast__no { font-size: 32px; }
  .rows { height: auto; gap: 14px; }
  .row__title { font-size: 20px; }
  .row__eyebrow { display: none; }
  .row__p { font-size: 12px; margin-top: 4px; }
  .next { bottom: 3svh; }
}

/* Temporary project media: plain squares, with the original asset data retained. */
.row__media.is-placeholder, .sc__media .is-placeholder { background: var(--placeholder); }
.sub__hero .row__media:is(.is-placeholder, .is-demo) { width: min(300px, 100%); aspect-ratio: 1; }
.sc__media .is-placeholder { width: 300px; max-width: 100%; height: auto; aspect-ratio: 1; box-shadow: none; }
.sc__sec > div { min-width: 0; }
.sc__media { max-width: 100%; }
.row .row__media:is(.is-placeholder, .is-demo) { aspect-ratio: 1; }

@media (min-width: 761px) {
  :root { --pad: 5vw; --picker-y: 82px; --slot-h: 40px; --hero-h: 88px; --hero-w: calc(var(--hero-h) * .716); --stage-y: 160px; }
  .me__role { left: 38%; }
  .picker__label { left: calc(5 * var(--slot-w) + 72px); }
  .cover { grid-template-columns: 1fr; grid-template-rows: 88px minmax(0, 1fr); row-gap: 32px; padding: 160px var(--pad) 105px; align-items: start; }
  .stage__card { position: absolute; left: var(--pad); top: 160px; }
  .brand-content { display: contents; }
  .story { grid-column: 1; grid-row: 1; margin-left: calc(var(--hero-w) + 32px); align-self: center; }
  .mast { grid-template-columns: 70px minmax(0, 1fr); }
  .mast__no { font-size: 48px; }
  .rows { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(var(--project-count), minmax(0, 400px)); justify-content: space-between; align-content: center; align-items: start; gap: 24px; height: 100%; }
  .row { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .row .row__media:is(.is-placeholder, .is-demo) { flex: none; width: min(400px, 100%, calc(100svh - 490px)); }
  .row__title { font-size: clamp(22px, 1.9vw, 30px); }
  .row__eyebrow { margin-bottom: 7px; }
  .row__p { font-size: 14px; margin-top: 8px; }
}

@media (max-width: 760px) and (min-height: 701px) {
  :root { --thumb-w: 112px; --row-gap: 18px; }
  .row__title { font-size: 20px; }
  .row__p { font-size: 13px; }
}

@media (max-height: 500px) and (min-width: 600px) {
  :root { --hero-h: 46px; --hero-w: calc(var(--hero-h) * .716); --slot-h: 24px; --picker-y: 52px; }
  .cover { display: grid; grid-template-columns: 1fr; grid-template-rows: 46px minmax(0, 1fr); padding: 86px var(--pad) 56px; row-gap: 18px; }
  .stage__card { position: absolute; left: var(--pad); top: 86px; }
  .brand-content { display: contents; }
  .story { grid-column: 1; grid-row: 1; margin-left: calc(var(--hero-w) + 20px); align-self: center; }
  .mast { grid-template-columns: 45px minmax(0, 1fr); }
  .mast__no { font-size: 30px; }
  .rows { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(var(--project-count), minmax(0, 1fr)); height: 100%; gap: 20px; align-content: center; align-items: start; }
  .row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .row .row__media:is(.is-placeholder, .is-demo) { width: min(400px, 100%, calc(100svh - 280px)); }
  .row__title { font-size: 17px; }
  .row__p { font-size: 12px; margin-top: 5px; }
}

/* Project blocks: image left, copy right, one complete project per row. */
html { height: auto; overflow-y: auto; }
body { height: auto; min-height: 100svh; overflow: visible; }
.page { height: auto; min-height: 100svh; }
.cover { height: auto; min-height: 0; grid-template-rows: auto auto; padding-bottom: 0; row-gap: 56px; }
.rows { display: flex; flex-direction: column; height: auto; gap: clamp(144px, calc(14vh + 32px), 208px); align-items: stretch; }
.row { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: clamp(32px, 7vw, 112px); align-items: center; }
.row .row__media:is(.is-placeholder, .is-demo) { width: 400px; height: 400px; }
.row__text { max-width: 440px; }
.next { position: relative; left: auto; right: auto; bottom: auto; margin: 72px var(--pad) 36px; }
@media (min-width: 761px) {
  .story { min-height: 88px; }
  .row__title { font-size: clamp(26px, 2.3vw, 36px); }
  .row__p { font-size: 16px; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: min(40vw, 240px) minmax(0, 1fr); column-gap: 20px; }
  .row .row__media:is(.is-placeholder, .is-demo) { width: 100%; height: auto; }
  .rows { gap: 40px; }
  .next { margin-top: 48px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .story { min-height: 46px; }
  .cover { grid-template-rows: auto auto; }
}

/* Brand card anchors the left column; project blocks cascade on its right. */
@media (min-width: 761px), (min-width: 600px) and (max-height: 500px) {
  :root {
    --hero-w: calc(min(clamp(200px, 31vw, 450px), calc(78svh * .716)) * .65);
    --hero-h: calc(var(--hero-w) / .716);
    --col-gap: 9vw;
    --project-image: clamp(120px, calc(100vw - 760px), 300px);
  }
  .cover { grid-template-columns: var(--hero-w) minmax(0, 1fr); grid-template-rows: auto; column-gap: var(--col-gap); align-items: start; }
  .stage__card { position: sticky; left: auto; top: 36px; grid-column: 1; grid-row: 1; }
  .brand-content { display: flex; flex-direction: column; height: auto; min-width: 0; grid-column: 2; grid-row: 1; gap: 40px; }
  .story { margin: 0; min-height: 0; align-self: stretch; }
  .rows { width: 100%; }
  .row { grid-template-columns: var(--project-image) minmax(0, 1fr); column-gap: clamp(24px, 2.8vw, 44px); }
  .row .row__media:is(.is-placeholder, .is-demo) { width: var(--project-image); height: var(--project-image); }
  .row__title { font-size: clamp(22px, 2vw, 30px); }
  .row__p { font-size: 15px; }
}

@media (max-width: 760px) and (min-height: 501px) {
  :root { --hero-w: calc(min(32vw, 180px) * .65); --hero-h: calc(var(--hero-w) / .716); }
}

/* A strong grotesque hierarchy: near-black type, crisp brand accents, generous leading. */
.me__name { font-size: 16px; font-weight: 800; letter-spacing: -.035em; }
.top__btn { font-size: 14px; }
.mast { grid-template-columns: 112px minmax(0, 1fr); }
.mast__no { font-size: 88px; font-weight: 800; letter-spacing: -.065em; color: var(--acc); }
.mast__meta { font-size: 15px; line-height: 1.5; color: var(--meta-ink); }
.mast__meta b { display: inline-block; font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.mast__meta .swatch { background: var(--acc); }
.row__eyebrow { margin-bottom: 12px; font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--eyebrow-ink); }
.row__eyebrow > span { color: var(--acc); font-weight: 800; }
.row__title { font-size: clamp(28px, 3.2vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.row__p { margin-top: 16px; font-size: 18px; line-height: 1.5; letter-spacing: -.015em; color: var(--body-ink); }
.row__highlights { padding-left: 1.05em; }
.row__highlights li { padding-left: .15em; }
.row__highlights li + li { margin-top: .6em; }
.next__name { font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.sc__title { max-width: 13em; font-size: clamp(36px, 4vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.05em; }
.sc__h { font-size: clamp(22px, 1.9vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.sc__lede, .sc__p { color: var(--body-ink); font-size: 18px; line-height: 1.55; }
.sc__lab {
  color: #008e4c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}
@media (max-width: 760px) {
  .mast__no { font-size: 60px; }
  .mast__meta { font-size: 13px; }
  .mast__meta b { font-size: 21px; }
  .row__title { font-size: 24px; line-height: 1.06; }
  .row__eyebrow { font-size: 11px; margin-bottom: 8px; }
  .row__p { font-size: 15px; line-height: 1.45; margin-top: 10px; }
  .next__name { font-size: 13px; }
  .sc__title { font-size: 38px; }
  .sc__lede, .sc__p { font-size: 16px; }
}
@media (max-width: 360px) {
  .row__title { font-size: 20px; }
  .row__p { font-size: 14px; }
  .mast__meta b { font-size: 19px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .mast { grid-template-columns: 76px minmax(0, 1fr); }
  .mast__no { font-size: 60px; }
  .row__title { font-size: 28px; }
  .row__p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .card.is-born .card__sweep { animation: none; }
  .row.is-in .row__media, .row.is-in .row__text > * { animation: none; opacity: 1; }
}

/* Live demos occupy the same responsive squares as the project artwork. */
.row__media.is-demo { aspect-ratio: 1; border-radius: 9.2%; background: #000; overflow: visible; -webkit-mask-image: none; }
.row__media.is-demo:focus-within { outline: 3px solid var(--acc); outline-offset: 4px; }
.row__media.is-demo > :focus-visible { outline: none; }

/* Continuous brands: the document, rather than a gesture handler, owns scrolling. */
html { height: auto; overflow-y: auto; overflow-x: clip; overscroll-behavior-y: auto; }
body { height: auto; min-height: 100svh; overflow: visible; overscroll-behavior-y: auto; }
html:has(body[data-level="3"]) { overflow-y: hidden; }
.page { height: auto; min-height: 100svh; padding: 160px 0 96px; }
.cover { height: auto; min-height: calc(100svh - 72px); padding: 0 var(--pad); margin: 0 0 140px; scroll-margin-top: 36px; }
.cover:last-child { margin-bottom: 0; min-height: calc(100svh - 36px); }
.row__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.row__eyebrow > span { margin-right: 0; color: inherit; font-weight: inherit; }
.row__identity { display: inline-flex; align-items: center; gap: 12px; }
.row__number { color: var(--acc); font-weight: 800; font-variant-numeric: tabular-nums; }
.row__brand { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--ink); font-weight: 600; }
.row__logo { display: block; width: 16px; height: 16px; flex: none; object-fit: contain; }
.row__brand-logos { display: inline-flex; flex: none; align-items: center; isolation: isolate; }
.row__logo-badge { position: relative; display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 1px; border: 1px solid #d8d8d8; border-radius: 50%; overflow: hidden; background: #fff; }
.row__logo-badge + .row__logo-badge { margin-left: -2px; }
@media (max-width: 760px) {
  .row__identity { gap: 8px; }
  .row__logo { width: 14px; height: 14px; }
  .row__logo-badge { width: 18px; height: 18px; }
}
.stage__card > .card { width: 100%; height: 100%; }
.card.in-slot[aria-current="true"] { opacity: 1; filter: none; }
.row .row__media { flex: none; }
.js .row .row__media, .js .row .row__text > * { opacity: 1; animation: none; }
.sub__hero .row__media:is(.is-placeholder, .is-demo) { width: min(450px, 100%); aspect-ratio: 1; }
@media (min-width: 761px), (min-width: 600px) and (max-height: 500px) {
  :root { --project-image: clamp(120px, calc(100vw - 990px), 450px); }
  .row__title { font-size: clamp(26px, 2.5vw, 46px); }
  .stage__card { align-self: start; }
}
@media (max-width: 760px) and (min-height: 501px) {
  .page { padding-top: 132px; padding-bottom: 64px; }
  .cover { min-height: 0; margin-bottom: 96px; }
}
@media (max-width: 760px) and (max-height: 700px) and (min-height: 501px) {
  .page { padding-top: 108px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .page { padding-top: 86px; }
  .cover { margin-bottom: 80px; }
}

/* Mobile media and copy share the brand card's page gutter. */
@media (max-width: 760px) {
  :root { --hero-w: calc(min(32vw, 180px) * .65); --hero-h: calc(var(--hero-w) / .716); }
  .cover {
    grid-template-columns: var(--hero-w) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 40px;
    align-items: center;
  }
  .stage__card { position: relative; top: auto; left: auto; grid-column: 1; grid-row: 1; }
  .brand-content { display: contents; }
  .story { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  .mast { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .rows { grid-column: 1 / -1; grid-row: 2; gap: 128px; width: 100%; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .row .row__media,
  .row .row__media:is(.is-placeholder, .is-demo) {
    width: 100%;
    height: auto;
    margin-inline: 0;
  }
  .row__text { max-width: none; }
  .sub__hero { margin-inline: calc(var(--pad) * -1); }
  .sub__hero .row__media,
  .sub__hero .row__media:is(.is-placeholder, .is-demo) { width: 100%; height: auto; }
}

/* Income film: a square paper stage, with the complete widescreen composition visible. */
.row .row__media.is-film, .sub__hero .row__media.is-film {
  width: min(450px, 100%); height: auto; aspect-ratio: 1; background: #f2f1ec;
}
.row .row__media.is-film { width: var(--project-image); }
.film__label { position: absolute; top: 7%; left: 6%; z-index: 2; font: 600 15px/1.4 var(--f); pointer-events: none; }
.film__label span { display: block; font-size: 12px; font-weight: 400; color: #59595e; }
.film__full { position: absolute; left: 6%; bottom: 7%; z-index: 2; font: 500 12px/1.4 var(--f); text-underline-offset: 3px; }
.row__media.is-film .row__toggle { width: 36px; height: 36px; right: 6%; bottom: 5%; background: #1b1b20; }
.sc__media:has(.is-captioned) { display: block; overflow: visible; }
.sc__media figure.is-captioned { height: auto; width: 100%; background: transparent; border-radius: 0; box-shadow: none; }
.sc__media .is-captioned img { display: block; width: 100%; height: auto; border-radius: 8px; background: #f2f1ec; }
.sc__media figcaption { margin-top: 10px; font: 400 12px/1.5 var(--f); color: var(--mute); max-width: 36em; }
@media (max-width: 760px) {
  .row .row__media.is-film { width: 100%; height: auto; }
  .sub__hero .row__media.is-film { width: 100%; height: auto; }
}

.film__open { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.row__media.is-demo > .row__toggle { z-index: 3; }
.sub__hero .film__open { display: none; }
.sub__hero .row__media { transform-origin: top left; }
/* Fade the paper independently so the live player stays solid during its journey. */
body[data-level="3"] .sub.is-entering { background: transparent; opacity: 1; transition: none; }
.sub.is-entering::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--bg); animation: project-paper-in .65s both; }
@keyframes project-paper-in { from { opacity: 0; } to { opacity: 1; } }
body[data-level="3"] .sub.is-leaving { background: transparent; opacity: 1; visibility: visible; transition: none; pointer-events: none; }
.sub.is-leaving::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--bg); animation: project-paper-out .65s both; }
.sub.is-returned { opacity: 0; visibility: hidden; transition: none; }
.sub.is-leaving ~ .back { opacity: 0; pointer-events: none; transition: opacity .22s; }
.sub.is-returned ~ .back { opacity: 0; transition: none; }
@keyframes project-paper-out { from { opacity: var(--return-paper-opacity, 1); } to { opacity: 0; } }
.film__open:focus-visible { outline: 3px solid var(--acc); outline-offset: -4px; }
.row__media.is-film .row__toggle, .film__full { z-index: 3; }
.film__open:hover ~ .film__label { text-decoration: underline; text-underline-offset: 4px; }

/* Overview films and demos follow the same grid as artwork and copy. */
@media (max-width: 760px) {
  .row .row__media:is(.is-demo, .is-film) {
    width: 100%;
    height: auto;
    margin-inline: 0;
  }
  .sub__hero .row__media:is(.is-demo, .is-film) {
    width: min(100%, calc(100vw - 48px), 360px);
    height: auto;
    margin-inline: auto;
  }
}


/* Selected appearance covers details and viewer controls too. */
  :root[data-mode="dark"] {
    color-scheme: dark;
    --button-bg: #fff;
    --button-ink: #000;
    --bg: var(--paper-dark);
    --ink: #eeede8;
    --acc: var(--accent-dark);
    --body-ink: #c6c7c2;
    --meta-ink: #b8bab8;
    --eyebrow-ink: #a6aaa9;
    --rim: #26282c;
    --panel-ink: var(--ink);
    --panel-muted: #aaaeae;
    --panel-rule: rgba(238,237,232,.14);
    --control-hover: rgba(238,237,232,.08);
    --control-muted: #b8bab8;
    --placeholder: #292c30;
  }
  :root[data-mode="dark"] .cover { --acc: var(--accent-dark); }
  :root[data-mode="dark"] .paper { opacity: .7; }
  :root[data-mode="dark"] .viewer__bar { box-shadow: 0 0 0 1px var(--faint), 0 18px 50px -16px #0009; }
  :root[data-mode="dark"] :is(.row__media.is-placeholder, .sc__media .is-placeholder) { box-shadow: inset 0 0 0 1px var(--faint); }

.row__media.is-film > .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; overflow: hidden; }

/* Project artwork shares the overview's square media grid. */
.row .row__media.is-artwork, .sub__hero .row__media.is-artwork {
  width: min(450px, 100%); height: auto; aspect-ratio: 1; background: #e6e6e6;
}
.row .row__media.is-artwork { width: var(--project-image); }
.row__media.is-artwork > img { object-fit: cover; }
.comparison__layer { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #e6e6e6; opacity: 0; pointer-events: none; transition: opacity 1s ease-in-out; }
.comparison__layer.is-current { opacity: 1; pointer-events: auto; }
.comparison__layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.comparison__layer:focus-visible { outline: 3px solid var(--acc); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .comparison__layer { transition: none; } }
@media (max-width: 760px) {
  .row .row__media.is-artwork, .sub__hero .row__media.is-artwork { width: 100%; }
}

/* CBA: the original screens sit directly on the page, with matching viewports. */
.sc__sec--composed { padding-bottom: 4em; }
.sc__sec--composed > .case-media { grid-column: 1 / -1; }
.sc__media.case-media {
  --case-gap: clamp(12px, 2.5vw, 40px);
  display: block;
  overflow: visible;
  margin-top: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.case-media__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--case-gap);
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
}
.case-media figure.case-media__item {
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.case-media__image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(10px, 1.7vw, 24px);
  background: #f7f7f7;
  cursor: default;
  box-shadow: 0 1px 0 #ffffff25, 0 15px 32px -18px #0007;
}
.case-media .case-media__image img { display: block; width: 100%; height: auto; border-radius: 0; }
.case-media__image:focus-visible { outline: 3px solid var(--acc); outline-offset: 6px; }
.case-media figcaption { margin: 14px 0 0; max-width: none; color: var(--mute); font: 500 13px/1.3 var(--f); }
.case-media--comparison .case-media__image { aspect-ratio: 390 / 700; }
.case-media--comparison .case-media__image img { position: absolute; width: 105%; max-width: none; height: auto; left: -2.5%; top: -1%; }
/* The original channel source includes a handset. Show its complete UI inside the shared viewport. */
.case-media--comparison .case-media__image--channel img { width: 113.56%; left: -6.85%; top: -6.5%; }
.case-media__image--channel::after { content: ''; position: absolute; inset: 0 0 auto; height: 2.5%; background: #fff; pointer-events: none; }
.case-media--comparison .case-media__image--time img { top: 1%; }
.case-media--rewards .case-media__figures { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.case-media--rewards .case-media__image { border-radius: 8px; }
.project-brand-mark { display: block; object-fit: contain; object-position: left center; height: auto; }
.project-brand-mark--row { width: 88px; margin: 0 0 18px; }
.project-brand-mark--case { width: 116px; margin: 0 0 24px; }
:root[data-mode="dark"] .project-brand-mark { filter: brightness(1.75) saturate(.8); }
.case-media--ev-wide .case-media__figures { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1100px; }
.case-media--ev-pair .case-media__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1100px; }
.case-media--ev-responsive .case-media__figures { grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); max-width: 1100px; align-items: center; }
.case-media--ev-wide .case-media__image,
.case-media--ev-pair .case-media__image,
.case-media--ev-responsive .case-media__image { border-radius: 8px; background: #f6f5ef; box-shadow: 0 0 0 1px var(--faint); }
@media (max-width: 760px) {
  .project-brand-mark--row { width: 76px; margin-bottom: 14px; }
  .project-brand-mark--case { width: 96px; margin-bottom: 20px; }
  .case-media--ev-pair .case-media__figures,
  .case-media--ev-responsive .case-media__figures { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .case-media--ev-responsive .case-media__item:last-child { width: min(65%, 280px); margin-inline: auto; }
}
.case-media--profiles .case-media__image,
.case-media--availability .case-media__image,
.case-media--journey .case-media__image { aspect-ratio: 390 / 700; background: #fff; }
/* Separate the original profile montage into equal viewports; full-size viewing keeps the complete artifact. */
.case-media--profiles .case-media__image img { position: absolute; width: 333.04%; max-width: none; height: auto; top: -1.53%; clip-path: inset(0 0 8.15% 0); }
.case-media__image--lenders img { left: -8.14%; }
.case-media__image--lender-times img { left: -117.02%; }
.case-media__image--lender-profile img { left: -224.91%; }
/* Two calendar screens use the same width as each screen in the three-column groups. */
.case-media--availability .case-media__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc((200% - var(--case-gap)) / 3); max-width: calc((1800px - var(--case-gap)) / 3); }
.case-media .case-media__image--calendar img { position: absolute; width: 248.88%; max-width: none; height: auto; left: -146.44%; top: -.6%; }
.case-media .case-media__image--more-times img,
.case-media--journey .case-media__image img { position: absolute; width: 105%; max-width: none; height: auto; left: -2.5%; top: -1%; }
@media (max-width: 760px) {
  .sc__media.case-media { --case-gap: 12px; margin-top: 26px; }
  .case-media__figures { gap: 12px; }
  .case-media figcaption { margin-top: 10px; font-size: 11px; }
  .case-media__image { border-radius: 10px; box-shadow: 0 8px 20px -12px #0007; }
}

/* Austin's profile stays open below his card, directly on the paper. */
.profile-column { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: min(36px, calc(100svh - var(--profile-height, 900px) - 24px)); min-width: 0; }
.profile-column .stage__card { position: relative; top: auto; }
@media (max-width: 760px) {
  .profile-column { display: contents; }
  .about { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .cover[data-brand="ai"] .rows { grid-row: 3; }
}

/* HTML CV reuses the project overlay, paper, typography and native scroll. */
.sub.is-cv .sub__grid { grid-template-columns: minmax(180px, 240px) minmax(0, 840px); gap: clamp(40px, 4vw, 64px); justify-content: center; max-width: 1280px; margin: 0 auto; padding: 104px clamp(24px, 4vw, 64px) 96px; box-sizing: border-box; }
.sub.is-cv .sub__hero { top: 88px; }
.cv-sidebar { font: 400 14px/1.6 var(--f); color: var(--body-ink); }
.cv-portrait { display: block; width: 200px; height: 200px; max-width: 100%; object-fit: cover; object-position: center; margin: 0 0 28px; border-radius: 45% 55% 48% 52% / 54% 43% 57% 46%; }
.cv-sidebar section + section { margin-top: 36px; }
.cv-sidebar h3, .cv-experience > h3 { margin: 0 0 16px; font: 700 14px/1.3 var(--f); color: var(--acc); }
.cv-sidebar p { margin: 6px 0; }
.cv-sidebar a { text-underline-offset: .25em; overflow-wrap: anywhere; }
.cv-sidebar section > a { display: inline-block; margin-top: 10px; }
.cv-education + .cv-education { margin-top: 22px; }
.cv-education h4 { margin: 0; font-weight: 600; color: var(--ink); }
.cv-header .sc__eyebrow { margin-bottom: 16px; }
.cv-header .sc__title { font-size: clamp(44px, 5vw, 72px); font-weight: 800; }
.cv-header .sc__lede { max-width: none; margin-top: 12px; color: var(--body-ink); }
.cv-experience { margin-top: 48px; }
.cv-experience > ol { margin: 0; padding: 0; list-style: none; }
.cv-job { padding: 25px 0 28px; border-top: 1px solid var(--faint); font: 400 15px/1.5 var(--f); }
.cv-job__heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.cv-job h4 { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font: 700 18px/1.3 var(--f); letter-spacing: -.02em; }
.cv-job__logo { display: block; width: 20px; height: 20px; flex: none; object-fit: contain; }
.cv-job__monogram { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border: 1px solid var(--faint); border-radius: 4px; background: var(--control-hover); color: var(--acc); font: 700 9px/1 var(--f); letter-spacing: 0; }
.cv-current { display: block; margin: 0 0 8px 28px; font-size: 12px; color: var(--acc); font-weight: 600; }
.cv-job p { margin: 7px 0 0 28px; }
.cv-role { font-weight: 600; color: var(--ink); }
.cv-role span, .cv-team { font-weight: 400; color: var(--body-ink); }
.cv-date { color: var(--mute); font-size: 13px; }
.cv-points { margin: 18px 0 0 28px; padding-left: 18px; list-style: none; display: grid; gap: 8px; color: var(--body-ink); }
.cv-points li { position: relative; padding-left: 0; }
.cv-points li::before { content: ''; position: absolute; left: -18px; top: .75em; width: 4px; height: 4px; border: 1px solid currentColor; border-radius: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .sub.is-cv .sub__grid { display: flex; flex-direction: column; gap: 36px; padding: 76px var(--pad) 64px; box-sizing: border-box; }
  .sub.is-cv .sub__hero { position: static; margin: 0; order: 2; }
  .sub.is-cv .sub__copy { padding: 0; width: 100%; }
  .cv-experience { margin-top: 36px; }
  .cv-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .cv-portrait { grid-column: 1 / -1; margin-bottom: 0; }
  .cv-sidebar section + section { margin: 0; }
  .cv-sidebar section:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .cv-sidebar { grid-template-columns: 1fr; } }

/* Appearance control: header on desktop, document footer on mobile. */
.theme-control { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--faint); border-radius: 6px; }
.theme-control button { min-height: 28px; padding: 5px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font: 500 12px/18px var(--f); cursor: pointer; }
.theme-control button:hover { background: var(--control-hover); }
.theme-control button[aria-pressed="true"] { background: var(--button-bg); color: var(--button-ink); }
.theme-footer { display: none; }
@media (min-width: 761px) {
  .me__role { max-width: calc(100% - var(--hero-w) - var(--col-gap) - 140px); }
}
@media (max-width: 760px) {
  .top__right { display: none; }
  .theme-footer { position: relative; display: flex; justify-content: flex-end; padding: 0 var(--pad) max(32px, env(safe-area-inset-bottom)); }
  .theme-control button { min-height: 36px; }
  body[data-level="3"] .theme-footer { visibility: hidden; }
}

:root[data-mode="dark"] .cv-job__logo--wpp { filter: brightness(0) invert(1); }

.cv-contact-row { display: flex; align-items: center; gap: 7px; }
.cv-contact-icon { width: 15px; height: 15px; flex: none; color: var(--body-ink); }
.cv-school { display: flex; align-items: center; gap: 7px; }
.cv-school__logo { width: 18px; height: 18px; flex: none; object-fit: contain; }

/* Keep the name and card deck separated by a consistent 40px. */
.me__name { line-height: 20px; }
/* Keep 40px below the complete selector before the first full-size card. */
:root { --picker-y: calc(var(--top-y) + 20px + 40px); }
.picker { top: var(--picker-y); }
.picker__label { bottom: 0; }
.page { padding-top: calc(var(--picker-y) + var(--slot-h) + 40px); }

/* Every project preview uses the booking tile's square frame and corner curve. */
:root { --project-media-radius: 9.2%; }
.row .row__media,
.sub__hero .row__media {
  aspect-ratio: 1;
  border-radius: var(--project-media-radius);
  overflow: hidden;
}
.row__media > :is(.cba-demo, .ev-demo, .film__canvas) { border-radius: inherit; }

/* Supporting enterprise work stays in the brand's project column without a hero. */
.rows { --project-row-gap: clamp(144px, calc(14vh + 32px), 208px); gap: var(--project-row-gap); }
.row.is-compact {
  margin-top: calc(40px - var(--project-row-gap));
}
.row.is-compact .row__text {
  grid-column: 2;
  padding-top: 28px;
  border-top: 1px solid var(--faint);
}
.row.is-compact .row__title { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.row.is-compact .row__p { max-width: 64ch; font-size: 16px; line-height: 1.5; }
.row.is-compact .row__eyebrow { display: flex; }
.about__summary { margin: 0; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.cv-summary { margin: 16px 0 0; max-width: 38em; color: var(--body-ink); font: 400 16px/1.5 var(--f); }
/* Project heroes are 650px squares, shrinking only when their column is narrower. */
:root { --project-image: min(650px, 100%); }
.rows { container-type: inline-size; }
.row .row__media:is(.is-placeholder, .is-demo, .is-film, .is-artwork),
.sub__hero .row__media:is(.is-placeholder, .is-demo, .is-film, .is-artwork) {
  width: min(650px, 100%);
  height: auto;
  aspect-ratio: 1;
}
@container (max-width: 970px) {
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .row.is-compact .row__text { grid-column: 1; }
}
@media (min-width: 761px) {
  .sub:not(.is-cv) .sub__grid {
    grid-template-columns: min(650px, 60%) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 64px);
  }
}
/* Keep the hero and all section labels inside their own columns. */
.sc__lab--illustrated { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 0; }
.sc__pictogram { display: block; flex: none; width: 88px; height: 88px; object-fit: contain; }
@media (max-width: 760px) {
  .sc__pictogram { width: 72px; height: 72px; }
}
.sub:not(.is-cv) .sub__hero { min-width: 0; }
.sub:not(.is-cv) .sc__sec {
  margin-left: 0;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 10px;
}

/* Roadmark product displays: generous space, real screens and quiet depth. */
.sub.is-visual-story .sub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "hero intro" "sections sections";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 0;
  max-width: 1500px;
  margin-inline: auto;
}
.sub.is-visual-story .sub__hero { grid-area: hero; position: static; align-self: start; }
.project-media-placeholder { visibility: hidden; pointer-events: none; }
.project-media-dock {
  position: fixed;
  z-index: 8;
  top: 16px;
  right: 20px;
  width: clamp(176px, 17vw, 228px);
  overflow: hidden;
  border: 1px solid var(--faint);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 16px 50px -16px #0007;
}
.project-media-dock[hidden] { display: none; }
.project-media-dock .film__open { display: none; }
.project-media-dock__bar { display: flex; align-items: center; min-height: 30px; padding: 3px 6px 3px 10px; gap: 2px; }
.project-media-dock__bar > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 10px/1.2 var(--f); }
.project-media-dock__bar button { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: transparent; font: 400 19px/1 var(--f); cursor: pointer; }
.project-media-dock__bar button:hover { background: var(--control-hover); }
.project-media-dock .row__media:is(.is-demo, .is-film) { width: 100%; max-width: none; margin: 0; aspect-ratio: 1; border-radius: 0 0 15px 15px; }
@media (max-width: 760px) {
  .project-media-dock { top: 12px; right: 12px; width: 148px; border-radius: 12px; }
  .project-media-dock__bar { padding-left: 7px; }
  .project-media-dock__bar > span { font-size: 9px; }
}
.sub.is-visual-story .sub__copy { display: contents; }
.visual-story__intro { grid-area: intro; min-width: 0; }
.sub.is-visual-story .sc__sections { grid-area: sections; margin-top: clamp(64px, 9vw, 128px); }
.sub.is-visual-story .sc__sec--showcase {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(36px, 5vw, 80px);
  row-gap: 20px;
  padding: clamp(40px, 5vw, 72px) 0;
}
.sc__sec--showcase > .sc__lab { grid-column: 1; padding-top: 0; }
.sc__sec--showcase > .sc__body { grid-column: 1; }
.sc__sec--showcase .sc__h { max-width: 21em; }
.story-showcase {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  margin: 0;
  align-self: start;
  position: sticky;
  top: 40px;
}
.story-showcase__stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1 / 1.07;
  border-radius: 24px;
  background: radial-gradient(ellipse at 44% 24%, #fff 0%, #f0f2ef 58%, #e2e6e1 100%);
  color: #1c2824;
}
.story-showcase__heading { position: absolute; z-index: 3; top: 7%; left: 8%; right: 8%; pointer-events: none; }
.story-showcase__heading > span { display: block; font: 500 10px/1.3 var(--f); letter-spacing: .14em; color: #5f6c64; }
.story-showcase__heading h4 { margin: 14px 0 0; max-width: 18ch; font: 600 clamp(23px, 2.6vw, 39px)/1.04 var(--f); letter-spacing: -.045em; text-wrap: balance; }
.story-showcase .story-showcase__screen {
  position: absolute;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f6f2;
  box-shadow: 0 3px 8px #1d332b0a, 0 24px 44px -20px #182e294f, 0 50px 70px -45px #16271d66;
  cursor: default;
  transition: translate .35s var(--ease-out), box-shadow .35s;
}
.story-showcase__chrome { display: flex; gap: 3px; align-items: center; height: 19px; padding: 0 7px; background: #eef0ed; border-bottom: 1px solid #1b2c2210; }
.story-showcase__chrome i { flex: none; width: 3px; height: 3px; border-radius: 50%; background: #a5ada7; }
.story-showcase__chrome > span { margin-left: 5px; font: 400 6px/1 var(--f); color: #5f6c64; }
.story-showcase__screen img { display: block; width: 100%; height: auto; }
.story-showcase .story-showcase__screen--board { padding: 5px; border-radius: 4px; background: #fff; border-color: #fff; }
.story-showcase .story-showcase__screen--phone.story-showcase__screen--device { padding: 0; border: 0; border-radius: 0; max-height: none; background: transparent; box-shadow: none; filter: drop-shadow(0 18px 16px #182e2933); }
.story-showcase__screen--main { z-index: 1; top: 29%; left: 6%; width: 86%; transform: rotate(-3deg); }
.story-showcase__screen--detail { z-index: 2; right: -4%; bottom: 7%; width: 67%; transform: rotate(3deg); }
.story-showcase--range .story-showcase__stage { background: radial-gradient(ellipse at 30% 18%, #fff 0%, #edf1e6 55%, #dce4d1 100%); }
.story-showcase--range .story-showcase__screen--main { top: 33%; left: -6%; width: 93%; transform: rotate(-4deg); }
.story-showcase .story-showcase__screen--phone { z-index: 2; top: 24%; right: 5%; width: 27%; border: 5px solid #26322c; border-radius: 25px; transform: rotate(7deg); box-shadow: 0 4px 2px #fff6 inset, 0 25px 45px -16px #20332666; }
.story-showcase .story-showcase__screen--phone.story-showcase__screen--handset {
  --handset-bezel: clamp(4px, .65vw, 8px);
  padding-top: clamp(10px, 1.8vw, 22px);
  border: var(--handset-bezel) solid #202124;
  border-radius: clamp(18px, 2.8vw, 38px);
  max-height: none;
  background: #f7f7f7;
  box-shadow: 0 0 0 1px #6b6d6f, 0 3px 5px #15171955, 0 25px 45px -16px #20332666;
}
.story-showcase__screen--handset::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 49%;
  height: clamp(9px, 1.3vw, 17px);
  border-radius: 0 0 11px 11px;
  background: #17191b;
  transform: translateX(-50%);
  pointer-events: none;
}
.story-showcase__screen--phone .story-showcase__chrome { display: none; }
.story-showcase--phones .story-showcase__screen--phone { top: 31%; width: 39%; max-height: 65%; border-width: 4px; border-radius: 22px; }
.story-showcase--phones .story-showcase__screen--slot-1 { left: 8%; right: auto; transform: rotate(-5deg); }
.story-showcase--phones .story-showcase__screen--slot-2 { right: 5%; top: 35%; transform: rotate(6deg); }
.story-showcase--single-phone .story-showcase__screen--phone { left: 27%; top: 29%; width: 44%; transform: rotate(-3deg); }
.story-showcase--phones-3 .story-showcase__screen--phone { top: 34%; width: 31%; border-radius: 18px; }
.story-showcase--phones-3 .story-showcase__screen--slot-1 { left: -1%; transform: rotate(-6deg); }
.story-showcase--phones-3 .story-showcase__screen--slot-2 { left: 34%; right: auto; top: 30%; transform: rotate(0); }
.story-showcase--phones-3 .story-showcase__screen--slot-3 { right: -1%; transform: rotate(6deg); }
.story-showcase--chapters .story-showcase__stage { background: radial-gradient(ellipse at 36% 24%, #fff 0%, #eef0f1 58%, #dfe5e7 100%); }
.story-showcase__screen--index { z-index: 1; top: 29%; left: 6%; width: 88%; transform: rotate(-2deg); }
.story-showcase__screen--left { z-index: 2; bottom: 10%; left: -8%; width: 68%; transform: rotate(-6deg); }
.story-showcase__screen--right { z-index: 3; bottom: 6%; right: -10%; width: 64%; transform: rotate(6deg); }
.story-showcase--software .story-showcase__stage { background: radial-gradient(ellipse at 30% 15%, #fff 0%, #edf1f0 56%, #d7e2df 100%); }
.story-showcase--software .story-showcase__screen--main { top: 29%; transform: rotate(3deg); }
.story-showcase--software .story-showcase__screen--detail { right: -5%; bottom: 6%; transform: rotate(-4deg); }
.story-showcase figcaption { margin: 16px 3px 0; max-width: 48em; color: var(--mute); font: 400 13px/1.5 var(--f); }
@media (min-width: 1500px) { .story-showcase__heading h4 { font-size: 40px; } }
@media (max-width: 1000px) {
  .sub.is-visual-story .sub__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "intro" "sections"; row-gap: 36px; }
  .sub.is-visual-story .sub__hero { margin-inline: 0; }
  .sub.is-visual-story .sub__hero .row__media { margin-inline: auto; }
  .sub.is-visual-story .sc__sections { margin-top: 24px; }
  .sub.is-visual-story .sc__sec--showcase { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding-block: 40px; }
  .sc__sec--showcase > .sc__lab, .sc__sec--showcase > .sc__body { grid-column: 1; }
  .story-showcase { grid-column: 1; grid-row: auto; position: static; margin-top: 14px; width: min(650px, 100%); justify-self: center; }
  .story-showcase__heading h4 { font-size: clamp(24px, 5vw, 38px); }
  .sc__sec--showcase .sc__h, .sc__sec--showcase .sc__p { max-width: none; }
}
@media (max-width: 450px) {
  .story-showcase__stage { border-radius: 16px; }
  .story-showcase__heading > span { font-size: 8px; }
  .story-showcase__heading h4 { margin-top: 9px; font-size: 25px; max-width: 20ch; }
  .story-showcase .story-showcase__screen--main { top: 33%; }
  .story-showcase:not(.story-showcase--phones) .story-showcase__screen--phone { top: 29%; }
  .story-showcase__chrome { height: 14px; }
  .story-showcase__chrome > span { font-size: 5px; }
  .story-showcase .story-showcase__screen--phone { border-width: 3px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .story-showcase .story-showcase__screen { transition: none; } }

/* Keep research boards complete and separated, including at phone widths. */
.story-showcase--separated-boards { container-type: inline-size; }
.story-showcase--separated-boards .story-showcase__stage {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 5cqw, 32px);
  padding: 8%;
  aspect-ratio: auto;
}
.story-showcase--separated-boards .story-showcase__heading { position: relative; inset: auto; }
.story-showcase--separated-boards .story-showcase__heading h4 { font-size: clamp(23px, 5.4cqw, 39px); }
.story-showcase--separated-boards .story-showcase__screen--board {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  transform: rotate(-1.5deg);
}
.story-showcase--separated-boards .story-showcase__screen--board.story-showcase__screen--detail {
  align-self: flex-end;
  width: 68%;
  transform: rotate(2deg);
}

/* A quiet, sequential display for a three-screen mobile flow. */
.story-showcase--flow { container-type: inline-size; }
.story-showcase--flow .story-showcase__stage {
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 18%, #fffdfb 0%, #f1eeea 62%, #e3dfda 100%);
  color: #242424;
}
.story-showcase--flow .story-showcase__heading { top: 7%; left: 7%; right: 7%; }
.story-showcase--flow .story-showcase__heading > span {
  display: flex; align-items: center; gap: .65em;
  font-size: clamp(7px, 1.5cqw, 10px); letter-spacing: .12em; color: #77716b;
}
.story-showcase--flow .story-showcase__heading > span::before {
  content: ''; width: .55em; height: .55em; border-radius: 50%; background: #c52a30;
}
.story-showcase--flow .story-showcase__heading h4 {
  max-width: 15ch; margin-top: 1.7cqw;
  font-size: clamp(24px, 6.1cqw, 42px); font-weight: 600; line-height: 1.04; letter-spacing: -.055em;
}
.story-showcase--flow.story-showcase--phones .story-showcase__screen--phone {
  top: 34%; width: 27%; max-height: none; aspect-ratio: .48;
  border: max(2px, .65cqw) solid #28292b; border-radius: 3.6cqw;
  background: #fafafa; transform: none;
  box-shadow: 0 0 0 1px #fff9, 0 2px 3px #2423221a, 0 18px 25px -14px #37302a59;
}
.story-showcase--flow.story-showcase--phones .story-showcase__screen--slot-1 { left: 6.5%; right: auto; transform: rotate(-3deg); }
.story-showcase--flow.story-showcase--phones .story-showcase__screen--slot-2 { left: 36.5%; right: auto; top: 30%; }
.story-showcase--flow.story-showcase--phones .story-showcase__screen--slot-3 { left: 66.5%; right: auto; transform: rotate(3deg); }
.story-showcase--flow .story-showcase__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.story-showcase__step {
  position: absolute; top: 94%; width: 29%; display: flex; justify-content: center; gap: .5em;
  font: 500 clamp(7px, 1.55cqw, 11px)/1.2 var(--f); color: #625d57; white-space: nowrap;
}
.story-showcase__step b { color: #b12d32; font-size: .85em; }
.story-showcase__step--1 { left: 5.5%; }
.story-showcase__step--2 { left: 35.5%; }
.story-showcase__step--3 { left: 65.5%; }
.story-showcase__browser {
  position: absolute; inset: 0 0 auto; z-index: 4; height: max(24px, 7cqw);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #2824240d; background: #f4f2ef; color: #8a847e;
}
.story-showcase__browser-controls { position: absolute; left: 3.5%; display: flex; gap: 1cqw; }
.story-showcase__browser-controls i { width: 1.1cqw; height: 1.1cqw; min-width: 4px; min-height: 4px; border-radius: 50%; background: #dfaaa3; }
.story-showcase__browser-controls i:nth-child(2) { background: #dfc79b; }
.story-showcase__browser-controls i:nth-child(3) { background: #aac3ab; }
.story-showcase__browser-title { font: 400 clamp(7px, 1.5cqw, 10px)/1 var(--f); letter-spacing: .015em; }
.story-showcase--flow.story-showcase--browser .story-showcase__stage { aspect-ratio: 1 / 1.14; }
.story-showcase--flow.story-showcase--browser .story-showcase__heading { top: 13%; left: 8%; right: 8%; }
.story-showcase__heading--branded .story-showcase__brand-logo { display: block; width: 5cqw; height: 5cqw; flex: none; object-fit: contain; }
.story-showcase--flow .story-showcase__heading--branded > span { gap: 1.8cqw; }
.story-showcase--flow .story-showcase__heading--branded > span::before { content: none; }
.story-showcase--flow.story-showcase--browser .story-showcase__heading h4 { max-width: 19ch; margin-top: 3cqw; }
.story-showcase--flow.story-showcase--browser .story-showcase__screen--phone {
  top: 39.5%; width: 25%; height: calc(25cqw / .43);
}
.story-showcase--flow.story-showcase--browser .story-showcase__screen--slot-1 { left: 8%; }
.story-showcase--flow.story-showcase--browser .story-showcase__screen--slot-2 { left: 37.5%; top: 37%; }
.story-showcase--flow.story-showcase--browser .story-showcase__screen--slot-3 { left: 67%; }
.story-showcase--flow.story-showcase--browser .story-showcase__step { top: 93%; }
.story-showcase .story-showcase__screen--phone.story-showcase__screen--mobile-header {
  container-type: inline-size; aspect-ratio: auto; max-height: none;
}
.story-showcase--flow .story-showcase__screen--mobile-header,
.story-showcase--workspace .story-showcase__screen--mobile-header { display: flex; flex-direction: column; }
.story-showcase__mobile-content { display: block; position: relative; flex: 1; min-height: 0; overflow: hidden; }
.story-showcase__screen--scroll-content .story-showcase__mobile-content img { width: 106%; max-width: none; margin-left: -3%; }
.story-showcase .story-showcase__screen--mobile-header img { height: auto; }
.story-showcase__screen--spaced-content .story-showcase__mobile-header { margin-bottom: 7cqw; }
.story-showcase .story-showcase__screen--flat-content { background: #f6f5f8; }
.story-showcase .story-showcase__screen--flat-content img {
  width: 102.5%; max-width: none; border-radius: 0;
  clip-path: inset(2.6% 1.2% 5.5% 1.2%); margin: -5.45cqw 0 0 -1.25%;
}
.story-showcase__mobile-header { display: block; flex: none; background: #fafafa; color: #353535; }
.story-showcase__mobile-status {
  display: flex; align-items: center; justify-content: space-between;
  height: 9cqw; padding: 0 8cqw; font: 600 4cqw/1 var(--f);
}
.story-showcase__mobile-status svg { display: block; width: 24cqw; height: 7cqw; fill: currentColor; }
.story-showcase__mobile-toolbar {
  display: flex; align-items: center; gap: 4cqw; height: 16cqw; padding: 0 6cqw 3cqw;
  border-bottom: 1px solid #2727270b; font: 500 5cqw/1 var(--f);
}
.story-showcase__mobile-toolbar > span:first-child { font-size: 4.5cqw; }
.story-showcase__mobile-address {
  display: flex; align-items: center; justify-content: center; gap: 3cqw;
  position: relative; flex: 1; height: 11cqw; border-radius: 3cqw; background: #efefed;
}
.story-showcase__mobile-address i { width: 5cqw; height: 5cqw; background: url(assets/brands/nab-mark.svg) center / contain no-repeat; }
.story-showcase__mobile-address svg { position: absolute; right: 3cqw; width: 5cqw; height: 5cqw; fill: none; stroke: currentColor; stroke-width: 1.1; }

/* The same browser shell also presents product cards and desktop/mobile pairs. */
.story-showcase--browser { container-type: inline-size; }
.story-showcase--browser .story-showcase__stage {
  aspect-ratio: 1 / 1.14; color: #242424;
  background: radial-gradient(ellipse at 50% 18%, #fffdfb 0%, #f1eeea 62%, #e3dfda 100%);
}
.story-showcase--browser .story-showcase__heading { top: 13%; left: 8%; right: 8%; }
.story-showcase--browser .story-showcase__heading > span {
  display: flex; align-items: center; gap: 1.8cqw;
  font-size: clamp(7px, 1.5cqw, 10px); letter-spacing: .12em; color: #77716b;
}
.story-showcase--browser .story-showcase__heading h4 {
  max-width: 19ch; margin-top: 3cqw; font-size: clamp(24px, 6.1cqw, 42px);
  font-weight: 600; line-height: 1.04; letter-spacing: -.055em;
}
.story-showcase--browser .story-showcase__brand-logo { mix-blend-mode: multiply; }
.story-showcase--cards .story-showcase__stage { background: radial-gradient(ellipse at 50% 18%, #fffdfc, #f2eae6); }
.story-showcase--cards .story-showcase__screen--board {
  width: 35%; padding: 0; border: 0; border-radius: 2cqw; background: transparent;
  box-shadow: 0 18px 32px -18px #503d3540;
}
.story-showcase--cards .story-showcase__screen--main { left: 10%; top: 33%; transform: rotate(-2deg); }
.story-showcase--cards .story-showcase__screen--detail { left: 55%; right: auto; top: 36%; bottom: auto; transform: rotate(2deg); }
.story-showcase--workspace .story-showcase__stage { background: radial-gradient(ellipse at 50% 18%, #fcfdff, #e8edf4); }
.story-showcase--workspace .story-showcase__screen--main { left: 7%; top: 35%; width: 72%; transform: rotate(-2deg); }
.story-showcase--workspace .story-showcase__screen--phone {
  left: 69%; right: auto; top: 44%; width: 25%; height: calc(25cqw / .43);
  border: max(2px, .65cqw) solid #28292b; border-radius: 3.6cqw; transform: rotate(3deg);
  box-shadow: 0 0 0 1px #fff9, 0 18px 28px -14px #303b5059;
}
.row .row__media.is-showcase, .sub__hero .row__media.is-showcase { border-radius: 24px; -webkit-mask-image: none; }
.row .row__media.is-showcase:has(.story-showcase--browser),
.sub__hero .row__media.is-showcase:has(.story-showcase--browser) { aspect-ratio: 1 / 1.14; }
.row__media.is-showcase .story-showcase { display: block; position: static; width: 100%; margin: 0; }
.row__media.is-showcase .story-showcase__stage { border-radius: 0; }
a.row__media.is-showcase .story-showcase__screen { pointer-events: none; }
a.row__media.is-showcase:hover img { transform: none; }

/* The original rewards cards turn over to reveal the redesigned concepts. */
.story-showcase--comparison .story-showcase__stage {
  aspect-ratio: 1 / 1.28;
  background: radial-gradient(ellipse at 50% 18%, #fffdfb, #f0e7e1);
}
.row .row__media.is-showcase:has(.story-showcase--comparison),
.sub__hero .row__media.is-showcase:has(.story-showcase--comparison) { aspect-ratio: 1 / 1.28; }
.rewards-comparison [hidden] { display: none !important; }
.rewards-comparison .story-showcase__heading h4 { max-width: 15ch; min-height: 2.08em; }
.rewards-comparison__note {
  position: absolute; top: 29.5%; left: 8%; right: 8%; margin: 0;
  color: #716861; font: 400 clamp(9px, 1.8cqw, 12px)/1.5 var(--f);
}
.rewards-comparison__cards { position: absolute; inset: 34% 0 auto; height: 70cqw; }
.rewards-comparison__card {
  position: absolute; top: 0; width: 33%; height: 69.5cqw;
  perspective: 1200px; transform: rotate(-3deg);
}
.rewards-comparison__card--1 { left: 11%; }
.rewards-comparison__card--2 { left: 56%; transform: rotate(3deg); }
.rewards-comparison__rotor {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(.2, .75, .2, 1);
}
.rewards-comparison__card--2 .rewards-comparison__rotor { transition-delay: .14s; }
.rewards-comparison[data-phase="after"] .rewards-comparison__rotor { transform: rotateY(180deg); }
.rewards-comparison__face {
  position: absolute; inset: 0 0 auto; overflow: hidden; border-radius: 1.5cqw;
  background: #fff; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 2px 4px #533a2e0a, 0 20px 32px -15px #503d354d;
}
.rewards-comparison__face--after { transform: rotateY(180deg); }
.rewards-comparison__face img { display: block; width: 100%; height: auto; }
.rewards-comparison__controls {
  position: absolute; bottom: 3.5%; left: 8%; right: 8%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.rewards-comparison__switch {
  display: flex; gap: 2px; padding: 3px; border-radius: 100px; background: #ded4cb;
}
.rewards-comparison__controls button {
  appearance: none; border: 0; margin: 0; cursor: pointer;
  font: 500 clamp(10px, 1.8cqw, 12px)/1 var(--f); letter-spacing: -.01em;
}
.rewards-comparison__switch button {
  min-height: 30px; padding: 8px 2.2cqw; border-radius: 100px; color: #665c54; background: transparent;
}
.rewards-comparison__switch button[aria-pressed="true"] { color: #24201d; background: #fffdfb; box-shadow: 0 1px 3px #59422e12; }
.rewards-comparison__pause { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 0 8px 8px; color: #524b45; background: transparent; }
.rewards-comparison__pause i { width: 9px; height: 10px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.rewards-comparison__pause[data-paused="true"] i { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
.rewards-comparison__controls button:focus-visible { outline: 2px solid #a32621; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rewards-comparison__rotor { transition: none; } }
@media (max-width: 450px) {
  .story-showcase--comparison .story-showcase__stage,
  .row .row__media.is-showcase:has(.story-showcase--comparison),
  .sub__hero .row__media.is-showcase:has(.story-showcase--comparison) { aspect-ratio: 1 / 1.36; }
  .rewards-comparison .story-showcase__heading { top: 11.5%; }
  .rewards-comparison .story-showcase__heading h4 { font-size: clamp(18px, 6.1cqw, 28px); }
  .rewards-comparison__cards { top: 35%; }
}
@media (max-width: 450px) {
  .row .row__media.is-showcase, .sub__hero .row__media.is-showcase { border-radius: 16px; }
}

@media (max-width: 1200px) {
  .sub:not(.is-cv):not(.is-visual-story) .sub__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
  }
  .sub:not(.is-cv):not(.is-visual-story) .sub__hero { position: static; margin-inline: 0; }
  .sub:not(.is-cv):not(.is-visual-story) .sub__copy { padding-top: 0; }
}
@media (max-width: 760px) {
  .rows { --project-row-gap: 128px; }
  .row.is-compact .row__text { grid-column: 1; padding-top: 24px; }
  .row.is-compact .row__title { font-size: 21px; }
  .row.is-compact .row__p { font-size: 15px; }
}

/* Roadmark: one brief story, with evidence available on demand. */
.sub.is-ev-story .sub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "art intro" "art moments" "art proof" "art detail";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 22px;
  max-width: 1440px;
  margin-inline: auto;
  padding-top: 96px;
  padding-bottom: 64px;
}
.sub.is-ev-story .sub__hero { grid-area: art; position: sticky; top: 96px; align-self: start; }
.sub.is-ev-story .sub__copy { display: contents; }
.sub.is-ev-story .sub__hero .row__media { border-radius: var(--project-media-radius); width: 100%; }
.ev-story__intro { grid-area: intro; min-width: 0; }
.ev-story__intro .project-brand-mark { width: 76px; margin-bottom: 10px; }
.ev-story__intro .sc__eyebrow { margin-bottom: 18px; font-size: 12px; }
.ev-story__intro .sc__title { font-size: clamp(30px, 3vw, 44px); max-width: 15ch; line-height: 1.04; text-wrap: pretty; }
.ev-story__intro .sc__lede { max-width: 39ch; margin-top: 18px; font-size: 17px; line-height: 1.45; }
.ev-story__intro strong { color: var(--ink); font-weight: 700; }
.ev-story__moments { grid-area: moments; padding: 0; margin: 0; list-style: none; }
.ev-story__moments li { padding: 15px 0 15px 18px; position: relative; border-top: 1px solid var(--faint); }
.ev-story__moments li::before { content: '•'; position: absolute; left: 0; top: 14px; color: var(--ink); }
.ev-story__moments h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.4; color: var(--mute); }
.ev-story__moments p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--soft); }
.ev-story__moments strong { color: var(--ink); }
.ev-story__proof { grid-area: proof; min-width: 0; margin: 0; }
.ev-story__proof .case-media__image { border-radius: 4px; box-shadow: 0 0 0 1px var(--faint); background: #f6f5ef; }
.ev-story__proof img { display: block; width: 100%; height: auto; }
.ev-story__proof figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--mute); }
.ev-story__details { grid-area: detail; min-width: 0; border-top: 1px solid var(--faint); font-size: 15px; line-height: 1.5; }
.ev-story__details summary { padding: 14px 0; cursor: pointer; font-weight: 600; color: var(--ink); }
.ev-story__details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ev-story__details ul { padding-left: 20px; margin: 0 0 12px; color: var(--soft); }
.ev-story__details li + li { margin-top: 12px; }
@media (max-width: 900px) {
  .sub.is-ev-story .sub__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "intro" "moments" "proof" "detail"; gap: 26px; max-width: 650px; padding-top: 76px; }
  .sub.is-ev-story .sub__hero { position: static; }
  .ev-story__intro .sc__title { max-width: 19ch; font-size: clamp(30px, 7vw, 44px); }
  .ev-story__intro .sc__lede { font-size: 16px; }
  .ev-story__intro .project-brand-mark { width: 64px; }
}

/* Image controls retain the original composition and open its full-size source. */
[data-view] { appearance: none; text-align: left; cursor: zoom-in; color: inherit; }
[data-view] img { cursor: zoom-in; }
.case-media__open { display: block; height: 100%; padding: 0; border: 0; background: none; }
.sc__media .is-captioned .case-media__open { width: 100%; height: auto; }
.story-showcase button.story-showcase__screen { cursor: zoom-in; }
.story-showcase button.story-showcase__screen:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.project-media-dock__bar button[hidden], .project-media-dock__player[hidden] { display: none; }

/* Phone layouts use a consistent gutter, readable scale and generous touch areas. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  :root {
    --pad: max(22px, env(safe-area-inset-left), env(safe-area-inset-right));
    --top-y: max(18px, calc(env(safe-area-inset-top) + 8px));
    --slot-h: 36px;
  }
  body { -webkit-text-size-adjust: 100%; }
  .picker { gap: 8px; align-items: start; }
  .picker .slot { width: 48px; height: 62px; flex: none; background: none; box-shadow: none; border-radius: 6px; }
  .picker .card { left: calc((100% - var(--slot-w)) / 2); }
  .picker .slot__name { display: block; left: 0; right: 0; bottom: 0; color: var(--mute); opacity: 1; text-align: center; font: 500 9px/18px var(--f); }
  .picker .slot[aria-current="true"] .slot__name { color: var(--acc); font-weight: 700; }
  .picker__label { display: none; }
  .page { padding-top: calc(var(--picker-y) + 62px + 32px); }
  .back {
    top: max(12px, calc(env(safe-area-inset-top) + 8px));
    left: var(--pad); min-height: 44px; padding: 0 14px 0 10px; gap: 6px;
    border: 1px solid var(--faint); border-radius: 99px;
    background: var(--bg); box-shadow: 0 4px 16px -8px #0004;
  }
  .viewer__bar { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); max-width: calc(100% - 24px); }
  .viewer { padding-block: 16px max(90px, calc(env(safe-area-inset-bottom) + 80px)); }
  .viewer__bar button { min-width: 44px; height: 44px; }
  .row__link { min-height: 44px; padding: 10px 16px; border-radius: 6px; font-size: 13px; }
  .row .row__toggle, .row__media.is-film .row__toggle { width: 44px; height: 44px; right: 5%; bottom: 5%; }
  .theme-control button { min-width: 60px; min-height: 44px; }
  .about .links { gap: 8px 18px; }
  .about .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .rewards-comparison__controls { gap: 6px; bottom: 3%; }
  .rewards-comparison__controls button { min-width: 44px; min-height: 44px; font-size: 11px; }
  .rewards-comparison__switch button { padding-inline: 10px; }
  .rewards-comparison__pause { padding-left: 6px; }
  .project-media-dock.is-compact { top: max(12px, calc(env(safe-area-inset-top) + 8px)); right: var(--pad); width: min(264px, calc(100vw - 2 * var(--pad) - 84px)); border-radius: 14px; }
  .project-media-dock.is-compact .project-media-dock__bar { min-height: 44px; padding: 0 2px 0 10px; gap: 0; }
  .project-media-dock.is-compact .project-media-dock__bar > span { font-size: 11px; }
  .project-media-dock.is-compact .project-media-dock__bar button { width: 44px; height: 44px; }
  .project-media-dock.is-compact .row__media { border-radius: 0 0 13px 13px; }
}
@media (max-width: 760px) {
  .rows { --project-row-gap: clamp(72px, 20vw, 96px); }
  .cover { margin-bottom: 80px; }
  .cover:last-child { min-height: 0; }
  .row { row-gap: 24px; }
  .row__title { font-size: clamp(23px, 6.3vw, 28px); line-height: 1.1; }
  .row__p { font-size: 16px; line-height: 1.5; }
  .sub:not(.is-cv) .sub__grid { padding-top: max(80px, calc(env(safe-area-inset-top) + 72px)); padding-bottom: max(64px, calc(env(safe-area-inset-bottom) + 40px)); }
  .sub.is-cv .sub__grid { padding-top: max(80px, calc(env(safe-area-inset-top) + 72px)); }
  .sub.is-visual-story .sub__hero { margin-inline: 0; }
  .sub__hero .row__media:is(.is-demo, .is-film) { width: min(360px, 100%); }
  .sub .sc__title { font-size: clamp(30px, 8vw, 36px); line-height: 1.08; letter-spacing: -.04em; text-wrap: pretty; }
  .sub.is-cv .sc__title { font-size: 44px; }
  .sc__lede, .sc__p { line-height: 1.6; }
  .sc__eyebrow { line-height: 1.5; }
  .sub.is-visual-story .sc__sections { margin-top: 56px; }
  .story-showcase { container-type: inline-size; }
  .story-showcase__heading h4 { font-size: clamp(18px, 6.2cqw, 28px); }
  .story-showcase figcaption { font-size: 12px; line-height: 1.5; }
}
@media (max-width: 360px) {
  :root { --pad: max(18px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .picker { gap: 8px; }
  .row.is-compact .row__title { font-size: 21px; }
  .rewards-comparison__controls button { font-size: 10px; }
  .rewards-comparison__switch button { padding-inline: 8px; }
  .project-media-dock.is-compact .project-media-dock__bar > span { font-size: 10px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .sub.is-visual-story .sub__grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-areas: "hero intro" "sections sections";
    column-gap: 32px; row-gap: 0;
    padding-top: max(80px, calc(env(safe-area-inset-top) + 72px));
  }
  .sub.is-visual-story .sub__hero .row__media { width: min(100%, 62svh); margin-inline: auto; }
  .sub.is-visual-story .sc__title { font-size: clamp(26px, 3.8vw, 34px); line-height: 1.1; }
  .sub.is-visual-story .sc__lede { font-size: 16px; line-height: 1.5; }
  .sub.is-visual-story .sc__sections { margin-top: 40px; }
  .sub.is-visual-story .sc__sec--showcase { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 32px; }
  .sc__sec--showcase .story-showcase { grid-column: 2; grid-row: 1 / 3; width: 100%; margin-top: 0; }
  .sub .story-showcase { container-type: inline-size; }
  .sub .story-showcase__heading h4 { font-size: clamp(18px, 6.2cqw, 28px); }
}
