/* Coach Dami portfolio, v2.
   One system: one type scale, one radius, one button pair, one link look, one media frame.
   Flat grounds in surface pairs, one orange brand band, the work shown on every screen. */
:root {
  --bg: #eef2f0;
  --bg-2: #e2e9e6;
  --panel: #f7f9f8;
  --fg: #0a2226;
  --mute: #4a6165;
  --line: rgba(10, 34, 38, .14);
  --accent: #cf4d0c;
  --on-accent: #fff8f2;
  --teal: #0b7a73;
  --gold: #8e6200;
  --screen: #020a0c;
  --screen-fg: #f3eee2;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  --gut: clamp(20px, 4vw, 56px);
  --bar: 64px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #061518;
  --bg-2: #0a2126;
  --panel: #0e2a30;
  --fg: #ece5d6;
  --mute: #93aaa9;
  --line: rgba(236, 229, 214, .15);
  --accent: #ff7a2f;
  --on-accent: #1b0c03;
  --teal: #42d3c8;
  --gold: #f2c75c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { max-width: 1360px; margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.mono { font: 500 .72rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, min(7vw, 10.6vh), 7rem); white-space: nowrap; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.lede { font-size: clamp(1.06rem, 1.25vw, 1.2rem); color: var(--mute); max-width: 44ch; }
.label { display: flex; align-items: center; gap: .8em; color: var(--mute); font: 500 .72rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }

/* ---------- one button pair, one link look ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.5em;
  background: var(--accent); color: var(--on-accent); border-radius: var(--r);
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn--quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .92rem; }
.btn:active { transform: scale(.97); }
.link, .textbtn {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 220ms var(--ease-out), color 160ms ease; padding-block: .35em;
}
.link { font-weight: 600; background-size: 100% 1px; }
.actions .link { min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 8px); }
.textbtn { color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
  .btn--quiet:hover { box-shadow: inset 0 0 0 1px var(--fg); }
  .btn:active { transform: scale(.97); }
  .link:hover { color: var(--accent); }
  .textbtn:hover { color: var(--fg); background-size: 100% 1px; }
}
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1em; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); font: 500 .92rem/1 var(--body); color: var(--fg); white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chip:hover { box-shadow: inset 0 0 0 1px var(--fg); } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- one media frame ---------- */
.media { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r); background: var(--screen); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.media--link, .card { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .media--link:hover, .card:hover { transform: translateY(-2px); }
  .media--link:hover img, .card:hover .media img, .svc__media:hover img { transform: scale(1.03); }
}
.noimg img { visibility: hidden; }
.playdot { position: absolute; left: 16px; bottom: 16px; width: 48px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.playdot svg, .monitor__play svg { width: 42%; fill: var(--on-accent); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: .6rem; min-height: var(--bar); }
.logo { font: 900 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.bar__menu { display: contents; }
.nav { display: flex; gap: clamp(1rem, 1.8vw, 1.8rem); margin-inline: auto; }
.nav a { font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--fg); } }
.bar__burger { display: none; }

/* ---------- hero: alone on the first screen ---------- */
.hero { min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1rem, 2.5vh, 2rem); padding-block: clamp(1rem, 2.5vh, 2.5rem) clamp(1rem, 2.2vh, 1.75rem); }
.hero > .wrap { width: 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; flex: 1; }
.hero__copy { display: flex; flex-direction: column; gap: clamp(.9rem, 2vh, 1.4rem); min-width: 0; }
h1 .line { display: block; }

