/* ---------- Tokens ---------- */
:root {
  --ink: #0c0c0d;
  --ink-2: #161618;
  --paper: #efede7;
  --accent: #d4ff3a;          /* site accent */

  /* Surfaces: background / text / accent-for-text, per home section */
  --page-bg: #000;
  --bg-hero: var(--ink);    --fg-hero: var(--paper);    --hl-hero: var(--accent);
  --bg-about: var(--ink-2); --fg-about: var(--paper);   --hl-about: var(--accent);
  --bg-work: var(--paper);  --fg-work: var(--ink);      --hl-work: var(--ink);
  --bg-caps: var(--ink-2);  --fg-caps: var(--paper);    --hl-caps: var(--accent);
  --bg-contact: var(--accent); --fg-contact: var(--ink);
  --swipe: var(--accent);     /* highlighter / hover fill; always paired with --ink text */
  --btn-bg: var(--accent); --btn-fg: var(--ink);
  /* Projects use the home page's palette (never the client's brand colours): ink panels with mint accents,
     alternating with cream (.tone-paper) the way the home page does. --oyf = panel colour, --oyf-light = accent. */
  --oyf: var(--ink);
  --oyf-light: var(--pop);
  --project-light: #e3fcf1;   /* projects' light sections: pale aqua (the home page uses cream) */
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Alt theme: cream with teal/aqua accents. Open with ?theme=cream */
:root[data-theme="cream"] {
  --pop: #a7ffeb;            /* bright highlighter pop */
  --pop-deep: #00897b;       /* same hue, dark enough for small text on cream */
  --ink: #1f2e2d;
  --ink-2: #1f2e2d;
  --paper: #fffaf1;
  --accent: var(--pop);
  --page-bg: #f6eee0;
  --bg-hero: var(--paper);  --fg-hero: var(--ink);    --hl-hero: var(--pop-deep);
  --bg-about: var(--ink);   --fg-about: var(--paper); --hl-about: var(--pop);
  --bg-work: var(--paper);  --fg-work: var(--ink);    --hl-work: var(--pop-deep);
  --bg-caps: var(--ink);    --fg-caps: var(--paper);  --hl-caps: var(--pop);
  --bg-contact: var(--paper); --fg-contact: var(--ink);
  --swipe: var(--pop);
  --btn-bg: var(--pop); --btn-fg: var(--ink);
  --panel-shadow: rgba(31,46,45,.14);
  --display: "Figtree", "Archivo", system-ui, sans-serif;
}


/* Cream: softer type (rounder face, sentence case) and the pop used as a highlighter, not as text colour */
[data-theme="cream"] :is(.mega, .section-title, .reveal-words, .cue-word, .wl-title, .cap-title, .lead, .fmt-name, .stats b) {
  text-transform: none; font-variation-settings: "wdth" 96, "opsz" 96; letter-spacing: -.02em;
}
[data-theme="cream"] :is(.mega, .reveal-words, .section-title) { font-weight: 700; line-height: .98; }
/* section headlines get a touch more leading than the display titles, so descenders (approach) don’t crowd the ascenders below (old) */
[data-theme="cream"] .section-title { line-height: 1.05; }
[data-theme="cream"] :is(.wl-title, .cap-title, .cue-word) { font-weight: 650; }
[data-theme="cream"] .reveal-words { font-size: clamp(36px, min(8.6vw, 13vh), 150px); max-width: none; }
[data-theme="cream"] .is-live a:hover .wl-title { font-variation-settings: "wdth" 100, "opsz" 96; }
[data-theme="cream"] .reveal-words .w.hot {
  color: var(--ink); background: linear-gradient(var(--pop), var(--pop)) 0 86% / 100% 46% no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* Cream: About and What I do sit on ink; the mint becomes text colour there */
[data-theme="cream"] .caps .section-title em { color: var(--pop); background: none; }
[data-theme="cream"] .lead em {
  color: var(--hl);
  background: linear-gradient(currentColor, currentColor) 0 100% / calc(var(--underline, 0) * 100%) 3px no-repeat;
}
[data-theme="cream"] .about .btn:hover { background: var(--paper); color: var(--ink); }
[data-theme="cream"] .cue-arrow { color: var(--ink); filter: drop-shadow(6px 4px 0 var(--pop)); }
[data-theme="cream"] .scroll-cue:hover .cue-word { color: var(--ink); background: var(--pop); border-radius: .14em; }
[data-theme="cream"] .btn:hover { background: var(--ink); color: var(--pop); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--paper);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

/* ---------- Chrome ---------- */
.chrome {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper); transition: color .4s;
}
.chrome-light > .chrome { color: var(--ink); }
.mark { text-decoration: none; font-weight: 500; }
.now { display: flex; gap: 12px; overflow: hidden; height: 1.3em; }
.now span { display: block; transition: transform .5s var(--ease), opacity .5s; }
.now.swap span { transform: translateY(-100%); opacity: 0; }
.now-num { opacity: .55; }
.chrome-links { justify-self: end; display: flex; gap: clamp(14px, 2vw, 28px); }
.chrome-links a { text-decoration: none; border-bottom: 1px solid currentColor; }
.chrome-links { align-items: center; }
.chrome-links .cta {
  border: 0; padding: 7px 14px; border-radius: 99px; margin: -7px 0;
  background: var(--pop, var(--accent)); color: var(--ink); transition: background .3s, color .3s;
}
.chrome-light > .chrome .cta { background: var(--ink); color: var(--paper); }
.chrome-links .cta:hover { background: var(--paper); color: var(--ink); }  /* on ink sections */
.chrome-light > .chrome .cta:hover { background: var(--swipe); color: var(--ink); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.progress span { display: block; height: 100%; width: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }

.dots {
  position: fixed; right: calc(var(--gutter) / 2); top: 50%; transform: translateY(-50%);
  z-index: 100; display: grid; gap: 10px; color: var(--paper); transition: color .4s;
}
.dots-light > .dots { color: var(--ink); }
.dots a {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3;
  transition: opacity .3s, transform .3s var(--ease);
}
.dots a.on { opacity: 1; transform: scale(1.5); }
.dots a.chapter { margin-top: 8px; }

/* ---------- Stack mechanics ----------
   Each panel is (data-len × 100vh) tall with a sticky 100vh stage.
   Every panel after the first is pulled up 100vh, so it slides over the
   previous stage during that stage's final screen of pin. JS sets heights. */
.panel { position: relative; height: 200vh; }
.panel + .panel { margin-top: -100vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  padding: 88px var(--gutter) 40px;
  transform-origin: 50% 0;
  will-change: transform;
}
/* dims the stage as the next panel covers it */
.stage::after {
  content: ""; position: absolute; inset: 0; background: #000; pointer-events: none;
  opacity: var(--cover, 0); z-index: 50;
}
.panel:not(:first-child) > .stage { box-shadow: 0 -30px 60px var(--panel-shadow, rgba(0,0,0,.35)); border-radius: 18px 18px 0 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, currentColor 55%, transparent); margin: 0 0 20px;
}
.section-title {
  font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(36px, 5.6vw, 88px); line-height: .92; letter-spacing: -.01em; margin: 0;
}
.body { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; max-width: 46ch; color: color-mix(in srgb, currentColor 82%, transparent); }
.mega {
  margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(56px, min(17vw, 30vh), 300px); line-height: .82; letter-spacing: -.02em;
}
.mega span { display: block; }
.mega.small { font-size: clamp(48px, 11vw, 190px); }
/* longer titles (e.g. "Your brand’s / biggest moment"): two lines that still fit a short window */
.mega.long { font-size: clamp(40px, min(10.5vw, 21vh), 200px); }
.tk { color: var(--hl, var(--accent)); }
.tk::selection { background: var(--accent); color: var(--ink); }

/* ---------- Intro ---------- */
.intro .stage { display: flex; flex-direction: column; justify-content: center; padding-bottom: 110px; background: var(--bg-hero); color: var(--fg-hero); --hl: var(--hl-hero); }
.reveal-words {
  margin: 0; max-width: 15ch;
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  /* four lines: capped by height as well as width, so a short window never runs it into the details below */
  font-size: clamp(40px, min(9.4vw, 14vh), 168px); line-height: .9; letter-spacing: -.015em;
}
.reveal-words .w { color: color-mix(in srgb, currentColor 14%, transparent); transition: color .25s; }
.reveal-words .w.lit { color: inherit; }
.reveal-words .w.hot { color: var(--hl); }
.intro-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
}
.intro-foot dl { display: flex; gap: clamp(20px, 4vw, 64px); margin: 0; flex-wrap: wrap; }
dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, currentColor 55%, transparent); margin-bottom: 4px; }
dd { margin: 0; font-size: 15px; }

