/* SRK Design: shared stylesheet for every page except the homepage, which inlines the same agreed design.
   Layout: one column of sections on a pastel-glow (light) or neon-grid (dark) ground; every surface is a 12px frosted card. */

/* ---------- tokens (as agreed) ---------- */
:root {
  --bg: #f6f7fc;
  --ink: #12142b;
  --muted: #555b78;
  --c1: #11d1ee;          /* cyan */
  --c2: #9e85e5;          /* lavender */
  --c3: #f472b6;          /* pink */
  --on-accent: #ffffff;
  --glass: rgba(255,255,255,.58);
  --glass-strong: rgba(255,255,255,.72);
  --edge: rgba(255,255,255,.85);
  --edge-soft: rgba(18,20,43,.08);
  --field: rgba(255,255,255,.7);
  --shadow: 0 1px 2px rgba(30,30,80,.04), 0 12px 40px -14px rgba(70,60,160,.22);
  --shadow-lift: 0 2px 4px rgba(30,30,80,.05), 0 24px 56px -18px rgba(70,60,160,.32);
  --btn-glow: 0 10px 28px -10px rgba(110,90,220,.55);
  --glow-op: .55;
  --grid: transparent;
  --grad: linear-gradient(100deg, var(--c1), var(--c2));
  --grad3: linear-gradient(100deg, var(--c1), var(--c2) 55%, var(--c3));
  --code: #0d1024;
  --bad: #c0262d;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  --gap: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
/* Neon dark: a showcase mode. */
:root[data-theme="dark"] {
  --bg: #05060f; --ink: #eef1ff; --muted: #9aa3c7; --c1: #00e5ff; --c2: #a259ff; --c3: #ff2bd6; --on-accent: #05060f;
  --glass: rgba(255,255,255,.04); --glass-strong: rgba(255,255,255,.07); --edge: rgba(140,230,255,.16); --edge-soft: rgba(140,230,255,.12); --field: rgba(255,255,255,.04);
  --shadow: 0 0 0 1px rgba(0,229,255,.04), 0 18px 50px -20px rgba(0,229,255,.25);
  --shadow-lift: 0 0 0 1px rgba(0,229,255,.25), 0 0 32px -6px rgba(0,229,255,.35), 0 24px 60px -20px rgba(162,89,255,.45);
  --btn-glow: 0 0 24px -2px rgba(0,229,255,.6), 0 0 48px -8px rgba(162,89,255,.6);
  --glow-op: .42; --grid: rgba(120,220,255,.06); --code: #000208; --bad: #ff8a95; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05060f; --ink: #eef1ff; --muted: #9aa3c7; --c1: #00e5ff; --c2: #a259ff; --c3: #ff2bd6; --on-accent: #05060f;
    --glass: rgba(255,255,255,.04); --glass-strong: rgba(255,255,255,.07); --edge: rgba(140,230,255,.16); --edge-soft: rgba(140,230,255,.12); --field: rgba(255,255,255,.04);
    --shadow: 0 0 0 1px rgba(0,229,255,.04), 0 18px 50px -20px rgba(0,229,255,.25);
    --shadow-lift: 0 0 0 1px rgba(0,229,255,.25), 0 0 32px -6px rgba(0,229,255,.35), 0 24px 60px -20px rgba(162,89,255,.45);
    --btn-glow: 0 0 24px -2px rgba(0,229,255,.6), 0 0 48px -8px rgba(162,89,255,.6);
    --glow-op: .42; --grid: rgba(120,220,255,.06); --code: #000208; --bad: #ff8a95; color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); overflow-x: hidden; transition: background-color .4s, color .4s; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 16px; z-index: 30; padding: 12px 18px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font-weight: 700; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap, main > * { width: 100%; max-width: calc(var(--wrap) + 48px); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main > * + * { margin-top: 80px; }
.label { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.grad-text { background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .grad-text { filter: drop-shadow(0 0 18px rgba(0,229,255,.35)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad-text { filter: drop-shadow(0 0 18px rgba(0,229,255,.35)); } }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; font-weight: 600; }
.lead, .lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.note { font-size: .88rem; color: var(--muted); }
.sec-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

/* background: glows + (dark) neon grid */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgfx i { position: absolute; border-radius: 50%; filter: blur(100px); opacity: var(--glow-op); transition: opacity .4s; }
.bgfx i:nth-child(1) { width: 46vw; height: 46vw; left: -14vw; top: -12vw; background: var(--c2); }
.bgfx i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 6vh; background: var(--c1); }
.bgfx i:nth-child(3) { width: 40vw; height: 40vw; left: 18vw; bottom: -22vw; background: var(--c3); opacity: calc(var(--glow-op) * .7); }
.bgfx::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }

/* ---------- surfaces: every block is a frosted card ---------- */
.card, .tile, .facts > div, .pillar, .pager a, .cta-band, .dept .head, .dept .detail > div, .signup, .ethos > div, .manifesto, .matrix-wrap,
.matrix-list li, .role, .tl-panel, .post, .share, .toc-mini, .toc, .progress, .wizard fieldset, .done, .nf .code, .nf .play,
.results a, .nf-search .hubs a, .empty, .fallback, .prose .callout, .legal .prose {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.card.strong, .cta-band, .dept .head, .done, .nf .code, .progress { background: var(--glass-strong); }
.tile { padding: 22px; }
.lift, a.card, .pager a, .post, .role, .nf-search .hubs a, .results a { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.lift:hover, a.card:hover, .pager a:hover, .post:hover, .role:hover, .nf-search .hubs a:hover, .results a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.photo { overflow: hidden; }
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons: the button itself carries the glow ---------- */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 24px; min-height: 48px; border-radius: 999px; font: 700 .95rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; color: var(--on-accent); background: var(--grad); box-shadow: var(--btn-glow); transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost, .btn.ink { color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn.ghost:hover, .btn.ink:hover { box-shadow: inset 0 0 0 1px var(--c1); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header: detached floating pill ---------- */
.header { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); z-index: 20; margin-top: 16px; }
.header .pill { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 40px -18px rgba(60,50,150,.35), 0 4px 10px -6px rgba(30,30,80,.12); }
:root[data-theme="dark"] .header .pill { box-shadow: 0 0 0 1px rgba(0,229,255,.06), 0 18px 44px -16px rgba(0,229,255,.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header .pill { box-shadow: 0 0 0 1px rgba(0,229,255,.06), 0 18px 44px -16px rgba(0,229,255,.28); } }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo i { width: 20px; height: 20px; border-radius: 6px; background: var(--grad3); display: block; box-shadow: var(--btn-glow); }
.logo b { font: 700 1.2rem/1 var(--display); }
.logo span { color: var(--muted); font-size: .88rem; }
.pill nav ul { display: flex; gap: 6px; }
.pill nav a { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .2s, background-color .2s; }
.pill nav a:hover { color: var(--ink); background: var(--glass); }
.pill nav a[aria-current="page"] { color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-soft); }
.pill-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-soft); transition: box-shadow .2s, color .2s; }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--c1); color: var(--c1); }
.icon-btn svg { width: 19px; height: 19px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .pill nav, .pill-end .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .pill.open { flex-wrap: wrap; border-radius: 24px; }
  .pill.open nav { display: block; order: 3; width: 100%; padding: 4px 4px 8px; }
  .pill.open nav ul { flex-direction: column; }
}

/* ---------- page head: the agreed hero ---------- */
.pagehead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 80px 16px; }
.pagehead:not(:has(.photo)) { grid-template-columns: minmax(0, 1fr); }
.hero-text { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.pagehead h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
.pagehead .intro { display: grid; gap: 14px; max-width: 38rem; color: var(--muted); font-size: 1.05rem; }
.pagehead .intro .lead { color: var(--ink); font-weight: 600; }
.pagehead .photo { padding: 12px; aspect-ratio: 4 / 3; }
.pagehead .photo img { border-radius: 8px; }
.updated { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- concept stills, framed like a browser window ---------- */
.art { position: relative; overflow: hidden; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(16px, 2vw, 28px) clamp(16px, 2vw, 24px); font-family: var(--display); }
.art .bar { position: absolute; inset: 0 0 auto; height: 22px; display: flex; gap: 5px; align-items: center; padding-left: 10px; background: rgba(0,0,0,.14); }
.art .bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); display: block; }
.art .big { position: relative; }
.c-harbour { background: linear-gradient(160deg, #0b3954, #087e8b); color: #fff; }
.c-harbour .big { font-size: clamp(30px, 3.6vw, 60px); font-weight: 800; line-height: .95; letter-spacing: -0.03em; }
.c-harbour .tag { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 14px; }
.c-harbour .tag b { background: #ffd166; color: #0b3954; padding: 10px 14px; border-radius: 6px; font-weight: 800; white-space: nowrap; }
.c-kiln { background: #f4efe6; color: #3b2314; }
.c-kiln .big { font: 700 clamp(28px, 3.2vw, 52px)/1.05 Georgia, "Times New Roman", serif; }
.c-kiln .loaf { position: absolute; right: -6%; bottom: -26%; width: 58%; aspect-ratio: 1.5; background: #b8743a; border-radius: 50% 50% 10% 10%; box-shadow: 0 10px 24px -10px rgba(59,35,20,.5); }
.c-kiln .loaf::before, .c-kiln .loaf::after { content: ""; position: absolute; top: 22%; width: 14%; height: 40%; background: #f0d9b0; border-radius: 40%; transform: rotate(28deg); }
.c-kiln .loaf::before { left: 30%; } .c-kiln .loaf::after { left: 55%; }
.c-north { background: linear-gradient(180deg, #eaf2fb, #d6e4f5); color: #12202b; }
.c-north .big { font-size: clamp(24px, 2.4vw, 38px); font-weight: 700; line-height: 1.05; }
.c-north .rank { display: grid; gap: 6px; font: 600 14px/1.2 var(--body); }
.c-north .rank span { background: #fff; padding: 9px 12px; border-radius: 6px; display: flex; justify-content: space-between; box-shadow: 0 2px 6px rgba(18,32,43,.08); }
.c-north .rank span:first-child { background: #12202b; color: #fff; }
.c-field { background: linear-gradient(180deg, #e8f5e1 0 55%, #3f7d3a 55%); color: #173b19; }
.c-field .big { font-size: clamp(28px, 3vw, 50px); font-weight: 800; line-height: .95; letter-spacing: -0.03em; }
.c-field .cta { align-self: flex-start; background: #fff; color: #2f5d2a; padding: 10px 16px; border-radius: 6px; font: 800 14px/1.2 var(--body); }
.c-tide { background: #f4f1ea; color: #1d3a3a; align-items: center; justify-content: center; }
.c-tide .mark { width: clamp(90px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%; background: #1d3a3a; position: relative; overflow: hidden; }
.c-tide .mark::after { content: ""; position: absolute; left: -10%; right: -10%; top: 52%; height: 70%; background: #4f9c95; border-radius: 45% 55% 0 0; }
.c-tide .big { font-size: clamp(20px, 2vw, 28px); font-weight: 600; margin-top: 16px; letter-spacing: .02em; }
.c-ridge { background: linear-gradient(150deg, #ffd23f, #f2a530); color: #161616; }
.c-ridge .big { font-size: clamp(30px, 3.4vw, 56px); font-weight: 800; line-height: .95; letter-spacing: -0.03em; }
.c-ridge .bolt { position: absolute; right: 8%; top: 22%; width: 20%; aspect-ratio: .6; background: #161616; clip-path: polygon(55% 0, 10% 58%, 45% 58%, 30% 100%, 90% 38%, 55% 38%, 75% 0); }
.c-ridge .phone { font: 700 14px/1.2 var(--body); }

/* ---------- pills, chips, search ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill:not([data-pill]) { font-size: .72rem; font-weight: 700; line-height: 1.2; padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge-soft); background: var(--glass); text-decoration: none; }
.pill.dark { color: var(--on-accent); background: var(--grad); box-shadow: none; }
.pill.metric { background: var(--glass-strong); }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 14px; align-items: center; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; border: 0; padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); transition: box-shadow .2s, background-color .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--c1); }
.chip[aria-pressed="true"] { color: var(--on-accent); background: var(--grad); box-shadow: var(--btn-glow); }
.chip .n { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 6px; }
.search input, .nf-search input, .signup input[type="email"], .field input, .field textarea, .field select {
  width: 100%; min-height: 48px; color: var(--ink); background: var(--field); border: 1px solid var(--edge-soft); border-radius: var(--r); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus, .nf-search input:focus, .signup input[type="email"]:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
select option { color: #111; background: #fff; }
.status-line { padding-top: 16px; font-size: .88rem; color: var(--muted); }
.empty { padding: 28px; display: grid; gap: 12px; justify-items: start; margin-top: 18px; }
.empty p { color: var(--muted); }

/* ---------- work grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
a.card { padding: 12px; display: grid; gap: 14px; align-content: start; min-width: 0; text-decoration: none; }
.card .art { aspect-ratio: 4 / 3; }
.card .meta { display: grid; gap: 10px; padding: 2px 6px 6px; }
.card h3 { font-size: 1.15rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .9rem; }
.card.enter { animation: card-in .32s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- case study ---------- */
.case-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); padding-top: 56px; }
.case-hero > .art { min-height: 460px; box-shadow: var(--shadow); }
.case-hero .facts { display: grid; gap: var(--gap); align-content: start; }
.case-hero .facts > div { padding: 22px; display: grid; gap: 14px; align-content: start; }
.case-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.case-hero .facts p { color: var(--muted); }
.case-hero dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.case-hero dt { color: var(--muted); font-weight: 600; }
.case-hero dd { font-weight: 600; }
.pillars { display: grid; gap: var(--gap); }
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px; padding: 32px; }
.pillar h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.15; }
.pillar .body { display: grid; gap: 14px; color: var(--muted); }
.ticks li { padding-left: 28px; position: relative; }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kpis { width: 100%; border-collapse: collapse; font-size: .92rem; color: var(--ink); }
.kpis th, .kpis td { text-align: left; padding: 11px 12px; vertical-align: top; border-bottom: 1px solid var(--edge-soft); }
.kpis thead th { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpis tbody tr:last-child td { border-bottom: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pager a { padding: 24px; text-decoration: none; display: grid; gap: 6px; }
.pager a:last-child { text-align: right; }
.pager span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager b { font: 600 1.2rem/1.25 var(--display); }

/* ---------- call-to-action band ---------- */
main > .cta-band { width: calc(100% - 40px); max-width: var(--wrap); padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band .say { display: grid; gap: 10px; max-width: 46rem; }
.cta-band .say p { color: var(--muted); font-size: 1.05rem; }

/* ---------- services ---------- */
.dept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--gap); scroll-margin-top: 110px; }
.dept .head { padding: 28px; display: grid; gap: 16px; align-content: start; align-self: start; position: sticky; top: 110px; }
.dept .head .h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.dept .head p:not(.lead) { color: var(--muted); }
.dept .head .lead { color: var(--ink); font-weight: 600; }
.dept .detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.dept .detail > div { padding: 24px; }
.dept .detail h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.dept .detail .wide { grid-column: 1 / -1; }
.dept.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.dept.flip .head { order: 2; }
.badge { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-size: .72rem; font-weight: 800; color: var(--on-accent); background: var(--grad); padding: 5px 10px; border-radius: 999px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* showreel shell */
.player { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 380px; padding: 0 !important; overflow: hidden; }
.player .screen { position: relative; overflow: hidden; display: grid; place-items: center; padding: 24px; background: #05060f; color: #eef1ff; }
.player .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.player .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,229,255,.25), rgba(162,89,255,.25) 55%, rgba(255,43,214,.2)); }
.player .slate { position: relative; z-index: 1; text-align: center; display: grid; gap: 12px; justify-items: center; }
.player .slate .display { font-size: clamp(36px, 4.6vw, 72px); }
.player .msg { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; background: var(--glass-strong); color: var(--ink); border: 1px solid var(--edge); border-radius: var(--r); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 14px 16px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.player .msg.on { opacity: 1; transform: none; }
.controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; }
.controls button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--on-accent); background: var(--grad); box-shadow: var(--btn-glow); cursor: pointer; display: grid; place-items: center; }
.controls button svg { width: 16px; height: 16px; fill: currentColor; }
.track { height: 6px; border-radius: 999px; background: var(--edge-soft); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--grad3); transform-origin: left; transform: scaleX(0); }
.timecode { font: 600 14px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; color: var(--muted); }

/* reach calculator */
.calc { display: grid; gap: 18px; }
.calc label { display: grid; gap: 8px; font-size: .92rem; font-weight: 600; }
.calc label span { display: flex; justify-content: space-between; gap: 12px; }
.calc output { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--c2); height: 28px; margin: 0; }
.calc .out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc .out p { background: var(--glass-strong); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--edge-soft); padding: 14px; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.calc .out b { display: block; font: 700 1.6rem/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* newsletter */
main > .signup { width: calc(100% - 40px); max-width: var(--wrap); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: end; scroll-margin-top: 110px; }
.signup .copy { display: grid; gap: 10px; }
.signup .copy p { color: var(--muted); }
.signup form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.signup label { grid-column: 1 / -1; font-size: .88rem; font-weight: 600; }
.signup .notice { grid-column: 1 / -1; }
.notice { padding: 14px 16px; border-radius: var(--r); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--c1); font-weight: 600; }
.notice.bad { box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
.notice:empty { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- about ---------- */
.manifesto { padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 0 .3em; }
.manifesto p.display { font-size: clamp(2.6rem, 8vw, 7rem); background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ethos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); margin-top: var(--gap); }
.ethos > div { padding: 26px; display: grid; gap: 10px; align-content: start; }
.ethos h3 { font-size: 1.22rem; font-weight: 600; }
.ethos p { color: var(--muted); }
.matrix-wrap { padding: 10px; overflow-x: auto; }
.matrix-list { display: none; }
.matrix { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 6px; font-size: .92rem; }
.matrix th, .matrix td { padding: 12px 14px; text-align: left; vertical-align: top; border-radius: 8px; }
.matrix thead th { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.matrix tbody th { font-weight: 700; }
.matrix td { background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); }
.matrix td.lead { color: var(--on-accent); background: var(--grad); box-shadow: none; font-weight: 700; max-width: none; font-size: .92rem; }
.matrix td.no { color: var(--muted); background: transparent; }
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.role { padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.role .face { aspect-ratio: 4 / 5; border-radius: 8px; display: flex; align-items: flex-end; padding: 16px; font-size: clamp(56px, 6vw, 96px); color: #fff; background: var(--grad); }
.role:nth-child(2) .face { background: linear-gradient(120deg, var(--c1), var(--c3)); }
.role:nth-child(3) .face { background: linear-gradient(120deg, var(--c3), var(--c2)); }
.role:nth-child(4) .face { background: var(--grad3); }
.role:nth-child(5) .face { background: linear-gradient(200deg, var(--c2), var(--c1)); }
:root[data-theme="dark"] .role .face { color: #05060f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .role .face { color: #05060f; } }
.role .bio { padding: 4px 6px 6px; display: grid; gap: 6px; align-content: start; font-size: .9rem; color: var(--muted); }
.role h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.tl-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tabs button { border: 0; padding: 10px 18px; min-height: 44px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); transition: box-shadow .2s; }
.tl-tabs button:hover { box-shadow: inset 0 0 0 1px var(--c1); }
.tl-tabs button[aria-selected="true"] { color: var(--on-accent); background: var(--grad); box-shadow: var(--btn-glow); }
.tl-panel { margin-top: 14px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px; }
.tl-panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.2; }
.tl-panel .body { color: var(--muted); }
.tl-panel.enter .body, .tl-panel.enter h3 { animation: card-in .3s var(--ease) both; }

/* ---------- insights ---------- */
.posts { display: grid; gap: var(--gap); }
.post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, .9fr); gap: 22px; padding: 12px; text-decoration: none; align-items: stretch; }
.post .photo { border-radius: 8px; min-height: 180px; }
.post .txt { padding: 10px 0; display: grid; gap: 10px; align-content: start; }
.post h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.post .txt p { color: var(--muted); font-size: .95rem; }
.post .by { padding: 10px 10px 10px 0; font-size: .85rem; color: var(--muted); display: grid; gap: 4px; align-content: end; }
.article-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 72px 0; }
.article-head .title { display: grid; gap: 20px; align-content: start; }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.article-head .photo { padding: 12px; aspect-ratio: 4 / 3; background: var(--glass-strong); border: 1px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow); }
.article-head .photo img { border-radius: 8px; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 56px; align-items: start; }
.article-body aside { position: sticky; top: 110px; display: grid; gap: var(--gap); }
.prose { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }
.prose ul li, .prose ol li { padding-left: 26px; position: relative; }
.prose ul li + li, .prose ol li + li { margin-top: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; color: var(--c2); }
.prose a { text-decoration: underline; text-decoration-color: var(--c2); }
.prose blockquote { padding: 6px 0 6px 22px; border-left: 3px solid var(--c2); font: 600 1.3rem/1.45 var(--display); letter-spacing: -0.01em; }
.prose blockquote cite { display: block; margin-top: 10px; font: 500 .9rem/1.4 var(--body); color: var(--muted); font-style: normal; }
.prose .callout { padding: 20px 22px; font-size: 1rem; }
.prose .callout b { display: block; margin-bottom: 6px; }
.prose pre { max-width: 100%; background: var(--code); color: #e6e9ff; padding: 20px; border-radius: var(--r); border: 1px solid var(--edge-soft); overflow-x: auto; font: 14px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; tab-size: 2; }
.prose code { font: .88em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); border-radius: 6px; padding: 1px 6px; }
.prose pre code { background: none; box-shadow: none; padding: 0; font-size: inherit; }
.tok-k { color: #7ee8fa; } .tok-s { color: #c3f584; } .tok-c { color: #8b93b8; font-style: italic; } .tok-n { color: #ffb86b; }
.share, .toc-mini { padding: 20px; display: grid; gap: 10px; font-size: .92rem; }
.share h2, .toc-mini h2 { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share .row { display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share button { border: 0; padding: 9px 14px; min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; font-weight: 600; font-size: .85rem; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); }
.share a:hover, .share button:hover { box-shadow: inset 0 0 0 1px var(--c1); }
.toc-mini a { text-decoration: none; color: var(--muted); }
.toc-mini a:hover { color: var(--ink); }
.toc-mini li + li { margin-top: 6px; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 110px; padding: 18px; max-height: calc(100svh - 130px); overflow: auto; }
.toc h2 { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 8px 12px; min-height: 40px; align-items: center; font-size: .9rem; font-weight: 600; line-height: 1.25; text-decoration: none; color: var(--muted); border-radius: 999px; transition: background-color .15s, color .15s; }
.toc a::before { content: counter(t); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc a:hover { color: var(--ink); background: var(--glass); }
.toc a[aria-current="true"] { color: var(--on-accent); background: var(--grad); }
.legal .prose { padding: clamp(24px, 4vw, 44px); max-width: none; font-size: 1rem; }
.legal .prose section { scroll-margin-top: 110px; }
.legal .prose section + section { margin-top: 56px; }
.legal .prose section > * + * { margin-top: 1em; }
.legal .prose h2 { margin-top: 0; }

/* ---------- project planner ---------- */
.planner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 110px; }
.planner .rail { position: sticky; top: 110px; display: grid; gap: var(--gap); }
.progress { padding: 20px; }
.progress p { font-weight: 700; }
.progress ol { display: grid; gap: 6px; margin-top: 14px; }
.progress li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.progress li i { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: .75rem; font-weight: 800; box-shadow: inset 0 0 0 1px var(--edge-soft); }
.progress li.done { color: var(--ink); }
.progress li.done i { background: var(--grad); color: var(--on-accent); box-shadow: none; }
.progress li[aria-current="step"] { color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--c1); }
.progress li[aria-current="step"] i { background: var(--grad); color: var(--on-accent); box-shadow: var(--btn-glow); }
.planner .tile p + p { color: var(--muted); }
.wizard { min-width: 0; }
.wizard fieldset { margin: 0; padding: clamp(22px, 3vw, 36px); min-width: 0; }
.wizard legend { float: left; width: 100%; padding: 0; font: 600 clamp(1.5rem, 2.8vw, 2.1rem)/1.15 var(--display); letter-spacing: -0.03em; }
.wizard legend:focus { outline: none; }
.wizard .help { margin: 10px 0 24px; max-width: 60ch; clear: both; padding-top: 10px; color: var(--muted); }
.wizard fieldset.enter { animation: step-in .34s var(--ease) both; }
.wizard fieldset.enter.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-16px); } }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: grid; gap: 8px; align-content: start; min-height: 140px; height: 100%; padding: 18px; border-radius: var(--r); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); transition: box-shadow .2s, transform .15s; }
.choice b { font: 600 1.08rem/1.2 var(--display); }
.choice small { font-size: .88rem; line-height: 1.4; color: var(--muted); }
.choice:hover > span { box-shadow: inset 0 0 0 1px var(--c1); }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--c2), var(--shadow); }
.choice input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 3px; }
.choice input:active + span { transform: scale(.985); }
.choice .tick { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--edge-soft); }
.choice input:checked + span .tick { background: var(--grad); box-shadow: var(--btn-glow); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); transition: box-shadow .2s; }
.radio:hover span { box-shadow: inset 0 0 0 1px var(--c1); }
.radio input:checked + span { color: var(--on-accent); background: var(--grad); box-shadow: var(--btn-glow); }
.radio input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 3px; }
.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group + .group, .group + .fields, .fields + .group { margin-top: 28px; }
.group > legend, .field > label { display: block; font: 600 .92rem/1.4 var(--body); margin-bottom: 10px; padding: 0; float: none; letter-spacing: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field.wide { grid-column: 1 / -1; }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.err { color: var(--bad); font-size: .9rem; font-weight: 700; margin-top: 8px; }
.field [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
.err:empty { display: none; }
.errsum { padding: 16px 18px; margin-bottom: 20px; clear: both; border-radius: var(--r); background: var(--glass-strong); box-shadow: inset 0 0 0 2px var(--bad); }
.errsum:focus { outline: 2px solid var(--c1); outline-offset: 3px; }
.errsum h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--bad); }
.stepnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.stepnav .btn { min-width: 150px; }
.js .no-js-note { display: none; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-radius: var(--r); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); margin-bottom: 20px; overflow: hidden; }
.summary dt, .summary dd { padding: 11px 16px; border-bottom: 1px solid var(--edge-soft); }
.summary dt { font-weight: 700; font-size: .9rem; }
.summary dd { color: var(--muted); }
.summary dd button { border: 0; background: none; padding: 0; margin-left: 8px; text-decoration: underline; text-decoration-color: var(--c2); cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink); min-height: 24px; }
.submit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.submit-pair .btn { min-height: 76px; border-radius: 20px; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px 22px; font-size: 1.02rem; white-space: normal; }
.submit-pair .btn small { display: block; font-size: .8rem; font-weight: 600; opacity: .85; }
.done { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; justify-items: start; }
.done .blocks { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.done .blocks span { width: 72px; height: 100%; border-radius: var(--r); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font: 700 2rem/1 var(--display); color: #fff; background: var(--grad); box-shadow: var(--btn-glow); transform-origin: bottom; animation: block-up .7s var(--ease) both; }
.done .blocks span:nth-child(2) { height: 76%; background: linear-gradient(120deg, var(--c1), var(--c3)); animation-delay: .08s; }
.done .blocks span:nth-child(3) { height: 90%; background: linear-gradient(120deg, var(--c3), var(--c2)); animation-delay: .16s; }
@keyframes block-up { from { transform: scaleY(.15); opacity: 0; } }
.done .lead { color: var(--muted); }
.done.bad { box-shadow: inset 0 0 0 2px var(--bad), var(--shadow); }

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); padding-top: 56px; }
.nf .code { overflow: hidden; padding: clamp(24px, 4vw, 40px); display: grid; align-content: space-between; gap: 24px; min-height: 420px; }
.nf .code .display { font-size: clamp(110px, 18vw, 240px); line-height: .85; background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .code h1 { max-width: 16ch; }
.nf .code p { color: var(--muted); }
.nf .play { padding: 28px; display: grid; gap: 16px; align-content: space-between; }
.nf .play p { color: var(--muted); }
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.letters button { border: 0; aspect-ratio: 3 / 4; border-radius: var(--r); font: 700 clamp(48px, 6vw, 96px)/1 var(--display); cursor: pointer; color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--edge-soft); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; transition: transform .35s var(--ease), box-shadow .2s; }
.letters button:hover { box-shadow: inset 0 0 0 1px var(--c1); }
.letters button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--c2), var(--btn-glow); transform: translateY(-8px); }
.letters.solved button { color: var(--on-accent); background: var(--grad); box-shadow: var(--btn-glow); }
.nf-search { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); }
.nf-search form { display: grid; gap: 10px; align-content: start; }
.nf-search label { font-weight: 700; }
.nf-search input { min-height: 60px; font-size: 1.1rem; padding-inline: 18px; }
.results { display: grid; gap: 8px; }
.results a { display: grid; gap: 4px; padding: 14px 18px; text-decoration: none; }
.results span { font-size: .88rem; color: var(--muted); }
.nf-search .hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.nf-search .hubs a { padding: 18px; min-height: 76px; display: flex; align-items: flex-end; text-decoration: none; font: 600 1.05rem/1.2 var(--display); }
.skeleton { height: 60px; border-radius: var(--r); background: var(--glass); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--glass-strong), transparent); transform: translateX(-100%); animation: shimmer 1.2s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- widget fallback: the recovery state an error boundary switches to ---------- */
.failed > :not(.fallback) { display: none !important; }
.fallback { display: none; padding: 22px; }
.failed > .fallback { display: block; }

