/* Shape rule: buttons and chips are pills, panels are 20px, image frames are 12px. One accent: burnt orange.
   Motion rule: everything that moves is gated on html.motion (set only when the visitor allows motion). */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f1f1f2;
  --text: #111113;
  --muted: #55555e;
  --line: #e4e4e7;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: rgb(194 65 12 / 0.12);
  --shadow: 0 1px 2px rgb(24 24 27 / 0.05), 0 24px 48px -24px rgb(24 24 27 / 0.22);
  --r-panel: 20px;
  --r-img: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --surface: #111114;
    --surface-2: #19191d;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: #26262b;
    --accent: #f0894f;
    --accent-ink: #1a0d05;
    --accent-soft: rgb(240 137 79 / 0.14);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 48px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #19191d;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #26262b;
  --accent: #f0894f;
  --accent-ink: #1a0d05;
  --accent-soft: rgb(240 137 79 / 0.14);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 48px -24px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Film grain: fixed, non-interactive, never on a scrolling layer. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--text); color: var(--bg);
  padding: 8px 14px; border-radius: 999px; z-index: 50;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Scroll progress: a hairline of accent across the top, driven by the scroll itself. */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  html.motion .progress {
    display: block; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40;
    background: var(--accent); transform-origin: 0 50%;
    animation: grow linear both; animation-timeline: scroll(root);
  }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Nav: transparent over the hero, frosted once you scroll (or always, without JS). */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
html.js .nav:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.nav-name { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; position: relative; transition: color 0.2s; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav nav a:hover { color: var(--text); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 500 13px var(--mono); cursor: pointer; transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip:active { transform: scale(0.96); }
.chip kbd { font-size: 12.5px; }
.chip-theme { width: 34px; padding: 0; justify-content: center; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 16px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 18px; }

/* Hero: name on the left, the live graph of my work bleeding off the right edge. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100dvh; display: flex; align-items: center;
  padding: 120px 0 72px;
}
.hero > .wrap { position: relative; z-index: 1; pointer-events: none; }
.hero-copy { max-width: 640px; pointer-events: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 28px;
}
.hero-name {
  font-size: clamp(3.4rem, 9vw, 8.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9;
  margin-left: -0.05em;
}
.hero-name .line { display: block; overflow: hidden; padding: 0.02em 0.06em 0.08em 0.05em; margin: 0 -0.06em 0 -0.05em; }
.hero-name .ch { display: inline-block; will-change: font-weight; }
.lede { margin-top: 32px; font-size: 21px; color: var(--muted); max-width: 30ch; line-height: 1.45; }
.ctas { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.hero-graph {
  position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; width: min(66vw, 1040px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%);
  mask-image: linear-gradient(90deg, transparent, #000 26%);
}
.hero-graph canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.graph-hint {
  position: absolute; right: 32px; bottom: 32px;
  font: 13px var(--mono); color: var(--muted); letter-spacing: 0.02em;
}

/* Stats: real numbers that count up once they are on screen. */
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 36px 28px 40px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 30ch; }
/* Days, struck out, gives way to Minutes. */
.stat-swap dd { display: grid; }
.stat-swap dd > span { grid-area: 1 / 1; }
.stat-swap .was { position: relative; width: max-content; color: var(--muted); font-size: 0.42em; letter-spacing: -0.02em; align-self: start; transform: translateY(-1.15em); }
.stat-swap .was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--accent); }
.stat-swap dd { padding-top: 0.5em; }
html.motion .stat-swap .was { font-size: 1em; transform: none; color: var(--text); transition: font-size 0.8s var(--ease) 1.1s, transform 0.8s var(--ease) 1.1s, color 0.6s 1.1s; }
html.motion .stat-swap .was::after { transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease) 0.5s; }
html.motion .stat-swap .now { opacity: 0; transform: translateY(40%); transition: opacity 0.8s var(--ease) 1.2s, transform 0.9s var(--ease) 1.2s; }
html.motion .stat-swap.in .was { font-size: 0.42em; transform: translateY(-1.15em); color: var(--muted); }
html.motion .stat-swap.in .was::after { transform: scaleX(1); }
html.motion .stat-swap.in .now { opacity: 1; transform: none; }

