/* Proposal A — Statement. Direction: "Type and nothing else" (tasteskill seed 417002859). */
:root {
  /* Colour roles mapped onto the design-system tokens (css/tokens/figma.css, dark theme). */
  --bg: var(--background-primary);
  --surface: var(--background-deep);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --accent: var(--interactive-primary-idle);
  --accent-hover: var(--interactive-primary-hover);
  --accent-press: var(--interactive-primary-clic);
  --accent-ink: var(--text-static-inverse);
  --field: var(--surface-main);
  --field-ink: var(--text-primary);
  --inverse: var(--surface-inverse);
  --inverse-ink: var(--text-inverse);
  --highlight: var(--surface-accent);
  --highlight-ink: var(--text-static-inverse);
  --input: var(--background-secondary);
  --radius-control: var(--radius-xs);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', 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.375rem, 1.1rem + 0.8vw, 2rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(5.25rem, 15vw, 15rem);
  --margin: clamp(1rem, 2vw, 1.75rem);
  --section: clamp(7.5rem, 14vw, 13.75rem);
  /* Figma hero-top: the hero's top padding, also used above and below the craft entries. */
  --hero-top: clamp(6rem, 15svh, 9rem);
  --radius: 0px;
}

body { font-weight: var(--body-l-font-weight); }
body.is-locked { overflow: hidden; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; }

/* ---------- top: fixed on every page (David, 31-oct-2026), on the page ground so content scrolls under it ---------- */
html { scroll-padding-top: 84px; }
.a-top { position: fixed; inset: 0 0 auto; z-index: 20; background: var(--bg); display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--margin); font-size: 0.9375rem; }
.a-mark { display: block; flex: none; }
.a-mark img { display: block; width: 59px; height: 52px; background: none; transition: opacity var(--t-hover) ease; }
.a-mark:hover img { opacity: .8; }
/* Masked display lines: leave room for descenders (the g of Montealegre) at leading .86. */
.a-hero__name .line, .a-cs__title .line { padding-bottom: .24em; margin-bottom: -.24em; }
.a-nav { display: flex; align-items: center; gap: 1.75rem; }
.a-nav > a { text-decoration: none; position: relative; }
.a-nav > a::after, .a-menu nav a::after, .a-menu__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.a-nav > a:hover::after, .a-nav > a:focus-visible::after, .a-menu nav a:hover::after, .a-menu nav a:focus-visible::after, .a-menu__links a:hover::after, .a-menu__links a:focus-visible::after { transform: scaleX(1); }
/* Header language toggle (desktop and tablet, David 31-oct-2026): the active pill slides between EN and ES
   and the labels swap colour in 500 ms with cubic-bezier(.45, 0, .1, 1), instead of switching instantly.
   app.js sets --lang-i to the active index and replays the slide from the previous language after a render. */
.a-top { --ease-menu: cubic-bezier(.45, 0, .1, 1); --t-menu: 500ms; }
.a-lang { position: relative; isolation: isolate; }
.a-lang::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: 2.5rem; height: 100%; border-radius: var(--radius); background: var(--accent); transform: translateX(calc(var(--lang-i, 0) * (2.5rem + .25rem))); transition: transform var(--t-menu) var(--ease-menu); }
.a-lang.is-instant::before, .a-lang.is-instant button { transition: none; }
.a-lang button { width: 2.5rem; min-width: 2.5rem; min-height: 2.5rem; padding: 0; transition: opacity var(--t-menu) var(--ease-menu), color var(--t-menu) var(--ease-menu); }
.v3-lang.a-lang button[aria-pressed="true"] { background: none; color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .a-lang::before, .a-lang button { transition: none; } }
/* Mobile menu (Figma 5404:14862): a 28 px burger that turns into an X, and a drawer under the fixed
   header whose navigation fills the height, so the language toggle and the contact links sit at the bottom.
   Motion from the V2 drawer (Figma 4776:3713): 500 ms; the drawer comes down 200 px with a decelerating
   curve and fades in linearly, its content fades in with (.002, 0, .2, 1); closing accelerates the drawer
   out with (.8, 0, 1, 1) and fades drawer and content with (.5, 0, .5, 1). The burger lines rotate 45°
   from their left end and stretch to 28 px while the middle one shrinks, with (.5, 0, .5, 1). */
.a-menu-btn { display: none; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; }
.a-burger { position: relative; display: block; width: 28px; height: 28px; }
.a-burger i { position: absolute; left: 4px; width: 20px; height: 2.43px; border-radius: 2px; background: currentColor; transform-origin: 0 50%; transition: transform 500ms cubic-bezier(.5, 0, .5, 1); }
.a-burger i:nth-child(1) { top: 5px; }
.a-burger i:nth-child(2) { top: 12.29px; transform-origin: 50% 50%; }
.a-burger i:nth-child(3) { top: 19.57px; }
.a-menu-btn[aria-expanded="true"] .a-burger i:nth-child(1) { transform: translateY(-1.214px) rotate(45deg) scaleX(1.4); }
.a-menu-btn[aria-expanded="true"] .a-burger i:nth-child(2) { transform: scale(0); }
.a-menu-btn[aria-expanded="true"] .a-burger i:nth-child(3) { transform: translateY(3.864px) rotate(-45deg) scaleX(1.401); }
.a-menu { position: fixed; inset: 0; z-index: 15; background: var(--bg); color: var(--ink); padding: 5.5rem var(--margin) 2rem; display: flex; flex-direction: column; gap: 2.5rem; overflow: auto;
  visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-200px);
  transition: transform 500ms cubic-bezier(.8, 0, 1, 1), opacity 500ms cubic-bezier(.5, 0, .5, 1), visibility 0s 500ms; }
.a-menu > * { opacity: 0; transition: opacity 500ms cubic-bezier(.5, 0, .5, 1); }
.a-menu.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: none;
  transition: transform 500ms cubic-bezier(0, 0, .2, 1), opacity 500ms linear, visibility 0s; }
.a-menu.is-open > * { opacity: 1; transition: opacity 500ms cubic-bezier(.002, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .a-burger i, .a-menu, .a-menu > *, .a-menu.is-open, .a-menu.is-open > * { transition: none; }
}
.a-menu nav { display: grid; align-content: start; gap: var(--space-xs); flex: 1 0 auto; }
.a-menu nav a { position: relative; justify-self: start; font-size: 3rem; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; line-height: 1.1; }
.a-menu { --ease-menu: cubic-bezier(.45, 0, .1, 1); --t-menu: 500ms; }
.a-menu__links { display: grid; gap: .75rem; font-size: 1.0625rem; }
.a-menu__links a { position: relative; justify-self: start; text-decoration: none; }
body.is-locked .a-top { color: var(--ink); }

/* ---------- buttons ---------- */
.a-btn { border-radius: var(--radius-control); display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.a-btn:hover { background: var(--accent-hover); }
.a-btn:active { background: var(--accent-press); }
.a-btn:active { transform: scale(.97); }
.a-btn--inverse { background: var(--inverse-ink); color: var(--inverse); }
.a-btn--inverse:hover { background: var(--accent-hover); color: var(--accent-ink); }
.a-btn--inverse:active { background: var(--accent-press); color: var(--accent-ink); }
.a-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- hero: the name, margin to margin ---------- */
.a-hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: var(--hero-top) var(--margin) 1.75rem; }
.a-hero__name { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.05em; font-weight: 700; }
.a-hero__name .line:last-child { text-align: right; }
.a-hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-top: 3rem; }
.a-hero__role { font-size: var(--step-lead); line-height: 1.25; max-width: 30ch; font-weight: 400; }

/* ---------- facts: the numbers of a career, on an olive field ---------- */
.a-facts { position: relative; color: var(--ink); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 5rem; }
/* The numerals share the section's 12 columns so the portrait and the list line up with them. */
.a-facts__nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.a-fact { grid-column: span 4; }
.a-fact__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 17vw, 17rem); line-height: .8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.a-fact__t { margin-top: 1.25rem; font-size: var(--step-body); max-width: 26ch; }
.a-facts__chip { grid-column: 1 / span 4; align-self: start; overflow: hidden; background: var(--surface); }
.a-facts__chip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--surface); }
.a-facts__list { grid-column: 5 / -1; align-self: start; display: grid; align-content: start; gap: .35rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }

/* ---------- work: a quiet ledger, then each case at full size ---------- */
/* Blog and contact sit on the page grid from column 4; the case-studies title opens on column 1. */
.a-work, .a-blog, .a-contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
.a-work { position: relative; padding: var(--section) var(--margin) calc(var(--section) / 2); }
.a-work__title { grid-column: 1 / span 8; font-size: var(--step-head); }
.a-work { padding-bottom: 0; }

