/* V2 "agentic" portfolio — dark by default, light via [data-theme="light"]. */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1014;
  --ink: #ECEEF1;
  --ink-2: #B9BDC5;
  --muted: #8B909A;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.14);
  --tint: rgba(255, 255, 255, 0.08);
  --field: rgba(0, 0, 0, 0.35);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  --glass-edge: rgba(255, 255, 255, 0.10);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  --panel: linear-gradient(180deg, rgba(30, 33, 40, 0.8), rgba(20, 22, 28, 0.92));
  --accent: #D4F25A;
  --accent-ink: #D4F25A;
  --accent-tint: rgba(212, 242, 90, 0.12);
  --on-accent: #0E1014;
  --on-accent-2: #2F3A10;
  --blue: #8EA6F0;
  --blue-ink: #8EA6F0;
  --blue-tint: rgba(142, 166, 240, 0.14);
  --scrim: rgba(8, 9, 12, 0.62);
  --glow-blue: rgba(142, 166, 240, 0.16);
  --glow-lime: rgba(212, 242, 90, 0.08);
  --grain: 0.06;
  --dot-ring: 0 0 14px #D4F25A;
  --orb-inner: #14161C;
  --orb-core: #D4F25A;
  --danger: #FF9B8A;
  --seg-on: rgba(255, 255, 255, 0.10);
  --seg-shadow: none;
  --soft: rgba(255, 255, 255, 0.04);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F1EC;
  --ink: #121418;
  --ink-2: #454A53;
  --muted: #656A73;
  --line: rgba(18, 20, 24, 0.10);
  --line-2: rgba(18, 20, 24, 0.14);
  --tint: rgba(18, 20, 24, 0.07);
  --field: rgba(18, 20, 24, 0.045);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  --glass-edge: rgba(18, 20, 24, 0.08);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 60px -36px rgba(40, 44, 60, 0.28);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  --accent-ink: #4F6E00;
  --accent-tint: rgba(88, 122, 0, 0.10);
  --on-accent: #121418;
  --blue-ink: #4A63B8;
  --blue-tint: rgba(74, 99, 184, 0.12);
  --scrim: rgba(242, 241, 236, 0.72);
  --glow-blue: rgba(142, 166, 240, 0.28);
  --glow-lime: rgba(212, 242, 90, 0.22);
  --grain: 0.035;
  --dot-ring: 0 0 0 1.5px rgba(79, 110, 0, 0.55);
  --orb-inner: #FFFFFF;
  --orb-core: #9CC21C;
  --danger: #B3261E;
  --seg-on: #FFFFFF;
  --seg-shadow: 0 1px 2px rgba(18, 20, 24, 0.08), 0 6px 16px -8px rgba(18, 20, 24, 0.25);
  --soft: rgba(18, 20, 24, 0.03);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", "Avenir Next", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

svg.icon, svg.icon-sm { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icon-sm { width: 14px; height: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--on-accent); }

.mono { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 4.45vw, 64px); }
.page { position: relative; overflow: hidden; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--glow-color, var(--glow-blue)), transparent); }
.glow-lime { --glow-color: var(--glow-lime); }
main > *, .page > section, .page > main { position: relative; z-index: 1; }

/* ---------- Type ---------- */

.display { margin: 0; font-weight: 700; font-stretch: 78%; letter-spacing: -0.04em; line-height: 0.9; }
.h2 { margin: 0; font-size: 40px; line-height: 0.92; font-weight: 600; font-stretch: 80%; letter-spacing: -0.035em; }
.h3 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1; font-weight: 600; font-stretch: 82%; letter-spacing: -0.03em; }
.eyebrow { font-size: 12px; color: var(--muted); }
.eyebrow-accent { color: var(--accent-ink); }
.lede { margin: 0; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.45; font-weight: 300; color: var(--ink-2); text-wrap: pretty; }
.lede strong { font-weight: 500; color: var(--ink); }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.accent-text { color: var(--accent-ink); }

/* ---------- Components ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: transform 0.2s ease, background-color 0.2s ease; }
.btn-lg { min-height: 54px; padding: 16px 26px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); transform: translateY(-1px); }
.btn-glass { font-weight: 400; color: var(--ink); }
.btn-glass:hover { color: var(--ink); background: var(--tint); }
.chip { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 8px; background: var(--tint); font-size: 11px; color: var(--ink-2); }
.tag-accent { background: var(--accent-tint); color: var(--accent-ink); }
.tag-blue { background: var(--blue-tint); color: var(--blue-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--dot-ring); flex: none; }
.kbd { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--muted); }

.sec { padding-top: clamp(80px, 9.7vw, 80px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.sec-title p { margin-top: 16px; }

.orb { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: conic-gradient(from 0deg, #D4F25A, #8EA6F0, #D4F25A); animation: turn 6s linear infinite; }
.orb::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orb-inner); }
.orb::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--orb-core); }
.orb-sm { width: 26px; height: 26px; }
.orb-sm::before { inset: 2px; }
.orb-sm::after { inset: 8px; }
.orb-xs { width: 22px; height: 22px; }
.orb-xs::before { inset: 2px; }
.orb-xs::after { inset: 7px; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.18em; background: var(--accent-ink); animation: blink 1.1s steps(1) infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 16px; min-height: 44px; justify-self: start; }
.brand:hover { color: inherit; }
.logo { height: 26px; width: auto; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.brand-path { font-size: 12px; color: var(--muted); }
.nav-pill { display: flex; align-items: center; justify-content: center; gap: 30px; }
.nav-pill a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink-2); }
.nav-pill a:hover { color: var(--ink); }
.nav-pill a[aria-current="page"] { color: var(--ink); }
.nav-pill a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; justify-self: end; }
.ask-trigger { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-accent); }
.ask-trigger.glass { background: var(--accent); border-color: transparent; box-shadow: none; }
.ask-trigger:hover { color: var(--on-accent); }
.ask-trigger .orb { background: conic-gradient(from 0deg, var(--on-accent), var(--on-accent-2), var(--on-accent)); animation: none; }
.ask-trigger .orb::before { background: var(--accent); }
.ask-trigger .orb::after { background: var(--on-accent); }
.ask-trigger .kbd { border-color: color-mix(in srgb, var(--on-accent) 25%, transparent); color: var(--on-accent-2); }
.theme-toggle { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.theme-toggle button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.theme-toggle button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.theme-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); }
.theme-btn:hover { color: var(--ink); }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .ic-light { display: none; }
:root[data-theme="light"] .theme-btn .ic-dark { display: none; }
:root[data-theme="light"] .theme-btn .ic-light { display: block; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; }

@media (max-width: 900px) { .nav-pill { display: none; } .menu-btn { display: flex; } .header-bar { grid-template-columns: 1fr auto; } }
@media (max-width: 760px) {
  .brand-path, .header-actions .theme-btn, .ask-trigger-label, .ask-trigger .kbd { display: none; }
  .menu-btn { display: flex; }
  .ask-trigger { width: 44px; padding: 0; justify-content: center; }
  .header-bar { padding-block: 12px; }
  .logo { height: 20px; }
}

/* ---------- Menu ---------- */

.menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 12px clamp(20px, 4.45vw, 64px) 28px; background: var(--bg); overflow-y: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-close { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); }
.menu-links { display: flex; flex-direction: column; margin-top: 18px; }
.menu-links a { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-links a > span:first-child { font-size: 42px; line-height: 1; font-weight: 600; font-stretch: 80%; letter-spacing: -0.03em; }
.menu-links a .mono { font-size: 11px; color: var(--muted); }
.menu-links a[aria-current="page"] .mono { color: var(--accent-ink); }
.menu-foot { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 28px; }
.menu-foot .theme-toggle { display: grid; grid-template-columns: 1fr 1fr; }
.menu-foot .theme-toggle button { min-height: 44px; font-size: 15px; }
.menu-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-2); }
/* Visit count sits with the social links and matches them, but is text rather than a link. */
.visits { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.visits b { font-weight: 600; color: var(--ink-2); margin-right: 6px; }

/* ---------- Ask ---------- */

.ask { position: fixed; inset: 0; z-index: 85; }
.ask-scrim { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ask-panel { position: absolute; left: 50%; top: clamp(20px, 10vh, 96px); transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 2 * clamp(20px, 10vh, 96px)); display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; }
.ask-panel.glass { background: var(--panel); }
.ask-grabber { display: none; }
.ask-form { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 20px; }
.ask-form input::placeholder { color: var(--muted); }
/* Secondary to the mic. Enter already sends (the field sets enterkeyhint, the footer says
   "↵ ask"), so the arrow is a second route to the same place — it does not need the filled
   treatment, and giving it one left the mic reading as the lesser control. */
.ask-send { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.ask-send:hover { border-color: var(--accent-ink); background: var(--tint); color: var(--ink); }
.ask-send:disabled { opacity: 0.5; cursor: progress; }
.ask-esc { min-height: 30px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); }
.ask-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 22px; overflow-y: auto; }
.ask-label { font-size: 11px; color: var(--muted); }
.ask-suggest { display: flex; flex-direction: column; gap: 2px; margin: 0 -12px; }
.ask-suggest button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 16px; text-align: left; color: var(--ink-2); }
.ask-suggest button:hover, .ask-suggest button:focus-visible { background: var(--tint); color: var(--ink); }
.ask-question { margin: 0; font-size: 14px; color: var(--muted); }
.ask-answer { font-size: 17px; line-height: 1.6; color: var(--ink); }
.ask-answer p { margin: 0 0 10px; }
.ask-answer ul { margin: 0 0 10px; padding-left: 20px; }
.ask-answer li { margin-bottom: 4px; }
.ask-answer strong { font-weight: 600; }
.ask-answer > :last-child { margin-bottom: 0; }
.ask-answer.is-streaming > :last-child::after, .ask-answer.is-pending::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent-ink); animation: blink 1.1s steps(1) infinite; }
.ask-answer.is-pending::before { content: "Thinking"; color: var(--muted); font-size: 15px; }
.ask-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-sources a { min-height: 32px; }
.ask-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ask-note.is-error { color: var(--danger); font-size: 15px; }
.ask-foot { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--tint); font-size: 11px; color: var(--muted); }
/* Shown only while an answer is being read aloud. */
.ask-stop { position: absolute; right: 20px; bottom: 64px; z-index: 3; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; color: var(--ink-2); }
.ask-stop:hover { border-color: var(--accent-ink); color: var(--ink); }
.ask-foot .ask-status { margin-left: auto; text-align: right; }

@media (max-width: 760px) {
  .ask-panel { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88vh; border-radius: 28px 28px 0 0; border-bottom: 0; }
  .ask-grabber { display: block; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: var(--line-2); }
  .ask-form { margin: 10px 16px 0; padding: 4px 4px 4px 12px; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--field); }
  .ask-form input { font-size: 16px; }
  .ask-esc, .ask-foot .ask-hint { display: none; }
  .ask-body { padding: 18px 20px 20px; }
  .ask-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .ask-foot .ask-status { margin-left: 0; text-align: left; }
}

/* ---------- Home: hero ---------- */

/* Photo left, words right. The markup keeps the copy first — placing the columns explicitly
   means the name is still what a screen reader meets first, and what stacks first on a phone. */
.hero { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 0 72px; }
/* Only while there are two columns to place into — below 980px the grid is a single
   column and an explicit `grid-column: 2` pushes the copy into a track that isn't there,
   which ran the text off the side of the screen. */
@media (min-width: 981px) {
  .hero-copy { grid-column: 2; grid-row: 1; }
  .hero-visual { grid-column: 1; grid-row: 1; }
}
.hero-copy { display: flex; flex-direction: column; justify-content: flex-start; gap: 32px; padding-top: 60px; }
.hero-intro { display: flex; flex-direction: column; gap: 28px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hero h1 { font-size: clamp(52px, 5.4vw, 90px); line-height: 1; letter-spacing: 0; }
/* One line only where there is room for one; below that it wraps like any heading. */
@media (min-width: 981px) { .hero h1 { white-space: nowrap; } }
/* Narrower screens: scale down so "Abraham" never overflows (64px on phones). */
@media (max-width: 1100px) { .hero h1 { font-size: clamp(44px, 6.4vw, 90px); } }
.hero .lede { max-width: 560px; }
.meta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.meta-row > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 0; border-left: 1px solid var(--line); }
.meta-row > div:first-child { padding-left: 0; border-left: 0; }
.meta-row .mono { font-size: 11px; color: var(--muted); }
.meta-row a, .meta-row span:not(.mono) { font-size: 16px; overflow-wrap: anywhere; }
.meta-row a, .meta-row span:not(.mono) { display: inline-flex; align-items: center; min-height: 44px; }
.sec-head a.eyebrow, .role-feature .more { display: inline-flex; align-items: center; min-height: 44px; }
/* Bleeds off the left edge: back out the wrap's own padding, then the gap between the
   1440px container and the viewport edge on wider screens. */
.hero-visual { position: relative; margin-top: 0; width: 100%; }
@media (min-width: 981px) {
  /* Bleeds off the left edge without changing its own size. */
  .hero-visual { transform: translateX(calc(-1 * clamp(20px, 4.45vw, 64px) - max(0px, (100vw - 1440px) / 2))); }
  .hero-visual .portrait { width: calc(100% + clamp(20px, 4.45vw, 64px) + max(0px, (100vw - 1440px) / 2)); }
}
.portrait { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; background: #1B2230; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 16, 20, 0) 45%, rgba(14, 16, 20, 0.75)); }
.hero-visual .portrait { position: relative; inset: auto; width: 100%; height: 740px; margin-top: -70px; padding-top: 0; border-radius: 0 28px 28px 0; }
.hero-visual .portrait img { height: 100%; }
/* Illustrated cut-out portrait: sits on the site's own glow and fades into the page, in both themes. */
.portrait.is-cutout { background: radial-gradient(65% 55% at 58% 62%, var(--glow-lime), transparent 70%), radial-gradient(85% 75% at 22% 18%, var(--glow-blue), transparent 72%), var(--soft); }
.portrait.is-cutout img { object-fit: cover; object-position: 50% 0%; }
.portrait.is-cutout::after { background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--bg) 70%, transparent)); }
/* Real photo: fills the frame, no border, and fades softly into the page at the bottom. */
/* Nothing painted behind the photo: this portrait vignettes into its own backdrop,
   so a tint or a gradient only shows up as a panel edge around it. */