/* the hero enters once on load */
[data-enter] .hero__copy > *, [data-enter] h1 .line, [data-enter] .tl { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
[data-enter] .hero__copy > h1 { animation: none; }
[data-enter] .monitor { animation: reveal 800ms var(--ease-out) 120ms both; }
[data-enter] .tl { --i: 8; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes reveal { from { opacity: 0; clip-path: inset(6% 6% 6% 6% round 10px); transform: scale(.985); } to { opacity: 1; clip-path: inset(0 0 0 0 round 10px); transform: none; } }
@keyframes fade { from { opacity: 0; } }

.monitor { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--screen); color: var(--screen-fg); overflow: hidden; border-radius: var(--r); transition: transform 160ms var(--ease-out); }
.monitor:active { transform: scale(.99); }
.monitor__img, .monitor__vid, .card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.monitor__img.is-on, .monitor__vid.is-on, .card .media video.is-on { opacity: 1; }
.monitor__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 10, 12, .5), transparent 26%, transparent 55%, rgba(2, 10, 12, .82)); }
.monitor__top, .monitor__bot { position: absolute; left: 0; right: 0; padding: clamp(.9rem, 1.8vw, 1.4rem) clamp(1rem, 2vw, 1.6rem); display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.monitor__top { top: 0; }
.monitor__bot { bottom: 0; flex-direction: column; align-items: flex-start; gap: .3rem; }
.monitor__bot .mono { color: #ffb07d; }
.monitor__title { font: 800 clamp(1.6rem, 3.2vw, 3rem)/.95 var(--display); text-transform: uppercase; }
.monitor__play { position: absolute; left: 50%; top: 50%; width: clamp(56px, 6vw, 80px); aspect-ratio: 1; margin: calc(clamp(56px, 6vw, 80px) / -2) 0 0 calc(clamp(56px, 6vw, 80px) / -2); border-radius: 50%; background: #ff7a2f; display: grid; place-items: center; transition: transform 200ms var(--ease-out); }
.monitor__play svg { fill: #1b0c03; }
@media (hover: hover) and (pointer: fine) { .monitor:hover .monitor__play { transform: scale(1.08); } }

/* timeline */
.tl__head { display: flex; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; color: var(--mute); margin-bottom: .4rem; }
.tl__keys { display: flex; align-items: center; gap: .5em; margin-left: auto; }
.sw { width: .8em; height: .8em; display: inline-block; margin-left: .8em; border-radius: 2px; }
.sw--film { background: var(--teal); margin-left: 0; } .sw--ads { background: var(--accent); } .sw--anim { background: var(--gold); }
.only-touch { display: none; }
@media (hover: none), (pointer: coarse) { .only-touch { display: inline; } .only-fine { display: none; } }
.tl__lanes { position: relative; background: var(--bg-2); border-radius: var(--r); overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.tl__ruler { display: flex; height: 24px; border-bottom: 1px solid var(--line); }
.tl__ruler span { flex: 1; font: 400 .62rem/24px var(--mono); color: var(--mute); padding-left: 8px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.tl__ruler span:first-child { border-left: 0; }
.tl__track { display: flex; gap: 4px; padding: 6px; }
.clip { --c: var(--teal); position: relative; flex: 1; min-width: 0; height: clamp(56px, 8.5vh, 84px); border-radius: 6px; overflow: hidden; background: var(--screen); cursor: inherit; }
.clip[data-cat="ads"] { --c: var(--accent); } .clip[data-cat="anim"] { --c: var(--gold); }
.clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity 200ms ease; pointer-events: none; }
.clip::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); z-index: 1; }
.clip span { position: absolute; left: 8px; bottom: 6px; right: 6px; font: 500 .62rem/1.1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--screen-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; text-shadow: 0 1px 4px #000; }
.clip.is-on img { opacity: 1; }
.clip.is-on { box-shadow: inset 0 0 0 2px var(--c); }
.tl__head-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent); pointer-events: none; z-index: 2; will-change: transform; }
.tl__head-line::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 10px solid var(--accent); }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--alt { background: var(--bg-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-note { max-width: 40ch; color: var(--mute); }
.filters, .opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split--top { align-items: start; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; min-width: 0; }
.stack > p:not(.lede):not(.mono) { color: var(--mute); max-width: 52ch; }

/* work */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 1.8vw, 1.5rem); }
.card { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.card .media { aspect-ratio: 16 / 9; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__title { font: 800 clamp(1.3rem, 1.8vw, 1.7rem)/1 var(--display); text-transform: uppercase; }
.card__meta .mono { color: var(--c, var(--teal)); white-space: nowrap; }
.card[data-cat="ads"] { --c: var(--accent); } .card[data-cat="anim"] { --c: var(--gold); }

/* results: brand band + type moment */
.results { background: var(--accent); color: var(--on-accent); }
.results__in { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding-block: clamp(4.5rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem); }
.results__line { font-size: clamp(2.4rem, 6.2vw, 6.4rem); max-width: 17ch; text-wrap: pretty; }
.results__line.is-live .w { opacity: .3; transition: opacity 260ms ease; }
.results__line.is-live .w.on { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--on-accent) 35%, transparent); }
.facts dt { font: 900 clamp(2.8rem, 5vw, 4.8rem)/.9 var(--display); font-variant-numeric: tabular-nums; }
.facts dd { margin-top: .5rem; font-weight: 500; max-width: 18ch; }

/* services */
.svc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.svc__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 44px; padding: clamp(.9rem, 1.8vw, 1.4rem) 0; border-bottom: 1px solid var(--line); color: var(--mute); transition: color 200ms ease; }
.svc__row b { font: 800 clamp(2rem, 4.2vw, 3.8rem)/1 var(--display); text-transform: uppercase; transition: transform 240ms var(--ease-out); }
.svc__row .mono { opacity: 0; color: var(--accent); white-space: nowrap; transition: opacity 200ms ease; }
.svc__row[aria-pressed="true"] { color: var(--fg); }
.svc__row[aria-pressed="true"] b { transform: translateX(12px); }
.svc__row[aria-pressed="true"] .mono { opacity: 1; }
.svc__media { aspect-ratio: 16 / 9; }
.svc__media img { transition: transform 500ms var(--ease-out), opacity 220ms ease, filter 220ms ease; }
.svc__media.is-swapping img { opacity: 0; filter: blur(4px); }

