/* ===========================================================
   SREE RANGARAJ K — Brutalist Terminal Portfolio
   1.  Tokens + theme
   2.  Base, grid background, matrix layer
   3.  Brutalist primitives (borders, shadows, buttons, tags)
   4.  Navigation
   5.  Desk decor (hover notes, string, window slider)
   6.  Hero
   7.  About (ID cards + personality notes)
   8.  Education terminal
   9.  Toolkit
   10. Milestones log
   11. Projects
   12. Work in progress + Q&A
   13. Desk toys
   14. Certs
   15. Contact + footer
   16. Reveal animations
   17. Responsive
   =========================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #0a0e27;
  --bg-2: #070a1d;
  --surface: #1a1f3a;
  --surface-2: #151935;
  --line: #2a2e4a;
  --ink: #ffffff;
  --ink-soft: #a6adcf;
  --ink-dim: #6f77a0;

  --green: #00ff41;
  --blue: #00d9ff;
  --purple: #bb86fc;
  --red: #ff4d6d;
  --orange: #ff9f1c;
  --pink: #ff6b9d;
  --yellow: #ffe66d;

  --n-yellow: #ffe66d;
  --n-pink: #ff6b9d;
  --n-cyan: #00d9ff;
  --n-lime: #00ff41;
  --n-purple: #bb86fc;

  --grid-line: rgba(42, 46, 74, 0.55);
  --grid-strong: rgba(42, 46, 74, 0.9);

  --font-display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, 'Segoe UI', sans-serif;

  --bw: 3px;                       /* brutalist border width */
  --shadow-hard: 6px 6px 0 #000;
  --shadow-hard-lg: 10px 10px 0 #000;
  --radius: 0px;
  --ease: cubic-bezier(.2, .9, .3, 1);
}

/* Light theme — brutalism reads great on paper white */
[data-theme='light'] {
  --bg: #f4f1e8;
  --bg-2: #e9e4d4;
  --surface: #ffffff;
  --surface-2: #fbf9f2;
  --line: #1a1730;
  --ink: #0d0b1a;
  --ink-soft: #3d3960;
  --ink-dim: #6b6790;

  --green: #018f2a;
  --blue: #0072a8;
  --purple: #6f37c9;
  --red: #d11a3c;
  --orange: #a35c00;

  --grid-line: rgba(26, 23, 48, 0.10);
  --grid-strong: rgba(26, 23, 48, 0.18);
  --shadow-hard: 6px 6px 0 #1a1730;
  --shadow-hard-lg: 10px 10px 0 #1a1730;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-attachment: fixed;
  transition: background-color .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--green); color: #000; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #000;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Matrix rain canvas */
.matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .13;
  pointer-events: none;
  transition: opacity .4s ease;
}
[data-theme='light'] .matrix-canvas { opacity: .06; }
.matrix-canvas.is-paused { opacity: .04; }

/* ---------- 3. BRUTALIST PRIMITIVES ---------- */
.shell {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.slab {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-hard);
  position: relative;
}
[data-theme='dark'] .slab { border-color: #000; }

section.band {
  position: relative;
  z-index: 2;
  padding: 96px 0;
  border-bottom: var(--bw) solid var(--line);
}
[data-theme='dark'] section.band { border-bottom-color: #000; }

.section-head { margin-bottom: 44px; position: relative; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #000;
  background: var(--green);
  border: var(--bw) solid #000;
  padding: 5px 12px;
  margin: 0 0 16px;
  transform: rotate(-1.4deg);
  box-shadow: 4px 4px 0 #000;
}
.section-label.is-blue { background: var(--blue); }
.section-label.is-purple { background: var(--purple); }
.section-label.is-pink { background: var(--n-pink); }
.section-label.is-yellow { background: var(--n-yellow); }
.section-label.is-orange { background: var(--orange); }

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: var(--bw) solid #000;
  background: var(--ink);
  color: #000;
  box-shadow: var(--shadow-hard);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .2s ease, color .2s ease;
}
.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }

