/* dominickp.com - the original design system (near-black canvas, electric green "power" accent,
   lavender/indigo brand, ultra-tight Inter display type, Perlin flow-field background), rebuilt static. */
:root {
  --canvas: #010102;
  --surface: #0f1011;
  --surface-2: #141516;
  --surface-3: #18191a;
  --border: #23252a;
  --border-strong: #34343a;
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-glow: rgba(94, 106, 210, 0.12);
  --power: #76b900;
  --power-hover: #8cd41a;
  --power-glow: rgba(118, 185, 0, 0.15);
  --text: #f7f8f8;
  --text-2: #a0a4ab;
  --text-3: #8a8f98;
  --muted: #62666d;
  --r: 12px;
  --gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--text); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent-glow); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd { font: inherit; }
:focus-visible { outline: 2px solid var(--power); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .42; }
body[data-bg="voronoi"] .bg { opacity: .5; }
body[data-bg="mandelbrot"] .bg { opacity: .55; }
body[data-bg="matrix"] .bg { opacity: .6; }
body[data-bg="life"] .bg { opacity: .5; }
body[data-bg="quantum"] .bg { opacity: .42; }
/* a soft vignette keeps text readable over every visualization */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(1, 1, 2, .55) 100%); }
main, .top, .foot { position: relative; z-index: 1; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--power); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 600; transition: transform .16s var(--ease); }
.skip:focus { transform: translateY(72px); }

