/* Shashank Adari — portfolio. Near-black editorial look with a neon accent; light theme on the toggle. */

/* ================================================================== tokens */
:root {
  color-scheme: dark;
  --bg: #0a0a0e; --bg-2: #0f0f15; --surface: #15151d; --surface-2: #1c1c26; --surface-3: #262632;
  --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #f5f5f7; --ink-2: #b9b9c6; --muted: #8a8a9a; --axis-text: #8a8a9a; --grid: #1f1f29; --axis: #33333f;
  --accent: #c8ff3d; --accent-ink: #0a0a0e; --link: #d6ff6b; --accent-wash: rgba(200, 255, 61, 0.12);
  --blue: #7cc4ff; --violet: #b48bff; --teal: #4de3c1; --amber: #ffc857; --coral: #ff6b7a; --green: #6ee7a0;
  --gold: #f4cf5a; --silver: #c9d1dc; --bronze: #e39a62;
  --good: #6ee7a0; --good-wash: rgba(110, 231, 160, 0.14); --warn: #ffc857; --warn-wash: rgba(255, 200, 87, 0.14);
  --bad: #ff6b7a; --bad-wash: rgba(255, 107, 122, 0.14);
  --series: #7cc4ff; --heat-0: #1b1b25; --heat-1: #24413d; --heat-2: #2f7a62; --heat-3: #47b98e; --heat-4: #c8ff3d;
  --code-bg: #0f0f15; --term-bg: #060609;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Syne", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px; --maxw: 1160px; --radius: 6px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f6f6f8; --surface: #ffffff; --surface-2: #f3f3f6; --surface-3: #e9e9ef;
  --border: rgba(10, 10, 20, 0.10); --border-strong: rgba(10, 10, 20, 0.22);
  --ink: #0a0a0e; --ink-2: #3b3b4a; --muted: #6b6b7c; --axis-text: #6b6b7c; --grid: #e6e6ec; --axis: #c9c9d3;
  --accent: #1f6feb; --accent-ink: #ffffff; --link: #1a5fd0; --accent-wash: rgba(31, 111, 235, 0.10);
  --blue: #1f6feb; --violet: #7c3aed; --teal: #0d9488; --amber: #b45309; --coral: #dc2648; --green: #15803d;
  --gold: #a16207; --silver: #64748b; --bronze: #b45309;
  --good: #15803d; --good-wash: rgba(21, 128, 61, 0.10); --warn: #b45309; --warn-wash: rgba(180, 83, 9, 0.12);
  --bad: #dc2648; --bad-wash: rgba(220, 38, 72, 0.10);
  --series: #1f6feb; --heat-0: #e9e9ef; --heat-1: #bcd4f7; --heat-2: #7cabf0; --heat-3: #3b82f6; --heat-4: #1e40af;
  --code-bg: #f3f3f6; --term-bg: #0f0f15;
  --shadow: 0 16px 48px rgba(10, 10, 20, 0.10);
}