.btn-blue { background: var(--blue); }
.btn-blue:hover { box-shadow: 9px 9px 0 #000, 0 0 26px rgba(0, 217, 255, .55); }
.btn-green { background: var(--green); }
.btn-green:hover { box-shadow: 9px 9px 0 #000, 0 0 26px rgba(0, 255, 65, .5); }
.btn-purple { background: var(--purple); }
.btn-purple:hover { box-shadow: 9px 9px 0 #000, 0 0 26px rgba(187, 134, 252, .5); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 4px 4px 0 var(--line);
}
.btn-ghost:hover {
  background: var(--surface-2);
  box-shadow: 7px 7px 0 var(--line);
}

/* Chips / badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface-2);
}
.chip-live {
  color: #000; background: var(--green); border-color: #000;
}
.dot {
  width: 8px; height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 255, 65, .18);
  animation: dotPulse 1.7s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 255, 65, .2); }
  50%      { box-shadow: 0 0 0 9px rgba(0, 255, 65, .04); }
}

.mono { font-family: var(--font-mono); }
.tk-green { color: var(--green); }
.tk-blue { color: var(--blue); }
.tk-purple { color: var(--purple); }
.tk-dim { color: var(--ink-dim); }
.tk-red { color: var(--red); }

/* Marquee ticker strip */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--green);
  border-top: var(--bw) solid #000;
  border-bottom: var(--bw) solid #000;
  padding: 11px 0;
}
.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: tickerRun 26s linear infinite;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- 4. NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 14, 39, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: var(--bw) solid #000;
}
[data-theme='light'] .nav { background: rgba(244, 241, 232, .85); border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--green);
  color: #000;
  border: 2px solid #000;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 3px 3px 0 #000;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 10px;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--green); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--ink);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              color .2s ease, border-color .2s ease;
}
.icon-btn:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}
.icon-btn svg { width: 17px; height: 17px; }

.theme-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 13px;
  width: auto;
  gap: 7px;
  display: inline-flex;
  align-items: center;
}

.nav-burger { display: none; }

/* Scroll progress bar */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  z-index: 80;
  transition: width .08s linear;
}

