/* ---------- tokens ---------- */
:root {
  --bg: #f4f9fd;
  --surface: #e3f0fa;
  --sky: #cfe4f5;
  --sky-deep: #bcd9f0;
  --ink: #16161a;
  --muted: #4d5561;
  --accent: #ff6b4a;
  --accent-ink: #16161a;
  --white: #ffffff;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(88px, 10vw, 160px);
  --bar: 64px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--text);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 8px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 14px; }

.h2 {
  font: 800 var(--step-head)/1 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.lead { font-size: var(--step-lead); line-height: 1.4; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--text);
  text-decoration: none; border: 0; border-radius: 0; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--white); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--big { min-height: 56px; padding: 0 28px; font-size: var(--step-lead); }
.btn--bar { width: 100%; min-height: 56px; }

.link {
  background: none; border: 0; padding: 4px 0;
  font-size: var(--step-body); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-underline-offset .2s var(--ease-out), color .2s;
}
.link:hover { text-underline-offset: 9px; text-decoration-color: var(--accent); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--margin);
  background: var(--bg);
}
.bar__mark {
  font: 800 var(--step-body)/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.bar__nav { display: flex; gap: 28px; }
.bar__nav a { text-decoration: none; font-weight: 500; position: relative; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.bar__nav a:hover::after { transform: scaleX(1); }
.bar__end { display: flex; gap: 20px; align-items: center; justify-content: flex-end; }
.bar__lang .short { display: none; }
.bar__lang { background: none; border: 0; padding: 8px 0; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }

/* the version without prices (/portfolio) */
.no-prices .only-prices { display: none; }

/* ---------- first screen: pinned stage ---------- */
.stage__track { height: calc(3 * (100svh - var(--bar))); }
.stage__sticky {
  position: sticky; top: var(--bar);
  height: calc(100svh - var(--bar));
  display: grid; grid-template-columns: 36fr 64fr;
}
.stage__left {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 4vh, 48px) var(--margin) clamp(20px, 3vh, 32px);
}
.stage__intro { display: flex; flex-direction: column; gap: 24px; }
.stage__title {
  font: 800 clamp(1.6rem, 2.55vw, 2.75rem)/1.02 var(--display);
  letter-spacing: -0.03em; text-transform: uppercase;
}
.w, .w > span { display: inline-block; }
.stage__title .w > span { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.stage__lead { max-width: 34ch; animation: rise 1s .1s var(--ease-out) both; }
.stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; animation: rise 1s .2s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.stage__index { display: flex; flex-direction: column; }
.stage__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  width: 100%; padding: 8px 0; background: none; border: 0; text-align: left;
  color: var(--muted);
  transition: color .3s, transform .4s var(--ease-out);
}
.stage__row strong { font: 800 var(--step-lead)/1.1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.stage__row span { font-size: var(--step-small); font-weight: 500; }
.stage__row:hover { color: var(--ink); transform: translateX(6px); }
.stage__row[aria-current="true"] { color: var(--ink); }
.stage__row[aria-current="true"] strong::before { content: "▶ "; font-size: .6em; vertical-align: .25em; color: var(--accent); }

.stage__pics {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  padding: 24px; background: var(--sky); container-type: size;
}
/* the program monitor: the video is never shown larger than its own size, so it stays sharp */
.stage__monitor {
  position: relative; flex: none;
  width: min(100%, calc((100cqh - 160px) * 1.7778));
  aspect-ratio: 16 / 9;
  border: 10px solid var(--ink); background: var(--bg);
  overflow: hidden; container-type: size;
}
/* the timeline: one clip per category, an audio track, and a playhead that follows the scroll */
.timeline { position: relative; flex: none; width: min(100%, calc((100cqh - 160px) * 1.7778)); display: flex; flex-direction: column; gap: 4px; padding: 10px 0; }
.timeline__track { display: flex; gap: 3px; height: 44px; }
.timeline__clip {
  flex: 1 1 0; min-width: 0; padding: 0 12px; border: 0; text-align: left;
  background: var(--white); color: var(--ink);
  font-size: var(--step-small); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.timeline__clip:hover { transform: translateY(-3px); }
.timeline__clip.is-on { background: var(--accent); }
.timeline__intro { background: var(--sky-deep); cursor: default; }
.timeline__intro:hover { transform: none; }
.timeline__audio { height: 30px; }
.timeline__audio svg { width: 100%; height: 100%; display: block; }
.timeline__audio rect { fill: var(--ink); opacity: .28; }
.timeline__head {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * 100%); width: 3px;
  background: var(--accent); transform: translateX(-50%); pointer-events: none;
}
.timeline__head::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 16px; height: 14px;
  background: var(--accent); transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.stage__pic { position: absolute; inset: 0; margin: 0; }
.stage__pic video, .stage__pic img { width: 100%; height: 100%; object-fit: cover; }
/* each category opens as an iris from the middle of the frame, like the pupil it grows out of */
.stage__pic[data-cat] { clip-path: circle(0% at 50% 50%); transition: clip-path 1s var(--ease-out); background: var(--ink); }
.stage__pic[data-cat].is-open { clip-path: circle(150% at 50% 50%); }
/* the first category is opened by the pupil itself, frame by frame with the scroll */
.stage__pic.is-first { transition: none; }
.stage__pic figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; background: var(--white); color: var(--ink);
  font-size: var(--step-small); font-weight: 500;
}
/* the eye: follows the cursor, boils like a hand-drawn line, hunts for focus */
.stage__eye { background: var(--white); }
.eye { display: block; width: 100%; height: 100%; animation: focus 5.6s infinite; }
.eye__lid { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linejoin: round; }
.eye__iris { fill: none; stroke: var(--accent); stroke-width: 6; }
.eye__pupil { fill: var(--accent); }
.eye__core { fill: var(--ink); }
.eye__glint { fill: var(--white); }
.stage__pics.is-diving .eye { animation: none; }
@keyframes focus {
  0%, 38%, 100% { filter: blur(0); }
  46% { filter: blur(2.4px); }
  53% { filter: blur(0.4px); }
  58% { filter: blur(1.4px); }
  66% { filter: blur(0); }
}

/* keyframe diamonds left behind by the cursor */
.kf {
  position: fixed; z-index: 60; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--ink); border: 1.5px solid var(--white); pointer-events: none;
  animation: kf .8s cubic-bezier(.3, 0, .7, 1) forwards;
}
.kf--hot { background: var(--accent); }
@keyframes kf {
  from { transform: translate(0, 0) rotate(45deg) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(0); opacity: 0; } /* taste-skill-ignore: an exit to zero, asked for */
}

