/* ============ Tokens ============ */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fffdf8;
  --ink: #16140f;
  --ink-2: #4a463d;
  --ink-3: #8a8476;
  --line: #d9d3c4;
  --grid: rgba(22, 20, 15, 0.06);
  --accent: #ff5a1f;      /* signal orange */
  --accent-ink: #ffffff;
  --lime: #c8f04a;        /* highlighter */
  --blue: #3b5bff;
  --sticky: #ffe680;
  --sticky-2: #ffd1dc;
  --sticky-3: #cdeccf;
  --term-bg: #16140f;
  --term-ink: #ece7da;
  --shadow: 0 1px 0 rgba(22,20,15,.08), 0 10px 30px -12px rgba(22,20,15,.25);

  --f-display: "Instrument Serif", Georgia, serif;
  --f-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110e;
    --paper-2: #1b1915;
    --card: #1e1c17;
    --ink: #f1ece0;
    --ink-2: #bfb8a8;
    --ink-3: #8a8476;
    --line: #34302820;
    --line: #35312a;
    --grid: rgba(241, 236, 224, 0.05);
    --term-bg: #0a0907;
    --sticky: #e9cf5a;
    --sticky-2: #e7a9b9;
    --sticky-3: #9fcfa3;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --paper: #12110e;
  --paper-2: #1b1915;
  --card: #1e1c17;
  --ink: #f1ece0;
  --ink-2: #bfb8a8;
  --ink-3: #8a8476;
  --line: #35312a;
  --grid: rgba(241, 236, 224, 0.05);
  --term-bg: #0a0907;
  --sticky: #e9cf5a;
  --sticky-2: #e7a9b9;
  --sticky-3: #9fcfa3;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.7);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: #16140f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hand { font-family: var(--f-hand); }
.hl { background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 92%, transparent 92%); color: inherit; padding: 0 .1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px dashed var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-family: var(--f-mono); font-weight: 600; font-size: 15px; text-decoration: none; display: flex; align-items: center; gap: 2px; }
.logo .caret { display: inline-block; width: 8px; height: 16px; background: var(--accent); margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a.link { font-family: var(--f-mono); font-size: 13px; text-decoration: none; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); }
.nav a.link:hover { background: var(--ink); color: var(--paper); }
.theme-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.nav-right { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .nav ul .hide-sm { display: none; }
  .nav a.link { padding: 6px 7px; font-size: 12px; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { box-shadow: 3px 3px 0 var(--ink); }

/* ============ Hero ============ */
.hero { padding: clamp(48px, 9vw, 110px) 0 60px; position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 4px rgba(47,191,91,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,191,91,0); } }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 8vw, 104px); line-height: .95; letter-spacing: -.02em;
  margin: 22px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .swap { display: inline-block; position: relative; }
.hero p.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.annot { position: absolute; font-family: var(--f-hand); font-size: 24px; color: var(--accent); line-height: 1; pointer-events: none; white-space: nowrap; }
.annot svg { display: block; }
@media (max-width: 900px) { .annot { display: none; } }