/* ---------- 5. DESK DECOR + STICKY NOTES ---------- */
/* Sticky note: string pinned at top, note swings on hover */
.note {
  --rot: -2deg;
  --tint: var(--n-yellow);
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 20px 20px;
  background: var(--tint);
  color: #0d0b1a;
  border: var(--bw) solid #000;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
  transform: rotate(var(--rot));
  transform-origin: 50% 0;
  transition: transform .45s var(--ease), box-shadow .3s ease, filter .3s ease;
  cursor: default;
}
.note:hover {
  transform: rotate(calc(var(--rot) * -0.35)) translateY(-6px) scale(1.03);
  box-shadow: 14px 16px 0 rgba(0, 0, 0, .5);
  filter: saturate(1.15);
  z-index: 5;
}
/* the string */
.note::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .15), rgba(255, 255, 255, .85));
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform .45s var(--ease);
}
.note:hover::before { transform: translateX(-50%) rotate(3deg) scaleY(1.12); }
/* the pin */
.note::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -40px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, .6);
}
.note-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.15;
}
.note-body {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  margin: 0;
}
.note-body strong { font-weight: 700; }
.note-tags {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px dashed rgba(0, 0, 0, .35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.note-y { --tint: var(--n-yellow); }
.note-p { --tint: var(--n-pink); }
.note-c { --tint: var(--n-cyan); }
.note-l { --tint: var(--n-lime); }
.note-v { --tint: var(--n-purple); }

.notes-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 74px;
}

/* Window slider — hangs from the very top of the page on a rope */
.hang-window {
  position: fixed;
  top: -142px;         /* tucks up behind the nav — drag it down to read it */
  left: 50%;
  z-index: 55;
  width: 232px;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform;
}
.hang-rope {
  display: block;
  width: 3px;
  height: 46px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .9) 0 6px,
    rgba(255, 255, 255, .35) 6px 12px
  );
  transform-origin: 50% 0;
}
.hang-card {
  pointer-events: auto;
  background: var(--surface);
  border: var(--bw) solid #000;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, .6);
  cursor: grab;
  user-select: none;
  transform-origin: 50% 0;
  animation: sway 6s ease-in-out infinite;
}
.hang-card.is-dragging { cursor: grabbing; animation: none; }
@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50%      { transform: rotate(1.6deg); }
}
.hang-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--green);
  border-bottom: var(--bw) solid #000;
}
.hang-bar b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #000;
  margin-left: 2px;
}
.tdot { width: 9px; height: 9px; border: 2px solid #000; }
.tdot.r { background: #ff5f57; }
.tdot.y { background: #ffbd2e; }
.tdot.g { background: #28c840; }
.hang-body { padding: 14px 14px 16px; }
.hang-body p {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 7px;
  color: var(--ink);
}
.hang-body p:last-of-type { margin-bottom: 0; }
.hang-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 10px !important;
}

/* Floating side decor */
.decor { position: fixed; z-index: 8; pointer-events: none; }
.decor-arrow {
  width: 92px; height: auto;
  color: var(--ink-dim);
  opacity: .5;
}
.arrow-1 { top: 38%; left: 14px; transform: rotate(-14deg); }
.arrow-2 { bottom: 20%; right: 18px; transform: rotate(9deg); }

.side-rail {
  position: fixed;
  left: 16px;
  bottom: 26px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-tag {
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 13px;
  background: var(--n-yellow);
  color: #000;
  border: var(--bw) solid #000;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-5deg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.side-tag:hover {
  transform: rotate(-1deg) translate(-2px, -2px) scale(1.05);
  box-shadow: 7px 7px 0 #000;
}
.side-tag.is-cyan { background: var(--n-cyan); transform: rotate(4deg); }
.side-tag.is-cyan:hover { transform: rotate(1deg) translate(-2px, -2px) scale(1.05); }

/* ---------- 6. HERO ---------- */
.hero { padding: 84px 0 76px; position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 18px;
}
.display {
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 140px);
  line-height: .82;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
  text-shadow: 6px 6px 0 rgba(0, 255, 65, .22), 12px 12px 0 rgba(0, 217, 255, .12);
}
.display span { display: inline-block; transition: transform .3s var(--ease), color .3s ease; }
.display span:hover { transform: translateY(-9px) rotate(-4deg); color: var(--green); }

.hero-tag {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink-soft);
}
.hero-tag b { color: var(--blue); }

.hero-lines {
  border-left: var(--bw) solid var(--green);
  padding-left: 16px;
  margin: 0 0 18px;
}
.hero-lines p {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}
.hero-slogan {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: var(--bw) solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 9px 15px;
  margin: 0 0 26px;
  transform: rotate(-1.2deg);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Terminal card */
.term {
  background: #05070f;
  border: var(--bw) solid #000;
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
}
[data-theme='light'] .term { box-shadow: 10px 10px 0 var(--line); }
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #11162c;
  border-bottom: 2px solid #000;
}
.term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #7f88b5;
  margin-left: 8px;
}
.term-body {
  margin: 0;
  padding: 16px 15px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #d7dcf5;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 210px;
}
.term-body.is-tall { min-height: 430px; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--green);
  vertical-align: -2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-skip {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: none;
  border: 0;
  text-align: right;
  transition: color .2s ease;
}
.term-skip:hover { color: var(--green); }

/* ---------- 7. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.idcard {
  position: relative;
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 0 0 20px;
  transform: rotate(-1.2deg);
  transform-origin: 50% 0;
  transition: transform .45s var(--ease), box-shadow .3s ease;
}
.idcard:hover {
  transform: rotate(.4deg) translateY(-7px);
  box-shadow: 12px 14px 0 #000, 0 0 34px rgba(0, 217, 255, .18);
}
.idcard.is-cert { border-color: var(--blue); transform: rotate(1.4deg); }
.idcard.is-cert:hover { transform: rotate(-.4deg) translateY(-7px); }
/* lanyard */
.idcard::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 100%;
  width: 2px; height: 34px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .15), rgba(255, 255, 255, .8));
  transform: translateX(-50%);
}
.idcard::after {
  content: '';
  position: absolute;
  left: 50%; top: -40px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, .5);
}

