:root {
  --bg: #07080a;
  --bg-2: #0e1013;
  --line: #1e2227;
  --fg: #ece8df;
  --muted: #8a8f96;
  --acid: #c6ff3d;
  --ember: #ff5b2e;
  --display: "Unbounded", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --serif: "Instrument Serif", serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--acid); color: var(--bg); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acid); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; }
code { font-family: var(--mono); font-size: .9em; color: var(--acid); }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- BOOT ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  padding: var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-end;
  font-size: 13px; color: var(--muted);
}
.boot__log { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.boot__log p { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.boot__log .ok { color: var(--acid); }
.boot__log .warn { color: var(--ember); }
.boot__bar { height: 2px; background: var(--line); margin: 24px 0 12px; }
.boot__bar span { display: block; height: 100%; width: 0; background: var(--acid); box-shadow: 0 0 20px var(--acid); }
.boot__pct {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(72px, 18vw, 240px); line-height: .85;
  color: var(--fg); letter-spacing: -.04em;
}
.boot__skip { position: absolute; top: var(--gutter); right: var(--gutter); font-size: 12px; color: var(--muted); }
.boot__skip:hover { color: var(--acid); }
#boot.done { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

.curtain {
  position: fixed; left: 0; right: 0; height: 50vh; z-index: 99;
  background: var(--acid); transform: scaleY(0); pointer-events: none;
}
.curtain--top { top: 0; transform-origin: top; }
.curtain--bottom { bottom: 0; transform-origin: bottom; }
body.reveal .curtain { animation: curtain 1.1s var(--ease) forwards; }
@keyframes curtain {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  55% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
body.reveal .curtain--top { transform-origin: top; animation-name: curtainTop; }
body.reveal .curtain--bottom { animation-name: curtainBottom; }
@keyframes curtainTop { 0%{transform:scaleY(0);transform-origin:top} 45%,55%{transform:scaleY(1);transform-origin:top} 56%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes curtainBottom { 0%{transform:scaleY(0);transform-origin:bottom} 45%,55%{transform:scaleY(1);transform-origin:bottom} 56%{transform-origin:top} 100%{transform:scaleY(0);transform-origin:top} }

/* ---------- CHROME ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  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");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); }
  40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); }
}

/* snap brackets: corners trail the pointer, then lock around links/buttons */
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__box { position: absolute; top: 0; left: 0; width: 22px; height: 22px; will-change: transform, width, height; }
.cursor__box i {
  position: absolute; width: 8px; height: 8px; border: 0 solid var(--acid);
  filter: drop-shadow(0 0 4px rgba(198,255,61,.6));
  transition: width .3s var(--ease), height .3s var(--ease);
}
.cursor__box i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cursor__box i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cursor__box i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cursor__box i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.cursor.is-locked .cursor__box i { width: 12px; height: 12px; }
.cursor.is-down .cursor__box i { width: 4px; height: 4px; }
.cursor__dot { position: absolute; top: 0; left: 0; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--fg); transition: opacity .2s; }
.cursor.is-locked .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__dot { width: 2px; height: 18px; margin: -9px 0 0 -1px; background: var(--acid); }
.cursor__label {
  position: absolute; left: -2px; bottom: calc(100% + 6px); white-space: nowrap;
  font-size: 11px; line-height: 20px; padding: 0 8px; border-radius: 3px;
  background: var(--acid); color: var(--bg);
  opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .25s var(--ease);
}
.cursor__label::before { content: "> "; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 80; background: var(--acid); transform-origin: left; transform: scaleX(0); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;
  border: 1px solid transparent; border-radius: 0;
  transition: transform .5s var(--ease), top .5s var(--ease), left .5s var(--ease), right .5s var(--ease),
              padding .5s var(--ease), border-radius .5s var(--ease), background .4s, border-color .4s;
}
/* once you scroll, the nav condenses into a frosted pill so content can't bleed through it */
.nav.is-scrolled {
  mix-blend-mode: normal;
  top: 12px; left: var(--gutter); right: var(--gutter);
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(10, 12, 14, .72); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__links a { position: relative; color: inherit; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a.is-active { color: var(--acid); }
.nav__links a.is-active::after { transform: none;
}
.nav__logo { font-family: var(--display); font-weight: 900; font-size: 20px; }
.nav__logo span { color: var(--acid); animation: blink 1s steps(1) infinite; }
.nav__links { display: flex; gap: 28px; font-size: 13px; }
.nav__links a:hover { color: var(--acid); }
.nav__cmd { display: flex; gap: 4px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px; }
@media (max-width: 720px) { .nav__links { display: none; } }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, transparent 30%, var(--bg) 85%);
}
.hero__meta { position: absolute; top: 80px; font-size: 12px; color: var(--muted); z-index: 2; display: flex; align-items: center; gap: 8px; }
.hero__meta--tl { left: var(--gutter); }
.hero__meta--tr { right: var(--gutter); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 var(--acid); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,255,61,.6); } 100% { box-shadow: 0 0 0 12px rgba(198,255,61,0); } }
@media (max-width: 600px) { .hero__meta--tr { display: none; } }

.hero__content { position: relative; z-index: 2; pointer-events: none; }
.hero__content a { pointer-events: auto; }
.hero__kicker { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.hero__kicker .mono { color: var(--acid); }
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(36px, 14.5vw, 250px); line-height: .86; letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .word { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: left bottom; }
.word--outline { color: transparent; background: repeating-linear-gradient(180deg, var(--fg) 0 3px, transparent 3px 6px); -webkit-background-clip: text; background-clip: text; }
.word--serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acid); text-transform: none; letter-spacing: 0; }
body.ready .hero__title .word { animation: rise 1.2s var(--ease) forwards; }
body.ready .hero__title .line:nth-child(2) .word { animation-delay: .12s; }
body.ready .hero__title .line:nth-child(2) .word + .word { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }

.hero__role { font-size: clamp(20px, 3vw, 36px); margin: 28px 0 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; }
.hero__role .serif { color: var(--muted); }
.role { font-family: var(--display); font-weight: 500; color: var(--acid); }
.caret { color: var(--acid); animation: blink 1s steps(1) infinite; }

.reveal-up { opacity: 0; transform: translateY(24px); }
body.ready .reveal-up { animation: fadeUp 1s var(--ease) forwards; animation-delay: .5s; }
body.ready .hero__cta.reveal-up { animation-delay: .7s; }
body.ready .hero__scroll.reveal-up { animation-delay: 1s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border: 1px solid var(--fg); border-radius: 999px;
  font-size: 14px; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acid);
  transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--acid); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn small { font-size: 10px; opacity: .6; text-transform: uppercase; letter-spacing: .1em; }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--acid), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  background: var(--acid); color: var(--bg); transform: rotate(-2deg) scale(1.05); margin: 40px 0;
}
.marquee__track { display: flex; gap: 40px; width: max-content; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.5vw, 64px); text-transform: uppercase; letter-spacing: -.02em; will-change: transform; }
.marquee__track b { font-weight: 400; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(80px, 14vw, 180px) var(--gutter); position: relative; }
.section__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 40px; display: flex; gap: 8px; align-items: center; }
.section__label span { color: var(--acid); }
.section__label::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--line); }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 7vw, 104px); line-height: .95; letter-spacing: -.04em; margin-bottom: 64px; }
.section__title em { font-size: 1.08em; letter-spacing: -.02em; }