/* drawn title card used until a project has its own thumbnail */
.frame {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; height: 100%;
  padding: 20px;
  background: var(--sky); color: var(--ink);
  overflow: hidden;
}
.frame[data-cat="promo"] { background: var(--accent); }
.frame[data-cat="explainer"] { background: var(--white); }
.frame[data-cat="ai"] { background: var(--ink); color: var(--sky); }
.frame__client { position: absolute; left: 20px; top: 18px; font-size: var(--step-small); font-weight: 500; }
.frame__len { position: absolute; right: 20px; top: 18px; font-size: var(--step-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.frame__title {
  font: 800 var(--step-lead)/1 var(--display);
  letter-spacing: -0.03em; text-transform: uppercase;
  max-width: 14ch;
  transition: transform .6s var(--ease-out);
}
.frame__title .w > span { animation: bob 3.6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 120ms + var(--t, 0s)); }
@keyframes bob { 0%, 45%, 100% { transform: none; } 15% { transform: translateY(-0.3em) rotate(-2deg); } 28% { transform: translateY(0.04em); } }

/* ---------- selected work ---------- */
.projects { padding: var(--gap) var(--margin) 0; }
.projects__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px;
  background: var(--surface); border: 0; border-radius: 0;
  font-weight: 500;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.chip:hover { transform: translateY(-2px); background: var(--sky); }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--white); }