.id-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--ink);
  color: var(--bg);
  border-bottom: var(--bw) solid var(--ink);
}
.idcard.is-cert .id-head { background: var(--blue); color: #04121a; border-bottom-color: var(--blue); }
.id-logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid currentColor;
  font-family: var(--font-display);
  font-size: 13px;
}
.idcard.is-cert .id-logo { background: #04121a; color: var(--blue); }
.id-head h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.id-head p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 3px 0 0;
  opacity: .75;
}

.id-rows { padding: 18px 18px 4px; }
.id-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.id-row:last-child { border-bottom: 0; }
.id-row dt {
  color: var(--ink-dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 10.5px;
  padding-top: 2px;
}
.id-row dd { margin: 0; color: var(--ink); line-height: 1.5; }
.id-row dd b { color: var(--green); }

.id-foot {
  margin: 12px 18px 0;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
}
.barcode i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--ink-soft);
}
.check {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  background: var(--green);
  color: #000;
  border: 2px solid #000;
  font-size: 11px;
  font-weight: 700;
  animation: checkPop .5s var(--ease) both;
}
@keyframes checkPop {
  from { transform: scale(0) rotate(-30deg); }
  to   { transform: scale(1) rotate(0); }
}

/* ---------- 8. EDUCATION ---------- */
.edu-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; align-items: start; }
.edu-side { display: grid; gap: 20px; }
.stat {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  padding: 18px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stat:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--green);
  border-color: var(--green);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 7px;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- 9. TOOLKIT ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tool {
  --c: var(--blue);
  position: relative;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  padding: 22px 20px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.tool::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--c);
}
/* peel corner */
.tool::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 26px 26px;
  border-color: transparent transparent var(--c) transparent;
  transition: border-width .3s var(--ease);
}
.tool:hover {
  transform: translate(-4px, -6px);
  border-color: var(--c);
  box-shadow: 10px 12px 0 #000, 0 0 26px -2px var(--c);
}
.tool:hover::after { border-width: 0 0 46px 46px; }
.tool h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 6px 0 4px;
  transition: color .25s ease;
}
.tool:hover h3 { color: var(--c); }
.tool-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--c);
}
.tool-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  margin: 0 0 12px;
}
.tool ul { display: grid; gap: 7px; }
.tool li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: color .2s ease, transform .2s ease;
}
.tool li::before { content: '▸'; color: var(--c); flex-shrink: 0; }
.tool:hover li { color: var(--ink); transform: translateX(3px); }
.tool li em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  background: var(--green);
  padding: 1px 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.tool-note {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  font-family: var(--font-mono;);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  transition: max-height .35s var(--ease), opacity .3s ease, margin-top .35s var(--ease);
}
.tool:hover .tool-note { max-height: 130px; opacity: 1; margin-top: 14px; }

.t-blue { --c: var(--blue); }
.t-green { --c: var(--green); }
.t-purple { --c: var(--purple); }
.t-red { --c: var(--red); }
.t-orange { --c: var(--orange); }
.t-gray { --c: #8a93bd; }

/* ---------- 10. MILESTONES ---------- */
.log {
  position: relative;
  padding-left: 34px;
}
.log::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 3px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px);
}
.log-item {
  position: relative;
  padding: 0 0 30px;
}
.log-item:last-child { padding-bottom: 0; }
.log-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 9px;
  width: 13px; height: 13px;
  background: var(--bg);
  border: 3px solid var(--green);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.log-item:hover::before {
  background: var(--green);
  transform: scale(1.35) rotate(45deg);
  box-shadow: 0 0 16px var(--green);
}
.log-card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  padding: 18px 20px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.log-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--green);
  box-shadow: 9px 9px 0 #000, 0 0 24px -4px rgba(0, 255, 65, .4);
}
.log-when {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #000;
  background: var(--blue);
  border: 2px solid #000;
  padding: 3px 9px;
  margin-bottom: 11px;
}
.log-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 9px;
}
.log-card p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.log-card p + p { margin-top: 5px; }
.log-card p b { color: var(--green); }