/* ================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
code, kbd, pre, .mono { font-family: var(--mono); font-feature-settings: "calt" 0; }
code { font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0.06em 0.38em; }
kbd { font-size: 0.82em; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 8px; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.tone-blue { --c: var(--blue); } .tone-violet { --c: var(--violet); } .tone-teal { --c: var(--teal); } .tone-amber { --c: var(--amber); }
.tone-coral { --c: var(--coral); } .tone-green { --c: var(--green); } .tone-gold { --c: var(--gold); } .tone-lime { --c: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ================================================================== type system */
.eyebrow, .kicker { display: block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.h { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.h .dot { color: var(--accent); }
.sec { padding: 112px 0; }
.sec--tight { padding: 64px 0; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.sec__head p { color: var(--ink-2); max-width: 56ch; font-size: 1.08rem; margin-top: 10px; }
.sec + .sec { border-top: 1px solid var(--border); }
.lede { color: var(--ink-2); font-size: 1.12rem; max-width: 62ch; }

/* ================================================================== buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: transparent; color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--sm { padding: 9px 14px; font-size: 0.86rem; }
.btn--icon { padding: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: 0.8rem; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.more .ico { color: var(--accent); transition: transform .15s; }
.more:hover .ico { transform: translateX(3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius); font-size: 0.86rem; line-height: 1.3; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border-strong); color: var(--ink-2); }
.pill .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.badge--good { background: var(--good-wash); color: var(--good); } .badge--warn { background: var(--warn-wash); color: var(--warn); }
.badge--bad { background: var(--bad-wash); color: var(--bad); } .badge--run { background: var(--accent-wash); color: var(--accent); } .badge--muted { background: var(--surface-2); color: var(--muted); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; display: inline-block; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.tag { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
a.tag:hover { color: var(--link); }
.kind { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border: 1px solid var(--border-strong); color: var(--ink-2); }
.kind--article { border-color: var(--accent); color: var(--accent); } .kind--note { border-color: var(--teal); color: var(--teal); }
.metric-chip { font-family: var(--mono); font-size: 0.74rem; padding: 3px 8px; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); white-space: nowrap; }
.ibadge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); flex: none; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.medal { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--muted); }
.medal--source { background: transparent; border: 2px solid var(--coral); } .medal--bronze { background: var(--bronze); } .medal--silver { background: var(--silver); } .medal--gold { background: var(--gold); } .medal--serving { background: var(--teal); }

/* ================================================================== topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-stuck { border-bottom-color: var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand span { white-space: nowrap; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__logo--light { display: none; }
:root[data-theme="light"] .brand__logo--dark { display: none; }
:root[data-theme="light"] .brand__logo--light { display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; color: var(--ink-2); font-size: 0.95rem; font-weight: 600; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover, .nav a.is-active, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a:hover::after, .nav a.is-active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav__cta { margin-left: 10px; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { border-color: var(--accent); color: var(--accent); }
.topbar__tools { display: flex; gap: 6px; }
.theme-ico--dark { display: none; }
:root[data-theme="light"] .theme-ico--dark { display: inline; } :root[data-theme="light"] .theme-ico--light { display: none; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .topbar__tools { margin-left: auto; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .nav__cta { margin: 10px 0 0; text-align: center; }
  .brand__logo { height: 36px; }
}

/* ================================================================== hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 560px; }
.hero__hello { margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5rem); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.hero__role { margin-top: 18px; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.hero__pitch { margin-top: 22px; color: var(--ink-2); font-size: 1.15rem; max-width: 50ch; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__status { margin-top: 26px; }
.hero__graph { position: relative; min-width: 0; height: clamp(360px, 42vw, 560px); }
.hero__graph svg { width: 100%; height: 100%; overflow: visible; }
.hero__hint { text-align: center; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-top: 10px; }
.hero__hint kbd { font-size: 0.7rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; } .hero__graph { height: clamp(360px, 95vw, 480px); } .hero { padding-top: 40px; } }
@media (max-width: 600px) { .g-tool text { display: none; } .g-domain text { font-size: 19px; } .g-me text { font-size: 16px; } .g-tool circle { r: 7; } }

/* graph */
.g-edge { stroke: var(--axis); stroke-width: 1.2; fill: none; }
.g-edge--main { stroke: var(--border-strong); stroke-width: 1.6; }
.g-node { cursor: grab; }
.g-node:active { cursor: grabbing; }
.g-tool circle { fill: var(--surface-3); stroke: var(--axis); stroke-width: 1.2; }
.g-tool text { fill: var(--muted); font-size: 11px; font-family: var(--mono); pointer-events: none; }
.g-tool:hover circle { fill: var(--ink); } .g-tool:hover text { fill: var(--ink); }
.g-domain circle { fill: color-mix(in srgb, var(--c) 28%, var(--surface)); stroke: var(--c); stroke-width: 2; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 55%, transparent)); transition: filter .2s; }
.g-domain:hover circle { fill: var(--c); filter: drop-shadow(0 0 22px var(--c)); }
.g-domain text { fill: var(--ink); font-size: 12.5px; font-weight: 700; font-family: var(--mono); pointer-events: none; }
.g-me circle.ring { fill: none; stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 50%, transparent)); }
.g-me text { fill: var(--muted); font-size: 11px; font-family: var(--mono); pointer-events: none; }
.g-faded { opacity: .22; transition: opacity .2s; }

