/* ==========================================================================
   Ayush Kumar Singh · portfolio
   Design tokens, layout and components. No framework, no build step at runtime.
   ========================================================================== */

:root {
  --bg: #f6f4ef;
  --bg-2: #efece5;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #ebe8e1;
  --text: #13151a;
  --text-2: #3b404b;
  --muted: #687080;
  --border: #e3dfd5;
  --border-strong: #cdc7b9;
  --accent: #0e7a6d;
  --accent-ink: #0a5a51;
  --accent-soft: #dcefeb;
  --accent-glow: rgb(14 122 109 / 0.16);
  --warm: #9a4810;
  --warm-soft: #f8e7d9;
  --ok: #1f7a43;
  --ok-soft: #ddf1e4;
  --warn: #8a5a00;
  --warn-soft: #f6ebcf;
  --info: #2f55b5;
  --info-soft: #e3eafb;
  --violet: #6b3fb0;
  --violet-soft: #eee6fa;
  --shadow-sm: 0 1px 2px rgb(20 22 28 / 0.05);
  --shadow-md: 0 1px 2px rgb(20 22 28 / 0.04), 0 10px 28px -10px rgb(20 22 28 / 0.14);
  --shadow-lg: 0 2px 4px rgb(20 22 28 / 0.04), 0 28px 56px -18px rgb(20 22 28 / 0.22);
  --paper-shadow: 0 1px 1px rgb(20 22 28 / 0.06), 0 6px 14px -6px rgb(20 22 28 / 0.18), 0 22px 40px -24px rgb(20 22 28 / 0.25);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d12; --bg-2: #0d1118; --surface: #11161e; --surface-2: #161c26; --surface-3: #1c2330;
    --text: #eceef2; --text-2: #c3c8d2; --muted: #8b93a3; --border: #212834; --border-strong: #2f3949;
    --accent: #3fd0bd; --accent-ink: #7ce3d5; --accent-soft: rgb(63 208 189 / 0.12); --accent-glow: rgb(63 208 189 / 0.14);
    --warm: #f0a160; --warm-soft: rgb(240 161 96 / 0.12); --ok: #5fd38d; --ok-soft: rgb(95 211 141 / 0.12);
    --warn: #f2c35b; --warn-soft: rgb(242 195 91 / 0.12); --info: #8fb0ff; --info-soft: rgb(143 176 255 / 0.12);
    --violet: #c4a6ff; --violet-soft: rgb(196 166 255 / 0.12);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3); --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px -10px rgb(0 0 0 / 0.55);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 28px 56px -18px rgb(0 0 0 / 0.7);
    --paper-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 10px 24px -10px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d12; --bg-2: #0d1118; --surface: #11161e; --surface-2: #161c26; --surface-3: #1c2330;
  --text: #eceef2; --text-2: #c3c8d2; --muted: #8b93a3; --border: #212834; --border-strong: #2f3949;
  --accent: #3fd0bd; --accent-ink: #7ce3d5; --accent-soft: rgb(63 208 189 / 0.12); --accent-glow: rgb(63 208 189 / 0.14);
  --warm: #f0a160; --warm-soft: rgb(240 161 96 / 0.12); --ok: #5fd38d; --ok-soft: rgb(95 211 141 / 0.12);
  --warn: #f2c35b; --warn-soft: rgb(242 195 91 / 0.12); --info: #8fb0ff; --info-soft: rgb(143 176 255 / 0.12);
  --violet: #c4a6ff; --violet-soft: rgb(196 166 255 / 0.12);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3); --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px -10px rgb(0 0 0 / 0.55);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 28px 56px -18px rgb(0 0 0 / 0.7);
  --paper-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 10px 24px -10px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans);
  font-size: 16px; line-height: 1.65; font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
@view-transition { navigation: auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); font-weight: 400; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }

/* Ambient backdrop */
.backdrop { pointer-events: none; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: 0; overflow: hidden; }
.backdrop::before { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 0%, #000 10%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 0%, #000 10%, transparent 72%); }
.backdrop::after { content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -320px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 62%); }