/* ---------- footer ---------- */
footer { margin-top: 96px; padding-block: 40px; border-top: 1px solid var(--edge-soft); color: var(--muted); font-size: .9rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot .reach { display: grid; gap: 14px; align-content: start; }
.foot .reach .logo { color: var(--ink); }
.foot h3 { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.credits { margin-top: 36px; font-size: .82rem; max-width: 120ch; }
.credits a { text-decoration: underline; }
.last { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- entrances and page transitions ---------- */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .36s var(--ease) both; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dept, .dept.flip, .case-hero { grid-template-columns: minmax(0, 1fr); }
  .dept .head { position: static; }
  .dept.flip .head { order: 0; }
  .post { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .post .by { grid-column: 2; padding-top: 0; }
  .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot .reach { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 900px) {
  main > * + * { margin-top: 56px; }
  .pagehead, .article-head, .article-body, .legal, .planner, .nf, .nf-search, .pillar, .tl-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pagehead { padding-block: 40px 0; gap: 32px; }
  .article-head { padding-block: 40px 0; }
  .toolbar { grid-template-columns: 1fr; }
  .case-hero { padding-top: 32px; }
  .case-hero > .art { min-height: 320px; }
  .pillar, .tl-panel { padding: 22px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .dept .detail { grid-template-columns: 1fr; }
  .calc .out { grid-template-columns: 1fr; }
  .signup form { grid-template-columns: 1fr; }
  .matrix { display: none; }
  .matrix-wrap { background: none; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .matrix-list { display: grid; gap: 10px; }
  .matrix-list li { padding: 16px 18px; display: grid; gap: 4px; color: var(--muted); }
  .matrix-list b { font: 600 1.1rem/1.3 var(--display); color: var(--ink); }
  .roles { grid-template-columns: 1fr 1fr; }
  .roles .role:last-child { grid-column: 1 / -1; }
  .role .face { aspect-ratio: 3 / 2; font-size: 64px; }
  .role:last-child .face { aspect-ratio: 3 / 1; }
  .post { grid-template-columns: 1fr; gap: 12px; }
  .post .photo { aspect-ratio: 16 / 9; min-height: 0; }
  .post .txt { padding: 4px 6px 0; }
  .post .by { grid-column: 1; padding: 0 6px 6px; }
  .article-body { margin-top: 40px; }
  .article-body aside, .toc, .planner .rail { position: static; max-height: none; }
  .progress ol { grid-template-columns: repeat(2, 1fr); }
  .fields, .submit-pair { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .summary dt { padding-bottom: 0; border-bottom: 0; }
  .nf .code { min-height: 300px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pagehead .ctas, .pagehead .ctas .btn, .cta-band .btn { width: 100%; }
  .stepnav .btn { min-width: 0; flex: 1; }
}