/* ---------- gradients (the old site's signature) ---------- */
.grad-accent, .grad-power, .grad-fire { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.grad-accent { background-image: linear-gradient(135deg, #5e6ad2 0%, #828fff 50%, #a78bfa 100%); }
.grad-power { background-image: linear-gradient(135deg, #76b900 0%, #8cd41a 50%, #a4e02e 100%); }
.grad-fire { background-image: linear-gradient(135deg, #76b900 0%, #5e6ad2 50%, #828fff 100%); }

/* ---------- nav ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 64px;
  padding: 0 max(var(--gut), calc((100vw - 1200px) / 2));
  background: rgba(15, 16, 17, 0.72); border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.top.scrolled { border-bottom-color: var(--border); background: rgba(15, 16, 17, 0.92); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { padding: 8px 12px; font-size: 14px; color: var(--text-2); border-radius: 8px; transition: color .2s ease, background-color .2s ease; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.5rem;
  border-radius: 9999px; font: 500 .875rem/1 var(--sans); cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn.power { background: linear-gradient(135deg, #76b900, #8cd41a); color: #000; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; font-size: .8125rem; }
.btn.power:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(118, 185, 0, .25); }
.btn.outline { border: 1px solid var(--border); color: var(--text); background: rgba(1, 1, 2, .4); }
.btn.outline:hover { background: var(--surface); border-color: var(--accent); transform: translateY(-1px); }
.btn.sm { padding: .55rem 1.1rem; font-size: .75rem; }
.btn.lg { padding: 1rem 2rem; font-size: .9375rem; }

/* ---------- shared ---------- */
section { max-width: 1200px; margin: 0 auto; padding: 6rem var(--gut) 0; }
.head { display: grid; gap: 14px; margin-bottom: 40px; }
.head.center { text-align: center; justify-items: center; }
.micro { font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--power-hover); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; max-width: 22ch; }
.head.center h2 { max-width: 26ch; }
.sub { color: var(--text-2); font-size: 1.0625rem; max-width: 62ch; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(94, 106, 210, .08); border: 1px solid rgba(94, 106, 210, .25);
  font-size: .6875rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-hover);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--power); box-shadow: 0 0 10px var(--power); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(94, 106, 210, .3); box-shadow: 0 0 0 1px rgba(94, 106, 210, .15), 0 8px 32px rgba(0, 0, 0, .3); transform: translateY(-4px); }
}
.tag {
  display: inline-flex; align-items: center; justify-self: start; align-self: start; padding: .2rem .6rem; border-radius: 4px;
  background: rgba(94, 106, 210, .08); color: var(--text-2); font: 500 .6875rem/1.4 var(--mono);
  transition: background-color .2s ease, color .2s ease;
}
a.tag:hover { background: rgba(94, 106, 210, .15); color: var(--text); }
.tag.power { background: rgba(118, 185, 0, .08); color: var(--power-hover); }

/* Remote focus: the TV focus ring, in the brand green. */
[data-focus]:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--power), 0 0 28px rgba(118, 185, 0, .25); transform: scale(1.03); position: relative; z-index: 2; }
.btn[data-focus]:focus-visible { transform: scale(1.05); }

/* ---------- hero ---------- */
.hero { min-height: calc(100vh - 64px); display: grid; justify-items: center; align-content: center; text-align: center; gap: 22px; padding-top: 3rem; padding-bottom: 2rem; }
h1 { font-size: clamp(3rem, 9vw, 6.25rem); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.subtitle { font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.lede { color: var(--text-2); font-size: clamp(1rem, 1.5vw, 1.125rem); max-width: 58ch; }
.lede b { color: var(--text); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.remote-hint { display: flex; align-items: center; gap: 10px; font: .75rem/1.3 var(--mono); color: var(--muted); }
.keys { display: inline-flex; gap: 4px; }
.keys kbd { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--text-2); font: 11px/1 var(--mono); transition: background-color .12s ease, color .12s ease; }
.keys kbd.hit { background: var(--power); color: #000; border-color: var(--power); }
@media (hover: none) { .remote-hint { display: none; } }

/* ---------- terminal ---------- */
.term { background: rgba(15, 16, 17, .88); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-align: left; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); font: .75rem/1 var(--mono); color: var(--muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: .8125rem/1.75 var(--mono); color: var(--text-2); }
code .p { color: var(--power-hover); } code .o { color: var(--muted); } code .k { color: var(--text); }
code .s { color: #a4e02e; } code .n { color: var(--accent-hover); } code .b { color: var(--power-hover); }
code .c { color: var(--muted); } code .ok { color: var(--power-hover); }
.hero-term { width: min(520px, 100%); }
.hero-term pre { min-height: 6.6em; }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--power); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* ---------- TEGNA showcase ---------- */
.proj.lead { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; align-items: start; column-gap: 28px; border-color: rgba(118, 185, 0, .35); }
.proj.lead .mosaic { grid-row: 1 / 4; }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.mosaic img:first-child { grid-column: 1 / -1; border-radius: 10px; }
@media (max-width: 960px) { .proj.lead { grid-template-columns: 1fr; } .proj.lead .mosaic { grid-row: auto; } }

.work { padding-top: 4rem; }
.showcase { max-width: 1100px; margin: 0 auto; display: grid; gap: 18px; }
.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px #2a2c33, 0 0 0 10px #060607, 0 0 0 11px #26282e, 0 40px 120px -30px rgba(118, 185, 0, .35), 0 30px 70px -20px rgba(0, 0, 0, .85);
}
.stage .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 7s linear; }
.stage .slide.on { opacity: 1; transform: scale(1); }
.badge-live { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(1, 1, 2, .72); border: 1px solid rgba(118, 185, 0, .35); font: 600 .6875rem/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--power-hover); }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--power); box-shadow: 0 0 10px var(--power); animation: pulse 2s ease infinite; }
.slide-cap { display: grid; gap: 6px; text-align: center; justify-items: center; min-height: 6.4em; }
.cap-n { font: 500 .75rem/1 var(--mono); color: var(--muted); letter-spacing: 1px; }
.cap-n span { color: var(--power-hover); }
.slide-cap h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.025em; }
.slide-cap p:not(.cap-n) { color: var(--text-2); max-width: 70ch; font-size: .9375rem; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.thumb { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; opacity: .55; transition: opacity .3s ease, border-color .3s ease, transform .2s var(--ease); }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb[aria-selected="true"] { opacity: 1; border-color: rgba(118, 185, 0, .55); }
.thumb .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #76b900, #8cd41a); transform: scaleX(0); transform-origin: left; }
.thumb[aria-selected="true"] .bar { animation: progress var(--dwell, 5.5s) linear forwards; }
.showcase.paused .thumb[aria-selected="true"] .bar { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.showcase .ctas { justify-content: center; }
@media (max-width: 720px) { .thumbs { grid-template-columns: repeat(3, 1fr); } .badge-live { left: 10px; bottom: 10px; } }

/* ---------- live app TV ---------- */
.app-sec { padding-top: 4rem; }
.tv { margin: 0 auto; display: grid; gap: 14px; max-width: 1100px; }
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px #2a2c33, 0 0 0 10px #060607, 0 0 0 11px #26282e, 0 40px 120px -30px rgba(94, 106, 210, .45), 0 30px 70px -20px rgba(0, 0, 0, .85);
}
.tv-screen .ch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.tv-screen .ch.on { opacity: 1; visibility: visible; }
.tv-screen .ch.tuning { animation: tune .34s var(--ease) both; }
@keyframes tune { 0% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(2.2); } 55% { clip-path: inset(0); filter: brightness(1.3); } 100% { clip-path: inset(0); filter: none; } }
#app-frame { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; background: #000; }
.tv-power {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; cursor: pointer;
  background: radial-gradient(60% 60% at 50% 45%, rgba(94, 106, 210, .22), rgba(1, 1, 2, .96)), url(media/tizen-tour-poster.webp) center / cover;
  color: var(--text); font: inherit; transition: opacity .3s var(--ease);
}
.power-ring { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #76b900, #8cd41a); color: #000; box-shadow: 0 0 0 10px rgba(118, 185, 0, .14), 0 12px 40px rgba(118, 185, 0, .35); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tv-power:hover .power-ring { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(118, 185, 0, .16), 0 16px 50px rgba(118, 185, 0, .45); }
.tv-power:active .power-ring { transform: scale(.97); }
.power-text { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.power-sub { font: .75rem/1.4 var(--mono); color: var(--text-2); padding: 0 16px; }
.tv-power.off { opacity: 0; pointer-events: none; }
.tv-power[data-focus]:focus-visible { transform: none; box-shadow: inset 0 0 0 3px var(--power); }
.static {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.static.burst { animation: burst .26s linear both; }
@keyframes burst { 0% { opacity: .55; } 33% { transform: translate(-12px, 8px); } 66% { opacity: .35; transform: translate(10px, -6px); } 100% { opacity: 0; transform: none; } }
.tuner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tuner button {
  appearance: none; display: grid; gap: 4px; text-align: left; padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font: 600 15px/1.15 var(--sans); touch-action: manipulation;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.tuner button span { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tuner button:hover { border-color: var(--border-strong); color: var(--text); }
.tuner button:active { transform: scale(.97); }
.tuner button[aria-selected="true"] { border-color: rgba(118, 185, 0, .4); background: rgba(118, 185, 0, .05); color: var(--text); }
.tuner button[aria-selected="true"] span { color: var(--power-hover); }
.tv figcaption { color: var(--text-3); font-size: .875rem; text-align: center; min-height: 2.8em; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 28px; display: grid; gap: 10px; align-content: start; }
.stat b { font-size: clamp(2.6rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: .9375rem; }

/* ---------- rundown ---------- */
.run { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.run li { padding: 26px; display: grid; gap: 10px; align-content: start; }
.run h3, .tenets h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.run p, .tenets p, .stacks p, .tools p { color: var(--text-2); font-size: .9375rem; }

/* ---------- platforms ---------- */
.wiring { display: grid; grid-template-columns: minmax(0, 1.05fr) 110px minmax(0, 1fr); }
.cfg { align-self: center; }
.wires { width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--border-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; transition: stroke .2s ease; }
.wires path.hot { stroke: var(--power); }
@keyframes flow { to { stroke-dashoffset: -20; } }
.stacks { display: grid; gap: 12px; }
.stacks li { padding: 20px 22px; display: grid; gap: 8px; }
.stacks li.hot { border-color: rgba(118, 185, 0, .35); }
.stacks .plat, .tools .t-name { color: var(--text); }
.plat { font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; }
.server-line { margin-top: 20px; color: var(--text-2); font-size: .9375rem; }
.server-line a { color: var(--accent-hover); }

/* ---------- screens ---------- */
.row { margin-bottom: 40px; }
.row-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 36%, 480px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 12px; margin: -12px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.posters.wide { grid-auto-columns: clamp(280px, 70%, 860px); }
.posters li { scroll-snap-align: start; }
.poster { padding: 0; width: 100%; display: block; overflow: hidden; cursor: zoom-in; background: #000; }
.poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.wide .poster img { aspect-ratio: 1800 / 1334; }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tenets { display: grid; gap: 12px; }
.tenets li { padding: 22px; display: grid; gap: 6px; }

/* ---------- tools ---------- */
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tools li { padding: 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.t-name { font: 600 .875rem/1.2 var(--mono); }

/* ---------- path ---------- */
.timeline { display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 26px; }
.yr { font: .75rem/1.9 var(--mono); color: var(--power-hover); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.timeline h3 span { font-weight: 400; color: var(--text-3); margin-left: 8px; font-size: .9375rem; }
.timeline p { color: var(--text-2); font-size: .9375rem; margin-top: 4px; }
.certs { margin-top: 20px; font: .75rem/1.6 var(--mono); color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; justify-items: center; text-align: center; gap: 22px; padding-bottom: 7rem; }
.contact h2 { max-width: 20ch; font-size: clamp(2.2rem, 5.4vw, 4rem); }
.links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.links a { color: var(--text-2); font-size: .9375rem; transition: color .2s ease; }
.links a:hover { color: var(--text); }

.foot { border-top: 1px solid var(--border); background: rgba(1, 1, 2, .85); padding: 28px max(var(--gut), calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { color: var(--muted); font-size: .8125rem; }

/* ---------- viewer ---------- */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); width: 100%; color: var(--text); overflow: visible; }
.viewer::backdrop { background: rgba(1, 1, 2, .9); }
.viewer[open] { animation: open .26s var(--ease) both; }
@keyframes open { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.viewer img { width: 100%; border-radius: var(--r); border: 1px solid var(--border-strong); }
.viewer p { margin-top: 14px; color: var(--text-2); }
.close { position: absolute; right: 0; top: -52px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.hero > * { animation: enter .9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; } .hero > :nth-child(4) { animation-delay: .24s; }
.hero > :nth-child(5) { animation-delay: .32s; } .hero > :nth-child(6) { animation-delay: .4s; } .hero > :nth-child(7) { animation-delay: .48s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }


/* ---------- secondary pages ---------- */
.nav a[aria-current="page"] { color: var(--text); background: rgba(118, 185, 0, .08); box-shadow: inset 0 -2px 0 var(--power); }
.page-hero { display: grid; justify-items: center; text-align: center; gap: 16px; padding-top: 7rem; padding-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.page-hero > * { animation: enter .9s var(--ease) both; }
.page-hero > :nth-child(2) { animation-delay: .08s; } .page-hero > :nth-child(3) { animation-delay: .16s; }
section.tight { padding-top: 3rem; }
section.narrow { max-width: 860px; }
.filter { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 auto 28px; width: max-content; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(15, 16, 17, .7); font: .75rem/1 var(--mono); color: var(--muted); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proj { padding: 28px; display: grid; gap: 18px; align-content: start; }
.proj.feat { border-color: rgba(118, 185, 0, .22); background: linear-gradient(180deg, rgba(118, 185, 0, .045), transparent 40%), var(--surface); }
.proj header { display: grid; gap: 6px; }
.proj h2 { font-size: 1.5rem; max-width: none; }
.proj-sub { color: var(--accent-hover); font-size: .9375rem; }
.proj dl { margin: 0; display: grid; gap: 12px; }
.proj dl div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.proj dt { font: 500 .6875rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.proj dd { margin: 0; color: var(--text-2); font-size: .9375rem; }
.proj footer, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.numbers.four { grid-template-columns: repeat(4, 1fr); }
.infra, .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.infra li, .grid2 li { padding: 24px; display: grid; gap: 8px; align-content: start; }
.infra h3, .grid2 h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.infra p, .grid2 p { color: var(--text-2); font-size: .9375rem; }
.grid2 .tags { margin-top: 6px; }
.pip { width: 8px; height: 8px; border-radius: 2px; background: var(--power); box-shadow: 0 0 12px var(--power); }
.story { padding: 32px; display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.story p:not(.micro) { color: var(--text-2); font-size: 1.0625rem; line-height: 1.65; }
.story.center { text-align: center; justify-items: center; }
.posts { display: grid; gap: 14px; }
.post-card { display: grid; gap: 10px; padding: 26px 28px; position: relative; }
.post-card h2 { font-size: 1.375rem; max-width: none; }
.post-card p:not(.meta) { color: var(--text-2); font-size: .9375rem; }
.post-card .more { font: 500 .75rem/1 var(--mono); color: var(--power-hover); transition: transform .2s var(--ease); justify-self: start; }
.post-card:hover .more { transform: translateX(4px); }
.meta { display: flex; align-items: center; gap: 12px; font: .75rem/1 var(--mono); color: var(--muted); flex-wrap: wrap; }
.meta a { color: var(--accent-hover); }
.post { max-width: 760px; margin: 0 auto; padding: 7rem var(--gut) 5rem; display: grid; gap: 22px; }
.post h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.prose { background: rgba(15, 16, 17, .88); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); }
.prose p, .prose li { color: #c4c7cc; font-size: 1.0625rem; line-height: 1.75; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 1.4rem; max-width: none; margin: 1.6em 0 .6em; letter-spacing: -.025em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 1em 0; display: grid; gap: .4em; }
.prose strong { color: var(--text); }
.prose code { font: .9em var(--mono); background: rgba(94, 106, 210, .12); padding: .1em .35em; border-radius: 4px; color: var(--accent-hover); }
.post-end { padding-top: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; }
.quick { padding: 26px; display: grid; gap: 14px; align-content: start; }
.quick ul { display: grid; gap: 6px; }
.quick a { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; transition: background-color .2s ease; }
.quick a:hover { background: var(--surface-2); }
.ql { font: .6875rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.qv { font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.arrow { color: var(--muted); transition: transform .2s var(--ease), color .2s ease; }
.quick a:hover .arrow { transform: translateX(3px); color: var(--power-hover); }
.fixes { list-style: none; }
.fixes li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.fixes li:last-child { border-bottom: 0; }
.fixes li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 2px; background: var(--power); box-shadow: 0 0 10px rgba(118, 185, 0, .6); }
@media (max-width: 960px) { .projects, .infra, .grid2, .contact-grid { grid-template-columns: 1fr; } .numbers.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .proj dl div { grid-template-columns: 1fr; gap: 2px; } .page-hero, .post { padding-top: 4.5rem; } .quick a { grid-template-columns: 1fr auto; } .ql { grid-column: 1 / -1; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .tools { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 960px) {
  .run, .proof-grid { grid-template-columns: 1fr; }
  .wiring { grid-template-columns: 1fr; gap: 14px; }
  .wires { display: none; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .brand span:last-child { display: none; }
  section { padding-top: 4.5rem; }
  .hero { min-height: 0; padding-top: 3.5rem; }
  .numbers { gap: 10px; }
  .stat { padding: 20px 16px; }
  .stat span { font-size: .8125rem; }
  .posters { grid-auto-columns: 84%; }
  .posters.wide { grid-auto-columns: 92%; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 20px; }
  .timeline h3 span { display: block; margin: 2px 0 0; }
  .tuner button { padding: 10px; font-size: 13px; }
  .tuner button span { font-size: 9px; }
  pre { font-size: .72rem; padding: 14px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .wires path, .caret { animation: none; }
  .stage .slide { transition: opacity .4s ease; transform: none; }
  .hero > *, .page-hero > *, .viewer[open], .tv-screen .ch.tuning, .static.burst { animation: none; }
  .js .reveal { transform: none; }
  .js .reveal.in { transition: opacity .2s ease; transition-delay: 0s; }
  .card, .btn, [data-focus] { transition-duration: 1ms; }
}