/* intro film */
.sec--intro { padding-top: 56px; }
.intro__frame { position: relative; border-radius: 10px; overflow: hidden; background: #0d1b2a; border: 1px solid var(--border); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.intro__frame video, .intro__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__poster { display: none; }
.intro__btn { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,10,14,.55); color: #fff; font-size: 0.82rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); }
.intro__btn:hover { background: rgba(10,10,14,.8); border-color: var(--accent); }
.intro__btn .ico { display: none; } .intro__btn.is-paused .ico { display: inline-block; color: var(--accent); }
.intro__chip { position: absolute; left: 18px; bottom: 22px; z-index: 2; font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,.7); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .intro__frame video { display: none; } .intro__poster { display: block; } }
@media (max-width: 560px) { .intro__chip { display: none; } .intro__btn { right: 12px; bottom: 12px; } }

/* stats */
.stats { list-style: none; margin: 56px 0 0; padding: 36px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat b small { font-family: var(--font); font-size: .42em; font-weight: 700; color: var(--accent); margin-left: 6px; letter-spacing: 0; white-space: nowrap; }
.stat span { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); max-width: 26ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b small { display: block; margin: 6px 0 0; } }

/* ================================================================== about */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about__text { font-size: 1.12rem; color: var(--ink-2); display: grid; gap: 18px; }
.about__text strong { color: var(--ink); }
.about__aside { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.about__id { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.about__id img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.about__id b { display: block; font-family: var(--display); font-size: 1.05rem; }
.about__id span { display: block; font-size: 0.85rem; color: var(--muted); }
.facts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.facts li { border-top: 1px solid var(--border); padding-top: 12px; }
.facts .eyebrow { display: block; margin-bottom: 4px; font-size: 0.7rem; }
.facts b { font-weight: 700; }
.principles { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.principle p { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } .principles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== skills */
.tiles-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile-s { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tile-s b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--accent); white-space: nowrap; }
.tile-s b small { font-family: var(--font); font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.tile-s span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 1000px) { .tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.skill-list { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.skill-list h3 { font-size: 0.78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.skill-list .chip { cursor: default; }
@media (max-width: 760px) { .skill-list { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== projects */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.proj { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.proj__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; position: relative; transition: transform .25s; }
.proj:hover .proj__cover { transform: translateY(-4px); }
.proj__cover svg { width: 100%; height: 100%; }
.proj h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.proj__meta { font-size: 0.88rem; color: var(--muted); }
.proj__meta b { color: var(--ink-2); font-weight: 600; }
.proj__status { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: -4px; }
.proj .more { margin-top: 4px; }
@media (max-width: 960px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: minmax(0, 1fr); } }
.cover { font-family: var(--display); }
.cover .cv-kind { fill: rgba(255,255,255,.75); font-family: var(--mono); font-size: 13px; letter-spacing: .14em; }
.cover .cv-title { fill: #fff; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.cover .cv-deco { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.cover .cv-dots { fill: rgba(255,255,255,.35); }
.cover .cv-icon { stroke: rgba(255,255,255,.9); }
.early-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.early { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); border-top: 3px solid var(--c); }
.early h3 { font-size: 1.05rem; margin-bottom: 8px; }
.early p { font-size: 0.92rem; color: var(--ink-2); }
.early .mono { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .early-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== experience */
.xp-list { list-style: none; margin: 0; padding: 0; }
.xp { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--border); align-items: center; }
.xp:last-child { border-bottom: 1px solid var(--border); }
.xp__thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); padding: 10px; display: grid; place-items: center; transition: border-color .2s; }
.xp__btn:hover .xp__thumb { border-color: var(--accent); }
.xp__thumb svg { width: 100%; height: 100%; }
.xp__thumb .fe-flow, .xp__thumb .fe-lbl { display: none; }
.xp__period { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.xp h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-top: 10px; font-weight: 700; max-width: 30ch; }
.xp__org { margin-top: 8px; color: var(--ink-2); }
.xp__org b { color: var(--ink); }
.xp__changed { margin-top: 14px; color: var(--ink-2); max-width: 70ch; }
.xp__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.xp__btn { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 820px) { .xp { grid-template-columns: minmax(0, 1fr); gap: 20px; } .xp__thumb { max-width: 420px; } }

/* ================================================================== certificates */
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cert { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; gap: 16px; align-items: flex-start; }
.cert h3 { font-size: 1.02rem; line-height: 1.3; }
.cert p { font-size: 0.9rem; color: var(--ink-2); margin-top: 6px; }
.cert .mono { font-size: 0.74rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: minmax(0, 1fr); } }
.teach-row { margin-top: 48px; max-width: 860px; }
.teach { list-style: none; margin: 0; padding: 0; }
.teach li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.teach .when { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding-top: 3px; }
.teach b { display: block; }
.teach p { color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 560px) { .teach li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ================================================================== services */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.svc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 22px 0; border-top: 1px solid var(--border); }
.svc h3 { font-size: 1.1rem; }
.svc p { font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; }
.svc .mono { font-size: 0.72rem; color: var(--muted); margin-top: 8px; display: block; }
.svc .btn { white-space: nowrap; }
@media (max-width: 860px) { .svc-list { grid-template-columns: minmax(0, 1fr); } .svc { grid-template-columns: 44px minmax(0, 1fr); } .svc .btn { grid-column: 2; justify-self: start; } }
.process { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.process li { padding-top: 14px; border-top: 2px solid var(--border); }
.process li::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--accent); font-size: 0.8rem; }
.process h3 { font-size: 1rem; margin: 6px 0 6px; }
.process p { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq { display: grid; gap: 0; margin-top: 40px; }
.faq details { border-top: 1px solid var(--border); }
.faq summary { padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary .ico { color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-2); max-width: 72ch; }

/* ================================================================== contact */
.contact-sec { position: relative; overflow: hidden; }
.contact__mark { position: absolute; right: -60px; bottom: -40px; width: 460px; height: 460px; opacity: .06; pointer-events: none; }
.contact__mark--light { display: none; }
:root[data-theme="light"] .contact__mark--dark { display: none; }
:root[data-theme="light"] .contact__mark--light { display: block; opacity: .07; }
.contact-sec .wrap { position: relative; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact__big { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact__big a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.ways { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.ways a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink-2); font-weight: 600; }
.ways a:hover { color: var(--ink); text-decoration: none; }
.ways .ico { color: var(--accent); }
.form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); font-size: 0.98rem; color: var(--ink); font-weight: 400; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.job__status { font-size: 0.85rem; }
.job__status.is-ok { color: var(--good); } .job__status.is-error { color: var(--bad); }
.form__fine { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== dialogs */
.dlg { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.dlg__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
.dlg__head h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); max-width: 28ch; margin-top: 8px; }
.dlg__meta { color: var(--ink-2); font-size: 0.92rem; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.dlg__body { padding: 24px 28px 32px; display: grid; gap: 28px; }
.dlg__body h4 { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dlg__body p { color: var(--ink-2); max-width: 80ch; }
.plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plain h4 { color: var(--c); }
.plain p { font-size: 0.97rem; }
@media (max-width: 760px) { .plain { grid-template-columns: minmax(0, 1fr); } }
.dlg .fig__frame { padding: 18px; }
.tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: task; }
.task { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.task::before { counter-increment: task; content: counter(task, decimal-leading-zero); font-family: var(--mono); font-size: 0.76rem; color: var(--accent); padding-top: 4px; }
.task p { font-size: 0.95rem; color: var(--ink); }
.task .metric-chip { margin-top: 8px; display: inline-block; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.features li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.features .ico { color: var(--accent); margin-top: 4px; }
.sample { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--code-bg); border: 1px solid var(--border); font-size: 0.8rem; line-height: 1.55; white-space: pre-wrap; overflow-x: auto; color: var(--ink-2); }
.episodes { display: flex; flex-wrap: wrap; gap: 6px; }
.episodes span { font-size: 0.78rem; padding: 4px 10px; border: 1px solid var(--border); color: var(--ink-2); }
@media (max-width: 600px) { .dlg__head, .dlg__body { padding-left: 18px; padding-right: 18px; } }

/* ================================================================== figures (shared with dialogs) */
.fig { margin: 0; }
.fig__frame { padding: 22px; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.fig__frame .figsvg { min-width: var(--fig-minw, 680px); width: 100%; height: auto; }
.fig figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-2); }
.fig figcaption b { color: var(--ink); font-weight: 700; }
.fig-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.fig-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fig-legend i { width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--c) 30%, transparent); border: 1.5px solid var(--c); }
.figsvg text { font-family: var(--font); }
.fi { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fn--source, .fg--source, .lg--source { --c: var(--coral); } .fn--ingest, .fg--ingest, .lg--ingest { --c: var(--amber); }
.fn--compute, .fg--compute, .lg--compute { --c: var(--blue); } .fn--govern, .fg--govern, .lg--govern { --c: var(--violet); }
.fn--serve, .fg--serve, .lg--serve { --c: var(--teal); } .fn--quality, .fg--quality, .lg--quality { --c: var(--green); }
.fn--bronze { --c: var(--bronze); } .fn--silver { --c: var(--silver); } .fn--gold { --c: var(--gold); } .fn--metric { --c: var(--accent); }
.fn-box { fill: color-mix(in srgb, var(--c) 10%, var(--surface)); stroke: color-mix(in srgb, var(--c) 50%, transparent); stroke-width: 1.3; }
.fn-badge { fill: color-mix(in srgb, var(--c) 22%, transparent); } .fn-ico { stroke: var(--c); }
.fn-label { fill: var(--ink); font-size: 14px; font-weight: 600; } .fn-sub { fill: var(--ink-2); font-size: 12px; }
.fn--metric .fn-box { fill: color-mix(in srgb, var(--c) 14%, var(--surface)); stroke: var(--c); }
.fn-value { fill: var(--c); font-family: var(--display) !important; font-size: 24px; font-weight: 800; }
.fn[data-tip] { cursor: help; }
.fg-box { fill: color-mix(in srgb, var(--c) 5%, transparent); stroke: color-mix(in srgb, var(--c) 40%, transparent); stroke-width: 1.2; stroke-dasharray: 5 6; }
.fg-label { fill: var(--c); font-family: var(--mono) !important; font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.fe { fill: none; stroke: var(--axis); stroke-width: 2; } .fe--dash { stroke-dasharray: 4 5; } .fe-head { fill: var(--axis); }
.fe-flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 10; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.fe-lbl rect { fill: var(--surface-2); stroke: var(--border-strong); } .fe-lbl text { fill: var(--ink-2); font-family: var(--mono) !important; font-size: 11px; }
.ft { fill: var(--muted); font-size: 12px; }
.ol-ring { fill: none; stroke: var(--axis); stroke-width: 2; }
.ol-ring-flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 2 12; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.ol-head { fill: var(--axis-text); }
.ol-value { fill: var(--ink); font-family: var(--display) !important; font-size: 54px; font-weight: 800; } .ol-label { fill: var(--ink-2); font-size: 14px; }

/* ================================================================== secondary pages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; margin-top: 12px; }
.page-head .lede { margin-top: 18px; }
.page-head__row { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.crumbs { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.section { padding: 64px 0; }
.empty { padding: 28px; text-align: center; }
.fresh { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.86rem; margin-bottom: 18px; color: var(--ink-2); }
.fresh__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-wash); }
.fresh__dot.is-stale { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-wash); }
.tiles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 16px 18px; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--c, var(--accent)); }
.tile__label { font-size: 0.8rem; color: var(--ink-2); }
.tile__val { margin-top: 4px; font-family: var(--display); font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tile__unit { font-family: var(--font); font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.tile__sub { margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile__val { font-size: 1.45rem; } }
.viz { margin: 0; padding: 18px 20px 20px; min-width: 0; }
.viz__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; margin-bottom: 14px; }
.viz__head b { font-weight: 700; font-family: var(--display); font-size: 1.02rem; }
.viz--heat { margin-bottom: 18px; }
.viz__table { margin-top: 12px; max-height: 260px; overflow: auto; border: 1px solid var(--border); }
.viz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.viz-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .viz-grid { grid-template-columns: minmax(0, 1fr); } }
.heatmap { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.heatmap svg { max-width: none; }
.heatmap .cell:hover { stroke: var(--ink); stroke-width: 1.5; }
.l0 { fill: var(--heat-0); background: var(--heat-0); } .l1 { fill: var(--heat-1); background: var(--heat-1); } .l2 { fill: var(--heat-2); background: var(--heat-2); } .l3 { fill: var(--heat-3); background: var(--heat-3); } .l4 { fill: var(--heat-4); background: var(--heat-4); }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-family: var(--mono); font-size: 0.7rem; margin-top: 10px; color: var(--muted); }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.heat-legend span:first-child { margin-right: 4px; } .heat-legend span:last-child { margin-left: 4px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text, .heatmap text { font-family: var(--font); font-size: 11px; fill: var(--axis-text); }
.chart .grid { stroke: var(--grid); stroke-width: 1; } .chart .base { stroke: var(--axis); stroke-width: 1; }
.chart .bar { fill: var(--series); transition: opacity .15s; } .chart .bar-hit { fill: transparent; } .chart g.is-hover .bar { opacity: .8; }
.chart .val { fill: var(--ink); font-weight: 600; } .chart .label { fill: var(--ink-2); }
.chart-empty { font-size: 0.85rem; padding: 28px 0; text-align: center; color: var(--muted); }
.tip { position: fixed; z-index: 80; pointer-events: none; max-width: 280px; padding: 8px 11px; border-radius: 4px; font-size: 0.8rem; line-height: 1.45; background: var(--ink); color: var(--bg); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
.tip b { font-weight: 700; }
.stream { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
.stream__list { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.76rem; max-height: 360px; overflow: auto; flex: 1; }
.stream__foot { margin-top: 12px; font-size: 0.8rem; color: var(--muted); font-family: var(--font); }
.ev { display: grid; grid-template-columns: 38px 118px 92px minmax(0, 1fr); gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--border); align-items: baseline; }
.ev:last-child { border-bottom: 0; }
.ev--empty { display: block; padding: 18px 4px; font-family: var(--font); font-size: 0.9rem; color: var(--muted); }
.ev__off { color: var(--muted); } .ev__ts { color: var(--ink-2); white-space: nowrap; } .ev__type { color: var(--amber); }
.ev__body { min-width: 0; overflow-wrap: anywhere; }
.ev.is-new { animation: arrive 1.2s ease-out; }
@keyframes arrive { from { background: var(--accent-wash); } to { background: transparent; } }
@media (max-width: 560px) { .ev { grid-template-columns: auto minmax(0, 1fr); } .ev__off, .ev__type { display: none; } }
.jobruns { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gantt__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-family: var(--mono); font-size: 0.76rem; margin-bottom: 10px; }
.gantt__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.gantt__row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 0.74rem; }
.gantt__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-family: var(--mono); }
.gantt__track { position: relative; height: 12px; border-radius: 3px; background: var(--surface-2); }
.gantt__bar { position: absolute; top: 0; bottom: 0; left: 0; width: 0; min-width: 3px; border-radius: 3px; background: var(--accent); transition: width .6s ease, left .6s ease; }
.gantt__row[data-status="SKIPPED"] .gantt__bar { background: var(--axis); } .gantt__row[data-status="FAILED"] .gantt__bar { background: var(--bad); }
.gantt__ms { text-align: right; white-space: nowrap; font-family: var(--mono); color: var(--muted); }
@media (max-width: 560px) { .gantt__row { grid-template-columns: minmax(0, 1fr) 64px; } .gantt__track { grid-column: 1 / -1; grid-row: 2; } }
.dq summary { cursor: pointer; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.dq ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.dq__row { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 0.78rem; }
.dq__row .mono { font-size: 0.74rem; }
.dq__row.is-pass .dq__ico { color: var(--good); } .dq__row.is-warn .dq__ico { color: var(--warn); } .dq__row.is-error .dq__ico { color: var(--bad); }
.runs-table td, .runs-table th { padding: 6px 8px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th, .data-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-family: var(--mono); font-weight: 500; font-size: 0.74rem; color: var(--ink-2); white-space: nowrap; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.null { color: var(--muted); font-style: italic; font-family: var(--mono); font-size: 0.78rem; }
.data-table td.mono, .data-table td.num { font-family: var(--mono); font-size: 0.8rem; }
.data-table .th-type { display: block; font-size: 0.66rem; color: var(--muted); font-weight: 400; }
.repos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.repo { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px; color: var(--ink); }
.repo:hover { border-color: var(--ink); text-decoration: none; }
.repo__name { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo__desc { font-size: 0.88rem; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo__meta { display: flex; gap: 12px; font-family: var(--mono); font-size: 0.72rem; flex-wrap: wrap; color: var(--muted); }
.lang-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-right: 5px; }
@media (max-width: 900px) { .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .repos { grid-template-columns: minmax(0, 1fr); } }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .lab-grid { grid-template-columns: minmax(0, 1fr); } }
.sql { display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; }
.sql__schema { border-right: 1px solid var(--border); background: var(--bg-2); padding: 14px 10px; }
.sql__schema > p { font-size: 0.74rem; padding: 0 6px 8px; }
.sql__schema ul { list-style: none; margin: 0; padding: 0; }
.sql__tbl { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 7px; border: 0; background: transparent; border-radius: 4px; font-size: 0.8rem; color: var(--ink-2); cursor: pointer; text-align: left; }
.sql__tbl .ico { color: var(--accent); }
.sql__tbl:hover { background: var(--surface-2); color: var(--ink); }
.sql__main { min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sql__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.sql__editor-wrap { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--term-bg); overflow: hidden; }
.sql__editor-wrap:focus-within { border-color: var(--accent); }
.sql__editor { display: block; width: 100%; min-height: 128px; resize: vertical; border: 0; outline: 0; background: transparent; color: #e6e6ef; padding: 16px; font-size: 0.88rem; line-height: 1.65; tab-size: 2; }
.sql__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 16px; border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.sql__hint { font-size: 0.72rem; color: #8a8a9a; }
.sql__status { font-size: 0.78rem; color: var(--muted); min-height: 1.2em; }
.sql__status.is-error { color: var(--bad); white-space: pre-wrap; } .sql__status.is-ok { color: var(--good); }
.sql__result { max-height: 460px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.sql__result:empty { display: none; }
.sql__result pre { margin: 0; padding: 14px; font-size: 0.8rem; white-space: pre-wrap; }
.sql__result .data-table td { max-width: 520px; }
.lab-aside { display: grid; gap: 14px; }
.lab-aside .card { padding: 18px; }
.lab-aside h3 { font-size: 1rem; margin-bottom: 10px; }
.lab-aside p, .lab-aside li { font-size: 0.88rem; color: var(--ink-2); }
.lab-aside ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 760px) {
  .sql { grid-template-columns: minmax(0, 1fr); }
  .sql__schema { border-right: 0; border-bottom: 1px solid var(--border); padding: 10px; }
  .sql__schema ul { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .sql__tbl { white-space: nowrap; width: auto; border: 1px solid var(--border); }
  .sql__hint { display: none; }
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 0.95rem; color: var(--ink); }
.search--grow { flex: 1 1 260px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.seg__btn { border: 0; background: transparent; padding: 7px 14px; border-radius: 4px; font-size: 0.9rem; cursor: pointer; color: var(--ink-2); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tag-filter { margin-bottom: 24px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 26px 0; color: var(--ink); border-top: 1px solid var(--border); }
.post-row:last-child a { border-bottom: 1px solid var(--border); }
.post-row a:hover { text-decoration: none; }
.post-row a:hover .post-row__title { color: var(--accent); }
.post-row__date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 6px; }
.post-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-row__title { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; transition: color .15s; }
.post-row__summary { color: var(--ink-2); font-size: 0.98rem; max-width: 72ch; }
.post-row__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.8rem; margin-top: 3px; }
@media (max-width: 560px) { .post-row a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.post__grid { display: grid; grid-template-columns: minmax(0, 740px); justify-content: center; gap: 0 56px; }
.post--toc .post__grid { grid-template-columns: minmax(0, 740px) 220px; }
.post__toc { grid-column: 2; grid-row: 1; position: sticky; top: 96px; align-self: start; font-size: 0.88rem; border-left: 2px solid var(--border); padding-left: 16px; }
.post__toc > p { font-family: var(--mono); font-size: 0.72rem; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.post__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.post__toc ol ol { padding-left: 12px; margin-top: 6px; }
.post__toc a { color: var(--ink-2); } .post__toc a:hover, .post__toc a.is-active { color: var(--accent); }
.prose { grid-column: 1; grid-row: 1; min-width: 0; font-size: 1.1rem; line-height: 1.8; }
.post__foot { grid-column: 1; margin-top: 48px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1000px) { .post--toc .post__grid { grid-template-columns: minmax(0, 740px); } .post__toc { display: none; } }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 0.82rem; margin-top: 18px; color: var(--ink-2); }
.post-head__tags { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; } .prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h2 .anchor, .prose h3 .anchor { margin-left: 8px; color: var(--axis); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: 0.35em; } .prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 11px; text-align: left; } .prose th { background: var(--surface-2); font-weight: 600; }
.prose pre { position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copy-btn { position: absolute; top: 8px; right: 8px; padding: 3px 9px; font-family: var(--mono); font-size: 0.7rem; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.prose .admonition { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--accent-wash); border-radius: var(--radius); padding: 12px 16px; }
.prose .admonition-title { font-weight: 700; margin-bottom: 4px; }
.prose .footnote { font-size: 0.9rem; color: var(--ink-2); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; flex-wrap: wrap; }
.cta__title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.cta > div { flex: 1 1 320px; } .cta p { color: var(--ink-2); font-size: 0.95rem; }
.share { font-size: 0.85rem; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--ink); font-weight: 700; }
.pager__link:hover { border-color: var(--ink); text-decoration: none; }
.pager__link .mono { font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.pager__link--next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager__link--next { grid-column: 1; } }
.oops { text-align: center; padding: 60px 0; }
.oops h1 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 800; }
.oops p { color: var(--ink-2); font-size: 1.1rem; margin-top: 14px; }
.oops .hero__cta { justify-content: center; }

/* ================================================================== footer */
.foot { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.foot__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot__brand p { color: var(--ink-2); font-size: 0.92rem; margin-top: 12px; max-width: 40ch; }
.foot__links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot__links a { color: var(--ink-2); font-size: 0.92rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.foot__links a:hover { color: var(--ink); }
.foot__bar a { color: var(--ink-2); }
.foot__bar a:hover { color: var(--accent); }
.foot__bar { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

/* ================================================================== motion & print */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .heatmap .cell { stroke: CanvasText; stroke-width: .5; } .chart .bar, .gantt__bar { fill: Highlight; background: Highlight; } }
@media print { .topbar, .foot, .hero__cta, .sql, .form, .hero__graph { display: none !important; } body { background: #fff; color: #000; } }