.a-case { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 3rem; padding: calc(var(--section) / 2) var(--margin); align-items: center; }
.a-case__media { grid-column: 1 / span 7; position: relative; background: var(--surface); }
.a-case__video { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface); }
.a-case__copy { grid-column: 9 / -1; display: grid; gap: 1.25rem; justify-items: start; }
/* Hierarchy: the case title leads (bold, larger); the outcome is the supporting statement (light, lead size). */
.a-case h3 { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -0.035em; line-height: 1; }
.a-case__impact { font-family: var(--font-text); font-size: var(--step-lead); font-weight: var(--body-l-font-weight); line-height: 1.25; letter-spacing: -0.01em; max-width: 28ch; color: var(--ink); }
.a-case__role { color: var(--muted); font-size: var(--step-small); }


/* ---------- about: two columns, highlighted facts ---------- */
.a-about { padding: var(--section) var(--margin); }
/* About: one size, one weight, one colour for every sentence; nothing is highlighted over the rest. */
.a-about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); font-size: var(--step-body); line-height: 1.6; color: var(--ink); }
.a-about p { max-width: none; }
.a-about__cv { color: inherit; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.a-about__cv:hover { color: var(--accent); }

/* ---------- blog: two-ended rows ---------- */
.a-blog { padding: var(--section) var(--margin); background: var(--bg); color: var(--ink); }
.a-blog__title { grid-column: 4 / span 7; font-size: var(--step-head); margin: 0 0 2.5rem; }
.a-rows { grid-column: 4 / span 7; display: grid; gap: 1.5rem; }
.a-row { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1.25rem; align-items: center; text-decoration: none; }
.a-row img { width: 6rem; height: 6rem; object-fit: cover; transition: transform var(--t-ui) var(--ease-out); }
.a-row__name { display: grid; gap: .25rem; }
.a-row__name strong { font-weight: 700; font-size: 1.1875rem; line-height: 1.2; }
.a-row__name span { color: var(--muted); font-size: .9375rem; }
.a-row__value { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-row:hover img { transform: scale(1.06); }
.a-row:hover strong { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- contact: one field ---------- */
.a-contact { padding: calc(var(--section) * .9) var(--margin) var(--section); background: var(--surface); }
.a-contact > * { grid-column: 4 / span 6; }
/* Prompt at Statement/Section title (the case section titles): 700, .95, -0.035em. */
.a-contact__prompt { font-size: clamp(1.75rem, 2.9vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: .95; }
.a-contact__prompt span { color: var(--muted); }
.a-field { position: relative; margin-top: 1.75rem; }
.a-field input { width: 100%; height: 4rem; padding: 0 4.25rem 0 1.25rem; border: 0; border-radius: var(--radius-control); background: var(--input); color: var(--ink); font-size: 1.0625rem; }
.a-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.a-field button { position: absolute; right: .5rem; top: .5rem; width: 3rem; height: 3rem; border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out); }
.a-field button:hover { transform: translateX(2px); }
.a-contact__note { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }

/* ---------- footer: invitation over a cropped name ---------- */
.a-foot { position: relative; overflow: hidden; min-height: 100svh; background: var(--inverse); color: var(--inverse-ink); padding: clamp(4rem, 10vw, 8rem) var(--margin) 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; }
.a-foot > * { min-width: 0; }
.a-foot__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
.a-foot__invite { grid-column: 1 / span 7; display: grid; gap: 2rem; justify-items: start; }
.a-foot__line { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; letter-spacing: -0.04em; max-width: 14ch; }
.a-foot__legal { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); padding-bottom: .75rem; }
.a-foot__name { font-family: var(--font-display); font-weight: 700; font-size: 25vw; line-height: .8; letter-spacing: -0.06em; white-space: nowrap; transform: translateY(18%); margin-left: -.04em; max-width: none; }

/* ---------- case study ---------- */
.a-cs__hero { display: grid; align-content: end; gap: 3rem; padding: 9rem var(--margin) 3rem; }
.a-cs__title { font-size: clamp(2.75rem, 8.2vw, 8.75rem); line-height: .9; letter-spacing: -0.045em; }
/* Role, period and status each span four page columns. */
.a-cs__meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.a-cs__meta > div { grid-column: span 4; }
.a-cs__meta dt { color: var(--muted); font-size: var(--step-small); }
.a-cs__meta dd { margin: .25rem 0 0; font-weight: 700; }
.a-cs__visual { padding: 0 var(--margin); }
.a-cs__visual img, .a-cs__visual video { width: 100%; max-height: 88svh; object-fit: cover; }
/* Three hero videos, four columns each, on the page grid; the band keeps only vertical padding. */
.a-cs__heroset { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); background: var(--surface); padding: clamp(1rem, 4vw, 4rem) 0; }
.a-cs__heroset video { grid-column: span 4; aspect-ratio: 9 / 16; object-fit: cover; }
.a-cs__goals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: var(--section) var(--margin) calc(var(--section) / 2); }
.a-cs__goals h2 { font-size: var(--step-head); margin-bottom: 1.5rem; }
.a-cs__goals .cs-list { font-size: var(--step-lead); line-height: 1.25; }
.cs-list { padding-left: 1.1em; display: grid; gap: .6em; }
.cs-list li { max-width: 52ch; }
.a-cs__body { padding: 0 var(--margin); }
.cs-section { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 2.5rem; padding-block: calc(var(--section) / 2); }
.cs-section > .cs-title { grid-column: 1 / span 5; font-size: clamp(1.75rem, 2.9vw, 3rem); align-self: start; }
.cs-section > .cs-copy, .cs-section > .cs-steps, .cs-section > .cs-part, .cs-section > .cs-axis, .cs-section > .cs-groups { grid-column: 7 / -1; }
.cs-section > .cs-media { grid-column: 1 / -1; }
.cs-copy p, .cs-part p { font-size: var(--step-body); }
.cs-copy p + .cs-list, .cs-closing { margin-top: 1.25rem; }
.cs-closing { font-weight: 700; }
.cs-part h3, .cs-group h3, .cs-axis h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: .75rem; letter-spacing: -0.02em; }
.cs-part + .cs-part { margin-top: .5rem; }
.cs-steps { counter-reset: step; display: grid; gap: 1.75rem; }
.cs-steps li { background: var(--surface); padding: 1.5rem; }
.cs-steps h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.cs-media { display: grid; gap: var(--gutter); }
.cs-media--2 { grid-template-columns: 1fr 1fr; }
.cs-media--3 { grid-template-columns: repeat(3, 1fr); }
.cs-media--4 { grid-template-columns: repeat(4, 1fr); }
.cs-figure video, .cs-figure img { background: var(--surface); max-height: 80svh; object-fit: contain; }
.cs-media--1 .cs-figure video { aspect-ratio: 16 / 10; }
.cs-figure figcaption { margin-top: .75rem; font-size: var(--step-small); color: var(--muted); }
.cs-figure__note { font-size: .9375rem; }
.cs-groups { display: grid; gap: 2.5rem; }
.cs-group .cs-figure video { aspect-ratio: 1; object-fit: cover; }
.cs-axis { background: var(--field); color: var(--field-ink); padding: clamp(1.5rem, 3vw, 3rem); display: grid; gap: 1.5rem; }
.cs-axis__labels { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.cs-axis__ends { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.a-cs__final { background: var(--field); color: var(--field-ink); padding: var(--section) var(--margin); display: grid; gap: 2rem; margin-top: calc(var(--section) / 2); }
.a-cs__final h2 { font-size: var(--step-head); }
.a-cs__final .cs-list { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 2.25rem); line-height: 1.08; letter-spacing: -0.025em; list-style: none; padding: 0; }
.a-cs__final .cs-list li { max-width: 40ch; }
.a-cs__final > p { font-size: var(--step-lead); max-width: 40ch; }
.a-cs__note { font-size: var(--step-small); opacity: .8; }
.a-cs__next { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: calc(var(--section) / 2) var(--margin); }
.a-cs__nextlink { display: grid; justify-items: end; text-decoration: none; text-align: right; }
.a-cs__nextlink strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.035em; line-height: 1; transition: transform var(--t-ui) var(--ease-out); }
.a-cs__nextlink:hover strong { transform: translateX(-.25rem); }

