/* ==========================================================
   Arthur Duran — Portfolio
   Quiet, compact, editorial. Swap --accent to re-theme.
   ========================================================== */
:root {
  --bg: #121214;          /* lead grey, almost black */
  --bg-raise: #18181b;
  --line: #26262a;
  --ink: #ecebe6;         /* soft white */
  --ink-dim: #9b9a94;
  --ink-faint: #5f5e5a;
  --accent: #7cf2c3;      /* minty green */
  --accent-ink: #121214;

  --f-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
/* <picture> only swaps formats; it must not affect layout */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap, .nav, .hero, .numbers, .logos, .work, .about, .contact, .footer {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }

/* ---------- NAV ---------- */
/* Floating glass pill, detached from the top edge.
   A touch wider than the content column, like a lid resting on it. */
.nav-bar {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 50;
  padding-inline: max(8px, calc(var(--gutter) - 16px));
  pointer-events: none;
}
.nav-bar .nav {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding: 8px 8px 8px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 999px;
  /* the glass: tinted, with a soft vertical sheen */
  /* clear glass: almost no milk, just a whisper of tint for legibility */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .01) 55%, rgba(255, 255, 255, .03) 100%),
    rgba(14, 14, 16, .22);
  -webkit-backdrop-filter: blur(7px) saturate(190%);
          backdrop-filter: blur(7px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),      /* top lip catching light */
    inset 0 -1px 0 rgba(255, 255, 255, .06),     /* bottom lip */
    inset 1px 0 0 rgba(255, 255, 255, .05),
    inset -1px 0 0 rgba(255, 255, 255, .05),
    0 1px 2px rgba(0, 0, 0, .3),
    0 18px 40px -22px rgba(0, 0, 0, .6);
  transition: background .4s var(--ease);
}
/* specular highlight, like light hitting a curved surface */
.nav-bar .nav::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(60% 120% at 14% -30%, rgba(255, 255, 255, .10), transparent 50%),
    radial-gradient(40% 90% at 94% 130%, rgba(255, 255, 255, .06), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
/* refractive rim: brighter on the curves, almost invisible on the flats */
.nav-bar .nav::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, .60) 0%,
    rgba(255, 255, 255, .08) 18%,
    rgba(255, 255, 255, .0) 50%,
    rgba(255, 255, 255, .08) 82%,
    rgba(255, 255, 255, .45) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.nav-bar.is-scrolled .nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .01) 55%, rgba(255, 255, 255, .03) 100%),
    rgba(14, 14, 16, .38);
}
.nav__end { justify-self: end; display: inline-flex; align-items: center; gap: 18px; }

/* EN | PT switch */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.lang a, .lang span {
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-dim);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang [aria-current] { background: var(--accent); color: var(--accent-ink); }
.nav__mark { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.nav__mark .dot { color: var(--accent); }
.nav__links { display: flex; gap: 40px; font-size: 14px; color: var(--ink-dim); }
.nav__links a { transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-faint);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* ---------- HERO ---------- */
/* The stage is full-bleed: the photo lives on a dark "studio" that
   runs from the ceiling to the right edge and dissolves into the page. */
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.stage {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58vw;
  margin: 0;
  z-index: -1;
  pointer-events: none;
}
.stage__light {
  /* soft neutral key-light, echoing the original grey studio backdrop */
  position: absolute; inset: 0 -10% 0 0;
  background:
    radial-gradient(ellipse 50% 55% at 56% 34%, rgba(255, 255, 255, .09), transparent 70%),
    radial-gradient(ellipse 80% 90% at 58% 42%, #29292c, transparent 76%);
}
.stage__subject {
  position: absolute;
  top: var(--align-y, 22svh);
  left: 54%;
  transform: translateX(-50%);
  height: calc(100svh - var(--align-y, 22svh) + 14svh);
  aspect-ratio: 932 / 1190;
}
.stage__img {
  display: block;
  width: 100%; height: 100%;
  max-width: none;
  filter: grayscale(1) contrast(1.06) brightness(.95);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
}

/* Figma-style selection around the head — the designer's hand on the page */
/* Frame sits BEHIND the cut-out: hair, ears and collar occlude its edges */
.select,
.select-meta {
  position: absolute;
  left: 21%; width: 58%;
  top: 9%; height: 41%;
}
/* 3D pass-through: top edge runs behind the head, sides + bottom in front */
.select { border-top: 1px solid var(--accent); z-index: 0; }
.stage__img { position: relative; z-index: 1; }
.select-meta { z-index: 2; pointer-events: none; border: 1px solid var(--accent); border-top: 0; }
.select__h {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.select__h--tl { left: -4px; top: -4px; }
.select__h--tr { right: -4px; top: -4px; }
.select__h--bl { left: -4px; bottom: -4px; }
.select__h--br { right: -4px; bottom: -4px; }
.select__tag {
  position: absolute;
  left: -1px; bottom: calc(100% + 8px);
  text-shadow: 0 1px 8px rgba(18, 18, 20, .8);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--accent);
  white-space: nowrap;
}
.select__size {
  position: absolute;
  left: calc(100% + 10px); bottom: -10px;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Smart guide: proves the head sits on the title's cap line */
.guide {
  position: absolute;
  left: 0; right: 0;
  top: var(--align-y, 22svh);
  height: 0;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  z-index: 0;
  pointer-events: none;
}
.guide__label {
  position: absolute;
  right: var(--gutter); top: -9px;
  transform: translateY(-100%);
  font-size: 10px;
  color: var(--accent);
}

.stage::after {
  /* left seam: blends the studio into the content column */
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(to right, var(--bg), transparent);
}
.stage__caption {
  position: absolute;
  right: var(--gutter); bottom: 40px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink-faint);
  font-size: 10px;
}

/* 12-column layout grid, barely there */
.hero__grid {
  position: absolute;
  inset: 0 var(--gutter);
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, .035) 0 1px,
    transparent 1px calc((100% - 1px) / 12)
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}

.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 64px;
}
.hero__text { max-width: 820px; }
.hero__meta {
  display: flex; gap: 20px;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.hero__title {
  margin: 0 0 40px;
  font-weight: 500;
  font-size: clamp(47px, 8.46vw, 148px);
  line-height: .88;
  letter-spacing: -.05em;
  text-shadow: 0 2px 40px rgba(18, 18, 20, .35);
}
/* Portuguese runs longer: a slightly smaller title keeps it to three lines, clear of the photo */
:lang(pt-BR) .hero__title { font-size: clamp(40px, 7.1vw, 124px); }
:lang(pt-BR) .hero__title { white-space: nowrap; }
.hero__title em { color: var(--accent); font-size: 1.04em; letter-spacing: -.02em; }
.lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; margin: 0 0 14px; max-width: 30ch; letter-spacing: -.01em; }
.sub { color: var(--ink-dim); margin: 0 0 32px; max-width: 46ch; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }

.about__portrait img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.9);
  transition: filter .8s var(--ease);
}
.about__portrait:hover img { filter: grayscale(0) contrast(1.02) brightness(.95); }

/* ---------- SECTION LABEL ---------- */
.section-label {
  display: flex; gap: 12px; align-items: baseline;
  margin: 0 0 36px;
  color: var(--ink-faint);
  font-weight: 400;
}
.section-label span { color: var(--accent); }

/* ---------- NUMBERS ---------- */
.numbers { padding-top: 120px; padding-bottom: 56px; }
.numbers__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 34px 28px 38px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.stat:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }

/* 1 — kicker: what this number is about */
.stat__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 18px;
  color: var(--ink-faint);
}
.stat__kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
/* 2 — the number, with a coloured unit glued to it */
.stat__value {
  font-weight: 300;
  font-size: clamp(50px, 6.3vw, 94px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__unit {
  font-size: .4em;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
  margin-left: .12em;
}
.stat__value .arrow {
  display: inline-block;
  font-weight: 300;
  margin: 0 .06em;
  color: var(--accent);
}
/* 3 — read it as a sentence: bold start, quiet finish */
.stat__label { display: block; margin-top: 16px; color: var(--ink-faint); font-size: 15px; line-height: 1.5; max-width: 32ch; }
.stat__label b { color: var(--ink); font-weight: 500; }

/* 4 — a tiny chart for every number */
.meter {
  position: relative;
  display: block;
  margin-top: auto;
  padding-top: 24px;
  height: 4px;
  box-sizing: content-box;
}
.meter::before,
.meter::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 4px; border-radius: 4px;
}
.meter::before { right: 0; background: var(--line); }
.meter::after {
  width: calc(var(--v, 1) * 100%);
  background: var(--accent);
  transform-origin: left;
  transition: transform 1.4s var(--ease) .2s;
}
/* before → after: a quiet bar for "before", a bright one for "after" */
.meter--delta { height: 14px; }
.meter--delta::before { right: auto; bottom: 10px; width: calc(var(--from, 1) * 100%); background: #3a3a40; }
.meter--delta::after { width: calc(var(--to, .5) * 100%); }
/* two values side by side (e.g. two store ratings) */
.meter--pair { height: 14px; }
.meter--pair::before { right: auto; bottom: 10px; width: calc(var(--a, .5) * 100%); background: var(--accent); opacity: .45; }
.meter--pair::after { width: calc(var(--b, .5) * 100%); }
/* counts: one dot per unit */
.meter--dots { display: flex; flex-wrap: wrap; gap: 5px; height: auto; }
.meter--dots::before, .meter--dots::after { content: none; }
.meter--dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.meter--dots i.on { background: var(--accent); }
.stat.reveal:not(.is-in) .meter::after { transform: scaleX(0); }
.stat.reveal:not(.is-in) .meter--dots i { transform: scale(.3); }

/* ---------- LOGOS ---------- */
.logos {
  padding-top: 48px; padding-bottom: 56px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
}
.logos__label { color: var(--ink-faint); margin: 0; }
.logos__row {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.logo { width: auto; opacity: .5; transition: opacity .3s var(--ease); }
.logos__row li:hover .logo { opacity: .9; }
/* Optical sizing: heights chosen so every mark covers ~the same area,
   nudged for stroke weight (thin marks up, solid marks down). */
.logo--sinai { height: 24px; }
.logo--unitedlex { height: 22px; }
.logo--doris { height: 17px; }
.logo--yuca { height: 56px; }
.logo--dia { height: 36px; }
.logo--rdsaude { height: 26px; }
.logo--soma { height: 25px; }

/* ---------- WORK ---------- */
.work { padding-top: 48px; padding-bottom: 120px; } /* 56 (logos) + 48 = mirrors the 56 + 48 above the logos */
.work__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.work__head .section-label { margin: 0; }
.work__thread { margin: 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.22; color: var(--ink-dim); max-width: 44ch; }
.work__thread em { color: var(--accent); font-size: 1.08em; }

.cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case__link {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1.1fr 1fr 110px;
  grid-template-areas:
    "idx company  company cta"
    "idx title    desc    cta"
    "idx title    metric  cta"
    "idx title    tags    cta";
  column-gap: 40px;
  row-gap: 10px;
  padding: 40px 0 44px;
  isolation: isolate;
}
.case__link::before {
  content: "";
  position: absolute; inset: 0 -16px;
  background: var(--bg-raise);
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.case__link:hover::before { opacity: 1; }
.case__index { grid-area: idx; color: var(--ink-faint); padding-top: 3px; }
.case__company { grid-area: company; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.case__logo { width: auto; opacity: .55; }
.case__logo--sinai { height: 16px; }
.case__logo--doris { height: 12px; }
.case__logo--unitedlex { height: 15px; }
.case__logo--yuca { height: 38px; }
.case__logo--dia { height: 25px; }
.case__years { color: var(--ink-faint); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; padding-left: 12px; border-left: 1px solid var(--line); }
.case__title {
  grid-area: title;
  margin: 0;
  font-weight: 400;
  font-size: clamp(27px, 3.24vw, 50px);
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 15ch;
}
.case__title em { color: var(--accent); font-size: 1.06em; }
.case__desc { grid-area: desc; margin: 0; color: var(--ink-dim); font-size: 16px; max-width: 46ch; }
.case__metric { grid-area: metric; font-size: 15px; color: var(--ink-dim); margin-top: 6px; }
.case__metric strong { color: var(--ink); font-weight: 500; }
.case__tags { grid-area: tags; color: var(--ink-faint); font-size: 11px; margin-top: 4px; }
.case__cta {
  grid-area: cta;
  align-self: start; justify-self: end;
  white-space: nowrap;
  color: var(--ink-faint);
  padding-top: 3px;
  transition: color .3s var(--ease);
}
.case__link:hover .case__cta { color: var(--accent); }
.case--soon .case__link { cursor: default; }
.case--soon .case__cta { color: var(--ink-faint); }
.case--soon .case__link:hover .case__cta { color: var(--ink-dim); }

/* ---------- ABOUT ---------- */
.about {
  padding-top: 120px; padding-bottom: 120px;
  display: grid;
  grid-template-columns: var(--about-w, 280px) 1fr;
  column-gap: 64px;
  align-items: stretch;
}
.about .section-label { grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--line); }
/* photo spans exactly from the quote's top to the last rule under "Studied" */
/* full, uncropped photo: width follows the text column height (set in main.js) */
.about__portrait { margin: 0; width: var(--about-w, 280px); position: relative; }
.about__portrait figcaption { margin-top: 10px; color: var(--ink-faint); font-size: 10px; }
.about__portrait img { position: absolute; inset: 0; height: 100%; object-fit: contain; object-position: left top; }
.about__body { max-width: 820px; }
.about__quote {
  margin: 0 0 40px;
  font-weight: 500;
  font-size: clamp(29px, 3.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.about__quote em { color: var(--accent); font-size: 1.06em; }
.about__quote, .hero__title, .contact__title, .case__title, .work__thread { text-wrap: balance; }
.about__body > p { color: var(--ink-dim); margin: 0 0 14px; }
.about__facts { margin: 40px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.about__facts > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.about__facts dt { color: var(--ink-faint); padding-top: 2px; }
.about__facts dd { margin: 0; }

/* ---------- CONTACT ---------- */
.contact { padding-top: 120px; padding-bottom: 140px; }
.contact__inner { padding-top: 72px; border-top: 1px solid var(--line); }
.contact__title {
  margin: 0 0 56px;
  font-weight: 500;
  font-size: clamp(40px, 6.3vw, 108px);
  line-height: .95;
  letter-spacing: -.045em;
  max-width: 17ch;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.contact__title em { color: var(--accent); }
.contact__channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact__channels li { display: grid; grid-template-columns: 120px auto; align-items: baseline; justify-content: start; gap: 16px; }
.contact__kind { color: var(--ink-faint); }
.contact__mail {
  display: inline-flex; gap: 10px; align-items: baseline; justify-self: start;
  font-size: clamp(22px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  word-break: break-all;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 24px; }
.contact__links a { color: var(--ink-faint); transition: color .3s; }
.contact__links a:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 11px;
}
.footer a:hover { color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__text > *, .stage__img { animation: fade 1.1s var(--ease) both; }
.select, .select-meta, .guide { animation: draw 1s var(--ease) 1s both; }
@keyframes draw { from { opacity: 0; } }
.hero__text > *:nth-child(2) { animation-delay: .06s; }
.hero__text > *:nth-child(3) { animation-delay: .12s; }
.hero__text > *:nth-child(4) { animation-delay: .18s; }
.hero__text > *:nth-child(5) { animation-delay: .24s; }
.stage__img { animation-delay: .15s; animation-duration: 1.8s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-bar .nav { grid-template-columns: 1fr auto auto; gap: 16px; padding-left: 20px; }
  .nav__status { display: none; }
  .nav__links { gap: 18px; font-size: 13px; }
  .hero-stage { min-height: 0; flex-direction: column; align-items: stretch; }
  .stage { position: relative; width: 100%; height: 78svh; order: 2; margin-top: 24px; }
  .stage::after { inset: 0 0 auto 0; width: auto; height: 30%; background: linear-gradient(to bottom, var(--bg), transparent); }
  .stage__subject { top: 9%; height: 94%; left: 50%; }
  .guide { display: none; }
  .stage__light { inset: 0; background:
    radial-gradient(ellipse 60% 45% at 50% 35%, rgba(255, 255, 255, .08), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 40%, #2a2a2c, transparent 72%); }
  .numbers { padding-top: 48px; }
  .hero { padding-top: 96px; padding-bottom: 0; }
  .hero__meta { margin-bottom: 28px; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .stat:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
  .logos { grid-template-columns: 1fr; }
  .logos__row { justify-content: flex-start; gap: 24px 32px; }
  .work__head { grid-template-columns: 1fr; }
  .case__link {
    grid-template-columns: 28px 1fr;
    grid-template-areas: "idx company" "idx title" "idx desc" "idx metric" "idx tags" "idx cta";
    row-gap: 8px;
  }
  .case__title { max-width: none; }
  .case__cta { justify-self: start; margin-top: 6px; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { width: 200px; margin-bottom: 32px; }
  .about__portrait img { position: static; height: auto; aspect-ratio: auto; }
}
@media (max-width: 520px) {
  .nav__links { display: none; }
  .numbers__grid { grid-template-columns: 1fr; }
  .stat:nth-child(2n) { padding-left: 0; border-left: 0; }
  .about__facts > div { grid-template-columns: 1fr; gap: 2px; }
  .contact__channels li { grid-template-columns: 1fr; gap: 4px; }
}

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

/* ==========================================================
   MOBILE RHYTHM — one tight, even spacing scale under 860px:
   56px between sections · 28–40px inside · 24px between blocks
   ========================================================== */
@media (max-width: 860px) {
  .stage { height: 66svh; margin-top: 16px; }
  .section-label { margin-bottom: 24px; }
  .numbers { padding-top: 56px; padding-bottom: 32px; }
  .stat { padding-top: 26px; padding-bottom: 28px; }
  .stat__kicker { margin-bottom: 14px; }
  .stat__label { margin-top: 12px; }
  .meter { padding-top: 18px; }
  .logos { padding-top: 24px; padding-bottom: 32px; gap: 18px; }
  .work { padding-top: 24px; padding-bottom: 28px; }
  .work__head { padding-top: 32px; margin-bottom: 24px; gap: 14px; }
  .case__link { padding: 28px 0 32px; row-gap: 10px; }
  .cases .case:last-child { border-bottom: 0; }
  .about { padding-top: 28px; padding-bottom: 28px; }
  .about .section-label { padding-top: 28px; }
  .about__quote { margin-bottom: 24px; }
  .about__facts { margin-top: 28px; }
  .contact { padding-top: 28px; padding-bottom: 64px; }
  .contact__inner { padding-top: 40px; }
  .contact__title { margin-bottom: 32px; }
  .contact__channels { gap: 18px; }
}