/* ---------- 11. PROJECTS ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.proj {
  --c: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  padding: 24px 22px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.proj:hover {
  transform: translate(-5px, -8px);
  border-color: var(--c);
  box-shadow: 12px 14px 0 #000, 0 0 34px -4px var(--c);
}
.proj-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.proj-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 2px solid var(--c);
  color: var(--c);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.proj:hover .proj-mark {
  background: var(--c);
  color: #000;
  transform: rotate(-8deg) scale(1.08);
}
.badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 2px solid var(--c);
  color: var(--c);
  white-space: nowrap;
}
.badge.is-solid { background: var(--c); color: #000; }
.badge.is-pulse { animation: badgePulse 1.9s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 28, .5); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 159, 28, 0); }
}
.proj h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0 0 4px;
  transition: color .25s ease;
}
.proj:hover h3 { color: var(--c); }
.proj-type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 12px;
}
.proj-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.proj-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), opacity .3s ease, margin-bottom .4s var(--ease);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  border-left: 2px solid var(--c);
  padding-left: 11px;
}
.proj:hover .proj-extra { max-height: 170px; opacity: 1; margin-bottom: 16px; }
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}
.proj-stack span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 3px 7px;
  transition: color .2s ease, border-color .2s ease;
}
.proj:hover .proj-stack span { color: var(--ink-soft); border-color: var(--c); }
.proj-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c);
  border: 2px solid var(--c);
  padding: 9px 15px;
  opacity: .55;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s var(--ease), background-color .2s ease, color .2s ease;
}
.proj:hover .proj-go { opacity: 1; transform: translateY(0); }
.proj-go:hover { background: var(--c); color: #000; box-shadow: 0 0 20px -2px var(--c); }
.proj-go span { transition: transform .2s ease; }
.proj-go:hover span { transform: translateX(4px); }

/* Hero project — spans wide */
.proj.is-hero {
  grid-column: span 2;
  --c: var(--orange);
  border-width: 4px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 159, 28, .10), transparent 60%),
    var(--surface);
}
.proj.is-hero h3 { font-size: clamp(26px, 3.6vw, 42px); }
.proj.is-hero .proj-mark { width: 56px; height: 56px; font-size: 19px; }
.proj.is-hero .proj-desc { font-size: 15px; max-width: 60ch; }
.proj.is-hero .proj-extra { max-height: 220px; opacity: 1; margin-bottom: 16px; }
.proj.is-hero:hover { animation: heroGlow 2.4s ease-in-out infinite; }
@keyframes heroGlow {
  0%, 100% { box-shadow: 12px 14px 0 #000, 0 0 30px -6px var(--orange); }
  50%      { box-shadow: 12px 14px 0 #000, 0 0 52px 2px var(--orange); }
}
.meter {
  height: 16px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  margin: 4px 0 14px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(45deg, var(--orange) 0 8px, #d9820f 8px 16px);
  transition: width 1.4s var(--ease);
}
.p-blue { --c: var(--blue); }
.p-green { --c: var(--green); }
.p-purple { --c: var(--purple); }
.p-red { --c: var(--red); }
.p-cyan { --c: var(--n-cyan); }
.p-gray { --c: #8a93bd; }
.p-lime { --c: var(--n-lime); }
.p-orange { --c: var(--orange); }

/* ---------- 12. WORK IN PROGRESS ---------- */
.wip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.wip-list { display: grid; gap: 15px; }
.wip {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 13px 15px;
  transition: border-color .25s ease, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wip:hover {
  border-color: var(--purple);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--purple);
}
.wip-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-bottom: 9px;
}
.wip-box {
  display: grid;
  place-items: center;
  width: 17px; height: 17px;
  flex-shrink: 0;
  border: 2px solid var(--purple);
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  transition: background-color .2s ease, color .2s ease;
}
.wip:hover .wip-box { background: var(--purple); color: #000; }
.wip-top b { font-weight: 700; }
.wip-pct { margin-left: auto; color: var(--purple); font-weight: 700; flex-shrink: 0; }
.wip-bar { height: 9px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.wip-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 1.2s var(--ease);
}

.qa { display: grid; gap: 16px; }
.qa-item {
  background: var(--surface);
  border-left: var(--bw) solid var(--blue);
  padding: 15px 17px;
  transition: transform .22s var(--ease), background-color .22s ease, border-color .22s ease;
}
.qa-item:hover { transform: translateX(5px); border-left-color: var(--green); background: var(--surface-2); }
.qa-q {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 8px;
  transition: color .22s ease;
}
.qa-item:hover .qa-q { color: var(--green); }
.qa-a {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 13. DESK TOYS ---------- */
.toy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.toy {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  padding: 22px;
  transition: box-shadow .25s var(--ease), border-color .25s ease;
}
.toy:hover { border-color: var(--blue); box-shadow: 9px 9px 0 #000, 0 0 30px -8px var(--blue); }
.toy-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
}
.toy-num {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--blue);
  color: #000;
  border: 2px solid #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.toy h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}
.toy-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  margin: 0 0 16px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 7px;
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-2);
  color: var(--ink);
  border: 2px solid var(--line);
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 255, 65, .15), 0 0 18px -6px var(--green);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.out {
  background: #05070f;
  border: 2px solid var(--line);
  padding: 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--green);
  min-height: 46px;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Cipher dial */
.dial-row { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.dial {
  position: relative;
  width: 78px; height: 78px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0deg, var(--bg-2) 0deg);
  border: 3px solid var(--line);
  display: grid;
  place-items: center;
}
.dial-face {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
}
.dial-needle {
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 30px;
  background: var(--green);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  transition: transform .25s var(--ease);
  z-index: 2;
  box-shadow: 0 0 10px var(--green);
}
.dial-wrap { flex: 1; }

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  cursor: grab;
}
input[type='range']:active { cursor: grabbing; }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--green);
  border: 2px solid #000;
  box-shadow: 0 0 12px var(--green);
  cursor: grab;
}
input[type='range']::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--green);
  border: 2px solid #000;
  border-radius: 0;
  cursor: grab;
}
.range-marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  margin-top: 5px;
}
.rot13-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  background: var(--n-yellow);
  border: 2px solid #000;
  padding: 3px 8px;
  margin-top: 11px;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .25s var(--ease);
}
.rot13-flag.is-on { opacity: 1; transform: scale(1); }
.privacy-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 12px 0 0;
}