/* ---------- Typographic bits ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 12px; }
.section-head h2 em { color: var(--accent-ink); }
.section-head p { color: var(--text-2); max-width: 52ch; margin: 12px 0 0; }
.section { padding: 112px 0 0; position: relative; }
.section:last-of-type { padding-bottom: 40px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; border: 1px solid transparent; cursor: pointer; white-space: nowrap; background: none; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-accent { color: #06201c; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; gap: 7px; }
.btn-xs svg { width: 15px; height: 15px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s, transform .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.5; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tag-tech { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .01em; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { background: var(--ok-soft); color: var(--ok); }
.status-progress { background: var(--warn-soft); color: var(--warn); }
.status-concept { background: var(--warm-soft); color: var(--warm); }
.status-public { background: var(--info-soft); color: var(--info); }
.kind { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.kind[data-k="SRS"], .kind[data-k="BR"] { background: var(--info-soft); color: var(--info); }
.kind[data-k="US"], .kind[data-k="CR"], .kind[data-k="PLAN"] { background: var(--warn-soft); color: var(--warn); }
.kind[data-k="SEQ"], .kind[data-k="ERD"], .kind[data-k="ARCH"], .kind[data-k="UI"] { background: var(--violet-soft); color: var(--violet); }
.kind[data-k="QA"], .kind[data-k="UAT"], .kind[data-k="RTM"] { background: var(--ok-soft); color: var(--ok); }
.kind[data-k="INC"], .kind[data-k="API"] { background: var(--warm-soft); color: var(--warm); }
.kind[data-k="SPEC"] { background: var(--surface-3); color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.chip.is-empty { opacity: .45; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { position: relative; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--text); color: var(--bg); font-family: var(--font-display); font-size: 19px; }
.brand-mark::after { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: inline-flex; padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav .menu-btn { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 56px; align-items: center; }
.hello { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 13.5px; color: var(--text-2); }
.hello .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.hello .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7.2vw, 92px); line-height: .98; letter-spacing: -0.03em; margin: 26px 0 26px; }
.hero h1 em { color: var(--accent-ink); }
.hero-sub { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 56ch; line-height: 1.6; margin: 0; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--border); }
.proof-item { padding: 18px 16px 0 0; }
.proof-item + .proof-item { padding-left: 16px; border-left: 1px solid var(--border); }
.proof-item b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.proof-item b small { font-family: var(--font-sans); font-size: 16px; color: var(--accent); font-weight: 600; margin-left: 2px; }
.proof-item span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.portrait { position: relative; justify-self: end; width: min(100%, 440px); }
.portrait-frame { position: relative; }
.portrait-ring { position: relative; border-radius: 50%; padding: 12px; background: conic-gradient(from 200deg, var(--accent), color-mix(in srgb, var(--accent) 20%, var(--surface)) 40%, var(--surface) 60%, color-mix(in srgb, var(--accent) 45%, var(--surface)) 85%, var(--accent)); box-shadow: var(--shadow-lg); }
.portrait-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); z-index: 0; }
.portrait-ring { isolation: isolate; }
.portrait-ring picture, .portrait-ring img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; background: #fafafa; }
.portrait-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 6px 0; }
.portrait-caption .tag svg { width: 14px; height: 14px; }
.portrait-caption b { display: block; font-size: 15px; }
.portrait-caption span { font-size: 13px; color: var(--muted); }
.float-chip { z-index: 3; position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; line-height: 1.3; animation: floaty 7s ease-in-out infinite; }
.float-chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.float-chip b { display: block; font-weight: 600; font-size: 13px; color: var(--text); }
.float-chip small { color: var(--muted); font-size: 12px; }
.fc-1 { left: -70px; top: 40px; }
.fc-2 { right: -40px; top: 44%; animation-delay: -2.4s; }
.fc-3 { left: -56px; bottom: 120px; animation-delay: -4.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.domains { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 72px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.domains .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.domains ul { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; }
.domains li { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 500; }
.domains li svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 26px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.cell:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cell h3 { font-size: 17px; margin-bottom: 8px; }
.cell p { color: var(--text-2); font-size: 15px; margin: 0; }
.cell .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; } .span-3 { grid-column: span 3; }
.docstack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.docstack a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .2s, border-color .2s, background .2s; min-height: 108px; }
.docstack a:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface); }
.docstack a b { font-size: 13.5px; line-height: 1.3; color: var(--text); }
.docstack a span:last-child { font-size: 12px; color: var(--muted); margin-top: auto; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 8px; }
.counter { padding: 16px 0; border-bottom: 1px solid var(--border); }
.counter:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--border); }
.counter:nth-child(even) { padding-left: 16px; }
.counter:nth-last-child(-n+2) { border-bottom: 0; }
.counter b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.counter b small { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--accent); margin-left: 2px; }
.counter > span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.list-check { list-style: none; display: grid; gap: 9px; margin-top: 14px; }
.list-check li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.list-check li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7a6d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.list-check li b { color: var(--text); font-weight: 600; }
.ai-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.ai-step { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; line-height: 1.35; color: var(--text-2); position: relative; }
.ai-step b { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.ai-step:nth-child(odd)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 6px; height: 6px; border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong); transform: translateY(-50%) rotate(45deg); }

/* ---------- Work ---------- */
.work-filters { margin-bottom: 26px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .3s ease; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.case.is-hidden { display: none; }
.case-visual { position: relative; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); aspect-ratio: 16 / 9.6; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.case:hover .case-visual img { transform: scale(1.03); }
.case-visual svg { width: 100%; height: 100%; }
.case-body { display: flex; flex-direction: column; padding: 26px 28px 28px; flex: 1; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.case-kicker { font-size: 13px; color: var(--muted); font-weight: 500; }
.case-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.06; letter-spacing: -0.02em; }
.case-featured .case-title { font-size: clamp(32px, 3.2vw, 44px); }
.case-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case-desc { color: var(--text-2); font-size: 15.5px; margin: 14px 0 20px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.metric { padding: 12px 13px; border-radius: 12px; background: var(--surface-2); }
.metric b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.04; }
.metric span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.case-tech { margin-top: auto; }
.case-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.more-projects { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 40px; }
.more-projects h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.more-projects > div > p { color: var(--text-2); font-size: 15px; margin-top: 14px; }
.proj-list { list-style: none; display: grid; gap: 10px; }
.proj { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.proj[open] { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.proj summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 18px 20px; }
.proj summary::-webkit-details-marker { display: none; }
.proj-name { font-weight: 600; font-size: 16px; }
.proj-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.chev { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); transition: transform .25s; }
.chev svg { width: 14px; height: 14px; }
.proj[open] .chev { transform: rotate(180deg); }
.proj-body { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; }
.proj-body ul { list-style: none; display: grid; gap: 8px; margin: 4px 0 14px; }
.proj-body li { position: relative; padding-left: 18px; }
.proj-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.proj-body .deliv { font-size: 13.5px; color: var(--muted); }
.proj-body .deliv b { color: var(--text-2); }
.also { margin-top: 14px; font-size: 14px; color: var(--muted); }
.nda { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.nda svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* ---------- Library tiles ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doc-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .25s, box-shadow .25s, border-color .25s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.doc-thumb { position: relative; height: 188px; background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); overflow: hidden; border-bottom: 1px solid var(--border); }
.doc-thumb .paper { position: absolute; left: 50%; top: 22px; width: 62%; transform: translateX(-50%) rotate(-2deg); border-radius: 6px; background: #fff; box-shadow: var(--paper-shadow); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.doc-thumb .paper img { width: 100%; height: auto; }
.doc-thumb .paper.back { transform: translateX(-46%) rotate(4deg); top: 30px; opacity: .65; }
.doc-card:hover .paper.front { transform: translateX(-50%) rotate(0deg) translateY(-4px); }
.doc-thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.doc-thumb .glyph svg { width: 84%; height: 82%; }
.doc-thumb.wf img { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); height: calc(100% + 30px); width: auto; border-radius: 10px; box-shadow: var(--paper-shadow); background: #fff; }
.doc-thumb.wf.wide img { width: 84%; height: auto; top: 22px; }
.doc-meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doc-meta .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-meta .proj-tag { font-size: 12px; color: var(--muted); font-weight: 500; }
.doc-meta b { font-size: 15.5px; line-height: 1.3; color: var(--text); }
.doc-meta p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.doc-meta .stat { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-ink); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 28px; }
.steps { list-style: none; display: grid; gap: 6px; align-content: start; }
.step-btn { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.step-btn:hover { background: var(--surface-2); }
.step-btn[aria-selected="true"] { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-md); }
.step-btn .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); transition: all .2s; }
.step-btn[aria-selected="true"] .n { background: var(--text); color: var(--bg); border-color: var(--text); }
.step-btn b { display: block; font-size: 16px; }
.step-btn small { display: block; font-size: 13px; color: var(--muted); }
.step-panel { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 30px; }
.step-panel[hidden] { display: none; }
.step-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 38px; letter-spacing: -0.02em; margin-bottom: 10px; }
.step-panel > p { color: var(--text-2); margin-bottom: 22px; }
.panel-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel-cols h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.panel-cols .list-check { margin-top: 0; }
.cadence { margin-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cad { padding: 18px 16px; border-right: 1px solid var(--border); position: relative; }
.cad:last-child { border-right: 0; }
.cad .when { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cad b { display: block; font-size: 15px; margin: 6px 0 4px; }
.cad p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- Experience ---------- */
.xp { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 40px; }
.xp-side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.xp-side .section-head { margin-bottom: 0; }
.timeline { list-style: none; display: grid; gap: 18px; }
.job { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 28px; }
.job-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.job-title { font-size: 20px; font-weight: 600; }
.job-title .at { color: var(--muted); font-weight: 500; }
.job-when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.job-meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.job-intro { color: var(--text-2); margin: 16px 0 18px; font-size: 15.5px; }
.resp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resp-item { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.resp-item h4 { font-size: 14.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.resp-item h4 svg { width: 17px; height: 17px; color: var(--accent); }
.resp-item ul { list-style: none; display: grid; gap: 6px; }
.resp-item li { font-size: 13.8px; color: var(--text-2); line-height: 1.5; padding-left: 14px; position: relative; }
.resp-item li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }
.award { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 15px 18px; border-radius: 14px; background: linear-gradient(120deg, var(--warm-soft), transparent 75%); border: 1px solid var(--border); }
.award-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--warm); color: #fff; flex: none; }
.award-icon svg { width: 19px; height: 19px; }
.award b { display: block; font-size: 15px; }
.award span { font-size: 13.5px; color: var(--muted); }

/* ---------- Toolkit ---------- */
.tk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tk-group { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 22px; }
.tk-group h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tk-group h3 .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.tk-group h3 .ic svg { width: 16px; height: 16px; }
.tk-group .tags { gap: 7px; }
.tk-wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr); gap: 24px; align-items: center; }
.tk-wide p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }

/* ---------- Recognition ---------- */
.rec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rec-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 24px; }
.rec-card .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rec-card h3 { font-size: 18px; margin: 10px 0 6px; }
.rec-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.rec-card.hl { background: linear-gradient(140deg, var(--warm-soft), var(--surface) 70%); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 64px); background: var(--text); color: var(--bg); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 64%); opacity: .5; filter: blur(8px); }
.contact > * { position: relative; }
.contact .eyebrow { color: var(--accent); }
:root:not([data-theme="dark"]) .contact .eyebrow { color: #7ce3d5; }
.contact h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.025em; margin-top: 14px; }
.contact p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin: 18px 0 0; max-width: 46ch; }
.contact-actions { display: grid; gap: 10px; justify-items: stretch; }
.contact-actions .btn { justify-content: space-between; height: 54px; padding: 0 22px; }
.contact .btn-primary { background: var(--bg); color: var(--text); }
.contact .btn-ghost { color: var(--bg); background: transparent; border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.contact .btn-ghost:hover { border-color: var(--bg); }

/* ---------- Footer ---------- */
.site-foot { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 300; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Case-study pages
   ========================================================================== */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.cs-hero { padding: 56px 0 36px; position: relative; }
.cs-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.03em; max-width: 17ch; margin: 22px 0 22px; }
.cs-hero h1 em { color: var(--accent-ink); }
.cs-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 64ch; line-height: 1.6; }
.cs-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.cs-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.disclaimer { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 14px 16px; border-radius: 14px; background: var(--warm-soft); color: var(--text-2); font-size: 14.5px; max-width: 820px; }
.disclaimer svg { width: 18px; height: 18px; flex: none; color: var(--warm); margin-top: 3px; }
.meta-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-top: 34px; overflow: hidden; }
.meta { padding: 18px 20px; border-right: 1px solid var(--border); }
.meta:last-child { border-right: 0; }
.meta dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta dd { margin: 7px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--text); }
.tldr { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.tldr > div { padding: 22px; border-right: 1px solid var(--border); }
.tldr > div:last-child { border-right: 0; background: var(--accent-soft); }
.tldr .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tldr p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }

.cs-cover { margin-top: 34px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.cs-cover img { width: 100%; height: auto; }
.cs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding: 64px 0 40px; }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.toc p { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); font-weight: 500; }
.toc .toc-cta { margin-top: 22px; display: grid; gap: 8px; }
.prose { min-width: 0; }
.prose > section { padding-bottom: 72px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin-bottom: 18px; font-weight: 600; }
.prose h2 .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; display: block; margin-bottom: 12px; letter-spacing: .1em; }
.prose h3 { font-size: 19px; margin: 30px 0 12px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.prose p strong, .prose li strong { color: var(--text); }
.prose .lede { font-size: 19px; color: var(--text); line-height: 1.6; }
.prose ul.list { list-style: none; display: grid; gap: 10px; margin: 6px 0 18px; }
.prose ul.list li { padding-left: 22px; position: relative; }
.prose ul.list li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.prose a.inline { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.callout .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.callout p { margin: 8px 0 0; font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 18px 0 26px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.up { color: var(--ok); font-weight: 600; }
td.res { font-weight: 600; color: var(--accent-ink); }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.phase { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; }
.phase .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.phase h4 { font-size: 16px; margin: 8px 0 6px; }
.phase p { font-size: 14px; margin: 0 0 12px; line-height: 1.55; }
.phase .tags { margin-top: auto; gap: 6px; }
.phase .tags button { cursor: pointer; text-align: left; border-radius: 10px; line-height: 1.35; padding-top: 5px; padding-bottom: 5px; height: auto; }
.decision { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.decision:last-child { border-bottom: 0; }
.decision .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.decision .ico svg { width: 20px; height: 20px; }
.decision h4 { font-size: 17px; margin-bottom: 4px; }
.decision p { margin: 0; font-size: 15.5px; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.outcome { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.outcome b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.outcome span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.doc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.pdf-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pdf-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pdf-card .pg { border-radius: 6px; overflow: hidden; box-shadow: var(--paper-shadow); background: #fff; aspect-ratio: 210 / 297; }
.pdf-card .pg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pdf-card b { display: block; font-size: 16px; color: var(--text); }
.pdf-card p { margin: 4px 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pdf-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.art { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.art:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.art b { display: block; font-size: 15px; color: var(--text); line-height: 1.3; }
.art span.d { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.gallery button { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: 10px; }
.gallery .shot { border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); height: 300px; overflow: hidden; display: grid; place-items: center; padding: 14px; transition: border-color .2s, box-shadow .2s; }
.gallery button:hover .shot { border-color: var(--accent); box-shadow: var(--shadow-md); }
.gallery button:focus-visible .shot { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery .shot img { max-height: 100%; width: auto; border-radius: 8px; box-shadow: var(--paper-shadow); background: #fff; }
.gallery .shot img { max-width: 100%; object-fit: contain; }
.gallery span { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.stack-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.stack-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.stack-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.stack-row dd { margin: 0; color: var(--text); font-weight: 500; line-height: 1.5; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px; margin: 24px 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.next-case:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.next-case .k { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.next-case b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -0.015em; margin-top: 6px; line-height: 1.1; }
.next-case .arrow-c { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: var(--text); color: var(--bg); flex: none; transition: transform .2s; }
.next-case:hover .arrow-c { transform: translateX(4px); }
.next-case .arrow-c svg { width: 20px; height: 20px; }

/* Worked example */
.calc { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; margin: 18px 0; }
.calc-head { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.calc-head b { font-size: 14.5px; }
.calc-body { padding: 18px; font-size: 15.5px; color: var(--text-2); line-height: 1.7; }
.calc-body .ids { margin-top: 12px; }

/* Traceability explorer */
.trace-x { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; margin: 18px 0; }
.trace-x-head { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.trace-x-head .chip { height: 32px; font-size: 13px; padding: 0 12px; }
.trace-x-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); height: 600px; }
.fr-list { border-right: 1px solid var(--border); overflow: auto; overscroll-behavior: contain; }
.chain { overflow: auto; overscroll-behavior: contain; }
.fr-list button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.fr-list button:hover { background: var(--surface-2); }
.fr-list button[aria-selected="true"] { background: var(--accent-soft); color: var(--text); }
.fr-list button b { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-ink); margin-bottom: 3px; font-weight: 600; }
.fr-list button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chain { padding: 22px; }
.chain .stmt { font-size: 15.5px; color: var(--text); line-height: 1.6; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.chain .stmt .id { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 6px; }
.links { display: grid; gap: 0; margin-top: 16px; position: relative; }
.link-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--border); align-items: start; }
.link-row:last-child { border-bottom: 0; }
.link-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.link-row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.idpill { font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.idpill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.trace-note { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); background: var(--surface-2); }

/* ==========================================================================
   Document viewer (dialog) + lightbox
   ========================================================================== */
dialog.viewer, dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; color: var(--text); }
dialog.viewer::backdrop, dialog.lightbox::backdrop { background: rgb(8 10 14 / 0.62); backdrop-filter: blur(4px); }
.vw { position: absolute; inset: 24px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.vw-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.vw-head .title { min-width: 0; flex: 1; }
.vw-head .title b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-head .title span { display: block; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-acts { display: flex; gap: 8px; flex: none; }
.vw-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.vw-toc { border-right: 1px solid var(--border); overflow: auto; padding: 18px 10px 18px 16px; background: var(--surface); }
.vw-toc p { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 6px; }
.vw-toc a { display: block; padding: 5px 8px; border-radius: 8px; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.vw-toc a.l3 { padding-left: 20px; font-size: 12.5px; color: var(--muted); }
.vw-toc a:hover { background: var(--surface-2); color: var(--text); }
.vw-body { overflow: auto; padding: 36px clamp(20px, 5vw, 64px) 64px; scroll-behavior: smooth; }
.vw-note { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.vw-note svg { width: 16px; height: 16px; flex: none; }
.md { max-width: 900px; margin: 0 auto; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.md h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; color: var(--text); margin: 0 0 22px; }
.md h2 { font-size: 23px; color: var(--text); margin: 40px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.md h3 { font-size: 18px; color: var(--text); margin: 28px 0 10px; scroll-margin-top: 16px; }
.md h4 { font-size: 16px; color: var(--text); margin: 22px 0 8px; }
.md p { margin: 0 0 14px; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 14px; }
.md li { margin: 4px 0; }
.md strong { color: var(--text); }
.md a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.md code { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.md pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow: auto; font-size: 13px; line-height: 1.55; }
.md pre code { border: 0; background: none; padding: 0; }
.md blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--text); }
.md blockquote p:last-child { margin: 0; }
.md table { display: block; overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; background: var(--surface); }
.md th { white-space: normal; }
.md td, .md th { padding: 10px 13px; }
.md tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.md img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.md .mermaid { margin: 18px 0 24px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow-x: auto; text-align: center; }
.md .mermaid svg { margin: 0 auto; max-width: 100%; height: auto; }
.md .api-group { margin: 22px 0 8px; font-size: 13px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.md .op { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 6px; }
.md .op .m { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 6px; }
.md .op .m.get { background: var(--info-soft); color: var(--info); } .md .op .m.post { background: var(--ok-soft); color: var(--ok); } .md .op .m.put, .md .op .m.patch { background: var(--warn-soft); color: var(--warn); } .md .op .m.delete { background: var(--warm-soft); color: var(--warm); }
.md .op code { font-size: 13px; }
.md .op small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.md .op .req { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.md .op .req span { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); }
.vw-loading { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.sk { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.sk.h { height: 34px; width: 60%; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.vw-error { max-width: 640px; margin: 40px auto; text-align: center; color: var(--text-2); }
.lb { position: absolute; inset: 24px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lb-head { display: flex; justify-content: space-between; align-items: center; color: #fff; gap: 12px; }
.lb-head b { font-size: 15px; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.lb-nav { display: flex; justify-content: center; gap: 10px; }
.lb .icon-btn { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .2); color: #fff; }

/* Library page */
.lib-hero { padding: 56px 0 28px; }
.lib-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 6.6vw, 86px); line-height: 1; letter-spacing: -0.03em; margin: 18px 0 18px; max-width: 16ch; }
.lib-hero h1 em { color: var(--accent-ink); }
.lib-hero p { color: var(--text-2); font-size: 18px; max-width: 62ch; }
.lib-bar { position: sticky; top: var(--nav-h); z-index: 20; padding: 14px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.lib-bar .container { display: grid; gap: 10px; }
.lib-bar .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lib-bar .row > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 72px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); margin-left: auto; min-width: 220px; }
.search svg { width: 16px; height: 16px; color: var(--muted); }
.search input { all: unset; font-size: 14px; flex: 1; color: var(--text); }
.lib-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.lib-count { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .menu-btn { display: inline-grid; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 59; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px var(--gutter) 20px; box-shadow: var(--shadow-lg); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .portrait { justify-self: center; width: min(100%, 420px); }
  .fc-1 { left: -24px; } .fc-2 { right: -18px; } .fc-3 { left: -18px; }
  .process, .xp, .more-projects { grid-template-columns: minmax(0, 1fr); }
  .xp-side { position: static; }
  .cs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meta:nth-child(3) { border-right: 0; }
  .meta:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .tk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-wide { grid-column: span 2; }
  .span-7, .span-5, .span-4, .span-8, .span-3 { grid-column: span 6; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vw-main { grid-template-columns: minmax(0, 1fr); }
  .vw-toc { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .section { padding-top: 84px; }
  .hero { padding-top: 40px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--border); margin-top: 16px; }
  .float-chip { display: none; }
  .fc-1 { display: flex; left: 10px; top: 10px; }
  .work-grid, .lib-grid, .rec, .resp, .panel-cols, .doc-row, .art-grid, .stack-table, .outcomes, .phase-grid, .tldr { grid-template-columns: minmax(0, 1fr); }
  .tldr > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .shot { height: 240px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span-7, .span-5, .span-4, .span-6, .span-8, .span-12, .span-3 { grid-column: auto; }
  .docstack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 10px; }
  .metric b { font-size: 22px; }
  .case-body { padding: 22px 20px 22px; }
  .cadence { grid-template-columns: minmax(0, 1fr); }
  .cad { border-right: 0; border-bottom: 1px solid var(--border); }
  .cad:last-child { border-bottom: 0; }
  .tk { grid-template-columns: minmax(0, 1fr); }
  .tk-wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .meta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .meta { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .meta:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .trace-x-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .fr-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); }
  .link-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vw { inset: 0; border-radius: 0; }
  .vw-head { flex-wrap: wrap; }
  .vw-acts { width: 100%; }
  .vw-body { padding: 24px 18px 48px; }
  .pdf-card { grid-template-columns: 84px minmax(0, 1fr); }
  .next-case b { font-size: 24px; }
  .search { margin-left: 0; width: 100%; }
  .lib-bar .row > span { display: none; }
  .lib-bar { position: static; }
  .proj summary { grid-template-columns: minmax(0, 1fr) auto; }
  .proj summary .status { grid-column: 1; justify-self: start; }
  .proj summary .chev { grid-row: 1 / span 2; grid-column: 2; }
  .nav .btn-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .nav, .backdrop, .toc, .contact::before, dialog { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Illustration palette (inline SVG) ---------- */
.v-bg { fill: var(--surface-2); }
.v-card { fill: var(--surface); stroke: var(--border); }
.v-soft { fill: var(--border); }
.v-accent { fill: var(--accent); }
.v-accent-soft { fill: var(--accent-soft); }
.v-accent-stroke { stroke: var(--accent); fill: none; }
.v-warm { fill: var(--warm); }
.v-warm-soft { fill: var(--warm-soft); }
.v-ok { fill: var(--ok); }
.v-label { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: .04em; }
.v-title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--text); }
.case-title em { color: var(--accent-ink); }

/* Featured case: wide visual on top, body in two columns */
.case-featured { grid-column: 1 / -1; display: flex; flex-direction: column; }
.case-featured .case-visual { aspect-ratio: 1600 / 720; border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
.case-featured .case-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px 44px; padding: 30px 34px 32px; }
.case-featured .case-body > .fb-left { display: flex; flex-direction: column; }
.case-featured .case-body > .fb-right { display: flex; flex-direction: column; justify-content: center; }
.case-featured .case-desc { margin-bottom: 0; }
@media (max-width: 1080px) { .case-featured .case-body { grid-template-columns: minmax(0, 1fr); } .case-featured .case-desc { margin-bottom: 16px; } }
.case:not(.case-featured) .case-body > .fb-right { margin-top: auto; }
.case:not(.case-featured) .case-body > .fb-left .case-desc { margin-bottom: 20px; }
.case-visual.is-svg { aspect-ratio: 720 / 324; }

.toc .toc-cta a.btn { display: inline-flex; padding: 0 13px; margin-left: 0; border: 1px solid var(--border-strong); color: var(--text); font-size: 13px; }
.toc .toc-cta a.btn:hover { border-color: var(--text); }

/* v2.1: compact laptop hero, portfolio brand */
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.hero { padding: clamp(28px, 5vh, 56px) 0 24px; }
.hero h1 { font-size: clamp(42px, 5.1vw, 76px); margin: 20px 0 18px; }
.hero-sub { font-size: clamp(16px, 1.25vw, 18.5px); }
.hero-cta { margin-top: 26px; }
.proof { margin-top: 30px; }
.proof-item { padding-top: 14px; }
.proof-item b { font-size: 34px; }
.portrait { width: min(100%, 400px); }
.portrait-caption { padding-top: 16px; }
@media (max-height: 820px) and (min-width: 1025px) {
  .hero h1 { font-size: clamp(40px, 4.6vw, 64px); }
  .portrait { width: min(100%, 340px); }
}

/* simplified home */
.proof-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proj { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 26px 28px 28px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.proj:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.proj-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -0.02em; }
.proj-desc { color: var(--text-2); font-size: 15.5px; margin: 12px 0 18px; }
.proj-tags { margin-top: auto; margin-bottom: 18px; }
.proj .case-actions { position: relative; z-index: 2; }
.proj-note { font-size: 13.5px; color: var(--muted); }
.proj-foot { margin-top: 24px; color: var(--muted); font-size: 14px; max-width: 80ch; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.how-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 24px; }
.how-card h3 { font-size: 18px; margin-bottom: 8px; }
.how-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--border); }
.skill { padding: 16px 0; border-bottom: 1px solid var(--border); }
.skill .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.skill p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
.job-list { margin: 16px 0 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 820px) { .proj-grid, .how, .skills { grid-template-columns: 1fr; } .proof-3 { grid-template-columns: 1fr; } .proof-3 .proof-item + .proof-item { border-left: 0; padding-left: 0; } }

.brand-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--border-strong); background: var(--surface-2); }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