.portrait.is-photo { background: none; }
.portrait.is-photo img { object-fit: cover; object-position: 50% 8%; }
.portrait.is-photo::after { display: none; }
/* Desktop hero: the Ask card overlaps the lower frame, so lift the photo to keep the face clear of it. */
@media (min-width: 981px) {
  .hero-visual .portrait.is-photo img { object-position: 50% 4%; }
}
.band-portrait.is-cutout { box-shadow: none; background: radial-gradient(circle at 50% 70%, var(--glow-lime), transparent 70%), radial-gradient(circle at 30% 20%, var(--glow-blue), transparent 70%), var(--soft); object-position: 50% 0%; }
/* The photo moved to the left column, so the card overlaps from the right instead. */
.ask-card { position: relative; width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 28px; }

/* The Ask bar: spans the whole hero under both columns — label and suggestions on one
   row, the question field beneath. */
.ask-bar { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 600px; padding: 22px 26px; border-radius: 28px; }
.ask-bar.glass { background: var(--panel); }
.ask-bar-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ask-bar-head > .mono { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-2); }
.ask-bar .prompt-chips { padding-top: 0; border-top: 0; align-items: center; }
/* Four chips plus the shortcut cannot share one row at 600px, so the fourth is hidden here.
   It stays in the markup — the Ask panel's own suggestions are unaffected. */
.ask-bar .prompt-chips button:nth-child(4) { display: none; }
.ask-bar .ask-card-input { min-height: 72px; font-size: 19px; }
.ask-input-actions { display: flex; align-items: center; gap: 8px; flex: none; }
/* The question fills the row and is the click target; the controls sit beside it. */
.ask-field { flex-grow: 1; min-height: 52px; text-align: left; font-size: inherit; color: var(--ink); }
.ask-bar .ask-send { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); }
.ask-bar .ask-send:hover { border-color: var(--accent-ink); background: var(--tint); color: var(--ink); }
.ask-bar .ask-send:focus-visible, .ask-field:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* The inline Ask line: no card, no fill — a label, one large line, a rule, and the mic at the end. */
.ask-card.glass { background: var(--panel); }
.ask-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ask-card-head > span { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-2); }
.ask-card-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 10px 10px 10px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); font-size: 18px; text-align: left; color: var(--ink); transition: border-color 0.2s; }
.ask-card-input:hover { border-color: var(--accent-ink); }
.ask-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* Voice input. Sits under the question field as its own row; the script removes it
   entirely where the browser cannot listen, so it never promises what it can't do. */
/* The mic reads as an available control, not a disabled one: it carries its own edge and the
   accent's ink. Muted grey beside the lime send button made it look switched off. */
.ask-mic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 14px; border: 0; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent), 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.ask-mic .icon { width: 21px; height: 21px; }
.ask-mic:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.ask-mic:active { transform: translateY(0); }
.ask-mic:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* An invitation, not a nag: three beats on arrival, then it stops for good. The script also
   retires it permanently once the mic has been used, so a returning visitor never sees it. */
.ask-mic.is-inviting, .ask-fab-mic.is-inviting { animation: mic-invite 1.5s ease-out 3; }
@keyframes mic-invite {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Says what it does, on hover and on keyboard focus. */
.ask-mic::after {
  content: "Ask by voice";
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 3;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel);
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ask-mic:hover::after, .ask-mic:focus-visible::after { opacity: 1; transform: translateY(0); }
.ask-mic.is-listening::after { content: "Listening — tap to stop"; }
/* Listening needs its own colour, not just a ring: the idle mic is already accent-filled, and
   "is my microphone open?" is not a question to answer with a subtle animation. Ink-filled with
   an accent halo reads as unmistakably active. */
.ask-mic.is-listening { background: var(--ink); color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 34%, transparent); animation: mic-pulse 1.6s ease-in-out infinite; }
.ask-mic.is-listening:hover { background: var(--ink); color: var(--accent); transform: none; }
/* Colour alone is easy to miss on a phone held at arm's length, so listening also breathes. */
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .ask-mic { transition: none; }
  .ask-mic.is-listening, .ask-mic.is-inviting, .ask-fab-mic.is-inviting { animation: none; }
  .ask-mic::after { transition: none; }
}

/* What the mic heard, what it is doing, or why it stopped. A failure the visitor cannot see is
   indistinguishable from a button that does nothing — which is exactly how this one read. */
.ask-voice-status { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* Inside the panel the caption is part of the conversation, so it sits apart from the answer
   above it rather than reading as another line of it. */
.ask-body .ask-voice-status { order: 99; padding-top: 4px; border-top: 1px solid var(--line); }
/* The floating mic's caption has no bar to sit in, so it stands clear of the page on its own
   ground, just above the button it belongs to. */
.ask-voice-status.is-floating {
  position: fixed;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 60;
  max-width: 22em;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink-2);
  text-align: right;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}
body:has(.ask:not([hidden])) .ask-voice-status.is-floating { display: none; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.prompt-chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.prompt-chips button:hover { border-color: var(--accent-ink); color: var(--ink); }

@media (max-width: 1240px) {
  .hero { grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; }
  .ask-card { width: 440px; left: -40px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 20px 40px; }
  .hero-copy { padding-top: 0; gap: 28px; }
  .hero-visual { height: auto; }
  .hero-visual .portrait { position: relative; inset: auto; width: 60%; height: auto; aspect-ratio: 6 / 7; margin-left: auto; border-radius: 22px; }
  .ask-card { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 0 0; padding: 16px; border-radius: 22px; }
  .ask-card-input { font-size: 15px; min-height: 56px; }
  .meta-row { grid-template-columns: 1fr; }
  .meta-row > div { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Home: thesis ---------- */

.thesis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thesis-card { display: flex; flex-direction: column; gap: 60px; padding: 30px; border-radius: 28px; }
.thesis-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--blue-ink); }
.thesis-card h3 { margin: 0 0 10px; font-size: clamp(38px, 3.9vw, 56px); line-height: 0.95; font-weight: 600; font-stretch: 80%; letter-spacing: -0.03em; }
.thesis-card p { margin: 0; font-size: 16px; color: var(--muted); }
.thesis-card.is-accent { background: var(--accent); color: var(--on-accent); }
.thesis-card.is-accent .top, .thesis-card.is-accent p { color: var(--on-accent-2); }
@media (max-width: 760px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 10px; }
  .thesis-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 20px; }
  .thesis-card .top { display: none; }
  .thesis-card h3 { margin: 0; font-size: 38px; }
  .thesis-card p { font-size: 13px; text-align: right; }
}

/* ---------- Home: selected impact as plain results, grouped by role ---------- */

.impact-groups { display: flex; flex-direction: column; gap: 48px; }
.impact-org { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 14px; }
.impact-org h3 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.impact-org .mono { font-size: 12px; color: var(--muted); }
.impact-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.impact-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 40px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.impact-num { font-family: var(--font-display); font-size: 52px; line-height: 0.95; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.impact-num .up { color: var(--accent-ink); }
.impact-row strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; }
.impact-row p { margin: 6px 0 0; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .impact-groups { gap: 36px; }
  .impact-org h3 { font-size: 26px; }
  .impact-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
  .impact-num { font-size: 42px; }
  .impact-row strong { font-size: 17px; }
  .impact-row p { font-size: 15px; }
}

/* ---------- Home: impact by type, with a charts view ---------- */

.impact-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.impact-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.it-col { display: flex; flex-direction: column; padding: 0 28px; border-left: 1px solid var(--line); }
.it-col:first-child { padding-left: 0; border-left: 0; }
.it-col:last-child { padding-right: 0; }
.it-type { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.it-type h3 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.it-type span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.it-item { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.it-num { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.it-num .up { color: var(--accent-ink); }
/* Direction markers are drawn, not typed: the ↑ / ↓ characters render as an odd glyph in the display face. */
.up.is-up, .up.is-down { display: inline-block; width: 0; height: 0; margin-left: 0.14em; vertical-align: 0.06em; border-left: 0.2em solid transparent; border-right: 0.2em solid transparent; }
.up.is-up { border-bottom: 0.3em solid currentColor; }
.up.is-down { border-top: 0.3em solid currentColor; }
.it-num .up.is-up, .it-num .up.is-down { color: var(--accent-ink); }
.num .up.is-up, .num .up.is-down { color: var(--accent-ink); }
.it-item strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.it-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.it-where { font-size: 11px; color: var(--accent-ink); }

/* Results on the career timeline: pins alternate above and below one to-scale year rail. */
.rt { position: relative; height: 440px; margin-top: 12px; }
.rt-pins { list-style: none; margin: 0; padding: 0; }
.rt-pin { position: absolute; width: 230px; left: var(--pin); }
.rt-pin.is-end { left: auto; right: 0; }
.rt-pin.is-up { top: 0; }
.rt-pin.is-down { top: 186px; }
.rt-pin b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 400; line-height: 1; }
.rt-pin strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.rt-where { display: block; margin-top: 4px; font-size: 11px; color: var(--accent-ink); }
/* A pin holding two results: a bracket groups them so they read as two values from one role, never as one sum. */
.rt-group { position: relative; display: block; padding-left: 16px; }
.rt-group::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 12px; width: 7px; border: 1px solid var(--line-2); border-right: 0; border-radius: 4px 0 0 4px; }
.rt-two { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rt-two b { flex: none; }
.rt-two em { font-style: normal; font-size: 14px; font-weight: 600; line-height: 1.35; }
.rt-pin.is-pair .rt-where { margin-top: 2px; }
.rt-where i { display: block; font-style: normal; color: var(--muted); }
.rt-stem { position: absolute; width: 1px; background: var(--line-2); }
.rt-stem.is-up { top: 158px; height: 178px; }
.rt-stem.is-down { top: 292px; height: 44px; }
.rt-dot { position: absolute; top: 331px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--accent-ink); }
.rt-axis { position: absolute; left: 0; right: 0; top: 336px; height: 2px; background: var(--line); }
.rt-era { position: absolute; top: 328px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.rt-era.is-now { background: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.rt-era em { position: absolute; left: 0; top: 26px; font-style: normal; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.rt-era em.above { top: auto; bottom: 26px; }
.rt-era em i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.rt-year { position: absolute; top: 398px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.rt-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
/* Phone and narrow screens: the rail stands upright and the pins become a list, newest first. */
@media (max-width: 900px) {
  .rt { height: auto; }
  .rt-deco { display: none; }
  .rt-pins { display: flex; flex-direction: column; gap: 26px; padding-left: 28px; border-left: 2px solid var(--line); }
  .rt-pin, .rt-pin.is-up, .rt-pin.is-down, .rt-pin.is-end { position: relative; top: auto; left: auto; right: auto; width: auto; }
  .rt-pin::before { content: ""; position: absolute; left: -34px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--accent-ink); }
  .rt-pin b { font-size: 30px; }
  .rt-where i { display: inline; }
  .rt-where i::before { content: " · "; }
}

@media (max-width: 1100px) {
  .impact-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .it-col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .it-col:nth-child(even) { padding-right: 0; }
}
@media (max-width: 760px) {
  .impact-controls { align-items: flex-start; }
  .impact-types { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .it-col, .it-col:nth-child(even) { padding: 0; border-left: 0; }
}

/* ---------- Home: core expertise as plain grouped lists ---------- */

.exp-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.exp-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.exp-row h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.15; }
.exp-row.is-ai h3 { color: var(--accent-ink); }
.exp-row p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 760px) {
  .exp-row { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .exp-row h3 { font-size: 22px; }
  .exp-row p { font-size: 15px; }
}

/* ---------- Home: hero call to action ---------- */

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; border-top: 1px solid var(--line); }

/* The button lives in the copy column so it flows normally on every screen. On desktop only,
   it is lifted out and placed over the portrait at chest height — positioned against the hero,
   never inside the 76px phone portrait, which is what crushed it before. */
@media (min-width: 981px) {
  .hero { position: relative; }
  .hero-cta-on-photo { position: absolute; left: 48px; top: 490px; z-index: 2; padding-top: 0; border-top: 0; }
}
.hero-cta .note { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .hero-cta .btn { width: 100%; } }

/* ---------- Home: leadership qualities (open grid, not cards) ---------- */

.qualities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.quality { display: flex; flex-direction: column; gap: 12px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
/* The colleague's words lead; the theme is only a small label. */
.quality h3 { margin: 0; font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--accent-ink); }
.quality figure { margin: 0; }
/* Body font, inherited — these quotes read as speech, not as display type. */
.quality blockquote { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.quality figcaption { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.quality figcaption b { font-weight: 400; color: var(--accent-ink); }
@media (max-width: 980px) { .qualities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .qualities { grid-template-columns: minmax(0, 1fr); }
  .quality { padding: 22px 0 28px; }
}

/* ---------- Home: thesis flow (Insights → Decisions → Actions) ---------- */

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.flow-step { position: relative; padding-top: 52px; }
.flow-node { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg); }
.flow-step.is-mid .flow-node { border-color: var(--accent-ink); background: linear-gradient(90deg, var(--accent) 50%, var(--bg) 50%); }
.flow-step.is-end .flow-node { border-color: var(--accent); background: var(--accent); box-shadow: var(--dot-ring); }
/* Connector from each node to the next, filling toward lime; the chevron marks direction. */
.flow-step:not(:last-child)::before { content: ""; position: absolute; top: 11px; left: 36px; right: -20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line-2), var(--accent-ink)); }
.flow-step.is-mid::before { background: linear-gradient(90deg, var(--accent-ink), var(--accent)); }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 7px; right: -20px; width: 9px; height: 9px; border-top: 2px solid var(--accent-ink); border-right: 2px solid var(--accent-ink); transform: rotate(45deg); }
.flow-num { display: block; font-size: 12px; color: var(--muted); }
.flow-step.is-end .flow-num { color: var(--accent-ink); }
.flow-step h3 { margin: 12px 0 10px; font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.flow-step p { margin: 0; max-width: 300px; font-size: 17px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 4px; }
  .flow-step { padding: 0 0 36px 48px; }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-node { top: 4px; }
  .flow-step:not(:last-child)::before { top: 40px; bottom: 14px; left: 11px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--line-2), var(--accent-ink)); }
  .flow-step.is-mid::before { background: linear-gradient(180deg, var(--accent-ink), var(--accent)); }
  .flow-step:not(:last-child)::after { top: auto; bottom: 12px; right: auto; left: 7px; transform: rotate(135deg); }
  .flow-step h3 { margin-top: 6px; font-size: 40px; }
  .flow-step p { font-size: 15px; }
}

