/* =========================================================
   BEYOND RANKINGS — COMPONENTS
   Uses tokens from theme.css only. Reusable blocks for future
   pages: .section, .eyebrow, .card, .chip, .btn, .page-head
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--a1) 35%, transparent); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad {
  background: linear-gradient(100deg, var(--a1), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

/* ---------- Ambient layers ---------- */
#signal-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 16%, transparent), transparent 65%);
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s;
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }
.page { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand-dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: var(--a2); box-shadow: 0 0 12px var(--a2);
}
.brand-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--a2); animation: ping 2.4s var(--ease) infinite;
}
.brand small { font-family: var(--font-mono); font-weight: 400; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: .92rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); cursor: pointer; transition: transform .2s, border-color .2s;
}
.icon-btn:hover { transform: rotate(-12deg); border-color: var(--a1); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--a1) 60%, var(--line)); }
.btn-primary {
  border: 0; color: var(--bg);
  background: linear-gradient(100deg, var(--a1), var(--a2));
  box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--a1) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--a2) 80%, transparent); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Chips, eyebrows ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--a1); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: .82rem; color: var(--muted);
}
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--a2); }
.status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--a2); animation: ping 1.8s var(--ease) infinite; }
.chip {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .82rem; color: var(--fg); white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.035em; }
.hero h1 .serif { font-size: 1.08em; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 54ch; line-height: 1.55; }
.hero-lead strong { color: var(--fg); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.proof li { display: inline-flex; align-items: baseline; gap: 6px; }
.proof strong { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.proof li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--a1); margin-right: 16px; align-self: center; }

/* Growth console: the query → revenue path with a travelling dot */
.console {
  position: relative; display: grid; min-width: 0; border-radius: var(--radius-l); overflow: hidden;
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, color-mix(in srgb, var(--a2) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 40px 100px -50px color-mix(in srgb, var(--a1) 60%, transparent);
}
.console-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted);
}
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--a2); text-transform: uppercase; letter-spacing: .1em; }
.live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--a2); }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--a2); animation: ping 1.6s var(--ease) infinite; }
.console-body { position: relative; padding: 16px 20px 16px 48px; }
.console-body::before {
  content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(var(--a1), var(--a2));
  opacity: .45;
}
.signal-dot {
  position: absolute; left: 22px; top: 0; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: var(--fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 35%, transparent), 0 0 22px 4px var(--a1);
  transition: transform .7s var(--ease); z-index: 1;
}
.signal-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.signal-path li {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; transition: background .4s, box-shadow .4s;
}
.signal-path li::before {
  content: ""; position: absolute; left: -24px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--muted); opacity: .6;
}
.signal-path span { font-family: var(--font-mono); font-size: .88rem; color: var(--muted); transition: color .4s; }
.signal-path em { font-style: normal; font-size: .8rem; color: var(--muted); opacity: .75; text-align: right; }
.signal-path li.on { background: color-mix(in srgb, var(--a1) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a1) 30%, transparent); }
.signal-path li.on span { color: var(--fg); }
.signal-path li.on em { color: var(--fg); opacity: .85; }
.signal-path li.done span { color: color-mix(in srgb, var(--a2) 70%, var(--muted)); }
.console-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.console-foot > div { display: grid; gap: 4px; padding: 16px 20px; min-width: 0; }
.console-foot > div + div { border-left: 1px solid var(--line); }
.console-foot strong { font-size: var(--step-2); font-weight: 500; letter-spacing: -0.02em; color: var(--a2); font-variant-numeric: tabular-nums; }
.console-foot span { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* ---------- Brand marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 22px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 40px;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em;
  color: var(--muted); white-space: nowrap;
}
.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  height: 68px; padding: 12px 22px; border-radius: 14px;
  background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line), 0 10px 30px -18px color-mix(in srgb, var(--a1) 60%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.logo { display: block; width: auto; height: 100%; max-width: 200px; object-fit: contain; }
.marquee-item .logo-tile { height: 72px; }
.marquee-item:hover .logo-tile { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--tile-line), 0 0 0 2px color-mix(in srgb, var(--a1) 60%, transparent); }
.brand-card .logo-tile { justify-self: start; height: 60px; padding: 10px 18px; margin-bottom: 4px; }
.brand-card:hover .logo-tile { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--tile-line), 0 0 0 2px color-mix(in srgb, var(--a1) 55%, transparent); }
.marquee-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a1); opacity: .6; }