.scroll-cue {
  position: absolute; right: calc(var(--gutter) + 2vw); bottom: clamp(120px, 20vh, 220px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  transition: opacity .5s, transform .5s var(--ease);
}
.scroll-cue.gone { opacity: 0; transform: translateY(30px); pointer-events: none; }
.cue-word {
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(36px, min(6.4vw, 10vh), 104px); line-height: .85; letter-spacing: -.01em;
}
.cue-arrow { width: auto; height: clamp(90px, 17vh, 170px); color: var(--hl); animation: cue 1.6s var(--ease) infinite; }
.scroll-cue:hover .cue-word { color: var(--hl); }
@keyframes cue { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(14px); } }

/* ---------- Index ---------- */
.index .stage { background: var(--bg-work); color: var(--fg-work); --hl: var(--hl-work); display: flex; flex-direction: column; padding-bottom: 32px; }
/* the eyebrow and list centre together (auto margins above the eyebrow and below the list) and drift together */
.work-eyebrow { margin-top: auto; transform: translateY(var(--drift, 0)); }
.work-list { list-style: none; margin: 0 0 auto; padding: 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); transform: translateY(var(--drift, 0)); }
/* margin auto centres it when it fits; when it doesn't, it starts under the header (not centred off the top) and main.js drifts it up */
.work-list li { border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.work-list a, .work-list .is-soon {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 16px;
  padding: clamp(6px, 1.2vh, 22px) 0; text-decoration: none;
}
.is-soon .wl-meta::after { content: "Soon"; margin-left: 12px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 99px; font-size: 10px; opacity: .6; }
.wl-num { font-family: var(--mono); font-size: 12px; }
.wl-name { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(4px, .8vh, 8px); min-width: 0; }
.wl-client { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, currentColor 60%, transparent); }
/* the big title's letters sit a hair in from their box (side bearing ≈ .06em), so nudge the client line in to match: .07 × title size */
.wl-client { padding-left: clamp(2px, min(.39vw, .34vh), 7px); }
.wl-title {
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(30px, min(7.6vw, 6.9vh), 120px); line-height: .9; /* vh share sized so all 6 rows fit under the header */
  transition: font-variation-settings .6s var(--ease), color .3s;
}
.wl-meta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.wl-title {
  /* highlighter swipe in the site accent on hover — never the client's brand colour */
  background: linear-gradient(var(--swipe), var(--swipe)) 0 88% / 0 42% no-repeat;
  transition: font-variation-settings .6s var(--ease), background-size .5s var(--ease);
}
.is-live a:hover .wl-title, .is-live a:focus-visible .wl-title { font-variation-settings: "wdth" 100; background-size: 100% 42%; }
.wl-peek {
  position: absolute; right: 18%; top: 50%; width: min(30vw, 420px); aspect-ratio: 16/9; object-fit: cover;
  border-radius: 10px; pointer-events: none;
  opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.9); transition: opacity .35s, transform .5s var(--ease);
}
.is-live a:hover .wl-peek { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
/* the hovered row sits above the rows after it, so its preview isn't covered by the next titles */
.is-live a:hover, .is-live a:focus-visible { z-index: 2; }

/* ---------- Capabilities ---------- */
.caps .stage {
  background: var(--bg-caps); color: var(--fg-caps); --hl: var(--hl-caps);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(28px, 6vw, 120px); align-items: center;
}
.caps .section-title em { font-style: normal; color: var(--hl); }
.caps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.caps-list li { border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); position: relative; }
.caps-list li::after { /* progress line while an item is open */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--hl); transform-origin: 0 50%; transform: scaleX(var(--fill, 0));
}
.cap-title {
  width: 100%; display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px);
  background: none; border: 0; padding: clamp(14px, 2.6vh, 26px) 0; cursor: pointer; text-align: left;
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(28px, min(4.4vw, 6.4vh), 76px); line-height: .9;
  color: color-mix(in srgb, currentColor 24%, transparent); transition: color .4s;
}
.cap-title:hover { color: color-mix(in srgb, currentColor 55%, transparent); }
.cap-num { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; transform: translateY(-.4em); }
.caps-list li.on .cap-title, .caps-list li.done .cap-title { color: inherit; }
.caps-list li.on .cap-num { color: var(--hl); }
.cap-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.cap-body > div { overflow: hidden; }
.cap-body p {
  margin: 0; padding: 0 0 clamp(16px, 2.6vh, 28px) calc(clamp(14px, 2vw, 28px) + 2.2ch);
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; max-width: 52ch; color: color-mix(in srgb, currentColor 78%, transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .5s .1s, transform .6s var(--ease) .1s;
}
.caps-list li.on .cap-body { grid-template-rows: 1fr; }
.caps-list li.on .cap-body p { opacity: 1; transform: none; }

/* ---------- About ---------- */
/* same layout and headline as What I do: headline left, copy in the wider right column */
.about .stage {
  background: var(--bg-about); color: var(--fg-about); --hl: var(--hl-about);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-content: center; align-items: start;
  column-gap: clamp(28px, 6vw, 120px);
}
/* the eyebrow takes its own row, so the copy's top lines up with the headline's */
.about-head { display: contents; }
.about-head .eyebrow { grid-column: 1; grid-row: 1; }
.about-head .section-title { grid-column: 1; grid-row: 2; align-self: last baseline; }
/* the copy sits on the headline's last line; the button hangs below it */
.about-body { grid-column: 2; grid-row: 2; align-self: last baseline; }
.about-cta { grid-column: 2; grid-row: 3; margin: clamp(20px, 3vh, 32px) 0 0; }
.lead em {
  font-style: normal; color: var(--hl);
  background: linear-gradient(currentColor, currentColor) 0 100% / calc(var(--underline, 0) * 100%) 3px no-repeat;
}
.about-body p { margin: 0 0 1em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: color-mix(in srgb, currentColor 78%, transparent); max-width: 50ch; } /* same as .cap-body p */
.about-body p:last-child { margin-bottom: 0; }
.about-body p { max-width: calc(48ch + clamp(40px, 8vw, 140px)); }
.about-body p, .about-cta { padding-left: clamp(40px, 8vw, 140px); }
.rise { opacity: var(--t, 1); transform: translateY(calc((1 - var(--t, 1)) * 40px)); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn {
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  padding: 15px 22px; border-radius: 99px; background: var(--btn-bg); color: var(--btn-fg);
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--swipe); color: var(--ink); }

/* ---------- Project overlay ---------- */
html.project-open { overflow: hidden; }
.dimmer {
  position: fixed; inset: 0; z-index: 150; background: #000; opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease);
}
.project-open .dimmer { opacity: .65; }
.project {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  transform: translateX(100%); transition: transform .8s var(--ease), box-shadow .8s;
}
.project.open { transform: none; box-shadow: -40px 0 80px rgba(0,0,0,.5); }
.project-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.project .chrome { position: absolute; }  /* fixed relative to the sliding panel */
.project .dots { position: absolute; }
.project-chrome { padding-right: calc(var(--gutter) + 140px); }
.project-chrome .progress { right: calc(var(--gutter) + 168px); } /* stop short of the Close button */
.project-chrome .mark { margin: 0; }
.pc-num { opacity: .55; margin-right: 8px; }

.close {
  position: absolute; z-index: 120; top: 14px; right: var(--gutter);
  display: flex; align-items: center; gap: 14px; height: 72px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--paper);
}
.close-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.close-x {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  background: var(--paper); transition: transform .5s var(--ease), background .3s;
}
.close-x::before, .close-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 3px; border-radius: 2px;
  background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); transition: background .3s;
}
.close-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.close:hover .close-x, .close:focus-visible .close-x { transform: rotate(90deg); background: var(--swipe); }
.close:hover .close-x::before, .close:hover .close-x::after, .close:focus-visible .close-x::before, .close:focus-visible .close-x::after { background: var(--ink); }
.close:focus-visible { outline: none; }
.close:focus-visible .close-x { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--swipe); }
.chrome-light > .close { color: var(--ink); }
.chrome-light > .close .close-x { background: var(--ink); }
.chrome-light > .close .close-x::before, .chrome-light > .close .close-x::after { background: var(--paper); }
.chrome-light > .close:hover .close-x { background: var(--swipe); }
.chrome-light > .close:hover .close-x::before, .chrome-light > .close:hover .close-x::after,
.chrome-light > .close:focus-visible .close-x::before, .chrome-light > .close:focus-visible .close-x::after { background: var(--ink); }
.chrome-light > .close:focus-visible .close-x { background: var(--swipe); }
@media (max-width: 800px) {
  .close { top: 8px; height: 56px; }
  .close-label { display: none; }
  .close-x { width: 56px; height: 56px; }
  .close-x::before, .close-x::after { width: 24px; }
  .project-chrome { padding-right: 84px; grid-template-columns: 1fr; }
  .project-chrome .progress { right: 80px; }
}

