/* Julieth Celis · portafolio
   Colours, type and timing come from MOTION.md / brand.md. 30 fps: 1 c = 33.3 ms. */
:root {
  --ground: #12100D;
  --surface: #1D1A16;
  --ink: #EEE8DD;
  --muted: #A69E91;
  --accent: #F2B705;
  --accent-ink: #12100D;
  --bone: #E6E3DD;
  --bone-ink: #14120F;
  --bone-muted: #5E574C;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --m: clamp(20px, 2.4vw, 32px);           /* the one pair of page margins */
  --gap: clamp(16px, 1.7vw, 24px);
  --section: clamp(112px, 12vw, 192px);    /* space between sections */
  --radius: 26px;                          /* the one corner radius (clip card) */

  --t-hero: clamp(48px, 9vw, 128px);
  --t-h2: clamp(32px, 5vw, 64px);
  --t-h3: clamp(30px, 3.2vw, 48px);
  --t-fig: clamp(36px, 3.4vw, 52px);
  --t-body: 18px;
  --t-small: 15px;

  --c4: 133ms;                             /* 4 frames */
  --ease-in-std: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-box: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--display);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* the brand's very light grain (2–3 %) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); max-width: 1600px; margin-inline: auto; }
.section { padding-block: var(--section) 0; }