/* ---------- article ---------- */
.a-ar__head { padding: 9rem var(--margin) 3rem; display: grid; gap: 1.5rem; }
.a-ar__head h1 { font-size: clamp(2rem, 4.4vw, 4.5rem); line-height: 1; }
.a-ar__meta { color: var(--muted); font-size: var(--step-small); }
.a-ar__summary { font-size: var(--step-lead); line-height: 1.3; max-width: none; }
.a-ar__tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.a-ar__tags li { background: var(--surface); padding: .35rem .8rem; font-size: var(--step-small); }
.a-ar__hero { padding: 0 var(--margin); }
.a-ar__hero img { width: 100%; }
.a-ar__hero figcaption { margin-top: .75rem; color: var(--muted); font-size: var(--step-small); }
/* Reading column (Figma Blog 1/2): columns 3–10 on desktop, 2–11 on tablet, 1–12 on phones. The Body
   frames keep 110 above and below at every breakpoint (section-half of the 1600 frame). */
.a-ar__body { --c: calc((100% - 2 * var(--margin) - 11 * var(--gutter)) / 12); box-sizing: border-box; width: calc(8 * var(--c) + 7 * var(--gutter)); margin: 0 0 0 calc(var(--margin) + 2 * (var(--c) + var(--gutter))); padding: 6.875rem 0; }
.a-ar__body p, .a-ar__body li { font-size: 1.1875rem; line-height: 1.6; max-width: none; }
.a-ar__body p + p { margin-top: 1.1em; }
.a-ar__body h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); margin: 3.5rem 0 1.25rem; line-height: 1.02; }
.a-ar__body h3 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.a-ar__body ul, .a-ar__body ol { margin: 1.25rem 0; padding-left: 1.2em; display: grid; gap: .5rem; }
.a-ar__body blockquote { margin: 2.5rem 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.ar-break { height: 3rem; }
.ar-figure { margin: 2.5rem 0; }
.ar-figure img { width: 100%; margin-inline: auto; background: none; }
.ar-figure--rounded img { border-radius: var(--radius-xs); }

/* Blog 3 (Figma 5487:14423). The title breaks after the colon from 768 up (three natural lines on phones).
   Two hero photos share the twelve columns with SS (12) between and below them, stacked on phones. The
   body keeps the reading column but its padding is section-half (110 / 89.6 / 60), sections sit XL (48)
   apart without separators, subsections use Title M (32/40) and figures add L (32) above and below the
   image. From 1500 up each figure keeps its Figma width (800 or 925) centred in the column. */
.a-ar__title--lines span { display: block; }
.a-ar__hero--pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-ss); padding-bottom: var(--space-ss); }
/* Each photo is rounded on its own with Radius XS (8), David 9-nov-2026. The exports were trimmed 18–23 px
   per side to remove the 40 px corners Figma had baked into them. */
.a-ar__hero--pair img { width: 100%; aspect-ratio: 1429 / 1100; object-fit: cover; border-radius: var(--radius-xs); }
.a-ar--sectioned .a-ar__body { padding-block: calc(var(--section) / 2); }
.a-ar--sectioned .a-ar__body h2, .a-ar--sectioned .a-ar__body h3 { margin: var(--space-xl) 0 1.25rem; }
.a-ar--sectioned .a-ar__body h3 { font-size: 2rem; line-height: 2.5rem; letter-spacing: 0; }
.a-ar--sectioned .ar-figure { margin: 1.1em 0; padding-block: var(--space-l); }
@media (min-width: 1500px) {
  .a-ar--sectioned .ar-figure img { max-width: var(--fig-max, 100%); }
}
@media (max-width: 767px) {
  .a-ar__title--lines span { display: inline; }
  .a-ar__hero--pair { grid-template-columns: 1fr; }
}

/* ---------- status pages ---------- */
/* Figma 5095:4266: one centred stack under the 84 px header — illustration at its native size, Title
   72/80 (56/64 tablet, 40/50 phones), Body L (Body M below desktop) and a small button — with Mega (120)
   above and below on desktop, XL (48) / Huge (80) on tablet and Huge on phones. Gap SS (12), S (16) on phones. */