/* ---------- Brand grid ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.brand-card {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: clamp(22px, 2.6vw, 32px); background: var(--bg); min-width: 0;
  transition: background .3s;
}
.brand-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--a1) 14%, transparent), transparent 60%);
}
.brand-card:hover::before { opacity: 1; }
.brand-card .sector { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand-card h3 { font-size: var(--step-1); }
.brand-card p { color: var(--muted); font-size: .93rem; }
.brand-card .metric { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.brand-card .metric strong { font-size: 1.25rem; font-weight: 600; color: var(--a2); font-variant-numeric: tabular-nums; }
.brand-card .metric span { color: var(--muted); font-size: .82rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--line); }
.stat strong { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: transform .3s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 50%, var(--line)); }
.pillar .k { font-family: var(--font-mono); font-size: .75rem; color: var(--a1); }
.pillar h3 { font-size: var(--step-1); }
.pillar p { color: var(--muted); font-size: .92rem; }

/* ---------- Coming soon slots (future sections) ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.soon {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 22px; border-radius: var(--radius-m); border: 1px dashed var(--line); color: var(--muted);
}
.soon strong { color: var(--fg); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: grid; gap: 20px; justify-items: start;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-l);
  background:
    radial-gradient(600px circle at 100% 0%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 60%),
    radial-gradient(500px circle at 0% 100%, color-mix(in srgb, var(--a2) 16%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: var(--step-3); max-width: 18ch; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.page-head h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 58ch; }
.page-head .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Resume ---------- */
.resume-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: 96px; }
.resume-main { display: grid; gap: 56px; min-width: 0; }
.resume-side { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.r-block h2 { font-size: var(--step-2); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.r-block h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.win { padding: 20px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.win strong { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; color: var(--a2); font-variant-numeric: tabular-nums; }
.win p { color: var(--muted); font-size: .9rem; }

.timeline { position: relative; display: grid; gap: 14px; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--a1), var(--a2) 40%, var(--line));
}
.timeline::after {
  content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--a2); box-shadow: 0 0 12px var(--a2);
  animation: travel 7s var(--ease) infinite;
}
.job { position: relative; padding: 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; transition: border-color .3s; }
.job:hover { border-color: color-mix(in srgb, var(--a1) 45%, var(--line)); }
.job::before {
  content: ""; position: absolute; left: -27px; top: 28px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--a1);
}
.job.current::before { background: var(--a2); border-color: var(--a2); box-shadow: 0 0 10px var(--a2); }
.job-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.job h3 { font-size: var(--step-1); }
.job h3 span { color: var(--muted); font-weight: 400; }
.job time { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.job ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .94rem; }
.job ul li::marker { color: var(--a1); }
.job .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.job .chips .chip { font-size: .76rem; padding: 3px 10px; background: var(--surface-2); }

.side-card { padding: 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.side-card h3 { font-family: var(--font-mono); font-size: .74rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.side-card .chips .chip { background: var(--surface-2); font-size: .8rem; }
.side-card dl { margin: 0; display: grid; gap: 10px; }
.side-card dt { font-weight: 500; }
.side-card dd { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 40px; }
.contact-card {
  position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start;
  padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); min-width: 0;
  transition: transform .3s var(--ease), border-color .3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 50%, var(--line)); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 16%, transparent); color: var(--a1); }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card .label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-size: 1.12rem; font-weight: 500; overflow-wrap: anywhere; user-select: all; }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: .88rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: var(--fg); }

/* ---------- Palette picker (preview only, see main.js) ---------- */
.palette-picker {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .78rem; color: var(--muted); box-shadow: 0 10px 40px -10px rgba(0,0,0,.4);
}
.palette-picker button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0;
}
.palette-picker button[aria-pressed="true"] { border-color: var(--fg); }

/* ---------- Animations ---------- */
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes travel { 0% { top: 8px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 14px); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

.rise { animation: rise .8s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume-grid { grid-template-columns: 1fr; }
  .resume-side { position: static; }
  .contact-grid, .soon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a { padding: 8px 10px; font-size: .88rem; }
  .brand small, .nav-cta { display: none; }
  .brand-grid, .wins { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .stats, .pillars { grid-template-columns: 1fr; }
  .nav { gap: 6px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 7px; font-size: .82rem; }
  .brand { font-size: .95rem; gap: 8px; }
  .icon-btn { width: 34px; height: 34px; }
  .signal-path em { display: none; }
  .console-foot { grid-template-columns: 1fr; }
  .console-foot > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .logo-tile, .marquee-item .logo-tile { height: 56px; padding: 10px 16px; }
}
.nowrap { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1240px) { .hero h1 { font-size: clamp(2.6rem, 1rem + 3.6vw, 4.4rem); } }
