:root {
  --bg: #0a0c0b;
  --panel: #111514;
  --panel-2: #151a18;
  --line: rgba(233, 237, 233, 0.1);
  --line-2: rgba(233, 237, 233, 0.2);
  --text: #e9ede9;
  --muted: #94a099;
  --dim: #5d6862;

  --architect: #ff6a4d;
  --pixel: #38d5ff;
  --scribe: #ff7ac6;
  --forge: #c8ff3d;
  --sentinel: #ffc53d;

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
code, time { font-family: var(--font-mono); }

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

::selection { background: rgba(200, 255, 61, 0.28); color: #fff; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ───────────── backdrop ───────────── */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(200, 255, 61, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(56, 213, 255, 0.05), transparent 60%),
    linear-gradient(rgba(233, 237, 233, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(233, 237, 233, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ───────────── topbar ───────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(16px, 3vw, 32px);
  background: rgba(10, 12, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--forge);
  color: #0a0c0b;
  font: 600 12px var(--font-mono);
  letter-spacing: -0.02em;
}

.brand-path { font: 400 12.5px var(--font-mono); color: var(--muted); white-space: nowrap; }
.brand-path i { font-style: normal; color: var(--dim); margin-inline: 4px; }

.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 6px 12px;
  border-radius: 999px;
  font: 400 12.5px var(--font-mono);
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.topnav a:hover { color: var(--text); background: rgba(233, 237, 233, 0.06); }

.session { display: flex; align-items: center; gap: 12px; }

.presence { display: flex; }
.presence li {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--c);
  color: #0a0c0b;
  font: 600 9.5px var(--font-mono);
}
.presence li:first-child { margin-left: 0; }

.session-text { font: 400 12px var(--font-mono); color: var(--muted); white-space: nowrap; }

.pill-btn {
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 12px var(--font-mono);
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pill-btn:hover { background: rgba(233, 237, 233, 0.08); border-color: rgba(233, 237, 233, 0.4); }
.pill-btn--solid { background: var(--text); color: #0a0c0b; border-color: var(--text); }
.pill-btn--solid:hover { background: #fff; color: #000; }
.pill-btn[hidden] { display: none; }

/* ───────────── shared section scaffolding ───────────── */

.section { padding-block: clamp(72px, 11vw, 140px) 0; position: relative; }

.zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: max(24px, calc((100% - 1180px) / 2));
  right: max(24px, calc((100% - 1180px) / 2));
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.hero::before { display: none; }

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }

.sec-idx {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font: 400 12.5px var(--font-mono);
  color: var(--muted);
}
.sec-idx span:first-child { color: var(--forge); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 3px 10px 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--forge); }
.status b { font-weight: 500; color: var(--forge); }
.status .s-building { display: none; color: var(--sentinel); }

.sec-title {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 400 11.5px var(--font-mono);
  color: var(--muted);
}
.tags a { color: var(--pixel); }
.tags a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────────── buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(233, 237, 233, 0.5); background: rgba(233, 237, 233, 0.05); }
.btn-primary { background: var(--forge); border-color: var(--forge); color: #0a0c0b; font-weight: 600; }
.btn-primary:hover { background: #d6ff64; border-color: #d6ff64; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ───────────── hero ───────────── */

.hero { padding-top: clamp(112px, 15vh, 168px); padding-bottom: 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 13px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.01em;
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forge); box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.16); }

.hero-name {
  margin: 18px 0 22px -0.04em;
  font-size: clamp(4rem, 12.4vw, 10.6rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.hero-tag {
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #cfd6d1;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-meta li {
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 400 12.5px var(--font-mono);
  color: var(--muted);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hero-side { display: grid; gap: 22px; justify-items: stretch; }

.slot {
  position: relative;
  width: min(232px, 60%);
  aspect-ratio: 200 / 196;
  border-radius: 20px;
  justify-self: end;
}

.frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--panel-2);
  box-shadow: 0 0 0 1px var(--line-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

.h {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--pixel);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.h-tl { top: -5px; left: -5px; }
.h-tr { top: -5px; right: -5px; }
.h-bl { bottom: -5px; left: -5px; }
.h-br { bottom: -5px; right: -5px; }
.frame:hover .h, .frame.is-held .h { opacity: 1; }
.frame.is-held { box-shadow: 0 0 0 1.5px var(--pixel), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }

.frame-dim {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--pixel);
  color: #06161b;
  font: 500 10.5px var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.frame:hover .frame-dim, .frame.is-held .frame-dim { opacity: 1; }

.roster { padding: 18px; border-radius: var(--radius); background: rgba(17, 21, 20, 0.8); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.roster-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 1rem; font-weight: 600; }
.roster-title span { font: 400 11px var(--font-mono); color: var(--dim); }

.roster-row {
  display: grid;
  grid-template-columns: 10px 112px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.roster-row:first-child { border-top: 0; }
.r-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.r-who { display: grid; line-height: 1.2; }
.r-who b { font-weight: 600; font-size: 0.95rem; color: var(--c); }
.r-who small { font: 400 10.5px var(--font-mono); color: var(--dim); }
.r-status { font: 400 11.5px var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; opacity: 0; transition: opacity 0.2s; }
.r-eq i { width: 2px; height: 100%; background: var(--c); border-radius: 1px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.r-eq i:nth-child(2) { animation-delay: -0.3s; }
.r-eq i:nth-child(3) { animation-delay: -0.6s; }
.roster-row[data-busy='1'] .r-eq { opacity: 1; }

@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

/* ───────────── about ───────────── */

.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.about-text { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.48; letter-spacing: -0.012em; color: #d9dfda; }

mark { background: none; color: inherit; border-radius: 4px; padding: 0 2px; margin: 0 -2px; transition: background 0.5s var(--ease), color 0.4s; }
mark.is-picked { background: rgba(255, 197, 61, 0.2); color: #fff; box-shadow: inset 0 -2px 0 var(--sentinel); }

.facts { padding: 8px 26px; }
.facts div { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.95rem; line-height: 1.4; }
.facts div:first-child { border-top: 0; }
.facts dt { font: 400 11.5px var(--font-mono); color: var(--dim); padding-top: 3px; }

/* ───────────── impact ───────────── */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { height: 100%; display: flex; flex-direction: column; padding: 28px 28px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-num { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 14px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.stat-src { margin-top: auto; padding-top: 22px; font: 400 11px var(--font-mono); color: var(--dim); }
.stats li:nth-child(1) .stat-num, .stats li:nth-child(4) .stat-num { color: var(--forge); }

/* ───────────── experience: git log ───────────── */

.log { position: relative; display: grid; gap: 22px; padding-left: 44px; }
.log::before { content: ''; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--forge), var(--line-2) 22%, var(--line-2)); border-radius: 2px; }

.log > li { position: relative; }
.node { position: absolute; left: -44px; top: 28px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.node::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--dim); }
.node--head { border-color: var(--forge); box-shadow: 0 0 0 5px rgba(200, 255, 61, 0.14); }
.node--head::after { background: var(--forge); }

.commit { padding: 28px clamp(20px, 3vw, 34px); }
.commit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.hash { padding: 2px 9px; border-radius: 6px; background: rgba(233, 237, 233, 0.07); font-size: 11.5px; color: var(--muted); }
.hash--head { background: rgba(200, 255, 61, 0.14); color: var(--forge); }
.commit-head time { font-size: 11.5px; color: var(--muted); }
.commit-role { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.commit-role span { font-weight: 400; color: var(--muted); font-size: 0.72em; letter-spacing: -0.01em; margin-left: 4px; }
.commit-where { margin-top: 4px; font: 400 12px var(--font-mono); color: var(--dim); }
.commit > p:not(.commit-where) { margin-top: 14px; max-width: 64ch; color: #cbd2cd; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.steps li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(233, 237, 233, 0.025); }
.steps b { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.steps span { font: 400 11px var(--font-mono); color: var(--dim); }
.steps li:last-child { border-color: rgba(200, 255, 61, 0.35); }

.diff { display: grid; gap: 8px; margin-top: 20px; }
.diff li { position: relative; padding-left: 22px; color: #cbd2cd; max-width: 70ch; line-height: 1.5; }
.diff li::before { content: '+'; position: absolute; left: 0; top: 0; font: 600 14px var(--font-mono); color: var(--forge); }

/* ───────────── projects ───────────── */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px var(--font-mono); color: var(--muted); transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: rgba(233, 237, 233, 0.45); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #0a0c0b; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.projects li[hidden] { display: none; }

.project { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s; }
.project:hover { transform: translateY(-4px); border-color: rgba(200, 255, 61, 0.45); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8); }

.shot { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #0d100f; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.project:hover .shot img { transform: scale(1.04); }

.project-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.project h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.project p { padding: 4px 18px 18px; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }

.badge { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 10.5px var(--font-mono); color: var(--dim); }
.badge--live { border-color: rgba(200, 255, 61, 0.45); color: var(--forge); }

/* ───────────── stack ───────────── */

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stack-card { height: 100%; padding: 24px 26px 26px; }
.stack-name { margin-bottom: 16px; font: 500 12px var(--font-mono); color: var(--dim); }
.stack-name::before { content: '"'; }
.stack-name::after { content: '": {'; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: 400 13px var(--font-mono); color: #cbd2cd; transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.chips li:hover { border-color: var(--forge); color: var(--forge); transform: translateY(-2px); }
.chips li.is-hot { background: rgba(200, 255, 61, 0.1); border-color: rgba(200, 255, 61, 0.4); color: var(--forge); }

/* ───────────── signal + education ───────────── */

.signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.signal { height: 100%; padding: 26px 28px; }
.signal-tag { font: 400 11.5px var(--font-mono); color: var(--pixel); margin-bottom: 10px; }
.signal h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.signal p:not(.signal-tag) { margin-top: 10px; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.signal-link { display: inline-block; margin: 14px 18px 0 0; font: 500 12.5px var(--font-mono); color: var(--forge); }
.signal-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.edu-card { height: 100%; padding: 22px 26px; }
.edu-card .signal-tag { color: var(--architect); }
.edu-card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.edu-card p:last-child { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }

/* ───────────── contact ───────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font: 400 11.5px var(--font-mono); color: var(--dim); }
.contact-list dd { font-size: 1.12rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-list a { transition: color 0.2s; }
.contact-list a:hover { color: var(--forge); }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); }
.form label { display: grid; gap: 8px; }
.form label span { font: 400 11.5px var(--font-mono); color: var(--dim); }
.form input, .form textarea { width: 100%; padding: 13px 16px; background: rgba(233, 237, 233, 0.03); border: 1px solid var(--line-2); border-radius: 12px; outline: none; resize: vertical; transition: border-color 0.2s, background 0.2s; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { border-color: var(--forge); background: rgba(200, 255, 61, 0.04); }
.form .btn { justify-self: start; }

.footer { margin-top: clamp(72px, 11vw, 140px); padding-block: 32px 96px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font: 400 12px var(--font-mono); color: var(--dim); }

/* ═════════════ the build: wireframe → built ═════════════ */

.js-build [data-block]:not(.is-built) {
  position: relative;
  border-radius: var(--radius);
  outline: 1px dashed rgba(233, 237, 233, 0.24);
  outline-offset: -1px;
  background: repeating-linear-gradient(135deg, rgba(233, 237, 233, 0.032) 0 7px, transparent 7px 14px);
}
.js-build [data-block]:not(.is-built) > * { visibility: hidden; opacity: 0; }
.js-build [data-block]:not(.is-built)::after {
  content: attr(data-name);
  position: absolute;
  left: 12px;
  top: 10px;
  font: 400 10.5px var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.02em;
}
.js-build .hero-meta[data-block]:not(.is-built)::after,
.js-build .hero-cta[data-block]:not(.is-built)::after { display: none; }
.js-build .hero-meta[data-block]:not(.is-built), .js-build .hero-cta[data-block]:not(.is-built) { min-height: 44px; border-radius: 999px; }

.js-build [data-block].is-built { border-radius: var(--radius); animation: ring 0.8s ease-out; }
.js-build [data-block].is-built > * { animation: build-in 0.42s var(--ease) both; animation-delay: calc(var(--i, 0) * 38ms); }

@keyframes build-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes ring {
  0% { box-shadow: 0 0 0 1.5px var(--agent, var(--forge)), 0 0 44px -8px var(--agent, var(--forge)); }
  100% { box-shadow: 0 0 0 1.5px transparent, 0 0 0 0 transparent; }
}

.js-build [data-type]:not(.is-typing):not(.is-typed),
.js-build [data-type]:not(.is-typing):not(.is-typed) * { color: transparent !important; }
.js-build [data-type]:not(.is-typing):not(.is-typed) {
  outline: 1px dashed rgba(233, 237, 233, 0.2);
  outline-offset: 5px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(233, 237, 233, 0.03) 0 7px, transparent 7px 14px);
}
.js-build [data-type].is-typing { outline: 1px solid color-mix(in srgb, var(--scribe) 55%, transparent); outline-offset: 5px; border-radius: 6px; }

.js-build .zone:not(.is-scaffolded)::before { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.js-build .zone.is-scaffolded::before { animation: rule 0.5s var(--ease) both; }
@keyframes rule { from { transform: scaleX(0); background: var(--architect); } to { transform: scaleX(1); background: var(--line); } }

.js-build .zone:not(.is-shipped) .status .s-shipped { display: none; }
.js-build .zone:not(.is-shipped) .status .s-building { display: inline; animation: pulse 1.2s ease-in-out infinite; }
.js-build .zone:not(.is-shipped) .status i { background: var(--sentinel); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.js-build .zone.is-shipped .status { animation: shipped 1.4s ease-out; }
@keyframes shipped { 0% { box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.35); } 100% { box-shadow: 0 0 0 0 transparent; } }

.js-build .project .shot img { clip-path: inset(0 0 100% 0); }
.js-build [data-block].is-built .shot img { clip-path: inset(0); transition: clip-path 0.5s var(--ease) 0.05s, transform 0.6s var(--ease); }
.js-build .shot::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pixel); box-shadow: 0 0 18px 2px var(--pixel); opacity: 0; }
.js-build [data-block].is-built .shot::after { animation: scan 0.5s var(--ease) 0.05s; }
@keyframes scan { 0% { top: 0; opacity: 1; } 99% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }

.js-build .frame:not(.is-dropped) {
  transform: translate(var(--dx, min(230px, 24vw)), var(--dy, -130px)) rotate(var(--rot, 7deg)) scale(var(--sc, 0.88));
  z-index: 3;
}
.js-build .slot:not(.is-filled) { outline: 1px dashed rgba(233, 237, 233, 0.28); outline-offset: -1px; background: repeating-linear-gradient(135deg, rgba(233, 237, 233, 0.04) 0 7px, transparent 7px 14px); }
.js-build .frame.is-dropped { animation: drop 0.4s var(--ease); }
.js-build .frame.is-dropped .h { animation: handles 2.4s ease-out; }
.js-build .frame.is-dropped .frame-dim { animation: handles 2.4s ease-out; }
@keyframes drop { 0% { transform: scale(1.05); } 100% { transform: none; } }
@keyframes handles { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

.is-instant *, .is-instant *::before, .is-instant *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }

/* ───────────── agents: cursors, selection boxes, log ───────────── */

.agents-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; display: none; }
.js-build .agents-layer { display: block; }

.agent { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.3s; will-change: transform; }
.agent.is-live { opacity: 1; }
.agent-ptr { display: block; width: 20px; height: 24px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55)); transform-origin: 3px 2.5px; transition: transform 0.15s linear; }
.agent-tag { position: absolute; left: 14px; top: 20px; display: flex; align-items: center; gap: 7px; max-width: 230px; padding: 3px 10px 3px 9px; border-radius: 999px 999px 999px 4px; background: var(--c); color: #0a0c0b; font: 500 11px var(--font-mono); white-space: nowrap; box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--c) 70%, transparent); }
.agent.is-flip .agent-tag { left: auto; right: -2px; border-radius: 999px 999px 4px 999px; }
.agent.is-flip .agent-say { left: auto; right: -2px; }
.agent-tag b { font-weight: 600; }
.agent-tag em { font-style: normal; opacity: 0.68; overflow: hidden; text-overflow: ellipsis; }

.agent-say { position: absolute; left: 14px; top: -28px; padding: 4px 11px; border-radius: 12px 12px 12px 3px; background: #0a0c0b; border: 1px solid var(--c); color: var(--c); font: 500 11.5px var(--font-mono); white-space: nowrap; opacity: 0; translate: 0 6px; transition: opacity 0.2s, translate 0.25s var(--ease); }
.agent-say.is-on { opacity: 1; translate: 0 0; }

.agent-ping { position: absolute; left: 3px; top: 2.5px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--c); border-radius: 50%; opacity: 0; }
.agent.is-click .agent-ping { animation: ping 0.6s ease-out; }
@keyframes ping { 0% { opacity: 1; transform: scale(0.4); } 100% { opacity: 0; transform: scale(4.2); } }

.sel { position: absolute; left: 0; top: 0; border: 1.5px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 7%, transparent); opacity: 0; transition: opacity 0.25s; will-change: transform; }
.sel.is-on { opacity: 1; }
.sel-tag { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; padding: 1px 8px; border-radius: 5px; background: var(--c); color: #0a0c0b; font: 500 10.5px var(--font-mono); white-space: nowrap; }
.sel i { position: absolute; width: 7px; height: 7px; background: var(--bg); border: 1.5px solid var(--c); border-radius: 2px; }
.sel i:nth-of-type(1) { left: -4.5px; top: -4.5px; }
.sel i:nth-of-type(2) { right: -4.5px; top: -4.5px; }
.sel i:nth-of-type(3) { left: -4.5px; bottom: -4.5px; }
.sel i:nth-of-type(4) { right: -4.5px; bottom: -4.5px; }

.buildlog { position: fixed; left: 20px; bottom: 20px; z-index: 80; width: 330px; background: rgba(10, 12, 11, 0.86); border: 1px solid var(--line-2); border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; display: none; font-family: var(--font-mono); }
.js-build .buildlog { display: block; }
.buildlog-head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 14px; font-size: 11.5px; color: var(--text); text-align: left; }
.buildlog-head em { margin-left: auto; font-style: normal; color: var(--dim); }
.buildlog-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forge); animation: pulse 1.6s ease-in-out infinite; }
.buildlog-list { display: grid; gap: 4px; padding: 8px 14px 12px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.4; }
.buildlog.is-collapsed .buildlog-list { display: none; }
.buildlog-list li { display: grid; grid-template-columns: 38px 62px minmax(0, 1fr); gap: 8px; animation: log-in 0.3s var(--ease); }
.buildlog-list time { color: var(--dim); }
.buildlog-list b { font-weight: 600; }
.buildlog-list span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes log-in { from { opacity: 0; transform: translateY(6px); } }

/* ───────────── polish: progress, spotlight, marquee ───────────── */

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 2px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--architect), var(--sentinel), var(--forge), var(--pixel), var(--scribe)); }

.topnav a.is-active { color: var(--text); background: rgba(233, 237, 233, 0.08); }

.card, .stat, .project {
  background-image: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgba(200, 255, 61, 0.075), transparent 65%);
}
.stat { position: relative; overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.25s; }
.stat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--forge), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat:hover::before { opacity: 1; }
.card.commit, .card.signal, .card.stack-card { transition: border-color 0.25s, transform 0.35s var(--ease); }
.card.commit:hover, .card.signal:hover, .card.stack-card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.btn-primary { box-shadow: 0 12px 34px -12px rgba(200, 255, 61, 0.6); }

.shot::before { content: ''; position: absolute; inset: auto 0 0 0; z-index: 1; height: 55%; background: linear-gradient(transparent, rgba(10, 12, 11, 0.6)); pointer-events: none; }

.marquee { margin-top: clamp(44px, 7vw, 84px); padding-block: 18px; overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track li { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; color: var(--muted); white-space: nowrap; }
.marquee-track li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--forge); opacity: 0.75; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── showcase + carousels ───────────── */

.stage {
  --accent: var(--forge);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 22px;
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 85% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(420px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%),
    var(--panel);
}
.sec-head + .stage { margin-top: 0; }
.stage--flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.78fr); }
.stage--flip .stage-info { order: 2; }
.stage--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.stage--wide .stage-info h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.stage-kicker { margin-bottom: 12px; font: 400 12px var(--font-mono); color: var(--accent); }
.stage-info h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.stage-info > p:not(.stage-kicker) { margin-top: 14px; max-width: 42ch; color: #c4ccc6; }
.stage-facts { display: flex; gap: 30px; margin-top: 26px; }
.stage-facts dt { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: var(--accent); }
.stage-facts dd { max-width: 17ch; margin-top: 6px; font: 400 11px var(--font-mono); line-height: 1.45; color: var(--dim); }

.carousel { position: relative; min-width: 0; }

.car-track { overflow-x: auto; padding-block: 6px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.car-track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.car-track.is-drag img, .car-track.is-drag a { pointer-events: none; }

.car-list { display: flex; gap: 18px; }
.car-slide { flex: 0 0 auto; scroll-snap-align: start; }

.carousel--phones .car-slide { width: clamp(176px, 17vw, 220px); }
.carousel--browser .car-slide { width: 100%; }
.carousel--cards .car-slide { width: clamp(270px, 33vw, 400px); }

.phone, .browser { margin: 0; }
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 618 / 1100;
  object-fit: cover;
  border: 5px solid #06080a;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 34px 50px -26px rgba(0, 0, 0, 0.95);
  transition: transform 0.45s var(--ease);
  -webkit-user-drag: none;
}
.phone:hover img { transform: translateY(-6px); }
.phone figcaption, .browser figcaption { font: 400 11.5px var(--font-mono); color: var(--muted); }
.phone figcaption { margin-top: 14px; }
.phone figcaption b, .browser figcaption b { margin-right: 7px; font-weight: 500; color: var(--accent); }

.browser { overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: #0a0d0c; box-shadow: 0 40px 70px -36px rgba(0, 0, 0, 0.95); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0f1312; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a302d; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 12px; padding: 2px 14px; border-radius: 6px; background: rgba(233, 237, 233, 0.06); font: 400 11px var(--font-mono); color: var(--dim); }
.browser-view { aspect-ratio: 16 / 9.4; overflow: hidden; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; -webkit-user-drag: none; }
.browser figcaption { padding: 11px 16px; border-top: 1px solid var(--line); background: #0f1312; }

.gcard { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(8, 10, 9, 0.72); transition: transform 0.35s var(--ease), border-color 0.25s; }
.gcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.gcard-img { aspect-ratio: 16 / 11; overflow: hidden; background: #0b0e0d; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); -webkit-user-drag: none; }
.gcard:hover .gcard-img img { transform: scale(1.04); }
.gcard.is-portrait .gcard-img { display: flex; justify-content: center; padding-top: 14px; background: radial-gradient(circle at 50% 0%, #1b281e, #0b0e0d 72%); }
.gcard.is-portrait .gcard-img img { width: auto; height: 100%; object-fit: contain; object-position: top; border-radius: 20px 20px 0 0; }
.gcard.is-portrait:hover .gcard-img img { transform: translateY(-4px); }
.gcard-body { padding: 16px 18px 20px; }
.gcard-body span { font: 400 11.5px var(--font-mono); color: var(--accent); }
.gcard-body h4 { margin-top: 4px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
.gcard-body h4 i { font-style: normal; color: var(--dim); transition: color 0.2s, transform 0.25s var(--ease); display: inline-block; }
.gcard:hover h4 i { color: var(--accent); transform: translate(2px, -2px); }
.gcard-body p { margin-top: 4px; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }

.car-ui { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.car-btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.car-btn svg { width: 18px; height: 18px; }
.car-btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0c0b; }
.car-btn:active { transform: scale(0.92); }
.car-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; }
.car-dots button { position: relative; width: 7px; height: 7px; border-radius: 999px; background: rgba(233, 237, 233, 0.22); transition: width 0.35s var(--ease), background 0.2s; }
.car-dots button::after { content: ''; position: absolute; inset: -9px -3px; }
.car-dots button.is-on { width: 22px; background: var(--accent); }
.car-count { margin-left: auto; font: 400 11.5px var(--font-mono); color: var(--dim); white-space: nowrap; }
.car-bar { position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0.65; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.carousel.is-paused .car-bar { animation: none !important; transform: scaleX(0); }
@keyframes car-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ───────────── responsive ───────────── */

@media (max-width: 900px) {
  .stage, .stage--flip { grid-template-columns: minmax(0, 1fr); }
  .stage--flip .stage-info { order: 0; }
}

@media (max-width: 1100px) {
  .brand-path { display: none; }
  .buildlog { display: none !important; }
  .stack-grid, .signal-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topnav { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .slot { justify-self: start; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .session-text, .presence { display: none; }
  .stats, .edu { grid-template-columns: 1fr; }
  .log { padding-left: 34px; gap: 16px; }
  .log::before { left: 5px; }
  .node { left: -34px; }
  .roster-row { grid-template-columns: 10px 96px minmax(0, 1fr) 14px; }
  .carousel--phones .car-slide { width: 58vw; }
  .carousel--cards .car-slide { width: 78vw; }
  .car-count { display: none; }
  .stage-facts { gap: 22px; }
  .agent-tag em { display: none; }
  .agent-tag { padding-right: 9px; }
  .contact-list div { grid-template-columns: 74px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