.a-status { display: flex; flex-direction: column; align-items: center; gap: var(--space-ss); padding: calc(5.25rem + var(--space-mega)) var(--margin) var(--space-mega); text-align: center; }
.a-status__img { max-width: 100%; height: auto; mix-blend-mode: lighten; }
/* The V2 illustrations carry a Background/Deep box; lighten lets the page ground show through it. */
.a-status__title { font-size: 4.5rem; line-height: 5rem; font-weight: 700; letter-spacing: -0.02em; }
.a-status__text { font-size: 1.125rem; line-height: 1.5625rem; font-weight: 300; max-width: none; }
.a-status .a-status__btn { width: auto; min-height: 0; padding: var(--space-ss) var(--space-s); font-size: 1rem; line-height: 1.1875rem; }
@media (max-width: 1023px) {
  .a-status { padding: calc(5.25rem + var(--space-xl)) var(--margin) var(--space-huge); }
  .a-status__title { font-size: 3.5rem; line-height: 4rem; }
  .a-status__text { font-size: 1rem; line-height: 1.35rem; }
}
@media (max-width: 767px) {
  .a-status { gap: var(--space-s); padding: calc(5.25rem + var(--space-huge)) var(--margin) var(--space-huge); }
  .a-status__title { font-size: 2.5rem; line-height: 3.125rem; }
  .a-status .a-status__btn { font-size: .75rem; line-height: .875rem; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .a-case { grid-template-columns: 1fr; }
  .a-facts__chip { grid-column: 1 / span 4; }
  .a-facts__list { grid-column: 5 / -1; }
  .cs-section > .cs-title { grid-column: 1 / -1; position: static; }
  .cs-section > .cs-copy, .cs-section > .cs-steps, .cs-section > .cs-part, .cs-section > .cs-axis, .cs-section > .cs-groups { grid-column: 1 / -1; }
  .cs-media--4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .a-nav { display: none; }
  .a-menu-btn { display: grid; }
  :root { --hero-top: 14svh; }
  .a-hero { padding-top: var(--hero-top); min-height: 88svh; }
  .a-hero__foot { padding-top: 2rem; }
  .a-hero__name { font-size: 17vw; line-height: .9; }
  /* "Montealegre" fitted to the grid: its ink measures 5.6492em (Inter 700, -0.05em tracking), so the
     hero's content box (viewport minus both margins) divided by that is the size that ends on the margin. */
  .a-hero { container-type: inline-size; }
  .a-hero__name { font-size: 16.4vw; font-size: calc(100cqw / 5.6492); }
  .a-hero__name .line:last-child { text-align: left; }
  .a-hero__foot { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .a-hero__role { font-size: 1.0625rem; }
  .a-btn { width: 100%; }
  .a-case .a-btn { width: auto; }
  .a-facts { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .a-facts__nums { grid-template-columns: 1fr; gap: 3rem; }
  .a-fact { grid-column: 1; }
  .a-fact__n { font-size: 34vw; }
  .a-facts__chip { grid-column: 1; width: 100%; }
  .a-facts__list { grid-column: 1; font-size: 1.5rem; line-height: 1.08; gap: .75rem; }
  .a-row { grid-template-columns: 4rem 1fr; }
  .a-row img { width: 4rem; height: 4rem; }
  .a-row__value { grid-column: 2; }
  .a-foot__top { grid-template-columns: 1fr; gap: 3rem; }
  .a-foot__line { font-size: 11vw; }
  .a-foot__name { font-size: 34vw; }
  .a-foot__legal { flex-direction: column; font-size: .8125rem; }
  .a-cs__meta { grid-template-columns: 1fr; gap: 1rem; }
  .a-cs__meta > div { grid-column: 1 / -1; }
  /* Phones: the case title matches the section headings below it (Objectives, Achievements), never smaller (David, 31-oct-2026). */
  .a-cs__title { font-size: var(--step-head); line-height: .95; }
  .cs-axis__labels { font-size: 1.125rem; }
  .a-cs__final .cs-list { font-size: 1.25rem; line-height: 1.15; }
  .a-cs__final > p { font-size: 1.0625rem; }
  .a-cs__goals { grid-template-columns: 1fr; gap: 3rem; }
  .a-cs__heroset { grid-template-columns: 1fr; }
  .a-cs__heroset video { grid-column: 1; }
  .a-cs__heroset video:not(:first-child) { display: none; }
  .cs-media--2, .cs-media--3, .cs-media--4 { grid-template-columns: 1fr; }
  .cs-axis__labels, .cs-axis__ends { grid-template-columns: 1fr; }
  .a-cs__next { flex-direction: column; align-items: start; }
  .a-cs__nextlink { justify-items: start; text-align: left; }
}
.a-field input::placeholder { color: var(--muted); opacity: 1; }

/* Design-system details: language toggle and focus use the interactive accent. */
.v3-lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline-color: var(--accent); }
.a-foot :focus-visible { outline-color: var(--inverse-ink); }

/* ---------- Pixel Perfect: rows inherit the page columns (subgrid) ---------- */
/* Blog rows (columns 4–10): thumbnail on one column, text on five, value on the last. */
.a-rows { grid-template-columns: subgrid; column-gap: var(--gutter); }
.a-rows > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.a-row { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: var(--gutter); }
.a-row img { grid-column: 1; width: 100%; height: auto; aspect-ratio: 1; }
/* Blog 3 row (Figma 5280:92075): the landscape hero photo sits whole inside the square thumbnail. */
.a-row img.a-row__img--contain { object-fit: contain; background: none; }
.a-row__name { grid-column: 2 / -2; }
.a-row__value { grid-column: -2 / -1; justify-self: end; }
/* Contact rows (columns 4–9): label on two columns, value on four. */

@media (max-width: 1023px) {
  .a-row img { grid-column: 1 / span 2; }
  .a-row__name { grid-column: 3 / -3; }
  .a-row__value { grid-column: -3 / -1; }
}
/* Phones: blog and contact span the full 12 columns; rows put the thumbnail on 3 and the text on 9. */
@media (max-width: 767px) {
  .a-blog__title, .a-rows, .a-contact > * { grid-column: 1 / -1; }
  .a-row img { grid-column: 1 / span 3; }
  .a-row__name { grid-column: 4 / -1; }
  .a-row__value { grid-column: 4 / -1; justify-self: start; white-space: normal; }
}

@media (max-width: 1023px) {
  .a-ar__body { width: calc(10 * var(--c) + 9 * var(--gutter)); margin-left: calc(var(--margin) + var(--c) + var(--gutter)); }
}
@media (max-width: 767px) {
  .a-ar__body { width: calc(100% - 2 * var(--margin)); margin-left: var(--margin); }
}

/* Motion Level axis: a gutter-wide gap puts its second column on the same line as the paired videos (column 10). */
.cs-axis__labels, .cs-axis__ends { column-gap: var(--gutter); }
@media (max-width: 767px) {
}

/* Footer legal row (Figma Footer 5120:1494): copyright above "Based in Bogotá - Colombia" with the flag
   (XXS, 6) on the left; the analytics disclaimer above the credit on the right, bottom-aligned, with M (24)
   below. Tablet keeps both on one row (the right side fills what is left, right-aligned) and phones stack
   them, XL (48) apart: Figma uses an unbound 43. The flag is the only origin signal (David, 31-oct-2026);
   the EN/ES toggle stays text. */
.a-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; column-gap: var(--space-l); row-gap: var(--space-s); padding-bottom: var(--space-m); line-height: 1.5; }
.a-foot__credits { display: flex; flex-direction: column; gap: var(--space-xxs); margin: 0; font: inherit; max-width: none; }
.a-foot__base { display: inline-flex; align-items: center; gap: var(--space-xxs); }
.a-foot__base img { display: block; width: 22px; height: 16px; margin: -1px; flex: none; background: none; }
.a-foot__aside { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-xxs); flex: 1 1 0; min-width: 0; }
.a-foot__aside .a-foot__consent { max-width: 852px; }
.a-foot__credit { margin: 0; font: inherit; max-width: none; }
.a-foot__consent:empty { display: none; }
/* The V2 settings strip from css/analytics.css reads here as plain footer text with an underlined button. */
.a-foot .analytics-settings { width: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.a-foot .analytics-settings p { max-width: none; }
.a-foot .analytics-settings__link { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .15em; background: none; cursor: pointer; }
/* Desktop XL (Figma Footer Device=Desktop XL): L (32) between the invitation and the legal row; below 1500 it stays XL (48). */
@media (min-width: 1500px) {
  .a-foot .a-foot__legal { margin-top: var(--space-l); }
}
@media (max-width: 1023px) {
  .a-foot__legal { flex-wrap: nowrap; justify-content: flex-start; column-gap: var(--space-xl); }
  .a-foot__aside, .a-foot__aside .analytics-settings, .a-foot__aside .analytics-settings p { text-align: right; }
}
@media (max-width: 767px) {
  .a-foot__legal { flex-direction: column; align-items: flex-start; gap: var(--space-xl); }
  .a-foot__aside { flex: none; align-items: flex-start; gap: 10px; }
  .a-foot__aside, .a-foot__aside .analytics-settings, .a-foot__aside .analytics-settings p { text-align: left; }
}

/* The three case bands share one layout: video on columns 1–7 in a 4:3 container, copy on 9–12. */
.a-case .a-case__media { grid-column: 1 / span 7; grid-row: 1; }
.a-case .a-case__copy { grid-column: 9 / -1; grid-row: 1; }
.a-case .a-case__video { aspect-ratio: 4 / 3; }
@media (max-width: 1023px) {
  .a-work__title { grid-column: 1 / -1; }
  .a-case .a-case__media, .a-case .a-case__copy { grid-column: 1 / -1; grid-row: auto; }
}

/* Case media as in Figma (5059:184): a flat Background/Deep ground with square corners, no hover zoom.
   The posters carry the old dark ground baked in; lighten lets the flat ground show through it. */
.a-case .a-case__media { border-radius: 0; overflow: hidden; isolation: isolate; background: var(--surface); }
.a-case .a-case__video { background: transparent; mix-blend-mode: lighten; }
.a-case .a-case__media .v3-play { z-index: 1; }
/* Motion curve 1 (video and poster) carries its own ground, rgb(23 25 29), whose red sits 3 above
   Background/Deep rgb(20 25 30), so lighten showed its box. A 10% contrast pushes that ground (and its
   compression noise) below the container colour on every channel, so lighten hides it; the curve and
   guides barely change. MP4 has no alpha channel, so this is how the ground is removed (David, October 31, 2026). */
.a-case--motion .a-case__video { filter: contrast(1.1); }
/* Phones (Figma Home 5059:614): every case video sits in a frame 560 tall, the mobile media height
   shared by all V3 pages, fitted inside it on Background/Deep (David, October 27, 2026: Motion included). */
/* Tablet and phones (Figma 5223:11959, 5203:82753): the Switch entry's impact fills the copy column. */
@media (max-width: 1023px) {
  .a-case--switch .a-case__impact { max-width: none; }
}
@media (max-width: 767px) {
  .a-case .a-case__video { aspect-ratio: auto; height: 560px; }
}

/* ---------- Figma update: Home · Desktop XL (node 5059:155, Home section 5065:518) ---------- */
/* About: heading on columns 2–11, interests list on 2–6, closing text and resume link on 7–11. */
.a-about { padding: var(--space-mega) var(--margin); row-gap: var(--space-l); align-items: start; }
.a-about__title { grid-column: 2 / span 10; font-size: var(--step-head); line-height: .95; letter-spacing: -0.035em; }
.a-about .a-about__list { grid-column: 2 / span 5; margin: 0; padding-left: 1.5em; list-style: disc; }
.a-contact .a-contact__note { max-width: none; }
.a-about__close { grid-column: 7 / span 5; display: grid; gap: 10px; }
.a-about__cv { color: var(--text-accent-primary); }
/* Recommendations (Figma 5280:92062, David 31-oct-2026): heading and carousel on columns 2–11 (content-inset-wide).
   Cards are 6 columns on desktop (two in view), the whole content width below 1024; every card takes the
   tallest one's height, with the person pinned to the bottom. Arrows are the library Mute / Small / Arrow
   button (36 px, with a 44 px hit area). */
.a-recs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-l); padding: var(--space-mega) var(--margin); color: var(--ink); }
.a-recs__title { grid-column: 2 / span 10; font-size: var(--step-head); line-height: .95; letter-spacing: -0.035em; }
.a-recs__carousel { grid-column: 2 / span 10; display: grid; gap: var(--space-l); min-width: 0; }
/* The track bleeds to the page edges so the neighbouring cards show cut (Figma 5280:92062). recsCarousel()
   sets --recs-inset-start/end to the gap between the carousel and the viewport; padding keeps card 1 on column 2. */