/* ---------- Home: impact ---------- */

.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 26px; border-radius: 28px; }
.tile .num { font-size: clamp(44px, 4.4vw, 64px); line-height: 0.9; font-weight: 600; font-stretch: 78%; letter-spacing: -0.04em; white-space: nowrap; }
.num .up { color: var(--accent-ink); }
.tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tile-feature { grid-column: span 2; grid-row: span 2; padding: 34px; }
.tile-feature .num { font-size: clamp(48px, 6.1vw, 88px); line-height: 0.85; }
.tile-blue { grid-column: span 2; flex-direction: row; align-items: flex-end; padding: 30px 34px; background: var(--blue); color: #0E1014; }
.tile-blue .num { font-size: clamp(64px, 8.3vw, 120px); line-height: 0.82; font-weight: 700; font-stretch: 76%; }
.tile-blue p { max-width: 260px; color: #1D2640; }
.bars { display: flex; flex-direction: column; gap: 22px; }
.bar-row { display: flex; flex-direction: column; gap: 8px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bar-label.is-after { color: var(--accent-ink); }
.bar { height: 14px; border-radius: 999px; background: var(--line-2); }
.bar.is-after { background: var(--tint); }
.bar.is-after i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: var(--dot-ring); }
@media (max-width: 1100px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-feature { grid-row: auto; }
}
@media (max-width: 600px) {
  .impact-grid { grid-auto-rows: auto; gap: 10px; }
  .tile { padding: 18px; gap: 16px; border-radius: 20px; }
  .tile .num { font-size: 36px; }
  .tile p { font-size: 12px; }
  .tile-feature { padding: 22px; }
  .tile-feature .num { font-size: 44px; }
  .tile-blue { flex-direction: column; align-items: flex-start; padding: 20px 22px; }
  .tile-blue .num { font-size: 62px; }
}

/* ---------- Home: career ---------- */

/* The timeline is the role picker: segments sit on one to-scale track, labels alternate above and below. */
.career { display: flex; flex-direction: column; }
.ctl-axis { position: relative; height: 22px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; box-sizing: content-box; }
.ctl-axis span { position: absolute; top: 14px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.ctl { position: relative; height: 136px; margin-top: 4px; }
.ctl-track { position: absolute; left: 0; right: 0; top: 67px; height: 2px; background: var(--line); }
.ctl-gap { position: absolute; top: 61px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 6px); }
.ctl-seg { position: absolute; top: 52px; height: 32px; min-width: 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--tint); cursor: pointer; transition: background-color 0.2s ease; }
.ctl-seg:hover { background: var(--line-2); }
.ctl-seg:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.ctl-seg[aria-selected="true"] { border-color: transparent; background: var(--accent); }
.ctl-lbl { position: absolute; left: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 8px; border-left: 1px solid var(--line-2); font-size: 13px; text-align: left; white-space: nowrap; }
.ctl-seg.is-up .ctl-lbl { bottom: calc(100% + 8px); }
.ctl-seg.is-down .ctl-lbl { top: calc(100% + 8px); }
.ctl-lbl b { font-weight: 600; color: var(--ink-2); }
.ctl-lbl i { font-size: 11px; font-style: normal; color: var(--muted); }
.ctl-seg:hover .ctl-lbl b, .ctl-seg[aria-selected="true"] .ctl-lbl b { color: var(--ink); }
.ctl-seg[aria-selected="true"] .ctl-lbl { border-left-color: var(--accent-ink); }
.ctl-years { display: none; }
.role-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-content: start; gap: 22px 40px; margin-top: 24px; padding: 34px; border-radius: 28px; }
.role-feature > * { grid-column: 2; }
.role-feature > .role-feature-head { grid-column: 1; grid-row: 1 / span 2; }
.role-feature-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.role-feature-head > div { display: flex; flex-direction: column; gap: 8px; }
.role-feature-head .role-title { font-size: 17px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .ctl-seg { transition: none; } }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--field); }
.tabs button { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--tint); color: var(--ink); }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.kv .mono { font-size: 13px; color: var(--accent-ink); }
.kv p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.role-feature .more { font-size: 14px; color: var(--accent-ink); }
.role-feature { scroll-margin-top: 90px; }
@media (max-width: 980px) {
  .role-feature { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .role-feature > *, .role-feature > .role-feature-head { grid-column: 1; grid-row: auto; }
  .role-feature-head { gap: 12px; }
  .kv { grid-template-columns: 1fr; gap: 6px; }
}
/* Phone: the timeline becomes a list, newest role first. */
@media (max-width: 760px) {
  .ctl-axis, .ctl-track, .ctl-gap { display: none; }
  .ctl { height: auto; display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 0; }
  .ctl-seg { position: static; width: 100% !important; height: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; }
  .ctl-lbl, .ctl-seg.is-up .ctl-lbl, .ctl-seg.is-down .ctl-lbl { position: static; padding: 0; border: 0; white-space: normal; }
  .ctl-years { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
  .ctl-seg[aria-selected="true"] .ctl-lbl b, .ctl-seg[aria-selected="true"] .ctl-lbl i, .ctl-seg[aria-selected="true"] .ctl-years { color: var(--on-accent); }
}

/* ---------- Innovation cards ---------- */

.innov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.innov-card { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 260px; width: 100%; text-align: left; padding: 30px; border-radius: 28px; color: var(--ink); transition: transform 0.25s ease; }
.innov-card:hover { color: var(--ink); transform: translateY(-3px); }
.innov-card .top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--blue-ink); }
.innov-card .top .muted { text-align: right; color: var(--muted); }
.innov-card h3 { margin: 0 0 10px; font-size: 30px; line-height: 1.02; font-weight: 600; font-stretch: 82%; letter-spacing: -0.02em; }
.innov-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.innov-card.is-wide { grid-column: span 2; min-height: 300px; }
.innov-card.is-wide h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 0.95; }
.innov-card.is-accent { background: var(--accent); color: var(--on-accent); }
.innov-card.is-accent:hover { color: var(--on-accent); }
.innov-card.is-accent .top, .innov-card.is-accent p { color: var(--on-accent-2); }
.innov-card.is-full { grid-column: span 3; flex-direction: row; align-items: flex-end; min-height: 0; }
/* Cover art on the home-page innovation cards. Two stacked pseudo-elements: ::before holds the
   image (so the greyscale filter touches only the art) and ::after lays a wash of the card's own
   surface colour over it, so the text keeps its contrast no matter how busy the photograph is.
   --cover is set inline per card. Greyscale at rest, full colour on hover. */
.innov-card.has-cover {
  position: relative; overflow: hidden;
  --cover-lift: 1.45; --cover-fade: 0.5;
  --cover-scrim: rgba(242, 241, 236, 0.74);
  --cover-scrim-hover: rgba(242, 241, 236, 0.58);
}
.innov-card.has-cover > * { position: relative; z-index: 2; }
.innov-card.has-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--cover); background-size: cover; background-position: 50% 50%;
  filter: grayscale(1) brightness(var(--cover-lift)) contrast(0.85);
  opacity: var(--cover-fade);
  transition: filter 420ms cubic-bezier(0.2, 0.7, 0.3, 1), opacity 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.innov-card.has-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-color: var(--cover-scrim);
  transition: background-color 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.innov-card.has-cover:hover::before { filter: grayscale(0) brightness(1) contrast(1); opacity: 0.72; }
.innov-card.has-cover:hover::after { background-color: var(--cover-scrim-hover); }
/* The lime card carries its own colour, so its wash is lime rather than paper. */
.innov-card.is-accent.has-cover {
  --cover-fade: 0.34;
  --cover-scrim: rgba(212, 242, 90, 0.78); --cover-scrim-hover: rgba(212, 242, 90, 0.62);
}
/* On dark the card is near-black, so a bright plate would glare: drop the lift, darken the wash. */
:root[data-theme="dark"] .innov-card.has-cover {
  --cover-lift: 0.8; --cover-fade: 0.42;
  --cover-scrim: rgba(14, 16, 20, 0.72); --cover-scrim-hover: rgba(14, 16, 20, 0.54);
}
:root[data-theme="dark"] .innov-card.is-accent.has-cover {
  --cover-scrim: rgba(212, 242, 90, 0.74); --cover-scrim-hover: rgba(212, 242, 90, 0.58);
}
@media (prefers-reduced-motion: reduce) {
  .innov-card.has-cover::before, .innov-card.has-cover::after { transition: none; }
}
.innov-card.is-full p { max-width: 520px; }
@media (max-width: 980px) {
  .innov-grid { grid-template-columns: 1fr; gap: 10px; }
  .innov-card, .innov-card.is-wide, .innov-card.is-full { grid-column: auto; min-height: 0; padding: 22px; border-radius: 22px; flex-direction: column; align-items: stretch; gap: 14px; }
  .innov-card h3, .innov-card.is-wide h3 { font-size: 28px; }
}

/* ---------- Expertise & education ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.code-panel { border-radius: 28px; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.code-body { padding: 24px 28px 30px; font-size: 14px; line-height: 1.85; }
.code-body .brace { color: var(--muted); }
.code-body .line { padding-left: 22px; }
.code-body .k { color: var(--accent-ink); }
.code-body .k-ai { color: var(--blue-ink); }
.code-body .v { color: var(--ink-2); }
.code-body .v-ai { color: var(--ink); }
.edu-card { display: flex; flex-direction: column; padding: 10px 28px; border-radius: 28px; }
.edu-item { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.edu-item:last-child { border-bottom: 0; }
.edu-item .mono { font-size: 12px; color: var(--blue-ink); }
.edu-item strong { font-size: 22px; font-weight: 600; line-height: 1.2; }
.edu-item span:last-child { font-size: 14px; color: var(--muted); }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .code-body { padding: 18px; font-size: 12px; line-height: 1.7; }
  .code-body .line { padding-left: 0; margin-bottom: 12px; }
  .code-body .line .v, .code-body .line .v-ai { display: block; padding-left: 14px; }
  .edu-card { padding: 4px 20px; }
  .edu-item strong { font-size: 19px; }
}

/* ---------- Case study teaser & CTA ---------- */


.cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding: 56px; border-radius: 36px; overflow: hidden; }
.cta > * { position: relative; }
.cta .glow { position: absolute; right: -160px; top: -200px; width: 560px; height: 560px; --glow-color: rgba(212, 242, 90, 0.2); }
.cta-copy { display: flex; flex-direction: column; gap: 24px; }
.cta h2 { font-size: clamp(56px, 8.9vw, 128px); line-height: 0.88; }
.cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 40px; font-size: 18px; }
.cta-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* LinkedIn and WhatsApp buttons stand in for the email address and phone number, which are no longer shown. */
.reach { display: inline-flex; align-items: center; gap: 12px; }
.reach-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); transition: background-color 0.2s ease, transform 0.2s ease; }
.reach-btn:hover { color: var(--ink); background: var(--tint); transform: translateY(-2px); }
.reach-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.reach-ic { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.id-card .reach-btn { width: 40px; height: 40px; }
.id-card .reach-ic { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) { .reach-btn { transition: none; } }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; border-radius: 26px; }
  .cta .btn { width: 100%; }
  .cta-links { flex-direction: column; font-size: 16px; }
}

/* ---------- Footer ---------- */

.site-footer { position: relative; z-index: 1; margin-top: clamp(80px, 8.3vw, 120px); }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 24px 40px; border-top: 1px solid var(--line); }
.footer-bar > .mono { font-size: 12px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }

/* ---------- Inner pages ---------- */

.page-hero { padding-top: 32px; }
.page-title { font-size: 60px; }