.chip:has(input:disabled) { cursor: default; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
label.chip { display: inline-flex; align-items: center; position: relative; cursor: pointer; }

/* a justified gallery: every row is the same height, each tile as wide as its video */
.grid { --row: clamp(170px, 16vw, 400px); display: flex; flex-wrap: wrap; gap: 36px 16px; }
.grid::after { content: ""; flex: 1000 1 0; }
.grid__break { flex-basis: 100%; height: 0; }
.tile--v { --row: clamp(300px, 26vw, 520px); }
.tile { flex: var(--ar) 1 calc(var(--ar) * var(--row)); background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.tile__media { display: block; position: relative; overflow: hidden; aspect-ratio: var(--ar); background: var(--sky); }
.tile__media img, .tile__prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tile__prev { opacity: 0; transition: opacity .3s; }
.tile.is-playing .tile__prev { opacity: 1; }
.projects__more { display: block; margin: 40px auto 0; }
.tile__play {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  padding: 10px 16px; background: var(--white); color: var(--ink); font-weight: 500;
  transform: translateY(8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .3s;
}
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.04); }
.tile:hover .frame__title, .tile:focus-visible .frame__title { transform: translateY(-8px); }
.tile:hover .tile__play, .tile:focus-visible .tile__play { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tile__name { display: block; margin-top: 14px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.tile__meta { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; }

/* ---------- pricing: the clapperboard ---------- */
.pricing {
  margin-top: var(--gap);
  padding: var(--gap) var(--margin);
  background: var(--sky);
  display: grid; place-items: center;
}
.slate { position: relative; width: min(1080px, 100%); padding-top: 64px; }
.slate__stick {
  position: absolute; left: 0; right: 0; top: 8px; height: 56px; z-index: 1;
  background: var(--ink);
  transform-origin: 0 100%;
  transform: rotate(-7deg);
  transition: transform .5s var(--ease-out);
}
.slate__stick svg, .slate__base svg { display: block; width: 100%; height: 100%; }
.slate__base { height: 32px; background: var(--ink); }
.slate__stick.is-clap { animation: clap .55s var(--ease-out); }
@keyframes clap { 0% { transform: rotate(-7deg); } 35% { transform: rotate(0deg); } 50% { transform: rotate(-1.5deg); } 65% { transform: rotate(0deg); } 100% { transform: rotate(-7deg); } }
.slate__board {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px;
  background: var(--ink); color: var(--white);
}
.slate__cell { padding: 22px 26px; background: #222228; min-width: 0; }
.slate__wide, .slate__title { grid-column: 1 / -1; }
.slate__title { font: 800 var(--step-head)/1 var(--display); letter-spacing: -0.03em; text-transform: uppercase; color: var(--white); }
.slate legend, .slate__label { float: left; width: 100%; margin-bottom: 12px; font-size: var(--step-small); font-weight: 500; color: #b9c2cc; }
.slate .chips { clear: both; }
.slate .chip { background: #34343c; color: var(--white); }
.slate .chip:hover { background: #45454f; }
.slate .chip:has(input:checked) { background: var(--accent); color: var(--ink); }
.slate .chip:has(input:focus-visible) { outline-color: var(--white); }
.slate__cell.is-off { opacity: .4; }
.slate__budget { padding-top: 56px; background: var(--accent); color: var(--ink); }
.slate__budget .slate__label { color: var(--ink); }
.slate__price { font: 800 var(--step-head)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.slate__from { font: 500 var(--step-lead)/1 var(--text); letter-spacing: 0; vertical-align: .6em; }
#price { display: inline-block; }
#price.is-bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.06); } }
.slate__days { margin-top: 10px; font-weight: 500; }
.slate__send { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.slate__send .btn { background: var(--white); color: var(--ink); }
.slate__send .btn:hover { background: var(--accent); color: var(--ink); }
.slate__note { font-size: var(--step-small); color: #b9c2cc; }
.slate__terms { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; color: #d6dde4; font-weight: 500; }
.slate__terms li::before { content: "+ "; color: var(--accent); }

/* ---------- process ---------- */
.process { padding: var(--gap) var(--margin) 0; }
.process__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: 40px; }
.process__head .h2 { grid-column: 1 / span 6; }
.process__head .lead { grid-column: 8 / span 5; }
/* the graph editor: one ease curve with a keyframe over every step, drawn as the page scrolls */
.graph { position: relative; height: clamp(150px, 16vw, 300px); margin-bottom: 16px; }
.graph__hint { position: absolute; right: 0; bottom: 0; font-size: var(--step-small); color: var(--muted); pointer-events: none; }
.graph__hit { fill: transparent; pointer-events: none; cursor: grab; touch-action: none; }
.graph__k.is-on .graph__hit { pointer-events: all; }
.graph svg.is-dragging, .graph svg.is-dragging .graph__hit { cursor: grabbing; }
.graph__k:hover .graph__tip, .graph__k:hover .graph__key { stroke: var(--accent); }
.graph svg { display: block; width: 100%; height: 100%; overflow: visible; }
.graph__curve { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.graph__ghost { fill: none; stroke: var(--sky-deep); stroke-width: 4; stroke-linecap: round; }
.graph__handle { stroke: var(--muted); stroke-width: 1.5; opacity: 0; transition: opacity .4s; }
.graph__tip { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; opacity: 0; transition: opacity .4s; }
.graph__key { fill: var(--bg); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: fill .3s, transform .5s var(--ease-out); }
.graph__k.is-on .graph__key { fill: var(--ink); transform: scale(1.25); }
.graph__k.is-on .graph__handle, .graph__k.is-on .graph__tip { opacity: 1; }
.graph__ball { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.step {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px; padding: 28px 24px;
  background: var(--surface);
  transition: transform .4s var(--ease-out);
}
.step:hover { transform: translateY(-6px); }
.step:nth-child(2) { background: #d9eaf8; }
.step:nth-child(3) { background: var(--sky); }
.step:nth-child(4) { background: var(--sky-deep); }
.step--final { background: var(--accent); color: var(--ink); }
.step h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.15; }
.step p { margin-top: auto; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding: var(--gap) var(--margin) 0;
  align-items: start;
}
.about__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 24px; max-width: 66ch; }
.about__sub { margin-top: 8px; font-size: var(--step-body); font-weight: 500; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 8px 14px; background: var(--surface); font-weight: 500; }
.rescue { margin-top: 16px; padding: 28px; background: var(--ink); color: var(--white); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rescue h3 { font-size: var(--step-lead); font-weight: 500; color: var(--accent); }
.rescue .btn { background: var(--accent); color: var(--ink); }
.rescue .btn:hover { background: var(--white); }
/* the bouncing ball: the same move as an AI draft and as a finished animation */
.bounce { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 12px; }
.bounce__modes { display: flex; gap: 8px; }
.bounce__stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--sky); container-type: size;
}
.bounce__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: var(--sky-deep); }
.bounce__ball {
  position: absolute; left: calc(50% - 9cqh); top: 12%; width: 18cqh; aspect-ratio: 1;
  border-radius: 50%; background: var(--accent);
  transform-origin: 50% 100%;
}
.bounce__cast {
  position: absolute; left: calc(50% - 12cqh); bottom: 15.5%; width: 24cqh; height: 5%;
  border-radius: 50%; background: var(--ink); opacity: .18;
}
.bounce__note { min-height: 3em; font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.bounce[data-mode="draft"] .bounce__final, .bounce[data-mode="final"] .bounce__draft { display: none; }

/* draft: even speed, choppy, the ball melts, the cast on the floor never moves */
.bounce[data-mode="draft"] .bounce__ball { background: #9aa6b3; animation: draftFall 1.2s steps(7) infinite; }
@keyframes draftFall {
  0%, 100% { transform: translate(0, 0); border-radius: 50%; }
  25% { transform: translate(3%, 26cqh); border-radius: 46% 54% 50% 50%; }
  50% { transform: translate(-2%, 52cqh); border-radius: 50% 44% 56% 48%; }
  75% { transform: translate(2%, 26cqh); border-radius: 54% 50% 46% 52%; }
}
/* final: gravity on the way down, squash on contact, stretch on the way up */
.bounce[data-mode="final"] .bounce__ball { animation: fall 1.1s infinite; }
@keyframes fall {
  0% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  44% { transform: translateY(52cqh) scale(.86, 1.16); animation-timing-function: linear; }
  50% { transform: translateY(52cqh) scale(1.32, .66); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  58% { transform: translateY(43cqh) scale(.88, 1.14); animation-timing-function: cubic-bezier(.1, .55, .45, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}
.bounce[data-mode="final"] .bounce__cast { animation: land 1.1s infinite; }
@keyframes land {
  0%, 100% { transform: scaleX(.45); opacity: .08; animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  48%, 52% { transform: scaleX(1.15); opacity: .28; animation-timing-function: cubic-bezier(.1, .55, .45, 1); }
}

/* ---------- faq ---------- */
.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding: var(--gap) var(--margin);
}
.faq .h2 { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 8px; }
.qa { padding: 24px 28px; background: var(--surface); }
.qa dt { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; margin-bottom: 8px; }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px;
  padding: clamp(64px, 8vw, 120px) var(--margin) 40px;
  background: var(--sky);
}
.contact__text { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.contact__email {
  grid-column: 1 / -1;
  font: 400 var(--step-head)/1.05 var(--text);
  letter-spacing: -0.03em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px;
  overflow-wrap: anywhere;
  transition: color .3s;
}
.contact__email:hover { text-decoration-color: var(--accent); }
.contact__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-weight: 500; }
.socials { display: flex; flex-wrap: wrap; gap: 24px; }
.socials a { text-underline-offset: 5px; }
.socials a:hover { text-decoration-color: var(--accent); }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 24px; align-items: baseline;
  padding: 48px var(--margin) 30px;
  font-size: var(--step-small);
}
.credits { grid-column: 1 / -1; margin-bottom: 16px; max-width: 110ch; color: var(--muted); }
.foot__what { color: var(--muted); font-weight: 500; }
.foot__links { display: flex; gap: 24px; }
.foot__links a { font-weight: 500; }
.foot__year { justify-self: end; color: var(--muted); font-weight: 500; }

/* ---------- player ---------- */
.player { width: min(1200px, 100vw - 32px, (100svh - 140px) * var(--ar, 1.7778)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--white); }
.player::backdrop { background: rgba(22, 22, 26, .9); }
.player__box { display: flex; flex-direction: column; gap: 12px; }
.player__close { align-self: flex-end; min-height: 44px; padding: 0 18px; background: var(--white); color: var(--ink); border: 0; font-weight: 500; }
.player__screen { aspect-ratio: var(--ar, 1.7778); background: var(--ink); display: grid; place-items: center; }
.player__screen iframe, .player__screen video { width: 100%; height: 100%; border: 0; }
.player__screen p { max-width: 40ch; padding: 24px; text-align: center; font-size: var(--step-lead); }
.player__caption { font-weight: 500; }

/* ---------- entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .bar { grid-template-columns: 1fr auto; }

  .stage__track { height: auto; }
  .stage__sticky { position: static; height: auto; display: flex; flex-direction: column; }
  .stage__left { display: contents; }
  .stage__intro { order: 1; padding: 32px var(--margin) 32px; }
  .stage__title { font-size: var(--step-head); }
  .stage__pics { order: 2; margin: 0 var(--margin); padding: 16px; container-type: normal; }
  .stage__monitor, .timeline { width: 100%; }
  .timeline__track { height: 36px; }
  .timeline__head { left: 37.5%; }
  .stage__pic:not(.is-first) { display: none; }
  .stage__pic.is-first { clip-path: none; }
  .stage__index { display: none; }
  .stage__row { padding: 12px 0; }
  .stage__row[aria-current="true"] { color: var(--muted); }
  .stage__row[aria-current="true"] strong::before { content: none; }


  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { min-height: 0; }
  .step--final { grid-column: 1 / -1; }
  .process__head .h2, .process__head .lead { grid-column: 1 / -1; }
  .about__text, .bounce { grid-column: 1 / -1; }
  .bounce { max-width: 420px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --bar: 56px; }
  .bar__mark { font-size: .9375rem; }
  .bar__end { gap: 14px; }
  .bar .btn { padding: 0 14px; }
  .bar__lang .long { display: none; }
  .bar__lang .short { display: inline; }

  .stage__title { font-size: 6.4vw; }
  .stage__actions .btn { width: 100%; }

  .grid { gap: 28px 12px; }
  .tile { flex: 1 1 100%; }
  .tile--v { flex: 0 1 calc(50% - 6px); }
  .tile__play { display: none; }

  .slate { padding-top: 44px; }
  .slate__stick { height: 38px; top: 6px; }
  .slate__base { height: 22px; }
  .slate__board { grid-template-columns: 1fr; }
  .slate__cell { padding: 18px 16px; }
  .slate__budget { padding-top: 56px; }
  .slate__terms { grid-template-columns: 1fr; }
  .slate__price { font-size: 14vw; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 20px; }

  .about, .faq, .contact { grid-template-columns: 1fr; }
  .about__text, .bounce, .faq .h2, .faq__list { grid-column: 1 / -1; }
  .bounce__stage { aspect-ratio: 1; }
  .qa { padding: 20px; }

  .contact__email { font-size: 8.4vw; }
  .contact__foot { flex-direction: column; }

  .foot { grid-template-columns: 1fr; padding-bottom: 24px; }
  .foot__year { justify-self: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