.a-recs .a-recs__track { display: flex; gap: var(--gutter); margin: 0 calc(-1 * var(--recs-inset-end, 0px)) 0 calc(-1 * var(--recs-inset-start, 0px)); padding: 0 var(--recs-inset-end, 0px) 0 var(--recs-inset-start, 0px); scroll-padding-inline: var(--recs-inset-start, 0px) var(--recs-inset-end, 0px); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.a-recs__track::-webkit-scrollbar { display: none; }
.a-recs__track.is-sliding { scroll-snap-type: none; }
.a-recs__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.a-rec { flex: 0 0 calc((100% - var(--gutter)) / 2); display: flex; scroll-snap-align: start; }
.a-rec figure { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: var(--space-m); border-radius: var(--radius-m); background: var(--surface); }
.a-rec blockquote { margin: 0; padding-bottom: var(--space-l); font-size: var(--step-body); line-height: 1.5; color: var(--ink); }
.a-rec blockquote p { max-width: none; margin: 0; }
.a-rec blockquote p + p { margin-top: 1.5em; }
.a-rec blockquote::before { content: '\201C'; display: block; margin-bottom: var(--space-s); color: var(--text-accent-primary); font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; }
.a-rec figcaption { display: flex; align-items: center; gap: var(--space-s); }
.a-rec figcaption img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: none; }
.a-rec figcaption > span { display: grid; gap: 2px; }
.a-rec figcaption strong { font-size: 1.1875rem; line-height: 1.2; font-weight: 700; }
.a-rec figcaption span span { color: var(--muted); font-size: .9375rem; }
.a-rec__country { white-space: nowrap; }
.a-rec figcaption .a-rec__country img { display: inline-block; width: 22px; height: 16px; margin: -1px 5px 0 -1px; vertical-align: middle; border-radius: 0; background: none; }
.a-recs__controls { display: flex; align-items: center; gap: var(--space-m); }
.a-recs__arrows { display: flex; flex: none; gap: var(--space-xs); }
.a-recs__arrow { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-control); background: var(--interactive-secondary-idle); color: var(--interactive-primary-idle); border: 1px solid var(--stroke-secondary); transition: transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease; }
.a-recs__arrow::after { content: ''; position: absolute; inset: -5px; }
.a-recs__arrow--prev svg { transform: scaleX(-1); }
.a-recs__arrow:hover:not(:disabled) { background: var(--interactive-secondary-hover); color: var(--interactive-primary-hover); }
.a-recs__arrow:active:not(:disabled) { transform: scale(.96); background: var(--interactive-secondary-clic); color: var(--interactive-primary-clic); }
.a-recs__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a-recs__arrow:disabled { opacity: .4; cursor: default; }
.a-recs__note { font-size: var(--step-small); color: var(--muted); }
/* Link to the recommendations on LinkedIn, styled like the About CV link. */
.a-recs__note a { color: inherit; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; transition: color var(--t-hover) ease; }
.a-recs__note a:hover { color: var(--accent); }
.a-recs__note a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 1023px) {
  .a-rec { flex-basis: 100%; }
  .a-rec figcaption img { width: 56px; height: 56px; }
}
@media (max-width: 767px) {
  .a-recs__title, .a-recs__carousel { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .a-recs__arrow { transition: none; } }
/* Why design engineering (Figma 5437:16664, 1-nov-2026): title and intro on columns 2–11, lead and body
   side by side on desktop, stacked below 1024. The contribution graph card sits on Background/Deep; empty days
   use Surface/Main, levels 1–3 the Brand logo tints and level 4 the accent. Tablet keeps the last 26 weeks and
   phones the last 17, with the matching date range. */
.a-gh { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-l); padding: var(--space-mega) var(--margin); color: var(--ink); }
.a-gh__title, .a-gh__intro, .a-gh__card { grid-column: 2 / span 10; }
.a-gh__title { font-size: var(--step-head); line-height: .95; letter-spacing: -0.035em; }
.a-gh__intro { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-l); }
.a-gh__lead { grid-column: 1 / span 5; max-width: none; font-size: var(--step-lead); font-weight: 400; line-height: 1.25; }
.a-gh__more { grid-column: 6 / span 5; display: grid; justify-items: start; align-content: start; gap: var(--space-l); }
.a-gh__more p { max-width: none; font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
.a-gh .a-btn { width: auto; }
/* Figma 5444:17428 (9-nov-2026): body and buttons M (24) apart; the article button (accent) leads and the
   GitHub profile is a Mute button (Text/Inverse ground, Stroke/Secondary border, Surface/Inverse label). The
   pair keeps XS (8) between and wraps when it does not fit: one row at 1600 and 768, stacked at 1280 and 390. */
.a-gh__more { gap: var(--space-m); }
.a-gh__ctas { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.a-btn--mute { background: var(--text-inverse); color: var(--surface-inverse); border: 1px solid var(--stroke-secondary); }
.a-btn--mute:hover { background: var(--interactive-secondary-hover); }
.a-btn--mute:active { background: var(--interactive-secondary-clic); }
.a-gh__card { display: grid; gap: var(--space-m); margin: 0; padding: var(--space-l); border-radius: var(--radius-m); background: var(--surface); }
.a-gh__head, .a-gh__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-m); }
.a-gh__total { max-width: none; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; }
.a-gh__range, .a-gh__foot { font-size: var(--step-small); color: var(--muted); }
.a-gh__range--tablet, .a-gh__range--mobile, .a-gh__m--tab, .a-gh__m--mob { display: none; }
.a-gh__weeks { --weeks: 53; display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: var(--space-nano); }
.a-gh__week { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-nano); min-width: 0; }
.a-gh__m { height: 1.25rem; margin-bottom: var(--space-xs); overflow: visible; white-space: nowrap; font-size: var(--step-small); line-height: 1.25rem; color: var(--muted); }
.a-gh__day { display: block; aspect-ratio: 1; border-radius: var(--space-micro); background: var(--field); }
.a-gh__day[data-l="1"] { background: var(--brand-logo-main-50pct); }
.a-gh__day[data-l="2"] { background: var(--brand-logo-main-75pct); }
.a-gh__day[data-l="3"] { background: var(--brand-logo-main-100pct); }
.a-gh__day[data-l="4"] { background: var(--accent); }
.a-gh__day[data-future] { visibility: hidden; }
.a-gh__legend { display: inline-flex; align-items: center; gap: var(--space-nano); }
.a-gh__legend .a-gh__day { width: 14px; }
.a-gh__legend .a-gh__day:first-child { margin-left: var(--space-xxs); }
.a-gh__legend .a-gh__day:last-child { margin-right: var(--space-xxs); }
@media (max-width: 1023px) {
  .a-gh__lead, .a-gh__more { grid-column: 1 / -1; }
  .a-gh__weeks { --weeks: 26; }
  .a-gh__week.is-before-tab { display: none; }
  .a-gh__range--full { display: none; }
  .a-gh__range--tablet, .a-gh__m--tab { display: block; }
  .a-gh__m--not-tab { display: none; }
}
@media (max-width: 767px) {
  .a-gh__title, .a-gh__intro, .a-gh__card { grid-column: 1 / -1; }
  .a-gh__card { padding: var(--space-m) var(--space-s); }
  .a-gh__head, .a-gh__foot { flex-direction: column; align-items: flex-start; }
  .a-gh__weeks { --weeks: 17; }
  .a-gh__week.is-before-mob { display: none; }
  .a-gh__range--tablet, .a-gh__m--tab { display: none; }
  .a-gh__range--mobile, .a-gh__m--mob { display: block; }
  .a-gh__m--not-mob { display: none; }
}
/* Facts photo carousel: the photos share one cell of the 4:5 frame; photosCarousel() raises the next one
   and lets it slide in from the right edge while it fades in (500 ms, menu curve). */
.a-photos { display: grid; isolation: isolate; }
.a-photos-wrap { position: relative; }
.a-facts__chip .a-photos { margin: 0; }
/* Pause/Play sits in the photo's bottom-right corner, above the stacked photos; hidden with reduced motion,
   where nothing moves. */
.a-photos__toggle { z-index: 1; }
.a-photos__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a-photos img { grid-area: 1 / 1; opacity: 0; transform: translateX(100%); }
.a-photos img.is-shown { opacity: 1; transform: none; transition: transform 500ms cubic-bezier(.45, 0, .1, 1), opacity 500ms cubic-bezier(.45, 0, .1, 1); }
.a-photos img.is-reset { transition: none; }
@media (prefers-reduced-motion: reduce) { .a-photos img.is-shown { transition: none; } .a-photos__toggle { display: none; } }
/* Blog on columns 2–11 over Background/Primary; rows: thumbnail, text and reading time on 1 / 8 / 1 columns.
   Contact stays on columns 3–10 with Hero (160) above and below; Mega (120) below 1024. */