/* Marquee: the one horizontal strip on the page. */
.marquee {
  overflow: hidden; padding: 44px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  font-size: clamp(1.4rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; color: var(--muted);
  white-space: nowrap; padding: 0 0 0 36px; display: flex; align-items: center; gap: 36px; transition: color 0.3s;
}
.marquee li::after { content: "/"; color: var(--accent); font-weight: 300; }
.marquee li:hover { color: var(--text); }
html.motion .marquee-track { animation: marquee 48s linear infinite; }
html.motion .marquee:hover .marquee-track { animation-play-state: paused; }
html:not(.motion) .marquee ul[aria-hidden] { display: none; }
html:not(.motion) .marquee ul { flex-wrap: wrap; row-gap: 8px; }
html:not(.motion) .marquee-track { width: auto; padding: 0 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections and kinetic headings */
.section { padding-block: 140px 40px; }
.section-title, .section h2 {
  font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95;
  margin-bottom: 64px;
}
.sub-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.04em; margin: 160px 0 40px; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; }
html.motion .split .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 70ms); }
html.motion .split.in .w > span { transform: none; }

/* Generic reveal */
html.motion [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.motion [data-reveal].in { opacity: 1; transform: none; }

/* Screenshots: framed, wipe in from the bottom, tilt toward the cursor. */
.shot {
  display: block; position: relative; border-radius: var(--r-img); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}
.shot img { transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.035); }
.shot.tracking { transition: transform 0.12s linear; }
html.motion .shot img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
html.motion .shot.in img { clip-path: inset(0 0 0 0); }

/* Spotlight: the border and a soft wash light up under the cursor. */
.spot { position: relative; }
.spot::before, .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
}
.spot::before {
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot::after { background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 50%); }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* Featured work: cards pin and stack as you scroll; the one underneath recedes. */
.stack { display: grid; gap: 40px; }
.stack-card { --cover: 0; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow);
  padding: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center;
  transform-origin: 50% 0; transform: scale(calc(1 - var(--cover) * 0.05));
}
.panel > * { position: relative; z-index: 1; }
.stack-card .panel { isolation: isolate; }
.stack-card .panel .dim {
  position: absolute; inset: 0; border-radius: inherit; background: var(--bg); pointer-events: none; z-index: 2;
  opacity: calc(var(--cover) * 0.55);
}
@media (min-width: 1000px) and (min-height: 760px) {
  .stack { gap: 14vh; padding-bottom: 4vh; }
  .stack-card { position: sticky; top: calc(100px + var(--i) * 22px); }
}
.case-body { display: flex; flex-direction: column; gap: 14px; padding-right: 8px; }
.case-body h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; }
.case-body p, .tile-body p, .job li { color: var(--muted); }
.case-body p { font-size: 16px; }
.case-body .problem { color: var(--text); font-weight: 500; font-size: 18px; line-height: 1.45; }
.result {
  color: var(--text) !important; font-family: var(--mono); font-size: 14px; line-height: 1.5;
  padding-left: 14px; border-left: 2px solid var(--accent);
}
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.links a { color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.links a:hover { background-size: 100% 1px; }

/* More work: a five-cell bento (4+2, 2+4, full). */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2; display: flex; flex-direction: column; gap: 22px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
}
.tile > * { position: relative; z-index: 1; }
.tile-lg { grid-column: span 4; }
.tile-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.tile-body { display: flex; flex-direction: column; gap: 12px; padding: 0 8px 10px; }
.tile-full .tile-body { padding: 8px 16px 8px 0; }
.tile-body h4, .tile-head h4 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.tile-head { display: grid; gap: 4px; padding: 6px 8px 0; }
/* What kind of thing each project is, so the cards read as separate products. */
.kind { font: 12px var(--mono); color: var(--accent); letter-spacing: 0.01em; }
.case-body .kind { margin-bottom: -6px; }
.tile-body p { font-size: 15.5px; }