/* Toy terminal */
.toy-term {
  background: #05070f;
  border: 2px solid var(--line);
  height: 214px;
  overflow-y: auto;
  padding: 13px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #d7dcf5;
  white-space: pre-wrap;
  word-break: break-word;
}
.toy-term::-webkit-scrollbar { width: 9px; }
.toy-term::-webkit-scrollbar-track { background: #05070f; }
.toy-term::-webkit-scrollbar-thumb { background: var(--line); }
.prompt-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: 9px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prompt-row:focus-within { border-color: var(--green); box-shadow: 0 0 16px -6px var(--green); }
.prompt-row span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
.prompt-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* Note board toy */
.board {
  position: relative;
  height: 264px;
  background:
    linear-gradient(rgba(42, 46, 74, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 46, 74, .35) 1px, transparent 1px),
    var(--bg-2);
  background-size: 22px 22px;
  border: 2px solid var(--line);
  overflow: hidden;
  touch-action: none;
}
.pin-note {
  position: absolute;
  width: 128px;
  padding: 26px 11px 12px;
  background: var(--n-yellow);
  color: #0d0b1a;
  border: 2px solid #000;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .5);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow .2s ease;
}
.pin-note::before {
  content: '';
  position: absolute;
  left: 50%; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  transform: translateX(-50%);
}
.pin-note:hover { box-shadow: 7px 8px 0 rgba(0, 0, 0, .45); z-index: 4; }
.pin-note.is-dragging { cursor: grabbing; z-index: 9; box-shadow: 12px 14px 0 rgba(0, 0, 0, .4); }

/* Wheel toy */
.wheel-stage {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}
.wheel {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 4px solid var(--line);
  background: conic-gradient(
    var(--green) 0 60deg, var(--blue) 60deg 120deg, var(--purple) 120deg 180deg,
    var(--n-pink) 180deg 240deg, var(--orange) 240deg 300deg, var(--n-yellow) 300deg 360deg
  );
  position: relative;
  transition: transform 2.4s cubic-bezier(.13, .82, .17, 1);
  box-shadow: 0 0 0 3px #000;
}
.wheel::after {
  content: '';
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid #000;
}
.wheel-arrow {
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 11px 17px 11px;
  border-color: transparent transparent var(--ink) transparent;
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, .6));
}
.wheel-out {
  background: #05070f;
  border: 2px solid var(--line);
  padding: 14px;
  min-height: 78px;
}
.wheel-out b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.wheel-out p {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Typing test */
.type-quote {
  background: #05070f;
  border: 2px solid var(--line);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 13px;
  min-height: 80px;
}
.type-quote i { font-style: normal; color: var(--ink-dim); }
.type-quote i.ok { color: var(--green); }
.type-quote i.bad { color: #fff; background: var(--red); }
.type-quote i.now {
  color: #000;
  background: var(--green);
  animation: blink 1s steps(2, start) infinite;
}
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 13px; }
.score {
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: 11px;
  text-align: center;
}
.score b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue);
  line-height: 1.1;
}
.score span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.toy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mini-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 14px;
  background: var(--surface-2);
  color: var(--ink);
  border: 2px solid var(--line);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), color .2s ease, border-color .2s ease;
}
.mini-btn:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}