.a-blog { padding-block: calc(var(--section) / 2); }
.a-blog__title, .a-rows { grid-column: 2 / span 10; }
.a-contact { padding: var(--space-hero) var(--margin); }
.a-contact > * { grid-column: 3 / span 8; }
/* Case copy rhythm from Figma: a little more air before the summary and before the role. */
.a-case .a-case__summary { margin-top: 1.05rem; }
.a-case .a-case__role { margin-top: .8rem; }
/* Footer: invitation, the four contact channels as buttons, legal row; the name sits behind at 25%. */
.a-foot { min-height: 0; padding: 8rem var(--margin) 0; grid-template-rows: auto auto; isolation: isolate; }
.a-foot__top, .a-foot__legal { position: relative; z-index: 1; }
.a-foot__invite { grid-column: 1 / -1; gap: var(--space-l); }
.a-foot__buttons { display: flex; flex-wrap: wrap; gap: var(--space-l); }
.a-btn--dark { background: var(--inverse-ink); color: var(--text-primary); }
.a-btn--dark:hover, .a-btn--dark:active { background: var(--interactive-primary-clic); color: var(--text-static-inverse); }
.a-foot__legal { margin-top: 3rem; }
.a-foot__name { position: absolute; z-index: 0; left: var(--margin); top: 11.4vw; transform: none; color: var(--brand-logo-main-25pct); pointer-events: none; }
/* Tablet (Figma 5059:461): Contact joins About and Blog on columns 2–11 (content-inset). */
@media (max-width: 1023px) {
  .a-contact { padding-block: var(--space-mega); }
  .a-contact > * { grid-column: 2 / span 10; }
}
@media (max-width: 767px) {
  .a-about__title, .a-about .a-about__list, .a-about__close, .a-blog__title, .a-rows, .a-contact > * { grid-column: 1 / -1; }
  .a-foot { padding-top: 5rem; }
  .a-foot__buttons { gap: .75rem; }
  .a-foot__buttons .a-btn { width: auto; }
  .a-foot__name { top: auto; bottom: -8vw; }
}

/* ---------- Figma case template: Motion Level (5076:1275) and Registro ML (5065:519) ---------- */
/* Pages rendered by gridSection carry .a-cs--grid. Entrances stay within the 500 ms motion limit. */
.a-cs--grid { --t-reveal: 500ms; }
.a-cs--grid [data-reveal] { transition-duration: var(--t-reveal); }
.a-cs--grid .lines [data-line] { animation-duration: var(--t-reveal); }
/* Sections: title on columns 1–3 and its explanation on 4–12, stacked at block-gap (40); wide evidence
   (roadmap, benchmark, example videos, the context video) follows on columns 4–12 on desktop,
   and all twelve columns on tablet and phones. */
.a-cs--grid .cs-section { display: flex; flex-direction: column; gap: 2.5rem; }
.a-cs--grid .cs-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.a-cs--grid .cs-intro > .cs-title { grid-column: 1 / span 3; font-size: clamp(1.75rem, 2.9vw, 3rem); }
.a-cs--grid .cs-content { grid-column: 4 / -1; display: flex; flex-direction: column; gap: 2.5rem; min-width: 0; }
/* Sections with parts and one video (Registro ML): title 3 | parts 4 | video 5 columns, top-aligned. */
.a-cs--grid .cs-section--split .cs-content { grid-column: 4 / span 4; }
.a-cs--grid .cs-section--split .cs-intro > .cs-media { grid-column: 8 / -1; }
/* Figures: the play control sits on the video's bottom-right corner (12 px in, as in Figma), whatever
   the caption and note below it measure. */