/* ---------- type roles ---------- */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: .95; }
.h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.03em; line-height: .95; text-wrap: balance; }
.h2 .serif { font-size: 1.1em; line-height: .8; }
.h3 { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
.intro { font-size: 20px; line-height: 1.5; max-width: 46ch; }
.label { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.small { font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.num { font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 20px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .h2 { grid-column: 1 / span 6; }
.section-head .intro { grid-column: 8 / span 5; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 500 17px/1 var(--display); text-decoration: none; white-space: nowrap;
  transition: transform 200ms var(--ease-in-std), background-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #FFC81F; }
.btn-block { display: flex; width: 100%; }
.link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 200ms ease, color 200ms ease;
  display: inline-block; padding-block: 10px; /* 44px target */
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10; height: 76px;
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--m);
}
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; display: inline-block; padding-block: 12px; transition: color 200ms ease; }
.nav-links a:hover { color: var(--accent); }
.lang {
  font: 500 14px/1 var(--mono); letter-spacing: .12em; color: var(--ink); background: var(--surface);
  border: 0; border-radius: 999px; min-width: 52px; min-height: 44px; padding: 0 14px; cursor: pointer;
  transition: background-color 200ms ease, transform 200ms var(--ease-in-std);
}
.lang:hover { background: #2A2620; }
.lang:active { transform: scale(.95); }
html:not(.js) .lang { display: none; }

/* ---------- clip frames ---------- */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 9 / 16; isolation: isolate; }
.frame .clip, .frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame .clip { cursor: pointer; }
.frame::after { /* play state glyph, only when JS controls the clip */
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(18, 16, 13, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23EEE8DD'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transition: opacity 200ms ease; pointer-events: none;
}
.js .frame.paused::after { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-stage {
  min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  grid-template-rows: 1fr auto; padding: 104px var(--m) clamp(28px, 4vh, 48px);
  max-width: 1600px; margin-inline: auto;
}
.hero-name { grid-column: 1 / span 4; grid-row: 2; align-self: end; }
.hero-name h1 { font-size: clamp(48px, 7.4vw, 116px); }
.hero-name h1 .r { display: block; }
.hero-name h1 .serif { font-size: 1.1em; line-height: .85; display: block; }
.role { margin-top: 20px; font-size: 22px; font-weight: 500; line-height: 1.25; }
.hero-frame {
  grid-column: 5 / span 4; grid-row: 1 / span 2; justify-self: center; align-self: end;
  height: min(calc(100svh - 152px), 760px); width: auto; transform-origin: 50% 100%;
}
.hero-stats { grid-column: 9 / span 4; grid-row: 1; align-self: start; padding-top: 8px; }
.stats { display: grid; gap: 22px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-size: var(--t-fig); }
.stats dt { font-size: 17px; color: var(--ink); line-height: 1.35; }
.stats small { display: block; font-size: 15px; color: var(--muted); }
.hero-pitch { grid-column: 9 / span 4; grid-row: 2; align-self: end; }
.lede { font-size: 20px; line-height: 1.5; max-width: 34ch; }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }

/* the window grows to the full height of the screen as the page leaves the hero */
@supports (animation-timeline: scroll()) {
  @media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    .hero { height: 150svh; }
    .hero-stage { position: sticky; top: 0; height: 100svh; }
    .hero-frame { animation: grow linear both; animation-timeline: scroll(root); animation-range: 0 50svh; }
    .hero-name, .hero-stats, .hero-pitch { animation: leave linear both; animation-timeline: scroll(root); animation-range: 0 32svh; }
    @keyframes grow { to { transform: scale(1.18) translateY(clamp(28px, 4vh, 48px)); } }
    @keyframes leave { to { opacity: 0; transform: translateY(-24px); } }
  }
}

/* ---------- results ---------- */
.res-lead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.res-figure { grid-column: 1 / span 7; }
.giant { font-size: clamp(96px, 13.5vw, 216px); line-height: .82; white-space: nowrap; }
.giant-cap { margin-top: 18px; font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hl { background: var(--accent); color: var(--accent-ink); padding: 0 .14em; white-space: nowrap; display: inline-block; line-height: 1.05; }
.hl .serif { font-size: 1.1em; }
.js .motion .hl { clip-path: inset(0 100% 0 0); transition: clip-path var(--c4) var(--ease-box) 100ms; }
.js .motion .in .hl { clip-path: inset(0 0 0 0); }
.res-note { margin-top: 28px; max-width: 46ch; }
.sub-stats { margin-top: 44px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px clamp(28px, 3.5vw, 56px); }
.sub-stats div { max-width: 15ch; }
.sub-stats dd { font-size: var(--t-fig); }
.sub-stats dt { margin-top: 8px; font-size: 17px; line-height: 1.35; }
.sub-stats div:last-child { max-width: 22ch; }
.res-clip { grid-column: 9 / span 4; }
.res-clip .frame { width: 100%; max-height: 78svh; margin-inline: auto; }
.res-clip figcaption { margin-top: 8px; }

.before-after { margin-top: clamp(80px, 9vw, 136px); background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; }
.ba-head { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.ba-head p { max-width: 30ch; }
.ba-rows { grid-column: 5 / span 8; display: grid; gap: 40px; }
.ba figcaption { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; font-size: 18px; }
.ba-bar { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.bar { display: block; height: 18px; border-radius: 3px; width: calc(var(--v) / var(--max) * 100%); transform-origin: 0 50%; }
.bar.before { background: var(--muted); }
.bar.after { background: var(--ink); }
.ba-val { font-size: 17px; }
.ba-val .num { font-size: 22px; margin-right: 4px; }
.js .motion .ba .bar { transform: scaleX(0); transition: transform 1000ms var(--ease-expo); }
.js .motion .ba.in .bar { transform: scaleX(1); }
.js .motion .ba.in .bar.after { transition-delay: 100ms; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.work-index { grid-column: 1 / span 4; }
.work-index-inner { height: 100%; display: flex; flex-direction: column; }
.work-index .intro { margin-top: 24px; max-width: 32ch; }
.index { position: sticky; top: 40px; margin-top: 56px; }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 11px; text-decoration: none; color: var(--muted); transition: color 200ms ease; }
.index a > span:first-child { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.index .who { font-size: 15px; text-align: right; }
.index a:hover, .index a[aria-current="true"] { color: var(--ink); }
.index a[aria-current="true"] > span:first-child { color: var(--accent); }
.work-list { grid-column: 5 / span 8; display: grid; gap: clamp(96px, 10vw, 160px); }
.job { display: grid; grid-template-columns: minmax(240px, 5fr) 7fr; column-gap: clamp(28px, 3.4vw, 56px); align-items: end; scroll-margin-top: 40px; }
.job-clip { width: 100%; }
.job-text .label { margin-top: 10px; }

.meta { margin-top: 20px; font-size: 17px; color: var(--muted); }
.job-stats { margin-top: 24px; display: grid; gap: 22px; }
.job-stats dd { font-size: var(--t-fig); }
.job-stats dt { margin-top: 6px; font-size: 17px; max-width: 36ch; line-height: 1.4; }
.job-text .link { margin-top: 14px; }

/* ---------- case chapters ---------- */
.cases { padding-top: var(--section); }
.cases-head { margin-bottom: clamp(32px, 4vw, 56px); }
.chapter { min-height: 100svh; display: grid; padding: 20px; }
.chapter-in {
  background: var(--surface); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  padding: clamp(40px, 5vw, 72px) calc(var(--m) + 4px);
}
.chapter.alt .chapter-in { background: var(--ground); }
.ch-left { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.ch-left .label + p { margin-top: auto; }

.ch-left .label { margin-top: -6px; }
.ch-media { grid-column: 5 / span 4; justify-self: center; height: min(75svh, 720px); width: auto; }
.ch-right { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.chapter p { font-size: 17px; line-height: 1.5; }
.chapter .h3 { margin-bottom: 0; }
.chapter p.label { font-size: 13px; }
.big { font-size: clamp(56px, 6.4vw, 96px) !important; line-height: .9 !important; margin-bottom: auto; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
    .chapter { padding: 0; }
    .chapter-in { animation: open linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .ch-media { animation: settle linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes open { from { clip-path: inset(20px round var(--radius)); } to { clip-path: inset(0 round 0); } }
    @keyframes settle { from { transform: scale(.92); } to { transform: scale(1); } }
    .chapter-in { border-radius: 0; }
  }
}

/* ---------- process ---------- */
.steps-bar {
  position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; padding: 20px var(--m) 8px;
  background: var(--ground); max-width: 1600px; margin-inline: auto;
}
.steps-bar span { width: 112px; height: 7px; border-radius: 2px; background: #3A352E; overflow: hidden; position: relative; }
.steps-bar span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.steps { counter-reset: none; }
.step {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end;
  padding: clamp(48px, 5.5vw, 80px) var(--m); max-width: 1600px; margin-inline: auto;
}
.step:nth-child(even) { background: var(--surface); max-width: none; padding-inline: max(var(--m), calc((100vw - 1600px) / 2 + var(--m))); }
.verb { grid-column: 1 / span 8; font-size: clamp(44px, 12vw, 190px); font-weight: 800; letter-spacing: -0.04em; line-height: .85; white-space: nowrap; }
.verb .serif { font-size: 1.1em; letter-spacing: -0.01em; }
.step p { grid-column: 9 / span 4; font-size: 18px; max-width: 34ch; padding-bottom: .4em; }

/* ---------- services (bone field) ---------- */
.services { background: var(--bone); color: var(--bone-ink); padding-bottom: var(--section); margin-top: var(--section); }
.services .intro { color: var(--bone-ink); }
.services :focus-visible { outline-color: var(--bone-ink); }
.tickets { display: grid; gap: 32px; justify-items: center; }
.ticket {
  --notch: 28px;
  width: min(100%, 1120px); display: grid; grid-template-columns: 7fr 3fr; position: relative;
  background: var(--ground); color: var(--ink); border-radius: var(--radius); min-height: 380px;
}
.ticket::before, .ticket::after { /* notches bitten where the two parts meet */
  content: ""; position: absolute; left: 70%; width: var(--notch); height: var(--notch); margin-left: calc(var(--notch) / -2);
  background: var(--bone); border-radius: 50%;
}
.ticket::before { top: calc(var(--notch) / -2); }
.ticket::after { bottom: calc(var(--notch) / -2); }
.t-main { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.t-title { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.03em; line-height: .95; }
.t-line { font-size: 18px; max-width: 40ch; }
.t-list { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 17px; color: var(--ink); }
.t-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 10px; vertical-align: .15em; }
.t-stub {
  padding: 40px 28px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='16'%3E%3Ccircle cx='3' cy='8' r='3' fill='%23E6E3DD'/%3E%3C/svg%3E") left center / 6px 16px repeat-y;
}
.t-big { font-size: var(--t-fig); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.t-small { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sv-close { margin: 64px auto 0; width: min(100%, 1120px); display: grid; grid-template-columns: 7fr 3fr; gap: 24px 48px; align-items: center; }
.sv-close p { font-size: 18px; max-width: 54ch; color: var(--bone-ink); }
.sv-close .btn { justify-self: stretch; white-space: normal; text-align: center; padding-block: 12px; }

/* ---------- voices ---------- */
.voices { padding-bottom: var(--section); }
.voices-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.voices-pic { grid-column: 5 / span 4; grid-row: 1 / span 3; align-self: start; position: sticky; top: 48px; width: min(100%, 380px); justify-self: center; }
.voices-pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.voices-pic figcaption { margin-top: 12px; }
.q-list { display: contents; }
.q { grid-row: span 1; padding-block: 24px; max-width: 340px; }
.q:nth-child(odd) { grid-column: 9 / span 4; }
.q:nth-child(even) { grid-column: 1 / span 4; }
.q:nth-child(1) { grid-row: 1; margin-top: 0; }
.q:nth-child(2) { grid-row: 1; margin-top: 120px; }
.q:nth-child(3) { grid-row: 2; }
.q:nth-child(4) { grid-row: 2; margin-top: 96px; }
.q:nth-child(5) { grid-row: 3; }
.q:nth-child(6) { grid-row: 3; margin-top: 96px; }
.q blockquote p { font-size: 22px; font-weight: 800; line-height: 1.22; letter-spacing: -0.01em; }
.q figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.q figcaption .label { display: block; }
.q figcaption a { color: var(--ink); text-underline-offset: 3px; display: inline-block; padding-block: 8px; }

/* ---------- contact ---------- */
.contact { position: relative; }
.contact-photo { height: min(92svh, 860px); position: relative; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
.contact-wrap { position: relative; }
.card {
  position: absolute; right: var(--m); top: calc(-1 * min(92svh, 860px) + 60px); width: 400px; z-index: 2;
  background: var(--bone); color: var(--bone-ink); border-radius: var(--radius); padding: 32px;
}
.card :focus-visible { outline-color: var(--bone-ink); }
.card-title { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.03em; line-height: .95; }
.card-where { margin-top: 10px; font-size: 17px; color: var(--bone-muted); }
.card-rows { margin: 24px 0; display: grid; gap: 14px; }
.card-rows dt { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-muted); }
.card-rows dd { font-size: 17px; overflow-wrap: anywhere; }
.card-rows a { display: inline-block; padding-block: 6px; text-underline-offset: 4px; }
.cv { display: grid; }
.accounts { padding-top: 64px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 24px; }
.accounts .h3 { grid-column: 1 / span 4; }
.acc-list { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); }
.acc-list a { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; font-size: 18px; font-weight: 500; text-decoration: none; transition: color 200ms ease; }
.acc-list a:hover { color: var(--accent); }
.acc-list span { color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer { padding: var(--section) 0 40px; }
.footer-name { font-size: clamp(64px, 16.5vw, 300px); font-weight: 800; letter-spacing: -0.045em; line-height: .85; white-space: nowrap; padding-inline: var(--m); max-width: 1600px; margin-inline: auto; }
.footer-name .serif { font-size: 1.1em; letter-spacing: -0.02em; }
.footer-row { margin-bottom: 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 8px; }
.footer-row p:nth-child(1) { grid-column: 1 / span 5; }
.footer-row p:nth-child(2) { grid-column: 6 / span 5; }
.footer-row p:nth-child(3) { grid-column: 11 / span 2; text-align: right; }

/* ---------- entrances (only when JS runs and motion is allowed) ---------- */
.js .motion .r { opacity: 0; transform: translateY(20px); filter: blur(12px); }
.js .motion .in .r, .js .motion .r.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity var(--c4) var(--ease-in-std), transform var(--c4) var(--ease-in-std), filter var(--c4) var(--ease-in-std);
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* ---------- tablet ---------- */
@media (max-width: 999px) {
  .hero-stage { grid-template-rows: auto auto auto; row-gap: 32px; padding-top: 104px; }
  .hero-name { grid-column: 1 / span 7; grid-row: 1; }
  .hero-frame { grid-column: 8 / span 5; grid-row: 1 / span 2; height: auto; width: 100%; align-self: start; }
  .hero-stats { grid-column: 1 / span 7; grid-row: 2; }
  .hero-pitch { grid-column: 1 / -1; grid-row: 3; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .hero-stats { align-self: start; }
  .t-list { grid-template-columns: 1fr; }
  .section-head .h2, .section-head .intro { grid-column: 1 / -1; }
  .res-figure { grid-column: 1 / span 7; }
  .res-clip { grid-column: 8 / span 5; }
  .sub-stats { grid-template-columns: 1fr; }
  .ba-head, .ba-rows { grid-column: 1 / -1; }
  .work-index { grid-column: 1 / -1; }
  .work-index-inner { position: static; min-height: 0; }
  .index { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); margin-top: 24px; margin-bottom: 64px; }
  .work-list { grid-column: 1 / -1; }
  .chapter { min-height: 0; padding: 12px var(--m); }
  .chapter-in { padding: 40px 28px; row-gap: 32px; }
  .ch-left { grid-column: 1 / span 7; }
  .ch-media { grid-column: 8 / span 5; grid-row: 1 / span 2; height: auto; width: 100%; align-self: start; }
  .ch-right { grid-column: 1 / span 7; }
  .step { min-height: 0; padding-block: 56px; }
  .verb { grid-column: 1 / -1; }
  .step p { grid-column: 1 / span 9; margin-top: 20px; }
  .voices-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .voices-pic { grid-column: 1 / -1; grid-row: auto; position: static; max-width: 360px; margin-bottom: 24px; }
  .q:nth-child(n) { grid-column: auto; grid-row: auto; margin-top: 0; max-width: none; }
  .card { position: relative; top: auto; right: auto; width: auto; max-width: 560px; margin-top: -120px; }
  .contact-photo { height: 60svh; }
  .accounts .h3, .acc-list { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --t-body: 17px; }
  .hide-sm { display: none; }
  .nav { height: 64px; }
  .wordmark { font-size: 18px; }
  .hero-stage { padding-top: 80px; row-gap: 24px; grid-template-columns: repeat(12, 1fr); }
  .hero-name { grid-column: 1 / -1; }
  .hero-name h1 { font-size: clamp(52px, 16vw, 72px); }
  .role { margin-top: 12px; font-size: 22px; }
  .hero-frame { grid-column: 1 / span 6; grid-row: 2; }
  .hero-stats { grid-column: 7 / span 6; grid-row: 2; align-self: center; padding-top: 0; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stats dd { font-size: 32px; }
  .stats dt { font-size: 15px; }
  .stats small { font-size: 13px; }
  .hero-pitch { grid-row: 3; }
  .lede { font-size: 18px; }
  .actions .btn { flex: 1 1 100%; }
  .intro { font-size: 18px; }
  .res-figure, .res-clip { grid-column: 1 / -1; }
  .res-clip { margin-top: 48px; }
  .res-clip .frame { width: 72%; }
  .giant { font-size: clamp(72px, 24vw, 120px); }
  .sub-stats { grid-template-columns: 1fr 1fr; }
  .sub-stats div:last-child { grid-column: 1 / -1; }
  .before-after { padding: 28px 20px; }
  .index { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; row-gap: 28px; }
  .job-clip { width: 78%; }
  .chapter { padding-inline: 0; }
  .chapter-in { border-radius: 0; padding: 48px var(--m); }
  .ch-left, .ch-right { grid-column: 1 / -1; }
  .ch-media { grid-column: 1 / -1; grid-row: auto; width: 78%; justify-self: start; }
  .steps-bar { gap: 6px; }
  .steps-bar span { flex: 1; width: auto; }
  .verb { font-size: clamp(44px, 13vw, 64px); }
  .step p { grid-column: 1 / -1; font-size: 17px; }
  .ticket { grid-template-columns: 1fr; min-height: 0; }
  .ticket::before, .ticket::after { left: auto; top: auto; margin: 0; }
  .ticket::before { left: calc(var(--notch) / -2); bottom: calc(118px - var(--notch) / 2); }
  .ticket::after { right: calc(var(--notch) / -2); bottom: calc(118px - var(--notch) / 2); }
  .t-main { padding: 28px 24px; }
  .t-list { grid-template-columns: 1fr; }
  .t-stub { min-height: 118px; padding: 24px; flex-direction: row; justify-content: space-between; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Ccircle cx='8' cy='3' r='3' fill='%23E6E3DD'/%3E%3C/svg%3E") center top / 16px 6px repeat-x; }
  .t-stub .t-small { text-align: right; max-width: 14ch; }
  .sv-close { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .voices-pic { max-width: 72%; }
  .q { padding-block: 20px; }
  .q:nth-child(even) { padding-left: 15%; }
  .contact-photo { height: 46svh; }
  .contact-photo img { object-position: 22% 70%; }
  .card { margin-top: -80px; padding: 24px; }
  .acc-list { grid-template-columns: 1fr; }
  .footer-name { font-size: 17.5vw; }
  .footer-row p:nth-child(n) { grid-column: 1 / -1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

.hero-name h1 .name-last { display: block; }