.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; margin-top: 32px; }
.about-hero .lede-strong { margin: 36px 0 0; max-width: 760px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; }
.about-hero .body { margin: 18px 0 0; max-width: 760px; font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.about-portrait { position: relative; height: 470px; }
.about-portrait .portrait { inset: 0 0 auto auto; width: 60%; height: 336px; border-radius: 26px; }
.about-portrait .portrait::after { display: none; }
.id-card { position: absolute; left: -40px; right: 40px; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 24px; }
.id-card.glass { background: var(--panel); }
.id-card strong { font-size: 28px; line-height: 1; font-weight: 600; font-stretch: 82%; }
.id-card .mono { font-size: 11px; line-height: 1.6; color: var(--muted); }
.id-card .links { display: flex; flex-wrap: wrap; gap: 0 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.id-card .links > * { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 980px) {
  .about-hero { grid-template-columns: 1fr; gap: 24px; }
  .about-portrait { height: auto; }
  .about-portrait .portrait { position: relative; inset: auto; width: 60%; height: auto; aspect-ratio: 6 / 7; margin-left: auto; border-radius: 22px; }
  .id-card { position: relative; left: auto; right: auto; margin: -56px 0 0; }
  .id-card .links { flex-direction: column; }
  .id-card .links > * { min-height: 44px; }
  .actions .btn { flex: 1 1 100%; }
}

.role { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.role:last-of-type { border-bottom: 1px solid var(--line); }
.role-meta { display: flex; flex-direction: column; gap: 10px; }
.role-meta .h3 { font-size: 40px; margin-top: 4px; }
.role-meta .role-title { font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.role-meta .tag { align-self: flex-start; margin-top: 6px; }
.role-meta .dates { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.role-meta .dates.is-now { color: var(--accent-ink); }
.grp { display: block; margin: 0 0 16px; font-size: 12px; letter-spacing: 0.04em; color: var(--blue-ink); }
.bl + .grp { margin-top: 36px; }
.bl { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bl li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.bl li::before { content: ""; width: 8px; height: 2px; margin-top: 0.8em; border-radius: 2px; background: var(--accent-ink); }
.bl strong { font-weight: 600; color: var(--ink); }
@media (max-width: 980px) {
  .role { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .role-meta .h3 { font-size: 30px; }
  .bl li { font-size: 15px; gap: 10px; grid-template-columns: 12px minmax(0, 1fr); }
  .bl + .grp { margin-top: 28px; }
}

.expertise-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.exp-col { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 24px; }
.exp-col h3 { margin: 0; min-height: 50px; font-size: 22px; line-height: 1.1; font-weight: 600; font-stretch: 84%; }
.exp-col.is-accent { background: var(--accent); color: var(--on-accent); }
.exp-col.is-accent .chip { border: 0; background: rgba(14, 16, 20, 0.10); color: var(--on-accent); }
.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edu-grid > div { display: flex; flex-direction: column; gap: 40px; padding: 28px; border-radius: 26px; }
.edu-grid .mono { font-size: 12px; color: var(--blue-ink); }
.edu-grid strong { display: block; margin-bottom: 8px; font-size: 26px; line-height: 1.12; font-weight: 600; font-stretch: 84%; }
.edu-grid span:not(.mono) { font-size: 15px; color: var(--muted); }
@media (max-width: 1240px) { .expertise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .expertise-grid, .edu-grid { grid-template-columns: 1fr; gap: 10px; }
  .exp-col h3 { min-height: 0; font-size: 19px; }
  .exp-col { padding: 18px; gap: 12px; border-radius: 20px; }
  .edu-grid > div { gap: 16px; padding: 20px; }
  .edu-grid strong { font-size: 21px; }
}

/* Innovation index */
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: 32px; }
.filters { display: flex; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.filter .mono { font-size: 11px; opacity: 0.75; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.proj-list { margin-top: 64px; border-top: 1px solid var(--line); }
.proj-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px 48px; gap: 36px; align-items: center; width: 100%; text-align: left; padding: 32px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.proj-row:hover { color: var(--ink); }
.proj-row h2 { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 52px); line-height: 0.95; font-weight: 600; font-stretch: 80%; letter-spacing: -0.035em; }
.proj-row p { margin: 0 0 14px; max-width: 680px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.cover { position: relative; height: 200px; border-radius: 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-edge); }
.cover::before { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, var(--cover-glow, var(--glow-blue)), transparent); }
.cover.is-ai { --cover-glow: rgba(212, 242, 90, 0.22); }
.cover em { position: absolute; left: 18px; top: 16px; font-style: normal; font-size: 11px; color: var(--muted); }
/* Without this the image keeps its intrinsic height inside a 200px box and object-fit falls
   back to `fill`, which stretches it. Cover + a centred origin crops instead of distorting. */
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.arrow-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.proj-row:hover .arrow-btn { background: var(--accent); color: var(--on-accent); border-color: transparent; }
/* Under 1100px the cover used to be hidden outright, so no thumbnail ever appeared on a
   laptop or phone. It now drops below the text and runs the full width instead. */
@media (max-width: 1100px) {
  .proj-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 18px 24px; }
  .proj-row > div:first-child { grid-column: 1; grid-row: 1; }
  .proj-row .arrow-btn { grid-column: 2; grid-row: 1; }
  /* Full width with a fixed height makes a box about 4:1, and object-fit: cover then crops a
     thin band out of a 1.8:1 cover and magnifies it — the image looks squashed and soft.
     An aspect ratio keeps the cover close to its own proportions at any width. */
  .proj-row .cover { display: block; grid-column: 1 / -1; grid-row: 2; height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .proj-list { margin-top: 28px; }
  .proj-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .arrow-btn { display: none; }
}

/* Project pages */
.proj-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 80px; align-items: end; margin-top: 32px; }
.proj-hero h1 { margin: 20px 0 0; font-size: clamp(48px, 7.2vw, 104px); }
.proj-hero .lede { margin-top: 32px; max-width: 700px; }
.facts { display: flex; flex-direction: column; padding: 8px 26px; border-radius: 26px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .mono { font-size: 12px; color: var(--muted); padding-top: 2px; }
.fact span:last-child { font-size: 15px; text-align: right; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.scope-item { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 180px; padding: 24px; border-radius: 24px; }
.scope-item .mono { font-size: 12px; color: var(--blue-ink); }
.scope-item strong { font-size: 26px; line-height: 1.08; font-weight: 600; font-stretch: 84%; letter-spacing: -0.02em; }
.connects { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.2fr) 80px minmax(0, 1fr); align-items: center; }
.connects .node { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 26px; }
.connects .node strong { font-size: 36px; line-height: 1; font-weight: 600; font-stretch: 82%; letter-spacing: -0.03em; }
.connects .node .mono { font-size: 12px; color: var(--muted); }
.connects .node.is-accent { gap: 16px; background: var(--accent); color: var(--on-accent); }
.connects .node.is-accent .mono { color: var(--on-accent-2); }
.connects .node.is-accent .tag { background: rgba(14, 16, 20, 0.10); color: var(--on-accent); }
.connects svg.link { width: 80px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 6; }
.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.more-card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 200px; padding: 22px; border-radius: 22px; color: var(--ink); }
.more-card:hover { color: var(--ink); transform: translateY(-3px); }
.more-card { transition: transform 0.2s ease; }
.more-card .mono { font-size: 12px; color: var(--blue-ink); }
.more-card strong { font-size: 22px; line-height: 1.08; font-weight: 600; font-stretch: 84%; letter-spacing: -0.02em; }
@media (max-width: 1100px) {
  .proj-hero { grid-template-columns: 1fr; gap: 28px; }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .connects { grid-template-columns: 1fr; }
  .connects svg.link { transform: rotate(90deg); justify-self: center; margin: 12px 0; }
}
@media (max-width: 760px) {
  .more-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .more-card { flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 14px 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; }
  .more-card strong { font-size: 17px; font-weight: 400; order: -1; }
  .scope-item { min-height: 0; gap: 18px; padding: 20px; }
  .connects .node { padding: 20px; }
  .connects .node strong { font-size: 26px; }
}

/* Case study */
.cs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.cs-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
/* the same 60px the rest of the site's page titles use */
.cs-title { margin: 28px 0 0; font-size: 60px; }
.cs-subtitle { margin: 12px 0 0; font-size: 30px; line-height: 1; font-weight: 300; font-stretch: 85%; letter-spacing: -0.03em; color: var(--muted); }
.cs-lede { margin-top: 36px; max-width: 760px; }
.shift { position: relative; display: flex; align-items: stretch; gap: 20px; margin-top: 64px; padding: 64px 56px 64px 420px; border-radius: 36px; overflow: hidden; }
.shift .big { position: absolute; left: 48px; bottom: -70px; font-size: 420px; line-height: 1; font-weight: 700; font-stretch: 76%; letter-spacing: -0.06em; color: var(--tint); pointer-events: none; }
.shift .glow { right: -120px; bottom: -260px; width: 720px; height: 720px; --glow-color: rgba(212, 242, 90, 0.2); }
.shift-card { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 22px; }
.shift-card .mono { font-size: 12px; color: var(--muted); }
.shift-card strong { font-size: 26px; line-height: 1.15; font-weight: 500; }
.shift-card.is-accent { background: var(--accent); color: var(--on-accent); }
.shift-card.is-accent .mono { color: var(--on-accent); }
.shift-card.is-accent strong { font-weight: 600; }
.shift svg.arrow { position: relative; align-self: center; width: 56px; height: 24px; flex: none; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stats-grid > div { display: flex; flex-direction: column; gap: 34px; padding: 28px; border-radius: 28px; }
.stats-grid .num { font-size: clamp(44px, 5vw, 72px); line-height: 0.9; font-weight: 600; font-stretch: 78%; letter-spacing: -0.04em; }
.stats-grid p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.stats-grid .is-blue { background: var(--blue); color: #0E1014; }
.stats-grid .is-blue .num { font-weight: 700; }
.stats-grid .is-blue p { color: #1D2640; }
.article-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 96px; }
.toc-wrap { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.toc { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 22px; }
.toc .label { padding: 0 10px 10px; font-size: 11px; color: var(--muted); }
.toc a { display: flex; gap: 12px; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 12px; font-size: 15px; color: var(--muted); }
.toc a .mono { font-size: 12px; }
.toc a[aria-current="true"] { background: var(--tint); color: var(--ink); }
.toc a[aria-current="true"] .mono { color: var(--accent-ink); }
.read-progress { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.read-progress .label { font-size: 11px; color: var(--muted); }
.read-progress .track { height: 4px; border-radius: 999px; background: var(--tint); }
.read-progress .fill { display: block; width: 0; height: 4px; border-radius: 999px; background: var(--accent-ink); transition: width 0.1s linear; }
.article { max-width: 780px; }
.article section { scroll-margin-top: 100px; }
.article .num-label { font-size: 12px; color: var(--accent-ink); }
.article h2 { margin: 10px 0 24px; font-size: 40px; line-height: 0.95; font-weight: 600; font-stretch: 80%; letter-spacing: -0.035em; }
.article p { margin: 0 0 22px; font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.article h3 { margin: 34px 0 14px; font-size: 22px; line-height: 1.25; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.article h3:first-child { margin-top: 0; }
.article .disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.pull { display: flex; flex-direction: column; gap: 18px; margin: 64px 0; padding: 40px 0; border-block: 1px solid var(--line); }
.pull svg { width: 36px; height: 28px; fill: var(--accent-ink); }
.pull blockquote { margin: 0; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px; line-height: 1.55; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .mono { font-size: 13px; color: var(--blue-ink); padding-top: 4px; }
.medium-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 72px; padding: 36px; border-radius: 28px; overflow: hidden; }
.medium-card > * { position: relative; }
.medium-card .glow { position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; --glow-color: rgba(212, 242, 90, 0.2); }
.medium-card p { margin: 0; font-size: 22px; line-height: 1.5; color: var(--ink); }
.comments-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px; border-radius: 22px; }
.comment .avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tint); font-size: 18px; font-weight: 600; }
.comment .who { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.comment .who strong { font-size: 16px; }
.comment .who .role { font-weight: 400; color: var(--muted); }
.comment .who .mono { font-size: 11px; color: var(--muted); white-space: nowrap; }
.comment p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.empty { padding: 24px; border-radius: 22px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 15px; }
@media (max-width: 1100px) {
  .shift { padding: 40px; }
  .shift .big { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc-wrap { display: none; }
}
@media (max-width: 760px) {
  .shift { flex-direction: column; margin-top: 28px; padding: 20px; gap: 12px; border-radius: 26px; }
  .shift svg.arrow { transform: rotate(90deg); width: 28px; }
  .shift-card { padding: 16px 18px; border-radius: 18px; }
  .shift-card strong { font-size: 21px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
  .stats-grid > div { gap: 16px; padding: 18px; border-radius: 20px; }
  .stats-grid .num { font-size: 44px; }
  .stats-grid p { font-size: 12px; }
  .article p { font-size: 17px; line-height: 1.65; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 16px; padding: 14px 0; }
  .pull { margin: 44px 0; padding: 28px 0; }
  .medium-card { margin-top: 44px; padding: 22px; border-radius: 24px; }
  .medium-card p { font-size: 17px; }
  .medium-card .btn { width: 100%; }
  .comments-grid { grid-template-columns: 1fr; }
  .comment { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .comment .avatar { width: 40px; height: 40px; font-size: 16px; }
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; }
.form .label { font-size: 12px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 16px; outline: 0; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--accent-ink); }
.field .optional { font-size: 12px; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 8px; padding: 0; font-size: 14px; color: var(--ink-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.choice input:checked + span { border: 1.5px solid var(--accent-ink); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot .mono { font-size: 11px; color: var(--muted); }
.form-status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--accent-ink); }
.form-status.is-error { color: var(--danger); }
@media (max-width: 760px) {
  .form { padding: 20px; border-radius: 24px; gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* Contact */
.contact-title { margin: 20px 0 0; font-size: clamp(72px, 10.4vw, 150px); line-height: 0.86; letter-spacing: -0.045em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 72px; }
.contact-side { display: flex; flex-direction: column; gap: 12px; }
.email-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-radius: 24px; color: var(--ink); }
.email-card:hover { color: var(--ink); }
.email-card strong { display: block; margin-top: 6px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.05; font-weight: 600; font-stretch: 84%; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.email-card .mono, .mini .mono { font-size: 11px; color: var(--muted); }
.email-card .arrow { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--accent); color: var(--on-accent); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border-radius: 24px; color: var(--ink); }
.mini:hover { color: var(--ink); }
.mini span:last-child { font-size: 19px; font-weight: 500; }
.elsewhere { display: flex; flex-direction: column; padding: 8px 28px; border-radius: 24px; }
.elsewhere .label { padding: 16px 0 8px; font-size: 11px; color: var(--muted); }
.elsewhere a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); font-size: 18px; }
.elsewhere a .mono { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .email-card { padding: 20px; }
  .mini { padding: 16px; }
  .mini span:last-child { font-size: 15px; }
  .elsewhere { padding: 4px 18px; }
  .elsewhere a { font-size: 16px; }
}

/* 404 */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: center; min-height: calc(100vh - 180px); padding-block: 40px; }
.nf-code { display: block; font-size: clamp(150px, 23.6vw, 340px); line-height: 0.8; font-weight: 700; font-stretch: 76%; letter-spacing: -0.06em; }
.nf-code b { font-weight: 700; color: var(--accent-ink); }
.nf h1 { margin: 36px 0 0; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-weight: 600; font-stretch: 80%; letter-spacing: -0.03em; }
.nf p { margin: 16px 0 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.terminal { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; }
.terminal.glass { background: var(--panel); }
.terminal-head { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.terminal-head .accent-text { color: var(--accent-ink); }
.terminal nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.terminal nav .label { padding: 8px 12px 6px; font-size: 11px; color: var(--muted); }
.terminal nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 12px; border-radius: 14px; font-size: 18px; color: var(--ink-2); }
.terminal nav a:first-of-type, .terminal nav a:hover { background: var(--tint); color: var(--ink); }
.terminal nav a .mono { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .nf { grid-template-columns: 1fr; gap: 28px; min-height: 0; } .terminal nav a { font-size: 16px; min-height: 52px; } }

/* ---------- Comments thread (case study) ---------- */

.thread { padding: 40px 44px 16px; border-radius: 32px; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.thread-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.thread-title span { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.sort { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.sort button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; color: var(--muted); }
.sort button:hover { color: var(--ink); }
.sort button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); font-weight: 500; box-shadow: var(--seg-shadow); }
.sort svg, .c-avatar svg, .send svg, .c-act svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sort svg { width: 16px; height: 16px; }

.composer { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; margin-top: 32px; }
.c-avatar { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--tint); color: var(--muted); font-size: 15px; font-weight: 600; }
.c-avatar svg { width: 22px; height: 22px; }
.c-avatar.is-author { background: var(--accent); color: var(--on-accent); }
.composer-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.composer-box { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 14px 20px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--field); transition: border-color 0.2s ease; }
.composer-box:focus-within { border-color: var(--accent-ink); }
.composer-box textarea, .reply-form textarea { width: 100%; min-height: 72px; padding: 0; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.5; }
.composer-box textarea::placeholder, .reply-form textarea::placeholder, .mini-input::placeholder { color: var(--muted); }
.composer-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-input { width: 220px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 14px; outline: 0; }
.mini-input:focus { border-color: var(--accent-ink); }
.mini-input.is-role { width: 280px; }
.composer-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.send { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); transition: transform 0.2s ease; }
.send:hover { transform: translateY(-1px); }
.send:disabled { opacity: 0.5; cursor: progress; }
.send svg { width: 22px; height: 22px; }
.composer-note { margin: 0; font-size: 11px; color: var(--muted); }
.composer .form-status:empty, .reply-form .form-status:empty { display: none; }

.thread .comment-list { gap: 0; margin-top: 28px; }
.thread .empty { margin: 0 0 28px; }
.c-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.c-body { min-width: 0; }
.c-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.c-who strong { font-size: 16px; font-weight: 600; }
.c-role { font-size: 14px; color: var(--muted); }
.c-date { font-size: 12px; color: var(--muted); }
.c-text { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0 -10px; }
.c-act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.c-act:hover { background: var(--tint); color: var(--ink); }
.c-act svg { width: 20px; height: 20px; }
.c-act[aria-pressed="true"] { color: var(--accent-ink); }
.c-act[aria-pressed="true"] svg { fill: var(--accent-tint); }
.c-act .n { font-variant-numeric: tabular-nums; }
.c-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.c-toggle svg { width: 12px; height: 12px; fill: currentColor; stroke: none; transition: transform 0.2s ease; }
.c-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.c-replies { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.c-reply { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--soft); }
.c-reply .c-avatar { width: 40px; height: 40px; font-size: 13px; }
.c-reply .c-text { margin-top: 8px; }
.author-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--accent-tint); color: var(--accent-ink); font-size: 11px; }
.reply-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--field); }
.reply-form textarea { min-height: 80px; font-size: 16px; }
.reply-form .reply-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reply-form .reply-actions { display: flex; gap: 8px; margin-left: auto; }
.c-thanks { margin: 12px 0 0; font-size: 14px; color: var(--accent-ink); }

@media (max-width: 760px) {
  .thread { padding: 22px 18px 6px; border-radius: 26px; }
  .thread-head { flex-direction: column; align-items: stretch; }
  .sort { display: grid; grid-template-columns: 1fr 1fr; }
  .sort button { justify-content: center; }
  .composer { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 20px; }
  .composer > .c-avatar { display: none; }
  .composer-box { padding: 16px; }
  .composer-row .mini-input, .mini-input.is-role, .reply-form .mini-input { width: 100%; }
  .composer-count { margin-left: 0; }
  .composer-row .send { margin-left: auto; }
  .c-item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .c-item > .c-avatar { width: 40px; height: 40px; font-size: 14px; }
  .c-reply { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .c-reply .c-avatar { width: 32px; height: 32px; font-size: 11px; }
  .reply-form .reply-actions { width: 100%; margin-left: 0; }
  .reply-form .reply-actions .btn { flex: 1; }
}

/* ---------- Comment approvals ---------- */

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.admin-main { max-width: 980px; }
.admin-card { max-width: 520px; margin-top: 40px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.queue-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.comment .where { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.comment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-danger { border: 1px solid var(--danger); background: transparent; color: var(--danger); font-weight: 500; }
.btn-danger:hover { color: var(--danger); }
.btn-danger.is-armed { background: var(--danger); color: var(--bg); }

/* ---------- Admin dashboard (private page only) ----------
   Everything below is built from the theme tokens, so the dashboard follows the site's light
   and dark themes rather than carrying colours of its own. */
.ad-gate { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 40px 20px; }
.ad-gate .admin-card { margin-top: 0; width: min(520px, 100%); }
.ad-gate .lede { color: var(--muted); }

.ad-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }

.ad-rail { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 26px; }
.ad-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px; color: var(--ink); }
.ad-brand:hover { color: var(--ink); }
.ad-brand .logo { height: 22px; }
.ad-chip { font-size: 9px; letter-spacing: 0.12em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 7px; }
.ad-nav { display: flex; flex-direction: column; gap: 2px; }
.ad-nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ad-nav-item .icon { width: 17px; height: 17px; flex-shrink: 0; }
.ad-nav-label { flex-grow: 1; }
.ad-nav-item:hover { color: var(--ink); background: var(--soft); }
.ad-nav-item[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.ad-nav-item[aria-pressed="true"] .icon { color: var(--accent-ink); }
.ad-nav-item:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ad-badge { min-width: 20px; text-align: center; padding: 3px 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 500; }
.ad-rail-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.ad-who { display: flex; align-items: center; gap: 10px; padding: 0 4px; color: var(--ink); }
.ad-who:hover { color: var(--ink); }
.ad-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ad-who-text { display: flex; flex-direction: column; }
.ad-who-name { font-size: 13px; }
.ad-who-role { font-size: 10px; color: var(--muted); }

.ad-main { min-width: 0; }
.ad-top { position: sticky; top: 0; z-index: 5; box-sizing: border-box; min-height: 74px; padding: 14px 30px; border-bottom: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ad-title { margin: 0; font-size: 27px; letter-spacing: -0.01em; }
.ad-sub { font-size: 11px; color: var(--muted); }
.ad-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-seg { margin: 0; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 99px; }
.ad-seg .filter { min-height: 34px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.ad-seg .filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 500; }
.ad-seg-sm .filter { min-height: 30px; padding: 0 11px; font-size: 12px; }
#an-optout.is-on { border-color: var(--accent-ink); color: var(--accent-ink); }

.ad-content { box-sizing: border-box; padding: 22px 30px 40px; display: flex; flex-direction: column; gap: 18px; }
.ad-content > section { display: flex; flex-direction: column; gap: 16px; }

.ad-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ad-tile { box-sizing: border-box; padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 9px; }
.ad-tile-row { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; }
.ad-tile-value { font-size: 40px; line-height: 1; font-weight: 400; }
.ad-tile-sub { font-size: 12px; line-height: 1.45; color: var(--muted); }
.ad-delta { font-size: 11px; color: var(--muted); padding-bottom: 5px; }
.ad-delta.is-up { color: var(--accent-ink); }
.ad-delta.is-down { color: var(--danger); }

.ad-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-card-title { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.ad-card-note { font-size: 11px; color: var(--muted); }
.ad-card-head .ad-seg, .ad-card-head .ad-link { margin-left: auto; }
.ad-link { border: 0; background: none; font: inherit; font-size: 11px; color: var(--accent-ink); cursor: pointer; padding: 0; }
.ad-link:hover { text-decoration: underline; }
.ad-axis { display: flex; justify-content: space-between; margin-top: 8px; }
.ad-axis .mono { font-size: 10px; color: var(--muted); }
.an-bar-fill.is-peak { background: var(--accent); }

.ad-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ad-two-wide { grid-template-columns: 1.3fr 1fr; }

.ad-needs { display: flex; flex-direction: column; gap: 12px; }
.ad-needs.is-waiting { border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.ad-needs-text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ad-needs .btn { align-self: flex-start; }

.ad-row-3 { grid-template-columns: minmax(0, 1fr) auto auto; }
.ad-row-pages { grid-template-columns: minmax(0, 1.5fr) auto auto minmax(70px, 120px) 40px; }
.ad-row-recent { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.ad-row-depth { grid-template-columns: 42px minmax(0, 1fr) 42px; }
.an-num.is-accent { color: var(--accent-ink); }
.an-meter-fill.is-strong { background: var(--accent); }
.an-meter-fill.is-blue { background: var(--blue); }

.ad-heat-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ad-legend { margin-left: auto; display: flex; align-items: center; gap: 9px; padding-bottom: 10px; }
.ad-legend .mono { font-size: 10px; color: var(--muted); }
.ad-ramp { width: 128px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #2846BE, #3CBEBE, #D4F25A, #FAB03C, #EB463C); }
.ad-heat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ad-heat-card { overflow: hidden; }
.ad-heat-side { display: flex; flex-direction: column; gap: 16px; }
.ad-funnel { height: 20px; border-radius: 5px; background: var(--soft); overflow: hidden; display: block; }
.ad-funnel-fill { display: block; height: 100%; background: var(--blue); }

/* ---------- Admin: shared table and chart parts ---------- */
.an-card { padding: 20px 22px; border-radius: 18px; }
.an-table, .an-list { display: flex; flex-direction: column; gap: 2px; }
.an-row { display: grid; grid-template-columns: minmax(120px, 1.6fr) minmax(60px, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.an-row:nth-child(odd) { background: var(--soft); }
.an-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.an-strong { font-weight: 500; }
.an-sub { font-size: 12px; color: var(--muted); }
.an-num { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ad-pages-seen { font-size: 12px; color: var(--ink-2); }
.an-meter { position: relative; height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.an-meter-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; }
.an-ask { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 9px 10px; border-radius: 10px; }
.an-ask:nth-child(odd) { background: var(--soft); }
.an-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
/* Each day is a button so it can be hovered, focused and read out; the tooltip carries the
   figure. Arrow keys walk the series, so the chart is one tab stop rather than thirty. */
.ad-chart { position: relative; }
.an-bar { flex: 1 1 0; max-width: 42px; display: flex; align-items: flex-end; height: 100%; min-width: 3px; padding: 0; border: 0; background: var(--soft); border-radius: 4px; cursor: pointer; transition: background-color 140ms ease; }
.an-bar:hover { background: var(--tint); }
.an-bar:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.an-bar:hover .an-bar-fill, .an-bar:focus-visible .an-bar-fill { background: var(--accent); }
.ad-tip { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 10px)); display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: var(--glass-shadow); pointer-events: none; white-space: nowrap; }
.ad-tip-day { font-size: 10px; color: var(--muted); }
.ad-tip-count { font-size: 13px; color: var(--ink); }
.an-bars { justify-content: flex-start; }
.an-bar-fill { display: block; width: 100%; background: var(--tint); border-radius: 4px; }
.an-heat { overflow: hidden; }
.an-heat-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.an-heat-stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; }
.an-heat-stage canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.an-field { flex: 0 1 240px; gap: 6px; }
.an-field select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; font-size: 14px; }
.an-meta { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

@media (max-width: 1180px) {
  .ad-heat-grid { grid-template-columns: minmax(0, 1fr); }
  .ad-two, .ad-two-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ad-shell { grid-template-columns: minmax(0, 1fr); }
  .ad-rail { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .ad-rail > * { flex-shrink: 0; }
  .ad-nav { flex-direction: row; }
  .ad-nav-item { min-height: 40px; }
  .ad-nav-label { display: none; }
  .ad-rail-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; }
  .ad-who-text { display: none; }
  .ad-top { padding: 12px 18px; }
  .ad-content { padding: 16px 18px 32px; }
  .ad-row-pages, .ad-row-recent { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-row-pages .an-meter, .ad-row-recent .ad-pages-seen { display: none; }
  .an-row .an-meter { display: none; }
}

/* ---------- Portfolio: covers, and the project dialog ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 22px; margin-top: 8px; }

.work-card { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.work-card:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; border-radius: 22px; }
.work-shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 18px; background: var(--glass); box-shadow: var(--glass-shadow); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.work-card:hover .work-shot img, .work-card:focus-visible .work-shot img { transform: scale(1.035); }
.work-meta { display: flex; flex-direction: column; gap: 8px; }
.work-title { font-size: 19px; line-height: 1.25; color: var(--ink); }
.work-open { font-size: 12px; color: var(--muted); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--glass-edge); border-radius: 50%; color: var(--ink); cursor: pointer; }
.icon-btn:hover { color: var(--accent-ink); }
.icon-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.work-modal { width: min(1080px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--glass-edge); border-radius: 22px; background: var(--panel); color: var(--ink); overflow: hidden; }
.work-modal[open] { display: flex; flex-direction: column; }
.work-modal::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.work-modal-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.work-modal-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.work-modal-head .h3 { font-size: 26px; }
.work-modal-actions { display: flex; gap: 8px; flex-shrink: 0; }
.work-modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.work-modal-body:focus { outline: none; }
.work-modal-body img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.work-modal-foot { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; }
  .work-modal-bar { padding: 16px; }
  .work-modal-head .h3 { font-size: 21px; }
  .work-modal-body { padding: 12px; }
}

/* ---------- Recommendations ---------- */

.recs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; margin-top: 32px; }
.recs-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.recs-count { font-family: var(--font-display); font-size: clamp(72px, 7.2vw, 104px); line-height: 0.85; color: var(--accent-ink); }
.featured-quote { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 48px; margin: 56px 0 0; padding: 48px; border-radius: 32px; }
.featured-quote svg.q { display: block; width: 36px; height: 28px; margin-bottom: 20px; fill: var(--accent-ink); }
.featured-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.1vw, 44px); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.author { display: flex; align-items: center; gap: 14px; }
.author .avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tint); font-size: 14px; font-weight: 600; color: var(--ink); }
.author strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.author .headline { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.author .rel { display: block; margin-top: 3px; font-size: 11px; color: var(--accent-ink); }
.rec-filters { margin-top: 56px; flex-wrap: wrap; }
.rec-filter-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; }
.filter-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 16px; }
.filter-label { font-size: 11px; color: var(--muted); }
.filter-row .filters { flex-wrap: wrap; }
.role-tag { display: inline-flex; margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: var(--tint); font-size: 11px; color: var(--ink-2); }
.rec-empty { margin-top: 24px; }

/* Recommendations report: profile band, toolbar, one row per recommendation, next steps */
.recs-band { margin-top: 20px; padding-block: 44px; border-block: 1px solid var(--line); background: var(--soft); }
.recs-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.band-id { display: flex; align-items: center; gap: 28px; min-width: 0; }
.band-portrait { width: 112px; height: 112px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 4px var(--accent-tint); }
.band-title { margin-top: 14px; font-size: clamp(48px, 5vw, 72px); }
.band-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.band-meta b { font-weight: 500; color: var(--ink); }
.band-meta .sep { width: 1px; height: 14px; background: var(--line-2); }
.band-lede { margin-top: 28px; max-width: 680px; }
.recs-report { padding-top: 48px; }
.recs-toolbar { display: flex; flex-direction: column; gap: 20px; padding-bottom: 28px; }
.recs-toolbar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.recs-toolbar-head > .mono { font-size: 12px; color: var(--muted); }
.recs-toolbar .rec-filter-rows { margin-top: 0; }
.rec-list { border-bottom: 1px solid var(--line); }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.rec-label { display: block; font-size: 12px; color: var(--muted); }
.rec-name { margin: 10px 0 0; font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.rec-headline { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.rec-body { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.rec-ic { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #0E1014; font-size: 12px; font-weight: 600; }
.rec-body blockquote { margin: 0; max-width: 700px; font-size: 16.5px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.rec-panel { border-radius: 22px; overflow: hidden; }
.rec-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin: 0; padding: 24px; }
.rec-metrics .is-wide { grid-column: 1 / -1; }
.rec-metrics dt { font-size: 13px; color: var(--muted); }
.rec-metrics dd { margin: 6px 0 0; font-size: 19px; font-weight: 500; color: var(--ink); }
.rec-metrics dd.is-managed { color: var(--accent-ink); }
.rec-metrics dd.is-peer { color: var(--blue-ink); }
.rec-words { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-top: 1px solid var(--line); }
.rec-words > .mono { font-size: 11px; color: var(--muted); }
.rec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rec-chips li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.rec-src { margin: 0; padding: 16px 24px 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.rec-src b { font-weight: 500; color: var(--ink-2); }
.next-steps { margin-top: 24px; }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.next-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 44px 180px 44px 0; }
.next-card + .next-card { padding: 44px 0 44px 40px; border-left: 1px solid var(--line); }
.next-card h2 { margin: 0; font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; }
.next-card p { margin: 0; max-width: 440px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.next-card p a { color: var(--ink); }
.next-card .btn { margin-top: 6px; }
.orb-lg { position: absolute; right: 40px; top: 56px; width: 112px; height: 112px; }
.orb-lg::before { inset: 8px; }
.orb-lg::after { inset: 36px; }
@media (max-width: 980px) {
  .rec-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; }
}
@media (max-width: 760px) {
  .recs-band { padding-block: 28px; }
  .band-id { flex-direction: column; align-items: flex-start; gap: 18px; }
  .band-portrait { width: 72px; height: 72px; }
  .band-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .band-meta .sep { display: none; }
  .band-lede { margin-top: 20px; }
  .recs-report { padding-top: 32px; }
  .rec-name { font-size: 32px; }
  .rec-body { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; margin-top: 20px; }
  .rec-ic { width: 32px; height: 32px; }
  .rec-body blockquote { font-size: 15.5px; line-height: 1.7; }
  .rec-metrics { padding: 18px 20px; }
  .rec-metrics dd { font-size: 17px; }
  .next-grid { grid-template-columns: minmax(0, 1fr); }
  .next-card, .next-card + .next-card { padding: 32px 0; border-left: 0; }
  .next-card:first-child { padding-right: 88px; }
  .next-card + .next-card { border-top: 1px solid var(--line); }
  .orb-lg { right: 0; top: 32px; width: 64px; height: 64px; }
  .orb-lg::before { inset: 5px; }
  .orb-lg::after { inset: 20px; }
}
.rec-grid { column-count: 3; column-gap: 16px; margin-top: 24px; }
.rec { display: flex; flex-direction: column; gap: 20px; margin: 0 0 16px; padding: 26px; border-radius: 24px; break-inside: avoid; }
.rec blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.rec .author { padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .rec-grid { column-count: 2; }
  .featured-quote { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
}
@media (max-width: 760px) {
  .recs-head { grid-template-columns: 1fr; }
  .recs-meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .featured-quote { margin-top: 32px; padding: 22px; border-radius: 24px; }
  .rec-filters { flex-wrap: nowrap; margin-top: 36px; }
  .rec-filter-rows { margin-top: 36px; gap: 16px; }
  .filter-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .filter-row .filters { flex-wrap: nowrap; }
  .rec-grid { column-count: 1; }
  .rec { padding: 20px; }
}

/* ---------- Display type: Playfair Display (set at 400; the site never bolds display type) ---------- */

.display, .h2, .h3, .thesis-card h3, .tile .num, .tile-blue .num, .innov-card h3,
.menu-links a > span:first-child, .proj-row h2, .scope-item strong, .connects .node strong,
.more-card strong, .cs-subtitle, .article h2, .pull blockquote, .stats-grid .num, .stats-grid .is-blue .num,
.shift .big, .nf-code, .nf-code b, .nf h1, .edu-grid strong, .edu-item strong, .exp-col h3, .id-card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: -0.01em;
}
.display, .h2, .cta h2, .contact-title, .tile .num, .stats-grid .num, .nf-code, .shift .big { letter-spacing: -0.02em; }
.display em, .h2 em, .h3 em { font-style: italic; }
.cs-subtitle { font-style: italic; }
.tile .num, .stats-grid .num { line-height: 0.95; }
.thesis-card h3, .menu-links a > span:first-child { line-height: 1; }
/* Playfair defaults to old-style figures; the site wants full-height lining digits everywhere (Geist is unaffected). */
body { font-variant-numeric: lining-nums; }
.impact-num { font-variant-numeric: lining-nums tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Phone: portrait beside the name, Ask as a floating button ---------- */
/*
   Three changes, all phone-only — the desktop hero is untouched.

   The portrait used to run 60% of the screen width under the name and the Ask card sat below it,
   so the first screen of a phone was a large photograph and almost no words. The photo becomes a
   small square beside the name, and Ask — the thing this site is actually built around — becomes
   a button that stays put instead of scrolling away with the header.
*/
@media (max-width: 760px) {
  .hero { position: relative; }

  /*
     Out of the flow entirely, so the copy keeps the full column and reads first.

     `right` repeats the wrap's own gutter instead of using 0: an absolutely positioned child is
     placed against the padding box, so `right: 0` sits it hard against the screen edge while every
     line of text stops 20px short of it — measured at 390px, the photo ran to 390 and the name to
     370. Close enough to read as a mistake rather than a choice.
  */
  .hero-visual {
    position: absolute;
    top: 24px;
    right: clamp(20px, 4.45vw, 64px);
    width: 76px;
    margin: 0;
    z-index: 2;
  }

  .hero-visual .portrait {
    width: 100%;
    margin: 0;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  /* Head and shoulders, not a torso, once it is this small. */
  .hero-visual .portrait.is-photo img { object-position: 52% 12%; }

  /* The gradient scrim exists to seat a large portrait on the page; at 76px it just muddies it. */
  .hero-visual .portrait::after { display: none; }

  /* Only the name has to clear the photo — the lede and status run full width beneath it. */
  .hero h1 { padding-right: 92px; font-size: clamp(38px, 11vw, 52px); }

  /* The inline card is replaced by the floating button below. */
  /* The card now lives in the copy column, so the rule follows it — on phones the floating button replaces it. */
  .hero .ask-card, .hero .ask-bar { display: none; }
}

/*
   The floating button. Injected by site.js so it exists on every page; `data-ask-open` means it
   rides the same delegated handler as every other opener.
*/
.ask-fab { display: none; }

@media (max-width: 760px) {
  .ask-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  .ask-fab .orb { background: conic-gradient(from 0deg, var(--on-accent), var(--on-accent-2), var(--on-accent)); }
  .ask-fab .orb::before { background: var(--accent); }
  .ask-fab .orb::after { background: var(--on-accent); }
  .ask-fab:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }

  /* Nothing floating over the sheet while the sheet is open. */
  body:has(.ask:not([hidden])) .ask-fab { display: none; }

  /* The phone's mic, sitting beside the floating Ask button. */
  /* Accent-filled like every other mic, so voice looks the same thing wherever it appears. */
  .ask-fab-mic { position: fixed; right: 124px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent), 0 10px 30px rgba(0, 0, 0, 0.35); }
  .ask-fab-mic .icon { width: 22px; height: 22px; }
  .ask-fab-mic.is-listening { background: var(--ink); color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 34%, transparent), 0 10px 30px rgba(0, 0, 0, 0.35); }
  .ask-fab-mic:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
  body:has(.ask:not([hidden])) .ask-fab-mic { display: none; }

  /*
     The sheet sits off the edges rather than welded to them: it reads as a card the page is
     holding up, and the rounding is visible on all four corners instead of two.
  */
  .ask-panel {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 82vh;
    border-radius: 24px;
    border-bottom: 1px solid var(--line);
  }

  /*
     Room at the very end of the page for the button to sit in.

     Without it the button parks on top of whatever the last row happens to be — measured at the
     foot of the home page it was covering the "AI-Assisted Creative & Motion" card, a link you
     could see and could not tap. The footer keeps its own background; this only lengthens it.
  */
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* The sheet is already lifted clear of the home bar, so the foot must not pay for it twice. */
  .ask-foot { padding-bottom: 14px; }
}

/* Desktop uses the mic inside the Ask bar, so the floating one stays out of the way. */
.ask-fab-mic { display: none; }
@media (max-width: 760px) { .ask-fab-mic:not([hidden]) { display: flex; } }

/* ==========================================================================
   Mobile redesign (2026-09-22)

   Everything below is scoped to <=760px and appended last, so it overrides the
   earlier mobile rules without touching a single desktop declaration. Built from
   the twelve-screen design on the "vinodux Mobile UI" canvas.
   ========================================================================== */

/* ---------- The Ask dock: one entry point, always in the thumb zone ----------
   Replaces the floating Ask button and the separate floating mic, which put three
   openers on a phone (header icon, hero bar, FAB). The dock is built in site.js so
   it exists on every page. */
.ask-dock { display: none; }
@media (max-width: 760px) {
  .ask-dock {
    position: fixed; z-index: 70;
    left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg) 38%);
    pointer-events: none;
  }
  .ask-dock > * { pointer-events: auto; }
  .ask-dock-btn {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 18px;
    border-radius: 26px; border: 1px solid var(--glass-edge);
    background: var(--panel); color: var(--muted);
    box-shadow: var(--glass-shadow);
    font-size: 15px; text-align: left;
  }
  .ask-dock-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ask-dock-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
  .ask-fab-mic:not([hidden]) {
    position: static; flex: none;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid var(--glass-edge); background: var(--panel);
    color: var(--ink); box-shadow: var(--glass-shadow);
  }
  /* The dock sits over the page, so the last row of every page needs room under it. */
  .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  /* The header trigger is now redundant: the dock never scrolls away. */
  .header-actions .ask-trigger { display: none; }
}

/* ---------- Home hero: the portrait stops dangling ----------
   The portrait is last in the DOM, so on a phone it landed under the Ask bar at 60%
   width, right-aligned — an orphan at the end of the hero. Order puts it directly
   under the name, full width and cropped to a band. */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; gap: 0; padding-block: 16px 32px; position: static; }
  /* Both wrappers dissolve so the heading, status line, portrait, lede and Ask bar
     become siblings of .hero and can be interleaved with `order` — the design runs
     name, role, portrait, lede, Ask. */
  .hero-copy, .hero-intro { display: contents; }
  .hero h1.display { order: 1; }
  .hero .status { order: 2; margin-top: 14px; }
  .hero .lede { order: 4; margin-top: 18px; }
  /* Undo the 76px absolutely-placed square: the portrait rejoins the flow as a band. */
  .hero-visual {
    position: static; top: auto; right: auto; z-index: auto;
    order: 2; width: auto; height: auto; margin: 18px 0 0;
  }
  .hero-visual .portrait {
    position: relative; inset: auto;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    margin: 0; border-radius: 20px;
  }
  .hero-visual .portrait.is-photo img, .hero-visual .portrait img { object-position: 50% 14%; }
  /* The name no longer has a photo to clear. */
  .hero h1 { padding-right: 0; }
  /* The inline Ask bar comes back: it is the hero's one action in the new design. */
  .hero .ask-bar { display: flex; }
  .hero-cta { order: 6; margin-top: 18px; padding-top: 18px; }

  /* The Ask bar becomes the design's single control: a small uppercase label, one
     56px pill carrying the question and its two buttons, then the suggestions. */
  .hero .ask-bar {
    order: 5; max-width: none; margin-top: 20px;
    padding: 0; gap: 10px; border: 0; border-radius: 0;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  /* Dissolved so the label and the chips become siblings of the field and can be
     ordered around it — the chips belong BELOW the input in the design. */
  .hero .ask-bar-head { display: contents; }
  .hero .ask-bar-head > .mono { order: 1; }
  .hero .ask-bar-head > .mono {
    font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  }
  .hero .ask-bar-head > .mono .orb { display: none; }
  .hero .ask-bar .ask-card-input {
    order: 2; min-height: 56px; padding: 0 6px 0 16px; gap: 8px;
    border-radius: 28px; border: 1px solid var(--glass-edge);
    background: var(--panel); box-shadow: var(--glass-shadow);
    font-size: 15px;
  }
  .hero .ask-bar .ask-field { font-size: 15px; }
  .hero .ask-bar .ask-send {
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--accent); color: var(--on-accent);
  }
  .hero .ask-bar .ask-mic:not([hidden]) {
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--tint); color: var(--ink);
  }
  /* Suggestions move below the field, as in the design. */
  .hero .ask-bar .prompt-chips { order: 3; }
  /* Four suggestion chips do not fit: the row scrolls instead of wrapping to two lines. */
  .ask-bar .prompt-chips {
    flex-wrap: nowrap; overflow-x: auto; gap: 8px;
    margin-right: -16px; padding-right: 16px;
    scrollbar-width: none;
  }
  .ask-bar .prompt-chips::-webkit-scrollbar { display: none; }
  .ask-bar .prompt-chips > * { flex: 0 0 auto; }
  .ask-bar .prompt-chips .kbd { display: none; }
  /* "Vinod" and "Abraham" stack, the surname in italic, as drawn. */
  .hero h1.display { font-size: clamp(40px, 12vw, 52px); line-height: 0.98; }
  .hero h1.display em { display: block; }
}

/* ---------- Ask sheet: composer under the thumb ----------
   The panel is a column of form, body, foot. On a phone the form belongs at the
   bottom, where the hand already is, with the answer scrolling above it. */
@media (max-width: 760px) {
  .ask-panel { display: flex; flex-direction: column; }
  .ask-panel .ask-form {
    order: 3;
    border-bottom: 0; border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .ask-panel .ask-form input { font-size: 16px; }
  .ask-panel .ask-body { order: 2; }
  .ask-panel .ask-foot { order: 1; border-top: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Impact by type: stacked groups of full-width rows ----------
   Each .it-col is a group (its .it-type is the header, its .it-item children the
   rows). The design stacks those down the page at full width — an earlier attempt
   made this a side-by-side snap carousel, which pushed the numbers and their
   labels into a 273px column and read nothing like the drawing. */
@media (max-width: 760px) {
  .impact-types {
    grid-template-columns: none;
    display: flex; flex-direction: column; gap: 30px;
    margin: 0; padding: 0; overflow: visible;
  }
  .it-col { padding: 0; border-left: 0; }

  /* Group header: title, its one-line gloss, then the rule the design draws. */
  .it-type { gap: 4px; padding-bottom: 12px; margin-bottom: 0; border-bottom: 2px solid var(--ink); }
  .it-type h3 { font-size: 24px; line-height: 1.12; }
  .it-type span { font-size: 13px; line-height: 1.45; }

  /* One result per row: number, what it was, why, where. */
  .it-item { gap: 4px; padding: 16px 0; }
  .it-num { font-size: 40px; line-height: 0.98; }
  .it-item strong { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
  .it-item p { font-size: 14.5px; line-height: 1.55; }
  .it-where { font-size: 11px; }
}

/* ---------- Leadership qualities: two up rather than one ---------- */
@media (max-width: 760px) {
  /* Three quotes as columns on a phone gives three narrow strips of prose. A snap
     rail gives each one a readable measure, and the peeking next card says it
     scrolls. Same full-bleed + scroll-padding pairing as the By organisation rail,
     so the first card lands on the page gutter rather than the screen edge. */
  .qualities {
    display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(20px, 4.45vw, 64px);
    margin: 0 calc(-1 * clamp(20px, 4.45vw, 64px));
    padding: 2px clamp(20px, 4.45vw, 64px);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .qualities::-webkit-scrollbar { display: none; }
  .quality {
    flex: 0 0 78%; scroll-snap-align: start;
    gap: 10px; padding: 20px;
    border: 1px solid var(--glass-edge); border-radius: 20px;
    background: var(--glass);
  }
  .quality blockquote { font-size: 15.5px; line-height: 1.5; }
  .quality figcaption { font-size: 11px; }
}

/* ---------- Career timeline: the same scale, turned vertical ----------
   The axis draws each role absolutely with an inline left/width percentage of the
   19-year span. Horizontal scale is unreadable at 390px, so the segments become
   rows and site.js rewrites each bar's width against the longest tenure. */
@media (max-width: 760px) {
  .ctl-axis { display: none; }
  .ctl { position: relative; display: flex; flex-direction: column; height: auto; }
  .ctl-track, .ctl-gap { display: none; }
  .ctl-seg {
    position: relative !important;
    left: auto !important; width: auto !important;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    min-height: 0; padding: 14px 0;
    border-top: 1px solid var(--line); border-radius: 0; background: none;
  }
  .ctl-seg:last-of-type { border-bottom: 1px solid var(--line); }
  .ctl-seg .ctl-lbl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .ctl-seg .ctl-lbl b { font-size: 16.5px; }
  .ctl-seg .ctl-lbl i { font-style: normal; font-size: 13px; color: var(--muted); }
  .ctl-seg .ctl-years { font-size: 10.5px; color: var(--muted); }
  /* The bar itself: --ctl-scale is set per segment by site.js. */
  .ctl-seg::after {
    content: ""; display: block; width: var(--ctl-scale, 20%);
    height: 10px; margin-top: 4px; border-radius: 5px;
    background: var(--line-2);
  }
  .ctl-seg[aria-selected="true"]::after { background: var(--accent); }
}

/* ---------- About: the CV stops being one unbroken scroll ----------
   Roles collapse to their header; site.js adds the toggle and hides the detail. */
@media (max-width: 760px) {
  .role { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); padding: 0; }
  .role + .role { margin-top: 10px; }
  .role-meta { padding: 16px; }
  .role.is-collapsed > *:not(.role-meta):not(.role-toggle) { display: none; }
  .role-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 48px; padding: 0 16px 14px;
    background: none; border: 0; color: var(--ink-2);
    font-size: 13.5px; text-align: left;
  }
  .role-toggle svg { flex: none; transition: transform 0.2s ease; }
  .role:not(.is-collapsed) .role-toggle svg { transform: rotate(180deg); }
  .role > *:not(.role-meta):not(.role-toggle) { padding-inline: 16px; }
  .role > *:last-child { padding-bottom: 16px; }
}

/* ---------- Recommendations: two filter dimensions, very long quotes ---------- */
@media (max-width: 760px) {
  .rec-filter-rows { gap: 12px; }
  .filter-row { display: block; }
  .filter-label { display: block; margin-bottom: 7px; }
  .filters {
    display: flex; flex-wrap: nowrap; gap: 7px;
    overflow-x: auto; scrollbar-width: none;
    margin-right: calc(-1 * clamp(20px, 4.45vw, 64px));
    padding-right: clamp(20px, 4.45vw, 64px);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex: 0 0 auto; }
  /* Lead with the pulled phrases, then a clamped extract, then an explicit control. */
  .rec-main.is-clamped .rec-body blockquote,
  .rec-main.is-clamped .rec-body:not(:has(blockquote)) {
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .rec-more {
    min-height: 44px; padding: 0; margin-top: 8px;
    background: none; border: 0; color: var(--accent-ink);
    font-size: 14px; font-weight: 600; text-align: left;
  }
}

/* ---------- Portfolio: two up, with the screen count on the card ---------- */
@media (max-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-card h3 { font-size: 15px; line-height: 1.25; }
  .work-meta { font-size: 12.5px; }
}

/* ---------- Case study: a reading column, not a layout ---------- */
@media (max-width: 760px) {
  .article-layout { display: block; }
  .article p { font-size: 17px; line-height: 1.68; }
  .article h2 { font-size: 21px; line-height: 1.25; }
  .article .pull { font-size: 23px; line-height: 1.35; }
  .cs-title { font-size: clamp(34px, 10vw, 44px); line-height: 1.02; }
  .cs-lede { font-size: 16.5px; line-height: 1.6; }
}

/* ---------- Contact: 16px inputs so iOS does not zoom on focus ---------- */
@media (max-width: 760px) {
  .contact-grid { display: block; }
  .contact-side { margin-top: 24px; }
  .form .field input, .form .field textarea, .form .field select { font-size: 16px; min-height: 52px; }
  .form .field textarea { min-height: 96px; }
  .form-row { display: block; }
  .form-row > * + * { margin-top: 14px; }
  .choices { display: flex; gap: 7px; }
  .choices .choice { flex: 1 1 0; min-height: 46px; justify-content: center; }
}

/* ---------- Menu: the "On this page" jump list (built by site.js) ---------- */
.menu-sections { display: none; }
@media (max-width: 760px) {
  .menu-sections { display: block; margin-top: 20px; }
  .menu-sections-label { display: block; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
  .menu-sections-list { display: flex; flex-wrap: wrap; gap: 7px; }
  .menu-sections-list a {
    display: inline-flex; align-items: center;
    min-height: 40px; padding: 0 13px;
    border-radius: 12px; background: var(--tint);
    font-size: 13.5px; color: var(--ink-2);
  }
  .menu-sections-list a:hover { color: var(--ink); }
}

/* The dock tucks away while the hero's own Ask bar is on screen (site.js). */
@media (max-width: 760px) {
  .ask-dock { transition: transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1), opacity 200ms ease; }
  .ask-dock.is-tucked { transform: translateY(120%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .ask-dock { transition: none; } }

/* ---------- The sticky section rail (built by site.js) ----------
   Lives inside .site-header, which is already position:sticky, so it needs no
   positioning of its own and picks up the scrolled blur behind it. */
.sec-rail { display: none; }
@media (max-width: 760px) {
  .sec-rail {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 0 clamp(20px, 4.45vw, 64px) 9px;
  }
  /* Beats the media query's display:flex, so [hidden] still hides it. */
  .sec-rail[hidden] { display: none; }
  .sec-rail-pos { flex: none; font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
  .sec-rail-name {
    flex: 1 1 auto; min-width: 0;
    font-size: 14px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sec-rail-jump {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 0 12px;
    border: 0; border-radius: 18px;
    background: var(--tint); color: var(--ink-2);
    font-size: 13px; cursor: pointer;
  }
  .sec-rail-jump:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
  .sec-rail-progress {
    position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width 120ms linear;
  }
}
@media (prefers-reduced-motion: reduce) { .sec-rail-progress { transition: none; } }

/* ---------- Innovation / case-study cards: cover first, lock stated ----------
   The design leads each card with its artwork and says PRIVATE on the image, so
   nobody taps a locked project only to be refused. Badge injected by site.js. */
@media (max-width: 760px) {
  .proj-row { gap: 12px 18px; }
  .proj-row > div:first-child { grid-column: 1 / -1; grid-row: 2; }
  .proj-row .cover { grid-column: 1 / -1; grid-row: 1; margin-bottom: 2px; }
  .proj-row .arrow-btn { grid-column: 2; grid-row: 2; align-self: start; }
  .proj-row h2 { font-size: 25px; line-height: 1.08; }
  .proj-row p { font-size: 14.5px; line-height: 1.5; }

  .cover-lock {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 11px; border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 10px; letter-spacing: 0.04em; color: var(--ink-2);
  }
  .cover-lock svg { width: 11px; height: 11px; flex: none; }
}

/* ---------- Recommendation card, phone layout (restructured by site.js) ---------- */
@media (max-width: 760px) {
  .rec-row.is-phone {
    display: block;
    padding: 18px; margin-bottom: 12px;
    border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge);
  }
  .rec-row.is-phone .rec-label { display: none; }
  .rec-row.is-phone .rec-panel { display: none; }

  .rec-head { display: flex; align-items: center; gap: 11px; }
  .rec-head .rec-ic {
    position: static; flex: none;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-tint); color: var(--accent-ink);
    font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  }
  .rec-who { min-width: 0; }
  .rec-row.is-phone .rec-name { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
  .rec-row.is-phone .rec-headline { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

  /* The pulled phrases, hoisted above the quote. */
  .rec-row.is-phone .rec-words { display: block; margin-top: 14px; }
  .rec-row.is-phone .rec-words > .mono { display: none; }
  .rec-row.is-phone .rec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .rec-row.is-phone .rec-chips li {
    display: inline-flex; align-items: center;
    height: 27px; padding: 0 10px; border-radius: 8px;
    background: var(--accent-tint); color: var(--accent-ink); font-size: 12px;
  }

  /* .rec-body is a two-column grid whose first 32px track held the avatar. That has
     moved into .rec-head, so the quote would otherwise render in a 32px column, one
     word per line. Single column, and the clamp needs its display re-stated here to
     beat the base blockquote rule. */
  .rec-row.is-phone .rec-body { display: block; margin-top: 12px; }
  .rec-row.is-phone .rec-main.is-clamped .rec-body blockquote {
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .rec-row.is-phone .rec-body blockquote { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
  .rec-meta-line { margin: 10px 0 0; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Phone type scale for the sections below the hero ----------
   .h2 is a flat 40px at every width, which is the single biggest reason the page
   below the hero still reads as the old layout — every artboard sets section
   headings at 26px. Scaled here, with the supporting copy and the section header
   rhythm brought down to match. */
@media (max-width: 760px) {
  .h2 { font-size: 27px; line-height: 1.06; letter-spacing: -0.02em; }
  .sec-head { margin-bottom: 22px; gap: 12px 20px; }
  .sec-head p { font-size: 14.5px; line-height: 1.55; }
  .sec-title p { margin-top: 10px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.07em; }


  /* Matches the specificity of the .is-wide override at line ~802, which otherwise
     keeps these at 28px. */
  .innov-card h3, .innov-card.is-wide h3, .innov-card.is-full h3 { font-size: 24px; line-height: 1.05; }
  .innov-card, .innov-card.is-wide, .innov-card.is-full { padding: 20px; border-radius: 20px; gap: 22px; }
  .innov-card p { font-size: 14px; line-height: 1.5; }

  .exp-row { padding: 16px 0; }
}


/* ---------- Impact section header: eyebrow and toggle share a row ----------
   Stacked, the heading, its gloss, the eyebrow and the By type / Timeline toggle
   ate roughly 250px before a single result appeared. */
@media (max-width: 760px) {
  .impact-controls {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 12px; width: 100%;
  }
  /* Wraps to two rows below ~300px rather than breaking the labels. */
  .impact-controls { flex-wrap: wrap; }
  .impact-controls .eyebrow { flex: none; }
  .sort { padding: 3px; flex: none; }
  .sort button { min-height: 36px; padding: 0 13px; font-size: 13.5px; white-space: nowrap; }
}

/* ---------- Results That Matter: one result per group on a phone ----------
   The sibling combinator hides every .it-item that follows another one, leaving
   the first visible. (:nth-of-type would miscount — .it-type is a div too.) */
@media (max-width: 760px) {
  .it-col.is-capped .it-item ~ .it-item { display: none; }
  .it-more {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0; margin-top: 2px;
    background: none; border: 0;
    font-size: 14px; font-weight: 600; color: var(--accent-ink);
    text-align: left; cursor: pointer;
  }
  .it-more::after {
    content: ""; width: 7px; height: 7px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform 0.2s ease;
  }
  .it-col:not(.is-capped) .it-more::after { transform: rotate(-135deg); margin-top: 2px; }
  .it-more:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { .it-more::after { transition: none; } }

/* ---------- By organisation: a snap rail of the same results ----------
   Built by site.js from the existing items. The tab that switches the section
   between "By type" and "Timeline" is hidden on a phone, so this reading sits
   below the grouped rows rather than behind a control. */
@media (max-width: 760px) {
  .impact-controls .sort { display: none; }

  .by-org { margin-top: 36px; }
  .by-org-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
  }
  .by-org-head h3 {
    margin: 0; font-family: var(--font-display);
    font-size: 24px; font-weight: 400; line-height: 1.12;
  }
  .swipe-hint {
    font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
  }

  .by-org-rail {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(20px, 4.45vw, 64px));
    padding: 2px clamp(20px, 4.45vw, 64px);
    /* Snap positions are measured from the SCROLLPORT edge, which ignores the
       padding above — without this the first card snaps flush to the screen edge
       (measured at left: 0) while the heading and dots sit on the 20px gutter. */
    scroll-padding-inline: clamp(20px, 4.45vw, 64px);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .by-org-rail::-webkit-scrollbar { display: none; }

  .org-card {
    flex: 0 0 66%; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 10px;
    padding: 20px; border-radius: 20px;
    background: var(--glass); border: 1px solid var(--glass-edge);
  }
  .org-card-where { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .org-card-num {
    font-family: var(--font-display); font-size: 46px; line-height: 0.9;
    letter-spacing: -0.02em; white-space: nowrap;
  }
  .org-card strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
  .org-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

  /* The lead card carries the accent, as drawn. */
  .org-card:first-child { background: var(--accent); border-color: transparent; color: var(--on-accent); }
  .org-card:first-child .org-card-where, .org-card:first-child p { color: var(--on-accent-2); }
  .org-card:first-child .it-num .up, .org-card:first-child .up { color: var(--on-accent); }

  .by-org-dots, .rail-dots { display: flex; gap: 5px; margin-top: 14px; }
  .by-org-dots i, .rail-dots i {
    display: block; width: 10px; height: 3px; border-radius: 2px;
    background: var(--line-2); transition: width 200ms ease, background-color 200ms ease;
  }
  .by-org-dots i.is-on, .rail-dots i.is-on { width: 22px; background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .by-org-dots i, .rail-dots i { transition: none; } }

/* ---------- What I work on: four tiles closing the impact section ---------- */
@media (max-width: 760px) {
  .work-on { margin-top: 34px; }
  .work-on h3 {
    margin: 0 0 14px; font-family: var(--font-display);
    font-size: 24px; font-weight: 400; line-height: 1.12;
  }
  .work-on-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-tile {
    display: flex; flex-direction: column; gap: 10px;
    min-height: 124px; padding: 18px;
    border-radius: 18px;
    background: var(--glass); border: 1px solid var(--glass-edge);
  }
  .work-tile-num {
    font-family: var(--font-display); font-size: 36px; line-height: 0.95;
    letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  }
  .work-tile-label { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
}

/* ---------- Sections not shown on a phone ----------
   #career is a to-scale timeline that cannot work at this width; #innovation has
   its own page, which the nav and the section's own "View all six" both point at,
   so neither hide costs any navigation — nothing on the live site links to either
   anchor. The rail and the jump list skip them automatically, because site.js only
   counts sections that are actually on screen. */
@media (max-width: 760px) {
  #career, #innovation { display: none; }
}

/* ---------- Admin: the grouped Ask log ----------
   One entry per question rather than per event: how often it was asked, what was
   answered, and the other wordings it arrived in. */
.ask-group { padding: 14px 12px; border-radius: 12px; }
.ask-group:nth-child(odd) { background: var(--soft); }
.ask-group + .ask-group { margin-top: 4px; }
.ask-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ask-group-q { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ask-group-count {
  flex: none; min-width: 34px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-ink);
  font-size: 11px; text-align: center;
}
.ask-group-when { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.ask-group-answer {
  margin: 10px 0 0; padding-left: 12px;
  border-left: 2px solid var(--line-2);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.ask-group-answer.is-missing { color: var(--muted); font-style: italic; }
.ask-group-more {
  min-height: 36px; margin-top: 8px; padding: 0;
  background: none; border: 0;
  font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  text-align: left; cursor: pointer;
}
.ask-group-more:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.ask-group-variants { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ask-group-variants[hidden] { display: none; }
.ask-variant { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ask-variant-count { font-size: 10.5px; color: var(--muted); }
.ask-variant-q { font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Ask Vinod's portfolio: the conversation (chat.js) ----------
   Desktop: a non-modal window over the page (no scrim; drag, resize, minimise, dock).
   Phone: the same element becomes a bottom sheet over a scrim (.is-sheet). */
.chat { position: fixed; z-index: 84; display: flex; flex-direction: column; min-width: 360px; min-height: 400px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); border-radius: 18px; overflow: hidden; resize: both; }
.chat.glass { background: var(--panel); box-shadow: var(--glass-shadow), 0 30px 70px -20px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.chat.is-docked { top: 0; right: 0; left: auto; width: 420px; height: 100vh; max-height: none; border-radius: 0; resize: none; border-width: 0 0 0 1px; }
.chat.is-dragging { user-select: none; opacity: 0.94; }
.chat-bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); cursor: grab; flex: none; }
.chat.is-docked .chat-bar, .chat.is-sheet .chat-bar { cursor: default; }
.chat.is-dragging .chat-bar { cursor: grabbing; }
.chat-grip { width: 9px; height: 15px; flex: none; background-image: radial-gradient(circle, var(--muted) 1.2px, transparent 1.5px); background-size: 6px 5px; opacity: 0.8; }
.chat.is-docked .chat-grip, .chat.is-sheet .chat-grip, .chat.is-sheet .is-desk { display: none; }
.chat-title { margin: 0 0 0 2px; flex: 1; font-size: 13px; font-weight: 600; }
.chat-btn { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.chat-btn:hover, .chat-btn:focus-visible { background: var(--tint); color: var(--ink); }
.chat-btn .icon { width: 15px; height: 15px; }

.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 22px; padding: 18px 18px 12px; }
.chat-log > * { flex-shrink: 0; }
.chat-label { display: block; font-size: 11px; color: var(--muted); }
.chat-start { display: flex; flex-direction: column; gap: 12px; }
.chat-lead { margin: 6px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.chat-sub { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.chat-suggest { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.chat-suggest button { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 12px; font-size: 15px; color: var(--ink-2); text-align: left; }
.chat-suggest button::before { content: "↳"; width: 22px; flex: none; color: var(--accent-ink); font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; }
.chat-suggest button:hover, .chat-suggest button:focus-visible { background: var(--tint); color: var(--ink); }

.chat-turn { display: flex; flex-direction: column; gap: 10px; }
.chat-q { align-self: flex-end; max-width: 86%; margin: 0; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent-ink) 28%, transparent); font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.chat-q-voice { font-size: 12px; }
.chat-a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.chat-text { font-size: 15px; line-height: 1.62; color: var(--ink-2); overflow-wrap: anywhere; }
.chat-text p { margin: 0 0 8px; }
.chat-text p:last-child { margin-bottom: 0; }
.chat-text ul { margin: 0 0 8px; padding-left: 18px; }
.chat-text li { margin: 3px 0; }
.chat-text strong { color: var(--ink); font-weight: 600; }
.chat-text.is-streaming > :last-child::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--accent-ink); animation: blink 1s step-end infinite; }
.chat-dots { display: inline-flex; gap: 5px; padding: 8px 0; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s ease-in-out infinite; }
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-error { margin: 0; font-size: 14px; color: var(--danger); }
.chat-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.chat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.chat-speak { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
.chat-speak .icon { width: 14px; height: 14px; }
.chat-speak:hover, .chat-speak:focus-visible { border-color: var(--accent-ink); color: var(--ink); }
.chat-speak.is-on { border-color: var(--accent-ink); background: var(--accent-tint); color: var(--ink); }
.chat-src { font-size: 12px; color: var(--blue-ink); }
.chat-src::after { content: " ↗"; }
.chat-src:hover { color: var(--ink); }
.chat-next { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { min-height: 34px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.35; color: var(--ink); text-align: left; }
.chat-chip:hover, .chat-chip:focus-visible { border-color: var(--accent-ink); background: var(--accent-tint); }

/* Voice: one strip above the composer carrying what it heard, and a way to stop. */
.chat-voice { display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--accent-tint); flex: none; }
.chat-voice-text { flex: 1; min-width: 0; margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.chat-voice-stop { min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-size: 12px; color: var(--ink); flex: none; }
.chat-voice-stop:hover { border-color: var(--accent-ink); }
.chat-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; flex: none; }
.chat-wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--accent-ink); }
.chat-voice[data-phase="listening"] .chat-wave i, .chat-voice[data-phase="speaking"] .chat-wave i { animation: chat-wave 0.9s ease-in-out infinite; }
.chat-wave i:nth-child(2) { animation-delay: 0.12s; }
.chat-wave i:nth-child(3) { animation-delay: 0.24s; }
.chat-wave i:nth-child(4) { animation-delay: 0.36s; }
.chat-voice[data-phase="idle"] .chat-wave { display: none; }
@keyframes chat-wave { 0%, 100% { height: 5px; } 50% { height: 17px; } }

.chat-form { display: flex; align-items: center; gap: 6px; margin: 0 12px 6px; padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--line-2); flex: none; }
.chat-form:focus-within { border-color: var(--accent-ink); }
.chat-form input { flex: 1; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.chat-form input::placeholder { color: var(--muted); }
.chat-mic, .chat-send { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-mic { color: var(--ink-2); }
.chat-mic:hover, .chat-mic:focus-visible { background: var(--tint); color: var(--ink); }
.chat-mic.is-live { background: var(--accent); color: var(--on-accent); }
.chat-mic.is-listening { animation: mic-pulse 1.6s ease-out infinite; }
.chat-send { background: var(--accent); color: var(--on-accent); }
.chat-send:disabled { opacity: 0.5; }
.chat-mic .icon, .chat-send .icon { width: 17px; height: 17px; }
.chat-foot { margin: 0 14px 10px; font-size: 11px; line-height: 1.4; color: var(--muted); text-align: center; flex: none; }

.chat-pill { position: fixed; right: 24px; bottom: 24px; z-index: 84; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chat-pill.glass { background: var(--panel); }
.chat-pill:hover { color: var(--ink); border-color: var(--accent-ink); }
.chat-scrim { position: fixed; inset: 0; z-index: 89; background: var(--scrim); }

@media (max-width: 760px) {
  .chat.is-sheet { inset: auto 0 0 0; width: auto; height: 88vh; height: 88dvh; min-width: 0; min-height: 0; max-width: none; max-height: none; z-index: 90; border-radius: 22px 22px 0 0; border-width: 1px 0 0; resize: none; padding-bottom: env(safe-area-inset-bottom); }
  .chat-log { padding: 16px 16px 10px; }
  .chat-form input { font-size: 16px; } /* under 16px iOS zooms the page on focus */
  body.chat-open { overflow: hidden; }
  body.chat-open .ask-dock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-dots i, .chat-wave i, .chat-mic.is-listening, .chat-text.is-streaming > :last-child::after { animation: none !important; }
}

/* Project page cover — sits above the facts panel in the hero's 420px column. The covers are
   900px wide, so this column shows them at 2x; a full-width band would upscale them and blur. */
.proj-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.proj-cover { margin: 0; aspect-ratio: 900 / 526; border-radius: 26px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-edge); }
.proj-cover img, .proj-cover video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) {
  .proj-side { max-width: 720px; }
}

/* Home hero portrait on a phone: the photo takes 60% of the band's width (Vinod, 2026-09-26; was 40% earlier the same day). */
@media (max-width: 760px) {
  .hero-visual .portrait img { width: 60%; }
}

/* ---------- Private project box (innovation.js) ----------
   A password field that unlocks the six project pages, and a request form for anyone without it.
   The server enforces the lock; this is only the way in. */
.locked-modal { position: fixed; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 28px 28px 24px; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; border: 1px solid var(--glass-edge); color: var(--ink); }
.locked-modal.glass { background: var(--panel); box-shadow: var(--glass-shadow), 0 40px 90px -30px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.locked-modal::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.locked-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.locked-x:hover, .locked-x:focus-visible { background: var(--tint); color: var(--ink); }
.locked-x .icon { width: 16px; height: 16px; }
.locked-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent-ink); }
.locked-eyebrow .icon { width: 13px; height: 13px; }
.locked-title { margin: 10px 0 10px; padding-right: 36px; font-family: var(--font-display); font-weight: 400; font-stretch: normal; letter-spacing: -0.01em; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; text-wrap: balance; }
.locked-lede { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.locked-form { display: flex; flex-direction: column; gap: 10px; }
.locked-row { display: flex; gap: 8px; }
.locked-row input { flex: 1; min-width: 0; }
.locked-row .btn { flex: none; min-height: 52px; }
.locked-divider { height: 1px; margin: 24px 0 20px; background: var(--line); }
.locked-sub { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.locked-modal .field textarea { min-height: 96px; }
.locked-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.locked-foot { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 4px; }
.locked-privacy { font-size: 11px; line-height: 1.4; color: var(--muted); }
.locked-modal .form-status:empty { display: none; }
@media (max-width: 760px) {
  .locked-modal { padding: 24px 18px 20px; border-radius: 22px; }
  .locked-row { flex-direction: column; }
}
.locked-form.is-sent > :not(.locked-sub):not(.form-status) { display: none; }