.a-cs--grid .cs-figure { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.a-cs--grid .cs-figure > video, .a-cs--grid .cs-figure > .v3-play { grid-row: 1; grid-column: 1; }
.a-cs--grid .cs-figure > .v3-play { position: relative; inset: auto; align-self: end; justify-self: end; margin: 0 .75rem .75rem 0; }
/* Play/pause buttons are the Mute button (css/components.css .btn--mute; David, October 31, 2026):
   interactive-secondary ground, accent label, stroke-secondary border, with its hover and click states.
   A solid accent button competed with "See case study" in the Home entries. */
.v3-play { background: var(--interactive-secondary-idle); color: var(--interactive-primary-idle); border: 1px solid var(--stroke-secondary); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.v3-play:hover { background: var(--interactive-secondary-hover); color: var(--interactive-primary-hover); }
.v3-play:active { background: var(--interactive-secondary-clic); color: var(--interactive-primary-clic); }
/* The video frame (Figma Video figure > Media: square, Background/Deep) is its own layer in the video's
   cell, because the recording itself is clipped to 20 px corners (site.js) and that clip would cut a
   ground painted on the video. Cases whose recordings sit in a visible frame set --video-ground; it
   shows only when the recording leaves bands (is-letterboxed, site.js), so a recording that fills its
   box keeps its rounded corners clean. */
.a-cs--grid .cs-figure--video.is-letterboxed::before { content: ""; grid-row: 1; grid-column: 1; background: var(--video-ground, none); }
.a-cs--registro .cs-figure, .a-cs--motion .cs-figure { --video-ground: var(--surface); }
/* Copy: paragraphs keep para-gap (p + p, .9em of Body); lists read as plain lines, full column width. */
/* A list after a paragraph, and the closing line after both, keep copy-block-gap (20). */
.a-cs--grid .cs-copy p + .cs-list { margin-top: 1.25rem; }
.a-cs--grid .cs-section .cs-list { list-style: none; padding-left: 0; }
.a-cs--grid .cs-section .cs-list li, .a-cs--grid .cs-content p { max-width: none; }
/* Parts: XL (48) between parts, SS (12) between a part's title, copy and media. */
.a-cs--grid .cs-parts { display: flex; flex-direction: column; gap: var(--space-xl); }
.a-cs--grid .cs-part { display: flex; flex-direction: column; gap: var(--space-ss); }
.a-cs--grid .cs-part h3 { margin-bottom: 0; }
.a-cs--grid .cs-part + .cs-part { margin-top: 0; }
/* Final outcomes and case navigation share Background/Deep at section-half; outcomes keep their bullets. */
.a-cs--grid .a-cs__final { background: var(--surface); padding: calc(var(--section) / 2) var(--margin); }
.a-cs--grid .a-cs__final .cs-list { list-style: disc; padding-left: 1.5em; }
/* Heading, intro and list fill the twelve columns (Figma 5074:474): no measured width caps. */
.a-cs--grid .a-cs__final > p, .a-cs--grid .a-cs__final .cs-list li { max-width: none; }
/* A closing note under the list reads at the intro size (Final intro, line-height 1.5) at 80%. */
.a-cs--grid .a-cs__final .a-cs__note { font-size: var(--step-lead); line-height: 1.5; }
/* Phones (Figma 5091:1498): the note drops to Body (17). */
@media (max-width: 767px) { .a-cs--grid .a-cs__final .a-cs__note { font-size: 1.0625rem; } }
.a-cs--grid .a-cs__next { background: var(--surface); }
/* Desktop: wide evidence below a section (Motion's roadmap, benchmark and examples, Registro's context
   video) keeps the three title columns free and sits on columns 4–12 (Figma 5083:669, 5074:502 / 5074:678). */
@media (min-width: 1024px) {
  .a-cs--grid .cs-section > .cs-media { align-self: flex-end; width: calc((100% - 11 * var(--gutter)) / 12 * 9 + 8 * var(--gutter)); }
}
@media (max-width: 1023px) {
  .a-cs--grid .cs-intro > .cs-title, .a-cs--grid .cs-content { grid-column: 1 / -1; }
  /* Tablet: the title on its own row, then parts and video on 6 + 6 columns. */
  .a-cs--grid .cs-section--split .cs-content { grid-column: 1 / span 6; }
  .a-cs--grid .cs-section--split .cs-intro > .cs-media { grid-column: 7 / -1; }
}
@media (max-width: 767px) {
  .a-cs--grid .cs-section--split .cs-content, .a-cs--grid .cs-section--split .cs-intro > .cs-media { grid-column: 1 / -1; }
}

/* Motion Level only. */
/* Hero (Figma 5083:684): three motion-curve clips, 850 × 860, four columns each with no ground; on phones
   the three stay in one row, edge to edge, at gutter. */
.a-cs--motion .a-cs__heroset { background: none; }
.a-cs--motion .a-cs__heroset video { aspect-ratio: 850 / 860; max-height: none; background: none; }
/* The curves carry their own ground, rgb(23 25 29), against the page's Background/Primary rgb(23 27 31).
   As on the Home Motion card: lighten over the page colour, with a 10% contrast that keeps the ground
   and its compression noise below it on every channel, so the curves sit on the page with no box.
   The band paints the page colour and isolates the blend so it never mixes with what is behind it
   (David, October 31, 2026). */
.a-cs--motion .a-cs__heroset { background: var(--bg); isolation: isolate; }
.a-cs--motion .a-cs__heroset video { mix-blend-mode: lighten; filter: contrast(1.1); }
/* Objectives and outcomes: Body strong lines, goal-list-gap kept at .6 of the lead size. */
.a-cs--motion .a-cs__goals .cs-list { gap: calc(var(--step-lead) * .6); font-size: var(--step-body); font-weight: 700; line-height: 1.5; }
/* Roadmap: the steps are a bulleted list right after the paragraph, at every width. */
.a-cs--motion .cs-section--roadmap .cs-content { gap: 0; }
.a-cs--motion .cs-section--roadmap .cs-steps { gap: 0; padding-left: 1.5em; list-style: disc; }
.a-cs--motion .cs-section--roadmap .cs-steps li { padding: 0; background: none; }
/* Final outcomes follows the last section directly: its section-half padding is the only space (Figma Body, no bottom padding). */
.a-cs--motion .a-cs__final { margin-top: 0; }
/* Expressivity videos keep three columns each (title-width) inside the nine-column content. */
.a-cs--motion .cs-part .cs-media--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Example videos share one frame (example-height: 9:20 of the column, capped at 80svh) on
   Background/Deep like every other video frame (David, October 31, 2026; it was Background/Secondary), so the
   three line up even when a recording has another ratio; images are fitted without a ground. */
.a-cs--motion .cs-section--examples .cs-figure video { aspect-ratio: 9 / 20; }
.a-cs--motion .cs-section > .cs-media img { background: none; }
/* Benchmark image (transparent PNG) sits on Background/Deep like every video frame (David, October 31,
   2026; Figma 5110:4747 had Surface/Main); on desktop its frame keeps the figure height (80svh: 720 / 640)
   and the image is fitted inside it. */
.a-cs--motion .cs-section--benchmark .cs-figure img { background: var(--surface); }
@media (min-width: 1024px) {
  .a-cs--motion .cs-section--benchmark .cs-figure img { height: 80svh; }
}
/* Desktop (Figma 5083:669 / 5083:941): the challenge and frequency lists are bulleted; tablet and phones keep plain lists. */
@media (min-width: 1024px) {
  .a-cs--motion .cs-section--challenges .cs-list, .a-cs--motion .cs-part .cs-list { padding-left: 1.5em; list-style: disc; }
}
/* Desktop XL only (Figma 5083:669): more air between the expressivity title, copy and videos (XL).
   The 1280 frame keeps SS. */
@media (min-width: 1500px) {
  .a-cs--motion .cs-section--level .cs-part:first-child { gap: var(--space-xl); }
}
@media (max-width: 1023px) {
  .a-cs--motion .cs-part .cs-media--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* Property samples: two groups per row (six columns each), their three samples stacked. */
  .a-cs--motion .cs-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
  .a-cs--motion .cs-section > .cs-media, .a-cs--motion .cs-part .cs-media { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .a-cs--motion .cs-axis__ends { row-gap: var(--space-m); }
  .a-cs--motion .a-cs__visual { padding-inline: 0; }
  .a-cs--motion .a-cs__heroset { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
  .a-cs--motion .a-cs__heroset video { grid-column: auto; }
  .a-cs--motion .a-cs__heroset video:not(:first-child) { display: block; }
}

/* Registro ML only. Tablet and desktop videos use the 16:10 height of the full body width, capped
   at 80svh (720 / 640 / 460 at 1600 / 1280 / 768), fitted on Background/Deep.
   Phones use the explicit media height below. */
.a-cs--registro .a-cs__body { container-type: inline-size; }
.a-cs--registro .cs-figure video { height: min(62.5cqw, 80svh); max-height: none; aspect-ratio: auto; object-fit: contain; background: var(--surface); }
/* Phones: the recordings use the shared mobile media height (see the end of this file). */

/* Menores only (Figma 5076:2434). The adult and minor journey uses all twelve columns: four recordings
   on three columns each on desktop, two per row on tablet (2 × 6) and one per row on phones, at gutter. */
@media (min-width: 1024px) {
  .a-cs--menores .cs-section--flows > .cs-media { width: 100%; }
}
/* The four recordings share one frame (journey-video-height): the native 716 × 1596 of the screen
   recordings, capped at 80svh, on Background/Deep, so the captions line up across the row; corners use
   the 20 px clip every recording gets (site.js). */
.a-cs--menores .cs-section--flows .cs-figure { container-type: inline-size; }
/* The video box is the recording itself (no side bands when 80svh caps the height), centred in its
   columns, so the rounded clip follows the recording; cover crops ≤1.2% of the native width per side. */
.a-cs--menores .cs-section--flows .cs-figure video { width: min(100cqw, 80svh * 716 / 1596); max-height: none; aspect-ratio: 716 / 1596; justify-self: center; object-fit: cover; }
.a-cs--menores .cs-section--flows .cs-figure > .v3-play { margin-right: calc((100cqw - min(100cqw, 80svh * 716 / 1596)) / 2 + .75rem); }
/* Case steps (Figma 5093:1306): stacked with no gap and no ground; each keeps its M (24) padding. */
.a-cs--menores .cs-steps { gap: 0; }
.a-cs--menores .cs-steps li { background: none; }
/* Hero image (Figma Frame 8, Menores and Registro ML): a full-bleed band with L (32) above and below; the
   transparent phone composition covers it at the heights Figma sets per breakpoint (660 / 536 / 356 / 256
   at 1600 / 1280 / 768 / 390), interpolated linearly between those frames. */
.a-cs--menores .a-cs__visual, .a-cs--registro .a-cs__visual, .a-cs--switch .a-cs__visual, .a-cs--ropstar .a-cs__visual, .a-cs--winefast .a-cs__visual { padding: var(--space-l) 0; overflow: hidden; }
.a-cs--menores .a-cs__visual img, .a-cs--registro .a-cs__visual img, .a-cs--switch .a-cs__visual img, .a-cs--ropstar .a-cs__visual img, .a-cs--winefast .a-cs__visual img { height: calc(38.75vw + 40px); max-height: none; object-fit: cover; border-radius: 0; background: none; }
/* Objectives and outcomes: Body strong lines (goal-list-gap kept at .6 of the lead size), tighter padding. */
.a-cs--menores .a-cs__goals, .a-cs--switch .a-cs__goals { padding: var(--space-mega) var(--margin) calc(var(--section) / 2); }
.a-cs--menores .a-cs__goals .cs-list, .a-cs--switch .a-cs__goals .cs-list { gap: calc(var(--step-lead) * .6); font-size: var(--step-body); font-weight: 700; line-height: 1.5; }
.a-cs--menores .a-cs__final, .a-cs--switch .a-cs__final { margin-top: 0; }
@media (max-width: 1499px) {
  .a-cs--menores .a-cs__goals, .a-cs--switch .a-cs__goals { padding-block: var(--space-huge); }
}
@media (max-width: 1023px) {
  .a-cs--menores .a-cs__visual img, .a-cs--registro .a-cs__visual img, .a-cs--switch .a-cs__visual img { height: calc(26.455vw + 152.8px); }
  .a-cs--menores .a-cs__goals, .a-cs--switch .a-cs__goals { padding-block: var(--space-xxl); }
}

/* Switch between countries only (Figma 5170:54941). Hero band, objectives and final outcome share the Menores
   rules above. The recordings follow their copy at copy-block-gap (20) and fill three columns each on
   desktop (columns 4–6, 7–9, 10–12), at their native ratio (718 × 1592 / 714 × 1594) with Radius XS (8)
   and no ground; tablet shows the comparison on 6 + 6 and the three variants stacked on columns 4–9;
   phones stack every recording on all twelve columns. */
.a-cs--switch .cs-section--comparison, .a-cs--switch .cs-section--variants { gap: 1.25rem; }
.a-cs--switch .cs-section--comparison > .cs-media, .a-cs--switch .cs-section--variants > .cs-media { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.a-cs--switch .cs-section--comparison .cs-figure video { aspect-ratio: 718 / 1592; }
.a-cs--switch .cs-section--variants .cs-figure video { aspect-ratio: 714 / 1594; }
.a-cs--switch .cs-section .cs-figure video { width: 100%; height: auto; max-height: none; object-fit: cover; background: none; }
/* The variants list reads right after its intro (one text block in Figma), with bullets. */
.a-cs--switch .cs-section--variants .cs-copy p + .cs-list { gap: 0; margin-top: 0; padding-left: 1.5em; list-style: disc; }
@media (max-width: 1023px) {
  .a-cs--switch .cs-section--comparison > .cs-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-cs--switch .cs-section--variants > .cs-media { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--space-s); }
  .a-cs--switch .cs-section--variants > .cs-media > .cs-figure { grid-column: 4 / span 6; }
}
@media (max-width: 767px) {
  .a-cs--switch .cs-section--comparison > .cs-media { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-s); }
  .a-cs--switch .cs-section--variants > .cs-media > .cs-figure { grid-column: 1 / -1; }
}

/* Analytics consent (Figma 5095:4266, Home frames): the V2 banner from js/analytics.js and css/analytics.css,
   with its two Button S controls drawn here (Mute on the page ground, Loud on the accent) and, on phones,
   the twelve columns between the page margins (358 at 390). */
.analytics-consent .btn { font-size: .75rem; line-height: .875rem; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; padding: var(--space-ss) var(--space-s); border: 0; border-radius: var(--radius-xs); font-weight: 700; cursor: pointer; }
.analytics-consent .btn--mute { background: var(--bg); color: var(--ink); }
.analytics-consent .btn--mute:hover { background: var(--surface); }
.analytics-consent .btn--loud { background: var(--accent); color: var(--accent-ink); }
.analytics-consent .btn--loud:hover { background: var(--accent-hover); }
/* The "change your preferences" line V2 adds under the footer starts on the page margin. */
.analytics-settings { padding-inline: var(--margin); }
.analytics-consent h2 { font: 700 1.25rem/1.5625rem var(--font-display); color: var(--ink); }
.analytics-consent p { font: 300 .75rem/1.0125rem var(--font-text); max-width: none; }
@media (max-width: 767px) {
  .analytics-consent { right: var(--margin); bottom: var(--margin); width: calc(100% - 2 * var(--margin)); }
}

/* Freelance and side projects (Figma 5280:91854 + 5280:91856): the heading on columns 2–11 (all twelve
   below 1024), then two entries on six columns each, stacked below 1024 with L (32) between them.
   Each entry centres its title, summary, collage and button with L between them and XL above and below. */
.a-craft { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin) 0; color: var(--ink); }
.a-craft__title { grid-column: 2 / span 10; font-size: var(--step-head); }
.a-craft__list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; padding-block: var(--hero-top); }
.a-craft__entry { grid-column: span 6; display: flex; flex-direction: column; align-items: center; gap: var(--space-l); padding-block: var(--space-xl); text-align: center; }
.a-craft__copy { display: grid; gap: var(--space-s); width: 100%; }
.a-craft__copy h3 { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -0.035em; line-height: 1; }
.a-craft__copy p { max-width: none; font-size: var(--step-body); line-height: 1.5; }
/* The collage is the source composition (579×500, intrinsic): three captures that overlap on purpose,
   scaled as one box. Side captures at 40% behind the main one, which carries the shadow. The exports
   have rounded corners, so each capture is clipped to the same 20 px radius as the videos and the main
   one's shadow follows it (David, October 31, 2026). */
.a-craft__art { position: relative; width: 100%; max-width: 579px; aspect-ratio: 579 / 500; margin: 0; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--accent) 20%, transparent)); }
.a-craft__entry:nth-child(2) .a-craft__art { filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--accent) 20%, transparent)); }
.a-craft__screen { position: absolute; width: auto; height: auto; max-width: none; object-fit: cover; border-radius: var(--radius-m); }
.a-craft__screen--main { inset: 0 30.05%; width: 39.9%; height: 100%; z-index: 1; box-shadow: 0 4px 8px rgb(56 56 56 / .5); }
.a-craft__screen--left { inset: 8% 53.63% 8% 12.87%; width: 33.5%; height: 84%; opacity: .4; }
.a-craft__screen--right { inset: 8% 12.69% 8% 53.8%; width: 33.51%; height: 84%; opacity: .4; }
.a-craft .a-btn { width: auto; }
@media (max-width: 1023px) {
  .a-craft__title { grid-column: 1 / -1; }
  .a-craft__list { row-gap: var(--space-l); }
  .a-craft__entry { grid-column: 1 / -1; }
}