/* process */
.proc__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.proc__tab { min-height: 84px; padding: 1rem; border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; color: var(--mute); min-width: 0; transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.proc__tab b { font: 800 clamp(1.15rem, 1.9vw, 1.7rem)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.proc__tab:active { transform: scale(.97); }
.proc__tab[aria-selected="true"] { background: var(--teal); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .proc__tab:not([aria-selected="true"]):hover { color: var(--fg); } }
.proc__panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.proc__n { font: 900 clamp(5rem, 13vw, 11rem)/.8 var(--display); color: var(--teal); font-variant-numeric: tabular-nums; }
.proc__panel h3 { margin-bottom: .7rem; }
.proc__panel p { max-width: 54ch; font-size: 1.1rem; color: var(--mute); }

/* about, academy */
.portrait { aspect-ratio: 4 / 5; }
.portrait img { object-position: 50% 20%; }
#academy .media { aspect-ratio: 16 / 10; }
.outs { width: 100%; }
.outs .mono { color: var(--mute); margin-bottom: .7rem; }
.outs ul { border-top: 1px solid var(--line); }
.outs li { padding: .85rem 0; border-bottom: 1px solid var(--line); font: 800 clamp(1.4rem, 2.4vw, 2.1rem)/1.05 var(--display); text-transform: uppercase; }

/* brands */
.ways { width: 100%; border-top: 1px solid var(--line); }
.ways li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .4rem 2rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ways b { font: 800 clamp(1.4rem, 2.2vw, 1.9rem)/1 var(--display); text-transform: uppercase; }
.ways span { color: var(--mute); }

/* one panel style: the two forms */
.panel { display: flex; flex-direction: column; gap: 1.5rem; background: var(--panel); border-radius: calc(var(--r) * 1.6); padding: clamp(1.25rem, 3vw, 2.25rem); }
.section--alt .panel { background: var(--bg); }
.steps { display: flex; flex-direction: column; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .6rem; }
.field .mono, .out .mono { color: var(--mute); }
.field input, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: .85em 1em; resize: vertical; width: 100%; min-height: 52px; transition: box-shadow 160ms ease; }
.section--alt .field input, .section--alt .field textarea { background: var(--panel); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field ::placeholder { color: var(--mute); opacity: .7; }
.opts .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.out { display: flex; flex-direction: column; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.out p { font-size: 1.05rem; overflow-wrap: anywhere; }
.copy { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1.3rem; min-height: 52px; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
.copy:active { transform: scale(.97); }
.copy > span:first-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.copy .mono { color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .copy:hover { box-shadow: inset 0 0 0 1px var(--fg); } }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.socials:empty { display: none; }

/* faq */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; padding: 1.2rem 0; cursor: pointer; list-style: none; font: 800 clamp(1.3rem, 2vw, 1.8rem)/1.05 var(--display); text-transform: uppercase; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--mono); color: var(--accent); transition: transform 220ms var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { max-width: 58ch; color: var(--mute); padding-bottom: 1.4rem; animation: fade 220ms ease; }

/* ---------- process: panel beside the product demo ---------- */
.proc__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.proc__body .proc__panel { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.proc__body .proc__n { font-size: clamp(4rem, 8vw, 7rem); }

/* stageshow demo: a real-looking screen in quiet grays, words only where the story is */
.ss { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.ss-stage { position: relative; width: 100%; overflow: hidden; border-radius: var(--r); }
.ss-in { position: absolute; left: 0; top: 0; width: 640px; height: 400px; transform-origin: 0 0; font: 500 12px/1.3 var(--body); color: var(--fg); }
.ss-win { position: absolute; left: 20px; top: 20px; width: 690px; height: 430px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ss-chrome { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ss-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ss-chrome .ss-bar { margin-left: 14px; }
.ss-bar { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 16%, transparent); }
.ss-bar--dim { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.ss-cols { display: grid; grid-template-columns: 140px minmax(0, 1fr); height: calc(100% - 34px); }
.ss-side { display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; border-right: 1px solid var(--line); }
.ss-nav { margin: -8px -6px; padding: 8px 10px; border-radius: 7px; background: color-mix(in srgb, var(--fg) 8%, transparent); font-weight: 600; }
.ss-main { display: flex; flex-direction: column; min-width: 0; }
.ss-rows { display: flex; flex-direction: column; padding: 6px 8px 0; }
.ss-row { display: grid; grid-template-columns: 64px 196px auto; align-items: center; justify-content: start; gap: 12px; height: 52px; padding: 0 8px; border-radius: 8px; transition: background-color 150ms ease; }
.ss-lines { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ss-lines b { font-weight: 600; font-size: 12.5px; }
.ss-lines > span:not(.ss-bar) { color: var(--mute); font-size: 11.5px; white-space: nowrap; }
.ss-row--focus .ss-lines { gap: 2px; }
.ss-thumb, .ss-slot { position: relative; display: block; overflow: hidden; border-radius: 5px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.ss-thumb { width: 64px; height: 36px; }
.ss-thumb img, .ss-slot img, .ss-fly { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-thumb--empty, .ss-slot--empty { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.ss-thumb--new img { opacity: 0; filter: blur(6px); transition: opacity 420ms ease, filter 420ms ease; }
.ss-thumb--new::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--panel) 80%, transparent) 50%, transparent 70%) 0 0 / 220% 100%; opacity: 0; }
.ss-btn { position: relative; display: inline-grid; place-items: center; height: 28px; padding: 0 12px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 11.5px; overflow: hidden; transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.ss-btn__label, .ss-btn__check { grid-area: 1 / 1; transition: opacity 180ms ease, transform 220ms var(--ease-out), filter 180ms ease; }
.ss-btn__check { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.9); }
.ss-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; opacity: .7; }
.ss-tl { margin-top: auto; padding: 12px 16px 60px; border-top: 1px solid var(--line); }
.ss-tl__head { display: flex; justify-content: space-between; align-items: center; font: 500 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.ss-count { display: block; height: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.ss-count__in { display: flex; flex-direction: column; transition: transform 420ms var(--ease-in-out); }
.ss-count i { font-style: normal; height: 10px; }
.ss-track { display: flex; gap: 8px; }
.ss-slot { flex: none; width: 92px; height: 52px; transition: box-shadow 180ms ease; }
.ss-slot--target { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.ss-slot--target img { opacity: 0; }
.ss-fly { position: absolute; left: 0; top: 0; width: 64px; height: 36px; border-radius: 5px; transform-origin: 0 0; opacity: 0; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(2, 10, 12, .5); transition: transform 800ms var(--ease-in-out); }
.ss-fly.is-on { opacity: 1; }
.ss-cursor { position: absolute; left: -3px; top: -2px; width: 22px; height: 22px; opacity: 0; pointer-events: none; transition: transform 650ms var(--ease-in-out), opacity 300ms ease; filter: drop-shadow(0 1px 2px rgba(2, 10, 12, .35)); }
.ss-cursor path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; transform-origin: 5px 3px; transition: transform 110ms var(--ease-out); }
.ss-cursor.is-on { opacity: 1; }
.ss-cursor.is-down path { transform: scale(.86); }
/* states the script sets; the resting poster is the payoff frame */
.ss-stage[data-row="on"] .ss-row--focus { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.ss-stage[data-gen="busy"] .ss-btn { background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); }
.ss-stage[data-gen="busy"] .ss-btn::after { transform: scaleX(1); transition: transform 1500ms linear; }
.ss-stage[data-gen="busy"] .ss-thumb--new::after { opacity: 1; animation: ss-shimmer 900ms linear infinite; }
.ss-stage[data-gen="done"] .ss-btn { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.ss-stage[data-gen="done"] .ss-btn__label { opacity: 0; filter: blur(2px); transform: scale(.96); }
.ss-stage[data-gen="done"] .ss-btn__check { opacity: 1; transform: none; }
.ss-stage[data-gen="done"] .ss-thumb--new img { opacity: 1; filter: none; }
.ss-stage[data-slot="hot"] .ss-slot--target, .ss-stage[data-clip="in"] .ss-slot--target { box-shadow: inset 0 0 0 2px var(--accent); }
.ss-stage[data-clip="in"] .ss-slot--target img { opacity: 1; }
.ss-stage[data-clip="in"] .ss-count__in { transform: translateY(-10px); }
.ss-stage.is-press .ss-btn { transform: scale(.96); }
.ss-stage.is-compact .ss-cols { grid-template-columns: minmax(0, 1fr); }
.ss-stage.is-compact .ss-side { display: none; }
@keyframes ss-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }

/* ---------- footer: statement ---------- */
.foot { background: var(--fg); color: var(--bg); overflow: hidden; }
.foot .textbtn { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.foot__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: clamp(2.5rem, 5vw, 4rem) 1rem; }
.foot__nav, .foot__tools { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; align-items: center; }
.foot__nav .link { background-size: 0 1px; min-height: 44px; display: inline-flex; align-items: center; background-position: 0 calc(100% - 10px); }
@media (hover: hover) and (pointer: fine) { .foot__nav .link:hover { background-size: 100% 1px; color: inherit; } .foot .textbtn:hover { color: var(--bg); } }
.foot > .wrap { container-type: inline-size; }
.foot__mark { font: 900 21vw/.8 var(--display); font-size: 22cqi; text-transform: uppercase; white-space: nowrap; margin-left: -.02em; padding-top: .08em; }
.foot__legal { padding-block: 1.5rem; color: color-mix(in srgb, var(--bg) 60%, transparent); }

/* ---------- lightbox ---------- */
.lb { width: min(1200px, 100vw - 24px); max-width: none; max-height: none; padding: 0; border: 0; background: var(--screen); color: var(--screen-fg); border-radius: calc(var(--r) * 1.4); overflow: hidden; }
.lb::backdrop { background: rgba(2, 10, 12, .86); }
.lb[open] { animation: pop 240ms var(--ease-out); }
.lb[open]::backdrop { animation: fade 240ms ease; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 1.1rem; }
.lb__bar b { font: 800 1.3rem/1 var(--display); text-transform: uppercase; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb .mono { color: #9fb5b4; }
@media (hover: hover) and (pointer: fine) { .lb .textbtn:hover { color: var(--screen-fg); } }
.lb__frame { aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); width: 100%; background: #000; }
.lb__frame iframe, .lb__frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav { gap: 1rem; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero__grid, .split, .split--flip, .svc, .proc__body { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__media { order: -1; }
  .results__in { min-height: 0; }
  .tl__keys { display: none; }
  #reelBtn { margin-left: auto; }
  /* full-screen menu */
  .bar__cta { margin-left: auto; }
  .bar__burger { display: inline-flex; }
  .bar__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); overflow-y: auto; background: var(--bg); padding: 1rem max(var(--gut), env(safe-area-inset-right, 0px)) 2rem max(var(--gut), env(safe-area-inset-left, 0px)); }
  .bar.is-open .bar__menu { display: block; animation: fade 200ms ease; }
  .nav { flex-direction: column; gap: 0; margin: 0; }
  .nav a { font: 800 clamp(2.2rem, 9vw, 3.2rem)/1 var(--display); text-transform: uppercase; color: var(--fg); padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .proc__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc__tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lb__bar--bot { flex-wrap: wrap; }
  .lb__bar--bot a { order: 3; flex: 1 0 100%; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc__panel { grid-template-columns: minmax(0, 1fr); }
  .ways li { grid-template-columns: minmax(0, 1fr); }
  .clip span { display: none; }
  .clip { height: 56px; }
  .tl__ruler span:nth-child(even) { color: transparent; }
  .actions .btn { flex: 1 1 100%; }
  .bar .btn { flex: none; }
  .lb { width: 100vw; border-radius: 0; }
  .foot__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] .hero__copy > *, [data-enter] h1 .line, [data-enter] .tl, [data-enter] .monitor, .lb[open] { animation: fade 300ms ease both; }
  .btn, .chip, .card, .media--link, .media img, .svc__row b, .monitor__play { transition: none; }
  .btn:hover, .card:hover, .media--link:hover { transform: none; }
}

/* ---------- brief: the form beside a phone that shows the message as it is written ---------- */
.brief { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.brief__form { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brief__form > h2 { margin-bottom: clamp(1.5rem, 3.5vh, 2.75rem); }
.steps-q { display: flex; flex-direction: column; gap: 1.1rem; }
.brief__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 1rem; }
#copyBtn { margin-left: auto; font-variant-numeric: tabular-nums; }
.ph-stage { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.6); background: var(--bg-2); min-height: 560px; }
.ph { position: absolute; left: 50%; top: 9%; width: min(76%, 330px); height: 720px; margin-left: calc(min(76%, 330px) / -2); display: flex; flex-direction: column; background: var(--panel); border-radius: 46px; box-shadow: 0 0 0 9px #0d1416, 0 0 0 10px rgba(255, 255, 255, .12), 0 40px 70px -30px rgba(2, 10, 12, .55); font: 500 14px/1.4 var(--body); color: var(--fg); }
.ph__island { position: absolute; left: 50%; top: 12px; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #0d1416; }
.ph__status { display: flex; justify-content: space-between; align-items: center; padding: 17px 28px 0; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ph__sig { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.ph__sig i { width: 3px; border-radius: 1px; background: currentColor; }
.ph__sig i:nth-child(1) { height: 5px; } .ph__sig i:nth-child(2) { height: 8px; } .ph__sig i:nth-child(3) { height: 11px; }
.ph__head { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.ph__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.ph__who { display: flex; flex-direction: column; gap: 6px; }
.ph__who b { font-weight: 600; line-height: 1; }
.ph-bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.ph__thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; }
.ph__day { align-self: center; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 6%, transparent); margin-bottom: 6px; }
.ph__bubble { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: var(--accent); color: var(--on-accent); }
.ph__bubble p { overflow-wrap: anywhere; }
.ph__bubble.is-changing p { animation: ph-change 320ms ease; }
.ph__meta { align-self: flex-end; font-size: .6rem; color: var(--mute); padding-right: 4px; }
@keyframes ph-change { from { opacity: .35; filter: blur(3px); } }
@media (max-width: 980px) { .brief { grid-template-columns: minmax(0, 1fr); } .ph-stage { min-height: 440px; } }
@media (max-width: 640px) { .brief__fields { grid-template-columns: minmax(0, 1fr); } #copyBtn { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ph__bubble.is-changing p { animation: none; } }

/* =====================================================================
   Polish layer. Motion with a job: state, feedback, continuity.
   Transform, opacity and clip-path only; hover behind a pointer check.
   ===================================================================== */

/* hero: each headline line is unmasked from below, in order */
[data-enter] h1 .line { animation: line-in 820ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes line-in { from { clip-path: inset(0 0 100% 0); transform: translateY(38%); } to { clip-path: inset(-10% 0 -12% 0); transform: none; } }

/* nav: an ink line that slides to the section in view */
.nav { position: relative; }
.nav a[aria-current] { color: var(--fg); }
.nav__ink { position: absolute; left: 0; bottom: 6px; width: 1px; height: 2px; background: var(--accent); transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: transform 420ms var(--ease-in-out), opacity 200ms ease; }

/* primary buttons carry an arrow that steps forward on hover */
.btn:not(.btn--quiet)::after { content: "\2192"; margin-left: .55em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:not(.btn--quiet):hover::after { transform: translateX(4px); } }

/* work cards: a play chip that settles in on hover */
.card .media::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23fff8f2'/%3E%3C/svg%3E") 54% 50% / 44% no-repeat; transition: opacity 200ms ease, transform 240ms var(--ease-out); z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .card .media::after { opacity: 0; transform: scale(.9); }
  .card:hover .media::after, .card:focus-visible .media::after { opacity: 1; transform: none; }
}
.card:active { transform: scale(.985); }

/* process tabs: the highlight is a clipped copy that slides between tabs */
.proc { position: relative; }
.proc__on { position: absolute; left: 0; right: 0; top: 0; display: grid; gap: 6px; pointer-events: none; clip-path: inset(0 100% 0 0 round 10px); transition: clip-path 420ms var(--ease-in-out); }
.proc__on .proc__tab { background: var(--teal); color: var(--bg); }
.proc.is-enhanced .proc__tabs .proc__tab[aria-selected="true"] { background: var(--panel); color: var(--mute); }

/* faq: answers open and close at their own height */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
  .faq__item p { animation: none; }
}
.faq__item summary { transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover { color: var(--accent); } }

/* small-screen menu: the links arrive in a short stagger */
@media (max-width: 980px) {
  .nav__ink { display: none; }
  .bar.is-open .nav a { animation: rise 420ms var(--ease-out) both; }
  .bar.is-open .nav a:nth-child(2) { animation-delay: 40ms; } .bar.is-open .nav a:nth-child(3) { animation-delay: 80ms; }
  .bar.is-open .nav a:nth-child(4) { animation-delay: 120ms; } .bar.is-open .nav a:nth-child(5) { animation-delay: 160ms; }
  .bar.is-open .nav a:nth-child(6) { animation-delay: 200ms; } .bar.is-open .nav a:nth-child(7) { animation-delay: 240ms; }
}

/* brand pitch: the message sits in a chat card, the same language as the phone */
.chat { border-radius: calc(var(--r) * 1.4); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font: 500 14px/1.4 var(--body); }
.section--alt .chat { background: var(--panel); }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat__head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.chat__head b { font-weight: 600; }
.chat__head .ph-bar { margin-left: auto; }
.chat__thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 14px; }

/* chips: the fill arrives quickly rather than switching on */
.chip { transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }

@media (prefers-reduced-motion: reduce) {
  [data-enter] h1 .line { animation: fade 300ms ease both; }
  .nav__ink, .proc__on, .card .media::after, .btn::after { transition: none; }
  .bar.is-open .nav a { animation: none; }
}