/* Terminal */
.term {
  background: var(--term-bg); color: var(--term-ink);
  border-radius: 14px; box-shadow: var(--shadow);
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.65;
  overflow: hidden; transform: rotate(1.2deg);
  border: 1px solid rgba(255,255,255,.06);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a362e; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; color: #8a8476; font-size: 12px; }
.term-body { padding: 16px 18px 6px; min-height: 250px; max-height: 320px; overflow-y: auto; }
.term-body .q { color: var(--lime); }
.term-body .q::before { content: "› "; color: var(--accent); }
.term-body .a { color: var(--term-ink); margin: 2px 0 14px; white-space: pre-wrap; }
.term-body .a a { color: var(--lime); }
.term-body .cursor { display: inline-block; width: 8px; height: 15px; background: var(--term-ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.term-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.term-chips button {
  font: inherit; font-size: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--term-ink);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 11px;
}
.term-chips button:hover { background: var(--lime); color: #16140f; border-color: var(--lime); }
.term-chips button[disabled] { opacity: .45; cursor: default; background: transparent; color: var(--term-ink); }

/* Marquee */
.marquee { border-block: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1deg); margin: 30px -20px 0; }
.marquee-track { display: flex; gap: 36px; padding: 12px 0; width: max-content; animation: scroll 38s linear infinite; font-family: var(--f-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.marquee-track span::after { content: "✦"; margin-left: 36px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
section.block { padding: clamp(70px, 10vw, 120px) 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head .label { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.sec-head .label b { color: var(--accent); font-weight: 600; }
.sec-head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 5.4vw, 68px); line-height: 1; letter-spacing: -.015em; margin: 10px 0 0; }
.sec-head h2 em { color: var(--accent); }
.sec-head p { max-width: 40ch; color: var(--ink-2); margin: 0; }

/* Work cards */
.work-list { display: grid; gap: 28px; }
.work-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden;
  text-decoration: none; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.work-card:nth-child(2) { grid-template-columns: 1fr 1.15fr; }
.work-card:nth-child(2) .work-media { order: 2; }
.work-media { position: relative; min-height: 320px; background: #0d0f14; overflow: hidden; }
.work-media img, .work-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.work-body .meta { color: var(--ink-3); }
.work-body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 50px); line-height: 1; margin: 0; }
.work-body p { margin: 0; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { font-family: var(--f-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--paper); }
.work-body .go { font-family: var(--f-mono); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.work-body .go span { transition: transform .2s; }
.work-card:hover .go span { transform: translateX(5px); }
.sticker {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--f-hand); font-size: 22px; line-height: 1;
  background: var(--sticky); color: #16140f; padding: 8px 12px 6px; transform: rotate(-4deg);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}
@media (max-width: 820px) {
  .work-card, .work-card:nth-child(2) { grid-template-columns: 1fr; }
  .work-card:nth-child(2) .work-media { order: 0; }
  .work-media { min-height: 0; aspect-ratio: 16/9; }
}

/* Approach / principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; position: relative; }
.principle .n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.principle h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin: 10px 0 8px; line-height: 1.05; }
.principle p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Lab */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.lab-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.lab-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.lab-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { background: #dff5e4; color: #157a37; }
.status.building { background: #fff1c2; color: #8a6200; }
.status.idea { background: var(--paper-2); color: var(--ink-3); }
.lab-card h3 { font-size: 21px; font-weight: 600; margin: 4px 0 0; line-height: 1.2; letter-spacing: -.01em; }
.lab-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.lab-card .built { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.lab-card .thumb { height: 140px; border-radius: 9px; overflow: hidden; background: #0d0f14; margin-bottom: 4px; position: relative; }
.lab-card.placeholder { border-style: dashed; background: transparent; justify-content: center; align-items: center; text-align: center; min-height: 260px; color: var(--ink-3); }
.lab-card.placeholder .big { font-family: var(--f-hand); font-size: 30px; color: var(--ink-2); line-height: 1.1; }

/* mini globe thumb for Places */
.globe { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, #1f2a44, #0b0e16 70%); }
.globe .ball { width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4766, #121826 70%); box-shadow: inset -12px -10px 24px rgba(0,0,0,.6), 0 0 40px rgba(120,150,255,.15); position: relative; }
.globe .pin { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffcf5a; box-shadow: 0 0 10px #ffcf5a; animation: twinkle 2.4s infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
/* site thumb */
.site-thumb { position: absolute; inset: 0; background: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 14px 14px; padding: 16px; font-family: var(--f-display); font-size: 30px; line-height: .95; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; }
.site-thumb em { color: var(--accent); }
.site-thumb small { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); margin-bottom: 8px; }

/* Now board */
.now-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; padding: 10px 4px; }
.note {
  background: var(--sticky); color: #16140f; padding: 22px 20px 24px; min-height: 190px; position: relative;
  box-shadow: 0 12px 22px -12px rgba(0,0,0,.45);
  transform: rotate(var(--r, -1.5deg)); transition: transform .2s ease;
}
.note:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.note:nth-child(2) { background: var(--sticky-2); --r: 1.8deg; }
.note:nth-child(3) { background: var(--sticky-3); --r: -.8deg; }
.note:nth-child(4) { --r: 2.2deg; }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 86px; height: 24px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.05); }
.note .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.note .v { font-family: var(--f-hand); font-size: 29px; line-height: 1.1; margin-top: 10px; }
.now-updated { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 18px; }

/* Contact */
.contact { padding: clamp(80px, 12vw, 140px) 0 60px; text-align: center; }
.contact h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 10vw, 140px); line-height: .9; letter-spacing: -.025em; margin: 18px 0 30px; }
.contact h2 em { color: var(--accent); }
.contact .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.copy-mail { position: relative; }
.copy-mail .toast { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) rotate(-3deg); font-family: var(--f-hand); font-size: 22px; background: var(--lime); color: #16140f; padding: 2px 10px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.copy-mail.copied .toast { opacity: 1; }

/* Footer */
footer.site { border-top: 1px dashed var(--line); padding: 26px 0 34px; margin-top: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-family: var(--f-mono); font-size: 12px; }
footer.site a { color: var(--ink-2); }

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

/* ============ Case study pages ============ */
.case-hero { padding: clamp(40px, 7vw, 80px) 0 30px; }
.back { font-family: var(--f-mono); font-size: 13px; text-decoration: none; color: var(--ink-2); display: inline-flex; gap: 6px; margin-bottom: 28px; }
.back:hover { color: var(--accent); }
.case-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 9vw, 120px); line-height: .92; letter-spacing: -.025em; margin: 14px 0 20px; }
.case-hero .lede { font-size: clamp(18px, 2vw, 23px); max-width: 46ch; color: var(--ink-2); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--card); margin-top: 40px; overflow: hidden; }
.facts div { padding: 16px 18px; border-right: 1px dashed var(--line); }
.facts div:last-child { border-right: 0; }
.facts .mono { color: var(--ink-3); font-size: 11px; display: block; margin-bottom: 4px; }
.facts span:last-child { font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px dashed var(--line); } }
.cover { margin-top: 36px; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--ink); background: #0d0f14; }
.cover img { width: 100%; }

.case section { padding: clamp(60px, 8vw, 100px) 0 0; }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.kicker::after { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; }
.case h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.015em; margin: 14px 0 18px; max-width: 20ch; }
.case h2 em { color: var(--accent); }
.case .body { color: var(--ink-2); max-width: 62ch; font-size: 18px; }
.case .body p { margin: 0 0 1em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 900px) { .four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .two, .three { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .four { grid-template-columns: 1fr; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.box.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.box.ink .muted { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.box .n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.box h3 { font-size: 20px; font-weight: 600; margin: 8px 0 6px; line-height: 1.25; letter-spacing: -.01em; }
.box p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.box.ink p { color: inherit; opacity: .8; }
.muted { color: var(--ink-3); }
.quote-q { font-family: var(--f-display); font-style: italic; font-size: 30px; line-height: 1.1; margin: 8px 0 6px; }

.question {
  margin-top: 30px; background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden;
}
.question .mono { color: var(--lime); }
.question p { font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05; margin: 14px 0 0; }
.question p em { color: var(--accent); }

.video-frame { margin-top: 26px; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--ink); background: #000; box-shadow: var(--shadow); }
.video-frame video { width: 100%; }
.video-cap { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; }

.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 50px); align-items: start; margin-top: 30px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; margin: 12px 0 10px; }
.feature .tagline { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.feature .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.feature .steps div { border-top: 1.5px solid var(--ink); padding-top: 8px; font-size: 14.5px; }
.feature .steps b { display: block; font-weight: 600; }
.feature .steps .muted { font-size: 13.5px; }
.feature .foot { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 16px; }
.feature .video-frame { margin-top: 0; }

.flow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 14px; margin-top: 20px; }
.flow .from { text-decoration: line-through; color: var(--ink-3); }
.flow .to { background: var(--lime); color: #16140f; padding: 4px 10px; border-radius: 6px; }

.big-close { text-align: center; padding: clamp(70px, 10vw, 120px) 0 0; }
.big-close h2 { margin: 0 auto 16px; max-width: 18ch; }
.big-close p { color: var(--ink-2); max-width: 58ch; margin: 0 auto; }

.next {
  display: block; text-decoration: none; margin-top: clamp(60px, 9vw, 110px);
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 36px 0;
}
.next .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.next h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 5vw, 64px); margin: 6px 0 0; line-height: 1; }
.next .arrow { font-size: 48px; transition: transform .25s; }
.next:hover .arrow { transform: translateX(10px); color: var(--accent); }
.next:hover h3 { color: var(--accent); }

/* ============ Resume ============ */
.resume { padding: clamp(40px, 7vw, 80px) 0 0; }
.resume-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 70px); }
@media (max-width: 820px) { .resume-grid { grid-template-columns: 1fr; } }
.resume aside { position: sticky; top: 90px; align-self: start; }
@media (max-width: 820px) { .resume aside { position: static; } }
.resume h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 7vw, 84px); line-height: .95; margin: 10px 0 8px; }
.resume aside p { color: var(--ink-2); font-size: 15.5px; }
.resume aside .links { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 13px; margin: 18px 0 22px; }
.resume aside .links a { text-decoration: none; }
.resume aside .links a:hover { color: var(--accent); }
.r-sec { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px dashed var(--line); }
.r-sec:last-child { border-bottom: 0; }
.r-sec > .mono { color: var(--accent); display: block; margin-bottom: 18px; }
.job { display: grid; grid-template-columns: 150px 1fr; gap: 18px; margin-bottom: 28px; }
@media (max-width: 560px) { .job { grid-template-columns: 1fr; gap: 4px; } }
.job .when { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.job h3 { margin: 0; font-size: 21px; font-weight: 600; }
.job .role { color: var(--ink-2); margin: 0 0 8px; }
.job ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.job li { margin-bottom: 5px; }
.skill-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .skill-cols { grid-template-columns: 1fr; } }
.skill-cols h4 { margin: 0 0 10px; font-size: 15px; }
.skill-cols .tags { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