/* At work: a timeline whose line draws as you read down it. */
.timeline { position: relative; padding-left: 48px; view-timeline: --tl block; }
.timeline::before, .timeline-line { content: ""; position: absolute; left: 6px; top: 10px; bottom: 40px; width: 1px; background: var(--line); }
.timeline-line { background: var(--accent); transform-origin: 50% 0; }
@supports (animation-timeline: view()) {
  html.motion .timeline-line { animation: draw linear both; animation-timeline: --tl; animation-range: entry 30% cover 75%; }
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.job { position: relative; display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 56px; padding-bottom: 88px; }
.job::before {
  content: ""; position: absolute; left: -48px; top: 8px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--bg);
}
.job-head { align-self: start; position: sticky; top: 112px; }
.job-head h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 12px; }
.role { margin-top: 8px; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.role span { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.job ul { list-style: none; margin: 0; padding: 0; }
.job li { padding: 20px 0; font-size: 16.5px; border-top: 1px solid var(--line); }
.job li:first-child { border-top: 0; padding-top: 0; }
.job li strong { color: var(--text); font-weight: 600; }

/* How I build: the gate pipeline, with one change travelling through it. */
.how-lead { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; max-width: 30ch; }
.pipeline { position: relative; margin: 80px 0 96px; }
.pipeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.pipeline li { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; font-size: 15px; font-weight: 500; }
.node {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
  position: relative; z-index: 1;
}
.packet-track { position: absolute; left: 10%; right: 10%; top: 8px; height: 2px; background: var(--line); }
.packet { position: absolute; inset: 0; display: none; }
.packet::before {
  content: ""; position: absolute; left: -56px; top: -1px; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
html.motion .packet { display: block; animation: travel 5s linear infinite paused; }
html.motion .pipeline .node { animation: ping 5s infinite paused; animation-delay: calc(var(--k) * 1s); }
html.motion .pipeline.running .packet, html.motion .pipeline.running .node { animation-play-state: running; }
@keyframes travel {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  80% { transform: translateX(100%); opacity: 1; }
  90%, 100% { transform: translateX(100%); opacity: 0; }
}
/* Each node fires once per pass, in order. */
@keyframes ping {
  0% { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); }
  12% { box-shadow: 0 0 0 14px transparent; }
  40%, 100% { background: var(--surface); box-shadow: 0 0 0 0 transparent; }
}
.how-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.how-cols > p { color: var(--muted); font-size: 18px; }
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.proof li { padding: 18px 20px; border-radius: var(--r-img); background: var(--surface); border: 1px solid var(--line); font-size: 16px; color: var(--muted); }

/* Footer: the last thing on the page is the ask. */
.footer { margin-top: 160px; padding: 120px 0 64px; border-top: 1px solid var(--line); }
.footer-title { font-size: clamp(4rem, 15vw, 15rem); font-weight: 600; letter-spacing: -0.065em; line-height: 0.85; margin-left: -0.05em; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-top: 112px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.footer-links a { text-decoration: none; color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.footer-links a:hover { background-size: 100% 1px; }
.footer-meta { display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- Live project demos (demos.js). Until a demo mounts, its slot shows the screenshot. ---------- */
@property --s { syntax: "<number>"; inherits: true; initial-value: 0; }
.demo { position: relative; min-width: 0; border-radius: var(--r-img); }
.demo.live { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
  padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
/* Each frame names its own app: initials badge, app name, and what the demo is. */
.demo-app { display: flex; align-items: center; gap: 10px; min-width: 0; }
.demo-badge {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font: 600 11px var(--mono); letter-spacing: 0.02em;
}
.demo-id { display: grid; min-width: 0; line-height: 1.25; }
.demo-id b { font-size: 13px; font-weight: 600; }
.demo-id span { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 0; flex: 1; }
.demo-input {
  width: 100%; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 15px var(--sans); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-input::placeholder { color: var(--muted); }
.demo-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-chip, .seg button, .demo-btn {
  font: 500 12.5px var(--sans); border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.demo-chip { height: 28px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.demo-chip:hover { color: var(--text); border-color: var(--muted); }
.demo-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.demo-btn { height: 34px; padding: 0 16px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.demo-btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.demo-btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.demo-btn.ghost:hover { border-color: var(--muted); }
.demo-btn:active, .demo-chip:active, .seg button:active { transform: scale(0.96); }
.demo-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* MCPpedia */
.mp { min-height: 400px; }
.mp-status { font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.mp-status a { color: var(--accent); }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-list a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; border-radius: var(--r-img); text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.mp-list a:hover { border-color: var(--accent); transform: translateX(2px); }
html.motion .mp-list li { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i) * 60ms); }
html.motion .mp-list.in li { opacity: 1; transform: none; }
.mp-ring { position: relative; width: 40px; height: 40px; display: grid; place-items: center; transition: --s 1.2s var(--ease); }
.mp-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--s) * 3.6deg), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.mp-ring b { font: 600 13px var(--mono); font-variant-numeric: tabular-nums; }
.mp-main { display: grid; min-width: 0; }
.mp-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-tag { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-side { display: grid; justify-items: end; gap: 5px; }
.mp-bars { display: flex; width: 110px; height: 7px; gap: 1.5px; }
.mp-bars span { flex: 0 0 calc(var(--w) * 1% - 1.5px); border-radius: 2px; background: var(--accent); opacity: calc(1 - var(--j) * 0.17); }
.mp-meta { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.mp-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; font: 11px var(--mono); color: var(--muted); }
.mp-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--accent); vertical-align: -0.5px; }
.mp-key span:nth-child(2)::before { opacity: 0.83; }
.mp-key span:nth-child(3)::before { opacity: 0.66; }
.mp-key span:nth-child(4)::before { opacity: 0.49; }
.mp-key span:nth-child(5)::before { opacity: 0.32; }
.mp-skel { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-img); border: 1px solid var(--line); background: var(--surface); }
.mp-skel span { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)) 0 0 / 200% 100%; }
.mp-skel span + span { width: 60%; height: 8px; }
html.motion .mp-skel span { animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Photobari */
.pb { gap: 14px; }
.pb-stage { --split: 100%; position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-2); touch-action: pan-y; cursor: ew-resize; user-select: none; }
.pb-blur, .pb-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-full { clip-path: inset(0 0 0 var(--split)); opacity: 0; transition: opacity 0.4s; }
.pb-full.ready { opacity: 1; }
.pb-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 0; outline: none; }
.pb-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); }
.pb-handle span {
  position: absolute; top: 50%; left: 0; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / 0.3); transition: scale 0.2s var(--ease);
}
.pb-handle span::before, .pb-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; translate: 0 -50%; }
.pb-handle span::before { left: 6px; border-right-color: #333; }
.pb-handle span::after { right: 6px; border-left-color: #333; }
.pb-stage.dragging .pb-handle span, .pb-handle:focus-visible span { scale: 1.12; }
.pb-handle:focus-visible span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-tag { position: absolute; top: 10px; font: 11px var(--mono); color: #fff; background: rgb(0 0 0 / 0.45); padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.pb-tag-l { left: 10px; }
.pb-tag-r { right: 10px; opacity: 0; transition: opacity 0.4s; }
.pb-stage:has(.ready) .pb-tag-r { opacity: 1; }
.pb-info { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.pb-thumbs { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; }
.pb-thumb { width: 44px; height: 44px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); transition: border-color 0.2s, transform 0.2s var(--ease); }
.pb-thumb canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.pb-thumb[aria-pressed="true"] { border-color: var(--accent); }
.pb-thumb:hover { transform: scale(1.06); }
.pb-facts { display: grid; gap: 6px; min-width: 0; }
.pb-hash { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.pb-hash code { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.pb-exif { display: flex; flex-wrap: wrap; gap: 4px; }
.pb-exif span { font: 11px var(--mono); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pb-load { font-size: 12.5px; color: var(--muted); }

/* Pasa */
.pa-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pa-map { position: relative; aspect-ratio: 16 / 9; min-height: 220px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pa-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.pa-km { position: absolute; left: 10px; bottom: 8px; font: 12px var(--mono); color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 3px 8px; border-radius: 999px; }
.pa-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pa-days li { display: grid; gap: 1px; padding-left: 12px; border-left: 3px solid var(--c); font-size: 12.5px; color: var(--muted); }
.pa-days b { color: var(--text); font-weight: 600; font-size: 13px; }
.pa-hint { font-size: 12px; color: var(--muted); }

/* Chart Skills */
.cs { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cs-frame { position: relative; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 14px; overflow: hidden; }
.cs-chart { display: grid; }
.cs-render { grid-area: 1 / 1; }
html.motion .cs-render { animation: fade-up 0.5s var(--ease); }
html.motion .cs-render.out { animation: none; opacity: 0; transition: opacity 0.4s; }
.cs-render svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs-title { font: 600 15px var(--sans); fill: var(--text); }
.cs-axis { font: 10.5px var(--sans); fill: var(--muted); }
.cs-val { font: 600 10.5px var(--mono); fill: var(--text); }
.cs-flash { position: absolute; inset: 0; background: var(--accent); opacity: 0; pointer-events: none; }
html.motion .cs-flash.snap { animation: snap 0.5s ease-out; }
@keyframes snap { 0% { opacity: 0.25; } 100% { opacity: 0; } }
.cs-log { display: grid; gap: 10px; }
.cs-iter { font-size: 13px; font-weight: 500; }
.cs-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cs-checks li { font-size: 12.5px; padding: 6px 10px 6px 30px; border-radius: 8px; position: relative; background: var(--surface); border: 1px solid var(--line); }
.cs-checks li::before { position: absolute; left: 10px; top: 6px; font: 600 12.5px var(--mono); }
.cs-checks li.bad::before { content: "✗"; color: var(--accent); }
.cs-checks li.ok { color: var(--muted); }
.cs-checks li.ok::before { content: "✓"; color: var(--text); }
html.motion .cs-checks li { animation: fade-up 0.4s var(--ease); }

/* agent-org */
.ao-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.ao-flow li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; padding: 8px 10px 8px 26px; position: relative; border-radius: 8px; transition: background 0.3s; }
.ao-flow li::before { content: ""; position: absolute; left: 8px; top: 13px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: border-color 0.3s, background 0.3s; }
.ao-flow li::after { content: ""; position: absolute; left: 13px; top: 24px; bottom: -6px; width: 1px; background: var(--line); }
.ao-flow li:last-child::after { display: none; }
.ao-flow b { font-size: 13.5px; }
.ao-flow span { font-size: 12.5px; color: var(--muted); }
.ao-flow li.on { background: var(--accent-soft); }
.ao-flow li.on::before { border-color: var(--accent); background: var(--accent); }
html.motion .ao-flow li.on::before { animation: ao-pulse 1.2s ease-out infinite; }
.ao-flow li.on span { color: var(--text); }
.ao-flow li.done::before { border-color: var(--accent); }
.ao-flow li.warn { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ao-flow li.warn::before { border-color: var(--accent); background: var(--bg); }
@keyframes ao-pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 100% { box-shadow: 0 0 0 10px transparent; } }
.ao-score { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ao-score div { padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 2px; }
.ao-score dt { font: 10.5px var(--mono); color: var(--muted); }
.ao-score dd { margin: 0; font: 600 18px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html.motion .ao-score dd.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25); color: var(--accent); } }
.ao-log { font-size: 13px; color: var(--muted); min-height: 3em; }
.ao-actions, .at-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Admin Toolkit */
.at-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.at-list label {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "box name state" "box meta state";
  column-gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: background 0.3s, border-color 0.3s, opacity 0.4s;
}
.at-list label:hover { background: var(--surface); }
.at-list input { grid-area: box; accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.at-name { grid-area: name; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-meta { grid-area: meta; font: 11px var(--mono); color: var(--muted); }
.at-state { grid-area: state; font: 11px var(--mono); color: var(--accent); }
.at-list li.will label { background: var(--accent-soft); border-color: transparent; }
.at-list li.gone label { opacity: 0.55; }
.at-list li.gone .at-name { text-decoration: line-through; text-decoration-color: var(--accent); }
.at-plan { font-size: 13px; color: var(--text); min-height: 3em; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

/* Embed Playground */
.em { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: start; }
.em-controls { display: grid; gap: 14px; align-content: start; }
.em-opts { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.em-opts label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.em-opts input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.em-note { font-size: 12px; color: var(--muted); }
.em-code {
  margin: 0; padding: 14px 0; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font: 12px/1.65 var(--mono); overflow-x: auto; min-height: 340px; outline: none;
}
.em-code .ln { display: block; padding: 0 16px; white-space: pre; }
html.motion .em-code .ln.new { animation: line-in 1.6s var(--ease); }
@keyframes line-in { 0%, 30% { background: var(--accent-soft); box-shadow: inset 2px 0 var(--accent); } 100% { background: transparent; box-shadow: inset 2px 0 transparent; } }
.tk-k { color: var(--accent); }
.tk-s { color: color-mix(in srgb, var(--text) 62%, var(--accent)); }
.tk-p { color: var(--text); font-weight: 600; }
.tk-n { color: var(--accent); }
.tk-c { color: var(--muted); font-style: italic; }

/* mayaCharts */
.mc-chart { min-height: 300px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 8px; }
.mc-chart maya-chart {
  display: block; height: 290px;
  --maya-bg: var(--surface); --maya-fg: var(--text); --maya-fg-muted: var(--muted); --maya-accent: var(--accent);
  --maya-font: var(--sans); --maya-series-1: var(--accent); --maya-series-2: color-mix(in srgb, var(--accent) 50%, var(--text));
  --maya-series-3: var(--muted); --maya-series-4: color-mix(in srgb, var(--accent) 40%, var(--surface));
}
.mc-label { font-size: 12.5px; color: var(--muted); }
.mc-spec {
  width: 100%; resize: vertical; min-height: 150px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 12.5px/1.6 var(--mono); outline: none; tab-size: 2;
}
.mc-spec:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mc-err { font-size: 12.5px; color: var(--accent); min-height: 1.2em; }
.mc-size { font: 11.5px var(--mono); color: var(--muted); }

/* Command menu */
.palette {
  width: min(600px, calc(100vw - 32px)); margin: 14vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); color: var(--text);
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.45);
}
.palette::backdrop { background: rgb(9 9 11 / 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.motion .palette[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.palette input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text);
  font: 17px var(--sans); padding: 20px 22px; outline: none;
}
.palette input::placeholder { color: var(--muted); }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.palette li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 11px 14px; border-radius: var(--r-img); cursor: pointer; font-size: 15.5px;
}
.palette li small { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.palette li[aria-selected="true"] { background: var(--accent-soft); }
.palette li[aria-selected="true"] small { color: var(--accent); }
.palette .empty { color: var(--muted); cursor: default; }
.palette-foot { display: flex; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.palette-foot kbd { display: inline-block; min-width: 20px; padding: 1px 5px; margin-right: 3px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-size: 11.5px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 45; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14.5px; font-weight: 500;
  transition: opacity 0.3s, transform 0.4s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* A card flashes when the graph sends you to it. */
.ping-target .panel, .tile.ping-target { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent), var(--shadow); } 100% { box-shadow: var(--shadow); } }

/* Theme switch: the new theme spreads out from the button (view transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Hero entry: letters rise in order, then the rest follows. */
html.motion .hero-name .ch { transform: translateY(108%); animation: rise-in 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 38ms + 120ms); }
html.motion .hero .eyebrow, html.motion .lede, html.motion .ctas, html.motion .graph-hint { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
html.motion .hero .eyebrow { animation-delay: 60ms; }
html.motion .lede { animation-delay: 650ms; }
html.motion .ctas { animation-delay: 780ms; }
html.motion .graph-hint { animation-delay: 1600ms; }
@keyframes rise-in { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 1000px) {
  .panel, .tile-full { grid-template-columns: 1fr; gap: 28px; }
  .case-body { padding: 0 4px 8px; }
  .tile-full .tile-body { padding: 0 8px 10px; }
  .job { grid-template-columns: 1fr; gap: 24px; }
  .job-head { position: static; }
  .how-cols { grid-template-columns: 1fr; gap: 40px; }
  .cs, .em { grid-template-columns: 1fr; }
  .em-code { min-height: 0; }
  .stats dl { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* Phone and small tablet: the graph moves under the copy. */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; padding: 112px 0 32px; }
  .hero-graph {
    position: relative; width: 100%; height: 400px; margin-top: 24px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 85%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 85%, transparent);
  }
  .graph-hint { right: 0; left: 0; bottom: 12px; text-align: center; }
  .nav nav a[href="#how"] { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 14px; }
  .nav nav { gap: 16px; }
  .nav nav a[href="/resume.pdf"] { display: none; }
  .chip:not(.chip-theme) { display: none; }
  .lede { font-size: 19px; }
  .stat { padding: 28px 16px 30px; }
  .stat dt { font-size: 13.5px; }
  .section { padding-top: 96px; }
  .section-title, .section h2 { margin-bottom: 40px; }
  .panel { padding: 12px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .tile, .tile-lg, .tile-full { grid-column: 1 / -1; padding: 12px; }
  .demo-body { padding: 12px; }
  .mp-list a { grid-template-columns: 36px minmax(0, 1fr); }
  .mp-side { grid-column: 2; justify-items: start; }
  .pb-info { grid-template-columns: 1fr; }
  .pb-thumbs { grid-template-columns: repeat(4, 44px); }
  .ao-score { grid-template-columns: repeat(2, 1fr); }
  .pa-map { aspect-ratio: 1 / 1.05; }
  .mc-size { display: none; }
  .demo-id span { white-space: normal; }
  .pa-km { right: 10px; text-align: center; border-radius: 10px; }
  .sub-title { margin-top: 96px; }
  .timeline { padding-left: 32px; }
  .job::before { left: -32px; }
  .timeline::before, .timeline-line { left: 6px; }
  .pipeline { margin: 56px 0 64px; }
  .pipeline ol { grid-template-columns: 1fr; gap: 26px; }
  .pipeline li { flex-direction: row; text-align: left; }
  .packet-track { left: 8px; right: auto; top: 9px; bottom: 9px; width: 2px; height: auto; }
  html.motion .packet { display: none; }
  .footer { margin-top: 96px; padding-top: 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
}
@media (max-width: 380px) {
  .nav-name { font-size: 15px; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 14px; }
}