/* Mobile media height (Figma 5059:614, 5074:1002, 5083:1485, 5091:1498, 5203:74445; David, October 27,
   2026): on phones every recording in the V3 pages sits in a frame 560 tall. Registro ML and Motion Level
   fit theirs inside a 358 × 560 frame on their ground; Menores and Switch show the recording itself at
   560 tall and its native width (≈251), centred, with the play control on the recording's corner. */
@media (max-width: 767px) {
  .a-cs--registro .cs-figure video,
  .a-cs--motion .cs-section--examples .cs-figure video,
  .a-cs--motion .cs-part .cs-figure video { height: 560px; max-height: none; aspect-ratio: auto; object-fit: contain; }
  .a-cs--menores .cs-section--flows .cs-figure video { width: calc(560px * 716 / 1596); }
  .a-cs--menores .cs-section--flows .cs-figure > .v3-play { margin-right: calc((100cqw - 560px * 716 / 1596) / 2 + .75rem); }
  .a-cs--switch .cs-section .cs-figure { container-type: inline-size; }
  .a-cs--switch .cs-section .cs-figure video { width: auto; height: 560px; justify-self: center; }
  .a-cs--switch .cs-section--comparison .cs-figure > .v3-play { margin-right: calc((100cqw - 560px * 718 / 1592) / 2 + .75rem); }
  .a-cs--switch .cs-section--variants .cs-figure > .v3-play { margin-right: calc((100cqw - 560px * 714 / 1594) / 2 + .75rem); }
}

/* ---------- Ropstar side project (Figma 5276:88289) ---------- */
/* Hero: a lead (Regular, 1.25) between the title and the facts, at hero-gap (48) like the rest. */
.a-cs__lead { font-size: var(--step-lead); font-weight: 400; line-height: 1.25; }
@media (max-width: 767px) { .a-cs__lead { font-size: 1.0625rem; } }
/* Hero band: Figma sets 356 at 768 and 256 at 390 for this collage (the shared formula gives 338 / 191),
   so tablet and phones interpolate between those frames; desktop keeps the shared 660 / 536. */
@media (max-width: 1023px) { .a-cs--ropstar .a-cs__visual img, .a-cs--winefast .a-cs__visual img { height: calc(35.156vw + 86px); } }
@media (max-width: 767px) { .a-cs--ropstar .a-cs__visual img, .a-cs--winefast .a-cs__visual img { height: calc(26.455vw + 152.8px); } }
/* Context: the three frictions are a numbered list, Body size, set at para-gap (.9em) after the copy
   and with no gap between items. */
.a-cs--grid .cs-section .cs-list--ordered { list-style: decimal; padding-left: 1.5em; gap: 0; font-size: var(--step-body); }
.a-cs--grid .cs-copy p + .cs-list--ordered { margin-top: .9em; }
/* Screens: native captures (375 × 812) at full column width, no ground. Desktop: three per row on
   columns 4–12 (three columns each), beside the chapter title. Tablet: one per row on columns 4–9;
   phones: columns 3–10; stacked at gutter (16). */
.a-cs--ropstar .cs-figure img { width: 100%; height: auto; max-height: none; aspect-ratio: 375 / 812; object-fit: cover; background: none; }
@media (max-width: 1023px) {
  .a-cs--ropstar .cs-content .cs-media--3 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
  .a-cs--ropstar .cs-content .cs-media--3 > .cs-figure { grid-column: 4 / span 6; }
}
@media (max-width: 767px) {
  .a-cs--ropstar .cs-content .cs-media--3 > .cs-figure { grid-column: 3 / span 8; }
}
/* Final outcome: two statements read as one block (no gap between items, as in Figma). */
.a-cs--ropstar .a-cs__final .cs-list { gap: 0; }
/* Final outcome: the brand links keep the list's type and read as links by their underline. */
.a-cs__final .cs-list a { color: inherit; text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: .06em; }
.a-cs__final .cs-list a:hover { color: var(--accent); }

/* ---------- Winefast side project (Figma 5280:90729) ---------- */
/* Same template as Ropstar: hero band, the concept with its numbered chapter list, then one chapter per row
   of screens beside its title, and no final outcome. Screens are native 414 × 896 captures with Border
   radius L (32). Desktop: three per row, three columns each, on columns 4–12 (Figma 1280; the 1600 frame
   mixes 319 and 362 wide rows). Tablet: one per row on columns 4–9. Phones: 560 tall (the shared mobile
   media height), centred. Rows sit at gutter. */
.a-cs--winefast .cs-content .cs-media { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.a-cs--winefast .cs-figure img { width: 100%; height: auto; max-height: none; aspect-ratio: 414 / 896; object-fit: cover; border-radius: var(--radius-l); background: none; }
@media (max-width: 1023px) {
  .a-cs--winefast .cs-content .cs-media { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .a-cs--winefast .cs-content .cs-media > .cs-figure { grid-column: 4 / span 6; }
}
@media (max-width: 767px) {
  .a-cs--winefast .cs-content .cs-media > .cs-figure { grid-column: 1 / -1; }
  .a-cs--winefast .cs-figure img { width: auto; height: 560px; justify-self: center; }
}