/* ---------- 14. CERTS ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert {
  --c: var(--green);
  position: relative;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  padding: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.cert:hover {
  transform: translate(-4px, -6px) rotate(-1deg);
  border-color: var(--c);
  box-shadow: 10px 12px 0 #000, 0 0 26px -6px var(--c);
}
.cert-seal {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--bg-2);
  border: 2px solid var(--c);
  color: var(--c);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.cert:hover .cert-seal { background: var(--c); color: #000; transform: rotate(-10deg); }
.cert h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 5px;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 10px;
}
.cert p.cert-detail {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.cert-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cert.is-pulse { animation: certPulse 2.6s ease-in-out infinite; }
@keyframes certPulse {
  0%, 100% { box-shadow: 5px 5px 0 var(--line); }
  50%      { box-shadow: 5px 5px 0 var(--line), 0 0 26px -4px var(--n-yellow); }
}
.cert.is-locked {
  --c: #8a93bd;
  border-style: dashed;
  opacity: .72;
}
.cert.is-locked:hover { opacity: 1; }
.c-green { --c: var(--green); }
.c-yellow { --c: var(--n-yellow); }
.c-purple { --c: var(--purple); }
.c-blue { --c: var(--blue); }
.c-pink { --c: var(--n-pink); }

/* ---------- 15. CONTACT + FOOTER ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.reach { display: grid; gap: 18px; }
.reach-card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  padding: 19px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.reach-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--green);
  box-shadow: 9px 9px 0 #000, 0 0 24px -8px var(--green);
}
.reach-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 11px;
}
.scratch {
  position: relative;
  display: block;
  width: 100%;
  background: var(--bg-2);
  border: 2px dashed var(--line);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}
.scratch-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #2a2e4a 0 7px, #353a5e 7px 14px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.scratch.is-revealed .scratch-veil { transform: translateX(-101%); opacity: 0; }
.reach-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.reach-link {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  transition: color .2s ease;
}
.reach-link:hover { color: var(--blue); }
.reach-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.gh-stats { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 9px; }
.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin: 0;
  min-height: 20px;
}
.form-status.is-err { color: var(--red); }
.err-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--red);
  margin-top: 5px;
  min-height: 14px;
}

.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-2);
  border-top: var(--bw) solid #000;
  padding: 44px 0 34px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 2px solid var(--line);
  padding: 7px 11px;
  transition: color .2s ease, border-color .2s ease, transform .18s var(--ease), box-shadow .18s var(--ease);
}
.footer-links a:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}
.footer-meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.footer-meta b { color: var(--green); }

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, 140%);
  background: var(--green);
  color: #000;
  border: var(--bw) solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .4s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* Click particles */