.about__lead { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 4vw, 56px); line-height: 1.15; letter-spacing: -.03em; max-width: 22ch; max-width: 1200px; }
.about__lead .w { display: inline-block; opacity: .12; transition: opacity .2s; }
.about__lead .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 80px; }
.stat { background: var(--bg); padding: 32px 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(48px, 6vw, 80px); line-height: 1; color: var(--acid); font-weight: 900; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- PROJECTS ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; perspective: 1400px; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }
.project {
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s;
  opacity: 0; translate: 0 60px;
}
.project.in { opacity: 1; translate: 0 0; transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease), translate .9s var(--ease); }
.project:hover { border-color: #3a4048; }
.project--feature { grid-column: 1 / -1; }
.project__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(198,255,61,.12), transparent 40%);
}
.project:hover .project__glow { opacity: 1; }
.project header { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.project__idx { color: var(--acid); }
.project h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 4.5vw, 64px); overflow-wrap: anywhere; letter-spacing: -.04em; line-height: 1; transform: translateZ(40px); }
.project--feature h3 { font-size: clamp(26px, 8.5vw, 120px); }
.project p { color: #c3c0b8; max-width: 62ch; }
.project p b, .project li b { color: var(--fg); }
.project__bullets { list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.project__bullets li { padding-left: 20px; position: relative; }
.project__bullets li::before { content: "→"; position: absolute; left: 0; color: var(--acid); }
.project footer { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-size: 11px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.project__link { font-size: 13px; border-bottom: 1px solid var(--acid); }
.project__link:hover { color: var(--acid); }
.project__links { display: flex; gap: 16px; }
.project__private { display: inline-flex; align-items: center; gap: 12px; }
.project__private i { font-style: normal; font-size: 11px; color: var(--muted); padding: 3px 9px; border: 1px dashed #3a4048; border-radius: 999px; }



/* daybook mini demo: photo -> calendar, then a clash gets caught */
.db { display: grid; grid-template-columns: 84px 20px minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 8px; align-items: center;
  background: #0a0c0e; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.db__photo { position: relative; height: 104px; border-radius: 6px; background: #ece8df; padding: 12px 10px 18px; display: grid; gap: 7px; align-content: start;
  transform: rotate(-5deg); box-shadow: 0 10px 24px rgba(0,0,0,.5); overflow: hidden; }
.db__photo span { height: 4px; border-radius: 2px; background: #3a3f46; opacity: .55; }
.db__photo span:nth-child(odd) { width: 70%; } .db__photo span:nth-child(3n) { width: 45%; }
.db__photo small { position: absolute; left: 8px; bottom: 4px; font-size: 8px; color: #6b7178; }
.db__scan { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(transparent, rgba(198,255,61,.55), transparent); opacity: 0; }
.db.is-scanning .db__scan { opacity: 1; animation: dbScan 1.1s ease-in-out 2; }
@keyframes dbScan { from { transform: translateY(-18px); } to { transform: translateY(104px); } }
.db__arrow { color: var(--muted); text-align: center; transition: color .3s; }
.db.is-scanning .db__arrow, .db.is-placing .db__arrow { color: var(--acid); animation: blink .6s steps(1) infinite; }
.db__cal { min-width: 0; }
.db__days { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.db__days b { font-weight: 400; text-align: center; }
.db__grid { position: relative; height: 112px; border: 1px solid var(--line); border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%),
              repeating-linear-gradient(0deg, transparent 0 13px, #14181c 13px 14px); }
.db__ev { position: absolute; left: calc(var(--d) * 20% + 2px); width: calc(20% - 4px); top: calc(var(--s) * 14px + 1px); height: calc(var(--l) * 14px - 2px);
  border-radius: 4px; background: color-mix(in srgb, var(--c) 22%, transparent); border-left: 2px solid var(--c); color: var(--fg);
  font-size: 9px; line-height: 1.2; padding: 2px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  opacity: 0; transform: translateX(-24px) scale(.7); transition: opacity .35s, transform .45s cubic-bezier(.2,1.5,.4,1), background .3s, border-color .3s; }
.db__ev.is-in { opacity: 1; transform: none; }
.db__ev--a { width: calc(12% - 3px); }
.db__ev--b { left: calc(3 * 20% + 9%); width: calc(11% - 2px); }
.db.is-clash .db__ev--a, .db.is-clash .db__ev--b { --c: var(--ember); background: rgba(255,91,46,.28); box-shadow: 0 0 0 1px var(--ember), 0 0 14px rgba(255,91,46,.45); animation: dbShake .4s; }
.db__status { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.db__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.db.is-scanning .db__status i, .db.is-placing .db__status i { background: var(--acid); animation: blink .6s steps(1) infinite; }
.db.is-clash .db__status { color: var(--fg); }
.db.is-clash .db__status i { background: var(--ember); }
.db.is-done .db__status { color: var(--acid); }
.db.is-done .db__status i { background: var(--acid); }
@keyframes dbShake { 20%,80% { transform: translateX(2px); } 40%,60% { transform: translateX(-3px); } }

.habit-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.habit-grid span { aspect-ratio: 1; border-radius: 3px; background: var(--line); transition: background .3s, transform .3s; }
.habit-grid span.on { background: var(--acid); }
.habit-grid span.mid { background: #6d8c22; }
.habit-grid span:hover { transform: scale(1.4); }

/* ---------- PLANNED PROJECT ---------- */
.project--planned { border-style: dashed; border-color: #2c3239; background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, #101316 14px 28px); }
.project__status { display: inline-flex; align-items: center; gap: 8px; color: #ffcc3d; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.project__status i { width: 7px; height: 7px; border-radius: 50%; background: #ffcc3d; animation: blink 1.4s steps(1) infinite; }
.roadmap { border: 1px solid var(--line); border-radius: 12px; background: #0a0c0e; padding: 14px 16px; display: grid; gap: 12px; }
.roadmap__bar { display: grid; gap: 6px; }
.roadmap__bar span { display: block; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.roadmap__bar span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: #ffcc3d; border-radius: inherit; }
.roadmap__bar small { color: var(--muted); font-size: 11px; }
.roadmap ol { list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--muted); counter-reset: step; }
.roadmap li { position: relative; padding-left: 28px; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 1px solid #3a4048; border-radius: 4px; }
.roadmap li.is-doing { color: var(--fg); }
.roadmap li.is-doing::before { border-color: #ffcc3d; background: linear-gradient(90deg, #ffcc3d 50%, transparent 50%); }

/* ---------- TIMELINE ---------- */
.timeline { list-style: none; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--acid); transition: width 1.2s var(--ease); }
.tl.in::before { width: 100%; }
@media (max-width: 720px) { .tl { grid-template-columns: 1fr; gap: 8px; } }
.tl__when { color: var(--acid); font-size: 13px; }
.tl h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.tl h3 span { color: var(--muted); font-weight: 300; }
.tl__sub { color: var(--muted); margin: 6px 0 18px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.tl ul { list-style: none; display: grid; gap: 10px; color: #c3c0b8; max-width: 80ch; }
.tl li { padding-left: 20px; position: relative; }
.tl li::before { content: "▹"; position: absolute; left: 0; color: var(--acid); }
.chips--wrap { margin-top: 8px; }
.tl__when small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.tl__now { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 20px; padding: 12px 14px; border: 1px solid #2a3320; border-radius: 10px; background: #0e120a; color: #c3c0b8; font-size: 13px; max-width: 80ch; }
.tl__now i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); transform: translateY(-1px); animation: pulse 2s infinite; }
.tl__now span { color: var(--acid); white-space: nowrap; }
.tl .chips--wrap { margin-top: 18px; }


/* ---------- STACK: interactive skill cards ---------- */
.tb__lede { margin: -36px 0 32px; color: var(--muted); font-size: 13px; }
.tb__lede b { color: var(--acid); font-weight: 400; }
.tb__lede span { color: var(--fg); }
.tb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tb { grid-template-columns: minmax(0, 1fr); } }
.tb__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2);
  opacity: 0; translate: 0 40px; transition: border-color .3s, opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: 0s, calc(var(--i) * 90ms), calc(var(--i) * 90ms);
}
.tb__card.in { opacity: 1; translate: 0 0; }
.tb__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(198,255,61,.10), transparent 45%);
}
.tb__card:hover { border-color: #343a41; }
.tb__card:hover::before { opacity: 1; }
.tb__card header { display: flex; justify-content: space-between; align-items: flex-start; }
.tb__glyph {
  font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.2px var(--acid); transition: color .35s, transform .5s var(--ease);
}
.tb__card:hover .tb__glyph { color: var(--acid); transform: rotate(-6deg) scale(1.06); }
.tb__idx { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.tb__card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.tb__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tb__chip {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #0b0d10;
  font-size: 13px; color: var(--fg); white-space: nowrap; outline: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .2s, color .2s, border-color .2s;
}
.tb__card.in .tb__chip { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms + var(--k) * 45ms + 200ms), calc(var(--i) * 90ms + var(--k) * 45ms + 200ms), 0s, 0s, 0s; }
.tb__card.is-peek .tb__chip { opacity: .35; transition-delay: 0s; }
.tb__card .tb__chip.is-on { opacity: 1; background: var(--acid); color: var(--bg); border-color: var(--acid); transform: translateY(-2px); transition-delay: 0s; }
.tb__chip:focus-visible { border-color: var(--acid); }
.tb__used {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; gap: 8px; min-height: 52px; font-size: 12px; line-height: 1.5; color: var(--muted);
}
.tb__used span { color: var(--acid); }
.tb__used em { font-family: var(--mono); font-style: normal; color: inherit; }
.tb__card.is-peek .tb__used { color: var(--fg); }
.tb__card.is-peek .tb__used em::before { content: "used in "; color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact__big {
  display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 11vw, 200px); line-height: .9; letter-spacing: -.055em;
}
.contact__big span { display: block; transition: transform .6s var(--ease); }
.contact__big em { text-transform: none; letter-spacing: -.02em; }
.contact__big:hover span:first-child { transform: translateX(-3%); }
.contact__big:hover span:last-child { transform: translateX(3%); }
.contact__row { display: flex; gap: 12px; flex-wrap: wrap; margin: 48px 0 64px; }

.term { max-width: 760px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0a0c0e; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term__bar i:nth-child(1) { background: var(--ember); } .term__bar i:nth-child(2) { background: #ffcc3d; } .term__bar i:nth-child(3) { background: var(--acid); }
.term__bar span { margin-left: auto; }
.term__out { padding: 16px; max-height: 260px; overflow-y: auto; font-size: 13px; display: grid; gap: 4px; }
.term__out b { color: var(--acid); font-weight: 400; }
.term__out .cmd { color: var(--muted); }
.term__in { display: flex; gap: 10px; padding: 0 16px 16px; font-size: 13px; }
.term__in span { color: var(--acid); }
.term__in input { flex: 1; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; caret-color: var(--acid); min-width: 0; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer a:hover { color: var(--acid); }

/* ---------- CMDK ---------- */
.cmdk { position: fixed; inset: 0; z-index: 85; background: rgba(7,8,10,.7); backdrop-filter: blur(8px); display: grid; place-items: start center; padding: 18vh 16px 0; }
.cmdk[hidden] { display: none; }
.cmdk__panel { width: min(560px, 100%); background: var(--bg-2); border: 1px solid #2c3137; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: pop .25s var(--ease); }
@keyframes pop { from { transform: scale(.96) translateY(-8px); opacity: 0; } }
.cmdk input { width: 100%; padding: 18px 20px; background: none; border: 0; border-bottom: 1px solid var(--line); outline: 0; color: var(--fg); font: inherit; font-size: 15px; }
.cmdk ul { list-style: none; max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk li { padding: 12px 14px; border-radius: 10px; display: flex; justify-content: space-between; font-size: 14px; }
.cmdk li small { color: var(--muted); }
.cmdk li.active { background: var(--acid); color: var(--bg); }
.cmdk li.active small { color: var(--bg); }

/* ---------- MATRIX / TOAST ---------- */
#matrix { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .6s; width: 100%; height: 100%; }
body.matrix #matrix { opacity: .55; }
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 120px; z-index: 96; background: var(--acid); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 13px; transition: translate .5s var(--ease); white-space: nowrap; }
.toast.show { translate: -50% 0; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- NARROW SCREENS ---------- */
.term__out { overflow-x: hidden; overflow-wrap: anywhere; }
.contact__row .btn { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .btn { padding: 14px 20px; font-size: 13px; }
  #copyEmail small { display: none; }
}

/* ---------- LATEST ON GITHUB (auto-updating) ---------- */
.gh { margin-top: 72px; }
.gh[hidden] { display: none; }
.gh__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.gh__live { display: inline-flex; align-items: center; gap: 8px; color: var(--acid); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.gh__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); animation: pulse 2s infinite; }
.gh__head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.04em; line-height: 1.05; margin-top: 8px; }
.gh__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .gh__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gh__list { grid-template-columns: minmax(0, 1fr); } }
.gh__card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 168px;
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease), border-color .25s, background .25s;
}
.gh__card.in { opacity: 1; translate: 0 0; }
.gh__card:hover { border-color: #3a4048; background: #12151a; }
.gh__card:hover .gh__name { color: var(--acid); }
.gh__top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.gh__name { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -.02em; color: var(--fg); overflow-wrap: anywhere; transition: color .25s; }
.gh__desc { color: #c3c0b8; font-size: 13px; line-height: 1.5; }
.gh__desc.is-empty { color: var(--muted); font-style: italic; }
.gh__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gh__tags i { font-style: normal; font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.gh__meta { margin-top: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.gh__lang { display: inline-flex; align-items: center; gap: 6px; }
.gh__lang b { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.gh__skel { min-height: 168px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--bg-2) 0%, #14181c 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: ghSkel 1.3s linear infinite; }
@keyframes ghSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* terminal: make it obvious you can type */
.term { cursor: text; transition: border-color .3s, box-shadow .3s; }
.term.is-focus { border-color: rgba(198,255,61,.55); box-shadow: 0 0 0 4px rgba(198,255,61,.08), 0 20px 60px -30px rgba(198,255,61,.35); }
.term__in { padding: 4px 16px 18px; }
.term__field { position: relative; flex: 1; display: flex; min-width: 0; }
.term__in input { padding: 2px 0; }
.term__in input::placeholder { color: #4d535a; }
.term:not(.is-focus) .term__in input:placeholder-shown { text-indent: 16px; }
.term__caret { position: absolute; left: 0; top: 50%; width: 8px; height: 15px; margin-top: -7.5px; background: var(--acid); animation: blink 1s steps(1) infinite; pointer-events: none; }
.term.is-focus .term__caret, .term__in input:not(:placeholder-shown) ~ .term__caret { display: none; }
.term__field:has(input:not(:placeholder-shown)) .term__caret { display: none; }
.term__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.term__chip, .term__out p .term__chip { font: inherit; font-size: 12px; color: var(--acid); padding: 3px 10px; border: 1px solid rgba(198,255,61,.3); border-radius: 6px; background: rgba(198,255,61,.05); margin: 0 6px 4px 0; transition: background .2s, color .2s; }
.term__chip:hover { background: var(--acid); color: var(--bg); }