.project-end .stage { background: var(--project-light); color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.close-inline {
  font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 99px; padding: 16px 26px; cursor: pointer;
  transition: background .3s;
}
.close-inline:hover { background: var(--swipe); color: var(--ink); }
/* dark closing panel, for projects whose last section is light, so light/dark keep alternating */
.project-end.end-ink .stage { background: var(--ink); color: var(--paper); }
.project-end.end-ink .close-inline { background: var(--swipe); color: var(--ink); }
.project-end.end-ink .close-inline:hover { background: var(--paper); }
.project-end.end-ink .credits a { text-decoration-color: var(--swipe); }

/* Work list: make the live project read as clickable */
.is-live .wl-meta::after { content: "  View →"; color: var(--hl); font-weight: 500; }

/* ---------- OYF shared ---------- */
.oyf .stage { background: var(--oyf); color: var(--paper); }
/* Cream sections inside a project (alternating with ink, as on the home page): ink text, deep-teal accents */
.oyf.tone-paper .stage { background: var(--project-light); color: var(--ink); --oyf-light: var(--pop-deep); }
.oyf .eyebrow { color: var(--oyf-light); }
.oyf .section-title em, .oyf .big-line em { font-style: normal; color: var(--oyf-light); }

/* Cover */
.oyf-cover .stage { padding: 0; background: #000; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.15)); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, var(--cover-shade, rgba(31,46,45,.94)) 100%); opacity: max(var(--tint, .5), var(--tint-min, 0)); }
.oyf-cover .stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.cover-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; }
.cover-copy .mega span { transform: translateY(var(--rise, 0)); }
.cover-copy .mega span:last-child { color: var(--oyf-light); }
.meta-row { display: flex; gap: clamp(20px, 4vw, 64px); margin: 28px 0 0; flex-wrap: wrap; }
.oyf .meta-row dt { color: var(--oyf-light); }

/* Brief */
.oyf-brief .stage { display: flex; align-items: center; }
.brief-grid {
  display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: clamp(40px, 6.5vw, 128px);
  grid-template-areas: "brief head" "brief copy"; align-items: start;
}
.b-brief { grid-area: brief; } .b-head { grid-area: head; } .b-copy { grid-area: copy; }
.brief-grid .body { margin: 0; }
.brief-grid .body + .body { margin-top: 1em; }
/* the brief reads as a statement, so it carries as much weight as the headline beside it */
.b-brief .body {
  max-width: 28ch; color: inherit; font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(20px, min(2vw, 3.6vh), 34px); line-height: 1.3;
}
.brief-grid .big-line { font-size: clamp(32px, min(4.5vw, 8.2vh), 86px); margin-bottom: 16px; }
.big-line {
  margin: 0 0 28px; font-weight: 900; font-variation-settings: "wdth" 66; text-transform: uppercase;
  font-size: clamp(36px, min(5.8vw, 10vh), 104px); line-height: .92; text-wrap: balance;
}
.oyf .tk { color: #fff; background: rgba(0,0,0,.18); outline: 1px dashed rgba(255,255,255,.5); outline-offset: 4px; }
.oyf.tone-paper .tk { color: var(--pop-deep, #00897b); background: rgba(0,137,123,.08); outline-color: rgba(0,137,123,.5); }

/* Films */
.oyf-films .stage { background: var(--oyf); display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.films-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.films-head .eyebrow { margin: 0; }
.film-tabs { display: flex; flex-wrap: wrap; column-gap: clamp(12px, 3vw, 40px); row-gap: 2px; }
.film-tabs button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: clamp(16px, 1.7vw, 26px);
  color: rgba(239,237,231,.22); transition: color .4s;
}
.film-tabs button:hover { color: rgba(239,237,231,.6); }
.film-tabs button[aria-selected="true"] { color: var(--paper); }
/* The frame is always exactly 16:9 (the films' own shape): as big as the space allows, never cropped */
.film-fit { min-height: 0; container-type: size; display: grid; justify-items: center; align-items: start; }
.film-frame { position: relative; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.film-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .7s, transform 1.2s var(--ease);
}
.film-frame video { pointer-events: none; cursor: pointer; } /* hidden films sit on top in the stack */
.film-frame video.on { opacity: 1; transform: scale(1); pointer-events: auto; }



.arrow {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: clamp(52px, 5.5vw, 80px); aspect-ratio: 1; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(239,237,231,.92); border: 0; color: var(--ink);
  transition: transform .4s var(--ease), background .3s, opacity .35s;
}
.arrow svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 3.5; }
.arrow.prev { left: 18px; }
.arrow.next { right: 18px; }
.arrow:hover { background: var(--swipe); }
.arrow.prev:hover { transform: translateY(-50%) translateX(-4px); }
.arrow.next:hover { transform: translateY(-50%) translateX(4px); }
/* Player controls: a standard bar along the bottom — play/pause, time, seek, sound, full screen.
   It fades out while a film plays and the pointer is still; the counter sits top-right. */
.film-count {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  background: rgba(0,0,0,.5); border-radius: 99px; padding: 8px 12px; backdrop-filter: blur(8px);
}
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); padding: 28px clamp(10px, 1.4vw, 18px) 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: var(--paper);
  transition: opacity .35s;
}
/* "Sound on" pill, top-left: stays put while muted (the point is to be seen); once sound is on it says "Sound off" and fades with the controls */
.sound-pill {
  position: absolute; left: 16px; top: 16px; z-index: 4; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 11px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--oyf-light, #a7ffeb); color: #1f2e2d; transition: opacity .35s, transform .2s;
  font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.sound-pill svg { width: 18px; height: 18px; }
.tone-paper .sound-pill { color: #fff; } /* on light sections the pill goes deep teal, so white text */
.sound-pill .i-x, .is-muted .sound-pill .i-waves { display: none; }
.is-muted .sound-pill .i-x { display: inline; }
.sound-pill:hover { transform: scale(1.04); }
.film-frame:not(.idle) .sound-pill { opacity: 1; }
.oyf-films:not(.is-muted) .film-frame.idle .sound-pill { opacity: 0; }
.film-frame.idle .controls, .film-frame.idle .film-count, .film-frame.idle .arrow { opacity: 0; }
.film-frame.idle { cursor: none; }
.controls button {
  flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: none; border: 0; border-radius: 50%; color: inherit;
}
.controls button:hover { background: rgba(255,255,255,.16); }
.controls svg { width: 18px; }
.play svg, .sound svg { fill: currentColor; }
.play .i-play, .is-paused .play .i-pause { display: none; }
.is-paused .play .i-play { display: inline; }
.sound .i-x, .is-muted .sound .i-waves { display: none; }
.is-muted .sound .i-x { display: inline; }
.fs .i-exit, .is-fs .fs .i-enter { display: none; }
.is-fs .fs .i-exit { display: inline; }
.time { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.film-progress { position: relative; flex: 1; height: 20px; cursor: pointer; touch-action: none; }
.film-progress::before, .film-progress span { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.film-progress::before { right: 0; background: rgba(255,255,255,.28); }
.film-progress span { width: calc(var(--p, 0) * 100%); background: var(--oyf-light); transition: width .25s linear; }
.film-progress span::after { /* scrubber knob */
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--paper); transform: scale(0); transition: transform .15s;
}
.film-progress:hover span::after, .film-progress:focus-visible span::after { transform: scale(1); }
.film-progress:focus-visible { outline: none; }
/* Full screen: the frame fills the screen and the whole film shows */
.film-frame:is(:fullscreen, :-webkit-full-screen) { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.film-frame:is(:fullscreen, :-webkit-full-screen) video { object-fit: contain; }

/* Formats: one film per format, side by side at the same height (flex-grow = aspect ratio) */
.oyf-formats .stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 32px); }
.formats { position: relative; display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-start; width: min(100%, calc((100vh - 280px) * 3.34 + 56px)); }
.formats figure { margin: 0; min-width: 0; flex: var(--r) 1 0; transform: translateY(var(--lift, 0)); }
.f169 { --r: 1.7778; } .f11 { --r: 1; } .f916 { --r: .5625; }
.formats canvas { display: block; width: 100%; border-radius: 6px; background: #000; }
/* the source video stays in the page (some browsers stop decoding display:none video) but is invisible */
.formats-src { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: -1; }
.f169 canvas { aspect-ratio: 16/9; }
.f11 canvas { aspect-ratio: 1; }
.f916 canvas { aspect-ratio: 9/16; }
/* social-only set (Last-Kick Attribution): 1:1 + 4:5 + 9:16, so the row is narrower */
.f45 { --r: .8; } .f45 canvas { aspect-ratio: 4/5; }
.social-formats .formats { width: min(100%, calc((100vh - 280px) * 2.3625 + 56px)); }
figcaption { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; color: var(--oyf-light); }
.formats figcaption { margin-top: 8px; }

/* Made for where it runs: OLV (sound off) beside audio (no picture) */
.oyf-adapt .stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.5vh, 40px); }
.adapt-head .eyebrow { margin-bottom: 12px; }
.adapt-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.adapt-grid > div { min-width: 0; transform: translateY(var(--lift, 0)); }
.adapt-label {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--oyf-light);
}
.adapt-label b {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 72; font-size: clamp(24px, 2.6vw, 40px);
  letter-spacing: -.01em; line-height: 1; color: var(--ink);
}
.adapt-olv { width: min(100%, calc((100vh - 400px) * 16 / 9)); }
.olv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); }
.olv-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.olv-off {
  position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--paper); background: rgba(0,0,0,.55); border-radius: 99px; padding: 7px 12px 7px 9px; backdrop-filter: blur(8px);
}
.olv-off svg { width: 16px; fill: currentColor; }
.olv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.olv-list button {
  position: relative; display: block; width: 100%; padding: 9px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--ink) 45%, transparent); transition: color .3s;
}
.olv-list button::before, .olv-list button::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 1px; }
.olv-list button::before { right: 0; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.olv-list button::after { width: calc(var(--f, 0) * 100%); background: var(--oyf-light); transition: width .25s linear; }
.olv-list .on button, .olv-list button:hover { color: var(--ink); }
.adapt-head, .adapt-grid { translate: 0 var(--drift, 0); }
/* Audio comp: a phone showing a music app's ad screen (generic, no real app's branding). Everything inside is
   sized in cqw so the whole screen scales with the phone. --tint = the current companion banner's colour. */
.audio-comp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.phone {
  --tint: #0c0c27;
  --ph-h: min(600px, calc(100vh - 330px)); /* explicit size: the screen's cqw units need a definite width */
  width: calc(var(--ph-h) * 9 / 19.5); height: var(--ph-h); padding: calc(var(--ph-h) * .009); box-sizing: border-box; container-type: inline-size;
  border-radius: 13% / 6%; background: #16181b; box-shadow: 0 0 0 1.5px #3a3d42 inset, 0 30px 60px -24px rgba(0,0,0,.55);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 11.5% / 5.3%;
  display: flex; flex-direction: column; padding: 0 7cqw; box-sizing: border-box; color: #fff; font-family: var(--display);
  background: linear-gradient(color-mix(in srgb, var(--tint) 62%, #000) 0%, color-mix(in srgb, var(--tint) 30%, #121212) 48%, #121212 82%);
  transition: background .6s;
}
.phone-screen svg { display: block; fill: currentColor; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 13cqw; font-size: 4.4cqw; font-weight: 600; }
.ph-status > span:first-child { width: 22cqw; text-align: center; }
.ph-island { width: 30cqw; height: 8.5cqw; border-radius: 99px; background: #000; }
.ph-icons { display: flex; gap: 1.6cqw; width: 22cqw; justify-content: center; }
.ph-icons svg { width: 5cqw; }
.ph-head { display: flex; justify-content: space-between; align-items: center; margin-top: 3cqw; }
.ph-head svg { width: 6.5cqw; }
.ph-head span { font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ph-art { position: relative; margin-top: auto; aspect-ratio: 300 / 250; border-radius: 1.6cqw; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6cqw 12cqw -4cqw rgba(0,0,0,.6); }
.ph-art img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.ph-art img.on { opacity: 1; }
.ph-meta { display: grid; gap: 1.4cqw; margin-top: 10cqw; }
.ph-meta b { font-size: 6cqw; font-weight: 700; }
.ph-meta > span { font-size: 3.9cqw; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-bar { position: relative; height: 6cqw; margin-top: 6cqw; cursor: pointer; touch-action: none; }
.ph-bar::before, .ph-bar span { content: ""; position: absolute; left: 0; top: 50%; height: 1.1cqw; margin-top: -.55cqw; border-radius: 1cqw; }
.ph-bar::before { right: 0; background: rgba(255,255,255,.28); }
.ph-bar span { width: calc(var(--p, 0) * 100%); background: #fff; transition: width .25s linear; }
.ph-bar span::after { content: ""; position: absolute; right: -1.8cqw; top: 50%; width: 3.6cqw; height: 3.6cqw; margin-top: -1.8cqw; border-radius: 50%; background: #fff; }
.ph-bar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ph-times { display: flex; justify-content: space-between; font-size: 3.2cqw; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
.ph-controls { display: flex; justify-content: space-between; align-items: center; margin: 4cqw 0 auto; padding-bottom: 14cqw; }
.ph-controls button { padding: 0; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.ph-dim { opacity: .35; } .ph-dim svg { width: 6.5cqw; }
.ph-prev svg, .ph-next svg { width: 9cqw; }
.ph-play { position: relative; width: 19cqw; aspect-ratio: 1; border-radius: 50%; background: #fff !important; color: #121212 !important; transition: transform .2s; }
.ph-play:hover { transform: scale(1.05); }
.ph-play svg { width: 8.5cqw; }
.ph-play .i-pause, .playing .ph-play .i-play { display: none; }
.playing .ph-play .i-pause { display: inline; }
/* Pulse on the play button until someone presses it… */
/* …then on the next button, once it's playing, until someone skips */
.ph-play::before, .ph-play::after, .used:not(.skipped) .ph-next::before, .used:not(.skipped) .ph-next::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 0.8cqw solid #fff; pointer-events: none;
  animation: ph-pulse 2s cubic-bezier(.2,.6,.3,1) infinite;
}
.ph-play::after, .ph-next::after { animation-delay: 1s; }
.used .ph-play::before, .used .ph-play::after { animation: none; opacity: 0; }
.ph-next { position: relative; width: 13cqw; aspect-ratio: 1; border-radius: 50%; }
@keyframes ph-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
.ph-home { position: absolute; left: 50%; bottom: 2.6cqw; width: 34cqw; height: 1.3cqw; margin-left: -17cqw; border-radius: 99px; background: rgba(255,255,255,.8); }
.ph-play:focus-visible, .ph-prev:focus-visible, .ph-next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 50%; }
/* The three spots beside the phone; the playing one shows a little equaliser */
.spot-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.spot-list li { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.spot-list button {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num title eq" "num len eq"; column-gap: 12px;
  width: 100%; padding: clamp(10px, 1.6vh, 16px) 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink);
}
.spot-num { grid-area: num; font-family: var(--mono); font-size: 11px; padding-top: .35em; color: color-mix(in srgb, var(--ink) 45%, transparent); }
.spot-title { grid-area: title; font-weight: 700; font-size: clamp(15px, 1.25vw, 19px); opacity: .55; transition: opacity .3s; }
.spot-len { grid-area: len; font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--ink) 50%, transparent); }
.spot-list .on .spot-title, .spot-list button:hover .spot-title { opacity: 1; }
.spot-list .on .spot-num { color: var(--oyf-light); }
.eq { grid-area: eq; align-self: center; display: flex; align-items: flex-end; gap: 2px; height: 14px; opacity: 0; }
.eq i { width: 3px; height: 100%; background: var(--oyf-light); transform-origin: bottom; transform: scaleY(.3); }
.playing .eq { opacity: 1; }
.playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; } .playing .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { to { transform: scaleY(1); } }
.companions-cap { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--oyf-light); }

/* Horizontal OOH */
.hscroll .stage { padding-left: 0; padding-right: 0; display: flex; align-items: center; }
.h-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); will-change: transform; }
.h-intro { flex: 0 0 min(80vw, 460px); }
.h-hint { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--oyf-light); }
.h-item { flex: 0 0 auto; }
.h-item img { border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.h-item.tall img { height: min(66vh, 640px); width: auto; }
.h-item.wide { display: grid; gap: 16px; }
.h-item.wide img { width: min(72vw, 820px); height: auto; }
.h-item.wide img + img:not(figcaption) { max-height: 30vh; object-fit: cover; }
.h-item.phone img { height: min(60vh, 560px); width: auto; border-radius: 22px; }

/* Display wall */
.oyf-display .stage { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; grid-template-rows: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.display-head { align-self: center; }
.oyf-display.wide-head .stage { grid-template-columns: minmax(220px, 1.4fr) 2.4fr; } /* room for "hard to miss" on one line */
.display-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; align-self: start;
  transform: translateY(var(--drift, 0));
}
.wall-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* Fios mailer: a narrower mailer column leaves the headline room for "A new / approach to / old media" at full size */
.oyf-display:has(.wall-1) .stage { grid-template-columns: minmax(0, 1fr) minmax(0, min(54vw, 960px)); }
.display-wall.wall-1 { grid-template-columns: minmax(0, 1fr); max-width: 960px; gap: 20px; } /* one big column (Fios mailer) */
.display-wall img, .display-wall video { display: block; width: 100%; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
.display-wall figure { margin: 0; }
.display-wall .ooh video { aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.display-wall .v video { background: #000; }
.display-wall .card { border-radius: 10px; } /* LinkedIn / Uber cards have their own rounded frames */
.zoomable { cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; }
.zoomable:hover { transform: scale(1.02); }
.zoomable:focus-visible { outline: 2px solid var(--oyf-light); outline-offset: 3px; }

/* Landing page: a browser frame on the right; the rebuilt page inside scrolls with the panel (main.js oyf-site) */
@font-face { font-family: "Ventura"; font-weight: 400; font-display: swap; src: url("assets/bam/web/fonts/Ventura-Regular.ttf") format("truetype"); }
@font-face { font-family: "Ventura"; font-weight: 600; font-display: swap; src: url("assets/bam/web/fonts/Ventura-SemiBold.ttf") format("truetype"); }
.oyf-site .stage { display: grid; grid-template-columns: minmax(200px, 1.4fr) 2.6fr; grid-template-rows: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.site-head { align-self: center; }
.site-live { margin: 24px 0 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-live a { color: var(--oyf-light); text-underline-offset: .25em; }
.browser {
  align-self: center; display: flex; flex-direction: column; height: min(100%, 820px); min-height: 0;
  border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 70px -30px rgba(0,0,0,.45);
  transform: translateY(var(--lift, 0));
}
.browser-bar { flex: none; display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #ebebec; border-bottom: 1px solid #dcdcde; }
.b-dots { display: flex; gap: 7px; } .b-dots i { width: 11px; height: 11px; border-radius: 50%; background: #c9c9cc; }
.b-url {
  flex: 1; max-width: 460px; margin: 0 auto; transform: translateX(-30px); padding: 5px 12px; border-radius: 7px; background: #fff;
  font: 12px/1.2 var(--mono); color: #55585e; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }

/* The rebuilt page. --tw = its layout width (1280 on desktop, the frame's width on phones); --ts = scale to fit */
.ttd {
  --ink: #0c0c27; --blue: #0372e2; --misty: #e6f7ff;
  position: absolute; left: 0; top: 0; width: calc(var(--tw, 1280) * 1px); transform-origin: 0 0;
  transform: translateY(calc(var(--ty, 0) * 1px)) scale(var(--ts, 1)); will-change: transform;
  container-type: inline-size; background: #fff; color: var(--ink);
  font-family: "Ventura", "Figtree", system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; text-transform: none; letter-spacing: 0;
}
.ttd * { box-sizing: border-box; }
.ttd :is(h1, h2, h3, h4, p) { margin: 0; font-weight: 400; }
.ttd em { font-style: normal; color: var(--blue); }
.ttd img { display: block; max-width: 100%; }
.ttd svg { display: inline-block; vertical-align: middle; }
.t-wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.t-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 26px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.t-blue { background: var(--blue); color: #fff; }
.t-ink { background: var(--ink); color: #fff; height: 50px; padding: 0 22px; font-size: 16px; }
.t-ghost { border: 1px solid currentColor; }
.t-white { background: #fff; color: var(--ink); }
.t-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.t-more svg { width: 14px; }
.t-nav { display: flex; align-items: center; gap: 32px; height: 76px; padding: 0 28px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.t-logo { width: 205px; height: auto; color: var(--ink); fill: currentColor; }
.t-nav nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.t-nav nav span, .t-nav-r > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.t-nav svg[viewBox="0 0 16 10"] { width: 11px; }
.t-nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.t-nav-r > span:first-child { margin-right: 6px; }
.t-burger { display: none; }
.t-hero { background: var(--misty); padding: 84px 0; }
.t-hero h1 { font-size: 58px; line-height: 1.08; letter-spacing: -.01em; max-width: 9.5em; }
.t-lede { font-size: 20px; line-height: 1.5; margin-top: 32px !important; max-width: 30em; }
.t-hero .t-btn { margin-top: 32px; }
.t-hero-img { width: 100%; aspect-ratio: 1450 / 814; object-fit: cover; border-radius: 16px; }
.t-why { margin: 128px auto; }
.t-why img { width: 100%; max-width: 620px; }
.t-why h2, .t-leaders h2, .t-contact h2 { font-size: 48px; line-height: 1.2; }
.t-big { font-size: 24px; line-height: 1.32; margin-top: 48px !important; }
.t-leaders { background: var(--misty); padding: 70px 0; text-align: center; }
.t-leaders h2 { max-width: 15em; margin: 0 auto !important; }
.t-leaders .t-big { margin-top: 32px !important; }
.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; text-align: left; }
.t-card { display: flex; flex-direction: column; min-height: 300px; padding: 32px; border-radius: 16px; background: #fff; border: 1px solid #dbe4ea; }
.t-card img { height: 72px; width: auto; object-fit: contain; object-position: left center; }
.t-card p { margin-top: 24px !important; font-size: 16px; line-height: 1.4; max-width: 20em; }
.t-card .t-more { margin-top: auto; }
.t-tools { margin: 70px auto; grid-template-columns: 1fr 1fr; }
.t-xl { font-size: 58px; line-height: 1.08; }
.t-tools ul { list-style: none; margin: 0; padding: 0; max-width: 420px; }
.t-tools li { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid #e3e6ea; }
.t-tools li:last-child { border: 0; }
.t-tools li img { width: 26px; height: 26px; margin-top: 8px; }
.t-tools h4 { font-size: 32px; line-height: 1.32; }
.t-tools li p { font-size: 16px; line-height: 1.4; margin-top: 10px !important; max-width: 23em; color: #3b3d55; }
.t-report { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 56px; padding: 48px 64px; border-radius: 20px; background: var(--misty); margin: 70px 0; }
.t-report img { width: 150px; }
.t-kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.t-report h3 { font-size: 40px; line-height: 1.2; margin: 8px 0 12px !important; }
.t-report p:not(.t-kicker) { font-size: 18px; line-height: 1.5; max-width: 36em; }
.t-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; padding: 64px 40px; border-radius: 20px; background: #efefef; margin: 80px 0; }
.t-contact .t-lede { margin-top: 140px !important; max-width: 16em; }
.t-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; align-content: start; }
.t-field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.t-field i { display: flex; align-items: center; justify-content: flex-end; height: 40px; padding: 0 14px; background: #fff; border: 1px solid #e2e2e2; }
.t-field i svg { width: 11px; color: #777; }
.t-field.wide { grid-column: 1 / -1; }
.t-field.tall i { height: 64px; }
.t-check { grid-column: 1 / -1; display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.t-check i { flex: none; width: 14px; height: 14px; margin-top: 4px; background: #fff; border: 1px solid #bbb; border-radius: 2px; }
.t-check b { font-weight: 600; }
.t-form .t-btn { justify-self: start; height: 46px; font-size: 15px; }
.t-foot { background: var(--ink); color: #fff; padding: 64px 0 40px; }
.t-foot-top { display: flex; justify-content: space-between; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.25); }
.t-foot-links { display: grid; gap: 14px; font-size: 15px; }
.t-foot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 36px; }
.t-foot-r .t-logo { color: #fff; width: 252px; }
.t-foot-r div { display: flex; gap: 10px; }
.t-foot-r .t-btn { height: 48px; padding: 0 28px; font-size: 16px; }
.t-foot-bot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; font-size: 14px; }
.t-copy { margin-left: auto; }
/* The page's own narrow layout (phones) */
@container (max-width: 700px) {
  .t-wrap { padding: 0 20px; }
  .t-split, .t-tools, .t-contact, .t-form { grid-template-columns: 1fr; gap: 32px; }
  .t-nav { height: 64px; padding: 0 20px; }
  .t-nav nav, .t-nav-r { display: none; }
  .t-logo { width: 150px; }
  .t-burger { display: grid; gap: 5px; margin-left: auto; } .t-burger i { display: block; width: 22px; height: 2px; background: var(--ink); }
  .t-hero { padding: 48px 0; }
  .t-hero h1, .t-xl { font-size: 40px; }
  .t-lede { font-size: 18px; margin-top: 20px !important; }
  .t-why { margin: 48px auto; }
  .t-why h2, .t-leaders h2, .t-contact h2 { font-size: 32px; }
  .t-big { font-size: 20px; margin-top: 24px !important; }
  .t-leaders { padding: 48px 0; }
  .t-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .t-card { min-height: 0; padding: 24px; } .t-card img { height: 48px; } .t-card .t-more { margin-top: 24px; }
  .t-tools { margin: 48px auto; } .t-tools h4 { font-size: 24px; }
  .t-report { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; margin: 32px 0; }
  .t-report img { width: 110px; } .t-report h3 { font-size: 28px; }
  .t-contact { padding: 32px 20px; margin: 32px 0; } .t-contact .t-lede { margin-top: 20px !important; }
  .t-foot { padding: 40px 0 28px; }
  .t-foot-top { flex-direction: column; gap: 36px; padding-bottom: 36px; }
  .t-foot-r { align-items: flex-start; } .t-foot-r .t-logo { width: 180px; }
  .t-copy { margin-left: 0; }
}

/* Odds & Ends: smaller pieces, one chapter per client */
.odds-cover .stage { padding: 0; }
.odds-fan { position: absolute; right: clamp(24px, 5vw, 100px); top: clamp(88px, 13vh, 150px); width: min(30vw, 440px); height: min(36vh, 420px); }
.odds-fan img { position: absolute; width: 44%; border-radius: 4px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); }
.odds-fan img:nth-child(1) { left: 0; top: 12%; transform: rotate(-7deg); }
.odds-fan img:nth-child(2) { left: 27%; top: 0; transform: rotate(2deg); z-index: 1; }
.odds-fan img:nth-child(3) { right: 0; top: 6%; height: 92%; width: 36%; object-fit: cover; object-position: top; transform: rotate(7deg); }
.odds-chapter .stage { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.odds-head .body { margin-top: 22px; max-width: 30ch; }
.odds-pieces { display: flex; gap: clamp(16px, 2.5vw, 40px); justify-content: center; align-items: center; min-width: 0; }
.odds-pieces img { display: block; height: auto; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
/* small originals: never shown bigger than they really are (HP 600px, FCI 329px) */
.odds-hp .odds-pieces img { width: min(46%, 600px); max-height: min(74vh, 776px); object-fit: contain; }
.odds-fci .odds-pieces img { width: auto; max-width: min(44%, 329px); max-height: min(72vh, 517px); }
/* OpenPass: one film in the standard player, beside the chapter head */
.odds-film .stage { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.odds-film .film-fit { height: min(100%, 64vh); align-items: center; }
/* very tall infographics: show the top, fade it out, click opens the whole thing */
.odds-tall { position: relative; margin: 0; width: min(44%, 420px); aspect-ratio: 3 / 4; max-height: 72vh; overflow: hidden; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
.odds-tall img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; }
.odds-tall::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, var(--fade, var(--oyf)) 88%); pointer-events: none; }
.tone-paper .odds-tall { --fade: var(--project-light); }
.odds-tall figcaption {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; pointer-events: none;
  font: 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oyf-light);
}

/* Unbreak The Internet: the Oculus — the 100-yard screen's own content, two runs stacked full width */
.ubti-oculus .stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); }
.oculus-strips { display: grid; gap: clamp(10px, 1.6vh, 18px); }
.oculus-strips video { display: block; width: 100%; aspect-ratio: 1920 / 260; object-fit: cover; border-radius: 4px; background: #0b1b3a; box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }

/* inline heart in a big-line ("I ♥ buffering"): drawn, so it matches the type instead of a fallback font's emoji */
.big-line .heart { display: inline-block; height: .74em; width: auto; vertical-align: -.02em; fill: var(--oyf-light); }

/* Unbreak The Internet: press — headline screenshots in a 2×2 grid, each linking to its source */
.ubti-press .stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); }
.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.press-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.press-grid.n1 { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.press-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.press-card img { display: block; width: 100%; height: clamp(110px, 18vh, 190px); object-fit: contain; object-position: left center; background: #fff; border-radius: 6px; padding: 14px 18px; box-sizing: border-box; box-shadow: 0 16px 40px -22px rgba(0,0,0,.45); }
.press-src { font: 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, currentColor 60%, transparent); }
.press-src b { font-weight: 600; color: var(--oyf-light); margin-right: 6px; }
.press-card:hover img { box-shadow: 0 0 0 2px var(--oyf-light), 0 16px 40px -22px rgba(0,0,0,.45); }
/* a flat page comp inside the browser frame (instead of a rebuilt page) */
.ttd-shot img { display: block; width: 100%; height: auto; }

/* Credits on a project's closing panel: role in mono, collaborator's name links to their site */
.credits { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 4vw, 56px); margin: clamp(28px, 6vh, 56px) 0 0; }
.credits dt { font: 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, currentColor 55%, transparent); margin-bottom: 8px; }
.credits dd { margin: 0; font-size: clamp(16px, 1.3vw, 19px); }
.credits a { color: inherit; text-decoration: underline; text-decoration-color: var(--pop-deep, currentColor); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.credits a:hover { text-decoration-thickness: 2px; }

/* Success Stories: LinkedIn posts dropping onto a pile as you scroll (main.js li-pile sets --in per card) */
.li-pile .stage { display: grid; grid-template-columns: minmax(220px, 1.6fr) 2fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.pile { position: relative; height: min(80vh, 780px); }
.li-post {
  --w: min(380px, 30vw);
  position: absolute; left: 50%; top: 50%; width: var(--w); box-sizing: border-box;
  background: #fff; color: rgba(0,0,0,.9); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 22px 50px -22px rgba(0,0,0,.45);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased;
  /* --in: 0 = off-screen below, 1 = landed at its spot in the pile */
  --k: 1; /* how far the pile spreads (phones tighten it) */
  transform: translate(calc(-50% + var(--x) * var(--k) * var(--in, 0)), calc(-50% + var(--y) * var(--k) * var(--in, 0) + (1 - var(--in, 0)) * 90vh)) rotate(calc(var(--r) * var(--in, 0) + (1 - var(--in, 0)) * 14deg)) scale(var(--s, 1));
  opacity: clamp(0, calc(var(--in, 0) * 4), 1);
}
.li-post header { display: flex; gap: 8px; align-items: center; padding: 10px 12px 0; }
.li-av { width: 36px; height: 36px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: grid; place-items: center; flex: none; }
.li-av svg { width: 22px; height: 22px; }
.li-av.ini { border-radius: 50%; box-shadow: none; background: #dfe9f3; color: #3b5068; font-weight: 600; font-size: 13px; }
.li-who { display: flex; flex-direction: column; font-size: 12px; color: rgba(0,0,0,.6); line-height: 1.3; }
.li-who b { font-size: 13px; color: rgba(0,0,0,.9); font-weight: 600; }
.li-follow { margin-left: auto; color: #0a66c2; font-weight: 600; font-size: 13px; }
.li-text { margin: 8px 12px 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.li-text a { color: #0a66c2; font-weight: 600; }
.li-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.li-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.li-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.55); box-shadow: 0 0 0 2px #fff inset; }
.li-play::after { content: ""; position: absolute; left: 21px; top: 16px; border: 10px solid transparent; border-left: 15px solid #fff; border-right: 0; }
.li-title { padding: 8px 12px; font-weight: 600; font-size: 13px; background: #f4f2ee; }
.li-comment {
  --k: 1; position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; gap: 8px; align-items: flex-start; width: max-content; max-width: 250px;
  padding: 9px 11px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 14px 30px -14px rgba(0,0,0,.45);
  font: 12.5px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: rgba(0,0,0,.9);
  --ky: var(--k);
  transform: translate(calc(-50% + var(--cx) * var(--k)), calc(-50% + var(--cy) * var(--ky))) rotate(var(--r)) scale(calc(.6 + .4 * var(--in, 0)));
  opacity: var(--in, 0);
}
.li-comment p { margin: 0; }
.li-comment .li-av { width: 28px; height: 28px; font-size: 11px; }
.li-quote { margin: 0 12px 10px; padding: 8px 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; font-size: 12px; }
.li-quote b { display: block; font-size: 12px; margin-bottom: 2px; }
.li-quote p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(0,0,0,.75); }
.li-stats { padding: 8px 12px 10px; font-size: 12px; color: rgba(0,0,0,.6); border-top: 1px solid rgba(0,0,0,.08); }

/* What Is TTD: "How we made it" — four practical-set loops in a grid beside the head */
.wi-making .stage { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.making-head .body { margin-top: 20px; max-width: 30ch; }
.making-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: min(100%, calc((100vh - 220px) * 16 / 9)); gap: clamp(10px, 1.4vw, 18px); }
.making-grid figure { margin: 0; }
.making-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: #000; box-shadow: 0 14px 34px -18px rgba(0,0,0,.5); }
.making-grid figcaption { color: var(--pop-deep, #00897b); }

/* Hero bug, top-right: a small credit, deliberately quiet (no logo, no motion) */
.ai-bug {
  position: absolute; right: calc(var(--gutter) + 40px); top: clamp(96px, 15vh, 150px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid currentColor; border-radius: 99px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: inherit; text-decoration: none; opacity: .8;
  transition: opacity .2s, background .2s;
}
.ai-bug span { color: var(--pop-deep, #00897b); font-size: 13px; }
.ai-bug:hover { opacity: 1; background: var(--pop, #a7ffeb); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(12, 20, 19, .94); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.lightbox.on { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 90px clamp(70px, 9vw, 130px); box-sizing: border-box; }
.lb-stage img, .lb-stage video { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.lightbox .close { position: fixed; }
.lightbox.single .arrow { display: none; }
.lightbox.tall .lb-stage { display: block; overflow-y: auto; overscroll-behavior: contain; padding: 90px 16px; }
.lightbox.tall .lb-stage img { width: min(100%, 900px); height: auto; margin: 0 auto; object-fit: initial; max-height: none !important; }
@media (max-width: 800px) { .lb-stage { padding: 96px 12px 84px; } .lightbox .arrow { top: auto; bottom: 18px; transform: none; } }

/* Results */
.oyf-results .stage { display: flex; flex-direction: column; justify-content: center; }
.stats { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.stats li { padding: 28px 24px 28px 0; display: grid; gap: 8px; }
.stats b { font-weight: 900; font-variation-settings: "wdth" 62; font-size: clamp(64px, 11vw, 180px); line-height: .85; }
.stats span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.credits { max-width: 60ch; }

/* Outro */
.outro { height: 100vh; }
.outro .stage {
  background: var(--bg-contact); color: var(--fg-contact);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: center;
}
.contact-title {
  margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 120px); line-height: .9; letter-spacing: -.02em;
}
[data-theme="cream"] .contact-title { text-transform: none; font-weight: 700; font-variation-settings: normal; letter-spacing: -.02em; line-height: .98; }
.contact-email { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: clamp(20px, 4vh, 40px) 0 0; }
.contact-email a { font-size: clamp(20px, 2.2vw, 34px); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.copy-email {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 99px; border: 1px solid currentColor; background: none; cursor: pointer;
}
.copy-email:hover { background: var(--fg-contact); color: var(--bg-contact); }
.contact-form { display: grid; gap: clamp(14px, 2.4vh, 24px); }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, currentColor 60%, transparent); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: clamp(16px, 1.3vw, 19px); color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 0;
  padding: 8px 0; resize: vertical; transition: border-color .3s;
}
.contact-form textarea { min-height: 3.5em; max-height: 30vh; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: currentColor; }
.contact-form .invalid { border-bottom-color: #c2410c; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.outro .btn { background: var(--fg-contact); color: var(--bg-contact); border: 0; cursor: pointer; }
.outro .btn:hover { background: var(--fg-contact); color: var(--bg-contact); opacity: .85; }
.form-status { margin: 0; font-family: var(--mono); font-size: 12px; }
.credit { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, currentColor 55%, transparent); }
.credit a { color: inherit; text-underline-offset: .2em; }
.credit a:hover { color: var(--fg-contact, currentColor); }
.outro-links { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; }

/* Prototype-only theme switch */

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .chrome { grid-template-columns: 1fr auto; }
  .now { display: none; }
  .outro { height: auto; }
  .outro .stage { grid-template-columns: 1fr; height: auto; min-height: 100vh; align-content: center; padding-top: 90px; padding-bottom: 60px; }
  .dots { display: none; }
  /* Intro flows top to bottom on phones so the cue and details never collide */
  .intro .stage { justify-content: flex-start; padding-top: clamp(72px, 12vh, 120px); padding-bottom: 24px; }
  .intro-foot { position: static; order: 3; margin-top: auto; flex-direction: column; align-items: start; }
  .intro-foot dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .intro-foot dl > div:first-child { grid-column: 1 / -1; }
  .scroll-cue { position: static; order: 2; margin-top: clamp(16px, 4vh, 40px); flex-direction: row; justify-content: flex-start; gap: 14px; }
  .cue-word { font-size: 44px; }
  .cue-arrow { height: 64px; }
  .work-list a, .work-list .is-soon { grid-template-columns: 30px 1fr; row-gap: 3px; padding: clamp(6px, 1.2vh, 12px) 0; }
  .index .stage { padding-top: 72px; }
  .wl-title { font-size: clamp(24px, min(7.4vw, 4.6vh), 34px); }
  .wl-name { gap: 3px; }
  .wl-client, .wl-meta { font-size: 10.5px; }
  .wl-client { padding-left: clamp(1.5px, min(.52vw, .32vh), 2.5px); }
  .wl-meta { grid-column: 2; }
  .wl-peek { display: none; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brief" "head" "copy"; row-gap: 20px; }
  .oyf-brief .stage { padding-top: 80px; padding-bottom: 20px; }
  .oyf-brief .big-line { font-size: clamp(30px, 9.6vw, 44px); margin-bottom: 0; }
  .oyf-brief .b-head { margin-top: 14px; } /* brief and idea read as two blocks; headline and copy as one */
  .oyf-brief .eyebrow { margin-bottom: 10px; }
  .oyf-brief .body { font-size: 15px; line-height: 1.45; }
  .odds-chapter .stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; padding-top: 80px; }
  .odds-head .body { margin-top: 12px; font-size: 15px; }
  .odds-film .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; }
  .odds-film .film-fit { height: auto; }
  .ai-bug { position: static; align-self: flex-start; margin-bottom: 18px; font-size: 9.5px; padding: 7px 11px; letter-spacing: .06em; }
  .wi-making .stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding-top: 80px; }
  .making-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .making-head .body { margin-top: 10px; font-size: 15px; }
  .li-pile .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; padding-top: 80px; }
  .pile { height: 100%; min-height: 0; }
  .li-post { --w: min(300px, 76vw); --k: .45; --s: .92; font-size: 11.5px; }
  .li-text { -webkit-line-clamp: 3; }
  .li-comment { --k: .3; --ky: .68; max-width: 165px; font-size: 10.5px; padding: 6px 8px; }
  .li-comment .li-av { width: 22px; height: 22px; font-size: 9px; }
  .press-grid, .press-grid.n3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .press-card { gap: 5px; }
  .press-card img { height: min(64px, 9.5vh); padding: 6px 8px; }
  .press-src { font-size: 10px; }
  .ubti-press .stage { padding-top: 76px; gap: 14px; }
  .odds-pieces img, .odds-tall { max-height: 50vh; }
  .odds-hp .odds-pieces img, .odds-tall { width: 47%; }
  .odds-fci .odds-pieces img { max-width: 47%; }
  .odds-fan { top: 84px; right: 16px; width: 72vw; height: 26vh; }
  .oyf-brief .b-brief .body { font-size: 17px; line-height: 1.4; }
  .caps .stage { grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .about .stage { grid-template-columns: 1fr; }
  .about-body { grid-column: 1; grid-row: 3; margin-top: 24px; }
  .about-cta { grid-column: 1; grid-row: 4; }
  .chrome-links { gap: 14px; }
  .cap-body p, .about-body p, .about-cta { padding-left: 0; }
  /* phones: 16:9 full width, then 1:1 and 9:16 side by side at the same height */
  .formats { flex-wrap: wrap; width: 100%; row-gap: 18px; }
  .formats .f169 { flex-basis: 100%; }
  .oyf-cover .bg-video { object-position: var(--pos, 30% 50%); }
  /* OLV then audio, stacked; the cut labels shrink to fit five across */
  .adapt-grid { grid-template-columns: 1fr; gap: 18px; }
  .adapt-olv { width: 100%; }
  .adapt-label { margin-bottom: 8px; }
  .adapt-label b { font-size: 22px; }
  .olv-list { gap: 5px; margin-top: 8px; }
  .olv-list button { font-size: 9px; letter-spacing: .02em; padding-top: 7px; }
  .oyf-adapt .stage { justify-content: flex-start; padding-top: 84px; }
  .audio-comp { grid-template-columns: 46% minmax(0, 1fr); gap: 16px; }
  .phone { width: 100%; height: auto; aspect-ratio: 9 / 19.5; padding: 4px; }
  .spot-list button { column-gap: 8px; padding: 9px 0; }
  .spot-title { font-size: 14px; }
  .arrow { width: 44px; }
  .arrow.prev { left: 8px; } .arrow.next { right: 8px; }
  .oyf-display .stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .oyf-display:has(.wall-1) .stage { grid-template-columns: 1fr; }
  .oyf-display.wide-head .stage { grid-template-columns: 1fr; }
  .oyf-site .stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding-top: 84px; padding-bottom: 24px; }
  .site-live { margin-top: 12px; }
  .browser { height: 100%; align-self: stretch; }
  .b-url { transform: none; font-size: 11px; }
  .display-wall { grid-template-columns: 1fr 1fr; }
  .wall-col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .display-head { transform: translateY(var(--drift, 0)); }
  .oyf-films .stage { grid-template-rows: auto auto auto; align-content: center; }
  .film-fit { container-type: normal; }
  .film-tabs { column-gap: 12px; }
  .film-tabs button { font-size: 13px; }
  .film-frame { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .stats b { font-size: 64px; }
}

/* Short phones (iPhone SE): tighten the OLV + audio panel so it fits one screen */
@media (max-width: 800px) and (max-height: 700px) {
  .oyf-brief .stage { padding-top: 64px; }
  .oyf-brief .brief-grid { row-gap: 14px; }
  .oyf-brief .big-line { font-size: 32px; margin-bottom: 0; }
  .oyf-brief .body { font-size: 13.5px; line-height: 1.4; }
  .oyf-brief .b-brief .body { font-size: 14px; line-height: 1.35; }
  .oyf-brief .body + .body { margin-top: .6em; }
  .oyf-adapt .stage { gap: 12px; }
  .oyf-adapt .section-title { font-size: 30px; }
  .adapt-head .eyebrow { display: none; }
  .adapt-grid { gap: 12px; }
}

@media (max-width: 800px) and (max-height: 600px) { .oyf-brief .big-line { font-size: 27px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-play::before, .ph-play::after, .ph-next::before, .ph-next::after, .playing .eq i { animation: none; }
  .stage { transform: none !important; }
  .cue-arrow { animation: none; }
  .rise { opacity: 1 !important; transform: none !important; }
  .project { transition: none; }
}



/* ---------- Simple mode (phones) ----------
   html.simple is set in the <head> on phones: no pinning or scroll animation. Each section sits in plain
   flow at its own height, shows its finished state, and the header turns solid (main.js sets --chrome-bg
   to whatever section is under it). */
.simple .panel { height: auto !important; }
.simple .panel + .panel { margin-top: 0; }
.simple .stage {
  position: relative; height: auto; min-height: 0; will-change: auto; transform: none !important;
  padding-top: 72px; padding-bottom: 56px;
}
.simple .stage::after { display: none; }
.simple .panel:not(:first-child) > .stage { box-shadow: none; border-radius: 0; }
.simple .chrome { background: var(--chrome-bg, transparent); padding-top: 14px; padding-bottom: 14px; transition: color .3s, background-color .3s; }
.simple .rise { opacity: 1 !important; transform: none !important; }
.simple .about { --underline: 1; }
.simple .scroll-cue { display: none; }

/* Home */
.simple .intro .stage { min-height: 0; padding-top: 104px; padding-bottom: 48px; }
.simple .intro-foot { margin-top: 48px; }
.simple .index .stage { padding-top: 64px; }
.simple .work-list { transform: none; margin: 0; }
.simple .work-eyebrow { transform: none; margin-top: 0; }
.simple .caps-list li::after { display: none; }
.simple .caps-list .cap-title { color: inherit; cursor: default; }
.simple .caps-list .cap-num { color: var(--hl); }
.simple .cap-body { grid-template-rows: 1fr; }
.simple .cap-body p { opacity: 1; transform: none; }

/* Projects */
.simple .oyf-cover .stage { min-height: 100svh; padding: 0; }
.simple .bg-video { transform: none; }
.simple .display-head, .simple .adapt-head, .simple .adapt-grid { transform: none; translate: none; }
.simple .oyf-site .stage { grid-template-rows: auto auto; }
.simple .browser { height: 78svh; }
.simple .browser-view { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.simple .li-pile .stage { grid-template-rows: auto auto; row-gap: 8px; }
.simple .pile { height: min(150vw, 640px); }