.spark {
  position: fixed;
  width: 6px; height: 6px;
  z-index: 190;
  pointer-events: none;
  border-radius: 50%;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 45;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #000;
  border: var(--bw) solid #000;
  box-shadow: 4px 4px 0 #000;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease), box-shadow .2s ease;
}
.to-top.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { box-shadow: 7px 7px 0 #000; transform: translate(-2px, -2px); }

/* ---------- 16. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-34px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal-l.is-in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(34px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal-r.is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s var(--ease); }
.stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-l, .reveal-r, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .tool-grid, .proj-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-rail { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .proj.is-hero { grid-column: span 2; grid-row: auto; }
  .hang-window { width: 200px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: var(--bw) solid #000;
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a { padding: 13px 12px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-burger {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 40px; height: 40px;
    background: var(--surface);
    border: 2px solid var(--line);
    color: var(--ink);
    gap: 4px;
  }
  .nav-burger i {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .2s ease;
  }
  .nav-burger.is-open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.is-open i:nth-child(2) { opacity: 0; }
  .nav-burger.is-open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-tools { margin-left: 0; }
  .theme-btn span { display: none; }

  .hero-grid, .about-grid, .edu-grid, .wip-grid, .toy-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 60px 0 54px; }
  .term-body.is-tall { min-height: auto; }
  .hang-window { display: none; }
  .decor, .side-rail { display: none; }
  section.band { padding: 68px 0; }
  .idcard, .idcard.is-cert { transform: rotate(0); }
  .idcard::before, .idcard::after { display: none; }
}

@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .nav-inner { padding: 0 14px; gap: 10px; }
  .logo { font-size: 15px; gap: 6px; }
  .logo-mark { width: 26px; height: 26px; font-size: 13px; }
  .nav-tools { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
  .theme-btn { padding: 8px 9px; }
  .nav-burger { width: 34px; height: 34px; }
  .tool-grid, .proj-grid, .cert-grid, .notes-rail, .form-grid, .score-row {
    grid-template-columns: 1fr;
  }
  .proj.is-hero { grid-column: span 1; grid-row: auto; }
  .notes-rail { margin-top: 56px; gap: 52px; }
  .display {
    font-size: clamp(40px, 11.4vw, 62px);
    text-shadow: 4px 4px 0 rgba(0, 255, 65, .22);
  }
  .log { padding-left: 26px; }
  .log-item::before { left: -26px; }
  .id-row { grid-template-columns: 84px 1fr; }
  .phone-row { grid-template-columns: 1fr; }
  .to-top { right: 12px; bottom: 14px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .dial-row { flex-direction: column; align-items: stretch; }
  .dial { margin: 0 auto; }
}

@media print {
  .nav, .hang-window, .decor, .side-rail, .to-top, .matrix-canvas, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
