/* ============================================================
   b43kd00r.com — engagement-themed portfolio
   No frameworks, no build step.

   Colour system: one shared dark base, and every section carries
   its own accent (--sa) and glow (--sg). Components reference those
   rather than a fixed hue, so scrolling moves through colour instead
   of staring at one green.
   ============================================================ */

:root {
  /* base — a warm indigo-black rather than flat #000 */
  --bg:        #080912;
  --bg-2:      #0c0e1a;
  --surface:   #11142250;
  --surface-s: #121524;
  --surface-2: #171b2e;
  --line:      #222741;
  --line-2:    #343b5c;

  --text:      #edf1fa;
  --muted:     #a0a8c4;
  --dim:       #6b7398;

  /* palette */
  --c-green:   #4ef08f;
  --c-cyan:    #38e1f0;
  --c-blue:    #6aa8ff;
  --c-violet:  #a98bff;
  --c-pink:    #ff6fae;
  --c-red:     #ff6b6b;
  --c-amber:   #ffc247;
  --c-gold:    #ffd977;

  /* defaults, overridden per section */
  --sa: var(--c-green);
  --sg: rgba(78, 240, 143, .14);

  --acc:      var(--c-green);
  --acc-soft: rgba(78, 240, 143, .14);

  --crit: var(--c-red);
  --high: #ff9f43;
  --med:  var(--c-amber);
  --info: var(--c-blue);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --r: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  /* Reserve the scrollbar so locking scroll for the palette shifts nothing. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain. Keeps large flat areas from looking like dead pixels. */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

.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;
}

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--c-green); color: #04150c; padding: 10px 18px;
  border-radius: 8px; font: 600 13px/1 var(--mono); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

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

/* ============================================================ SCROLL PROGRESS */

.progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-green));
  box-shadow: 0 0 10px rgba(78, 240, 143, .5);
  transition: width .08s linear;
}

/* ============================================================ TOP BAR */

.topbar {
  position: fixed; top: 18px; right: 20px; z-index: 65;
  display: flex; align-items: center; gap: 10px;
}

/* ---- menu / command palette trigger ---- */

.jump {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(12, 14, 26, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--muted); cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease), transform .25s var(--spring);
}
.jump:hover { color: var(--text); border-color: var(--c-cyan); transform: translateY(-1px); }
.jump__ico { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 13px; }
.jump__ico i {
  height: 1.5px; border-radius: 1px; background: currentColor;
  transition: width .25s var(--ease);
}
.jump__ico i:nth-child(1) { width: 13px; }
.jump__ico i:nth-child(2) { width: 9px; }
.jump__ico i:nth-child(3) { width: 11px; }
.jump:hover .jump__ico i { width: 13px; }
.jump__label { min-width: 4.2em; text-align: left; }
.jump__key {
  padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  font: 500 10px/1 var(--mono); color: var(--dim); letter-spacing: .06em;
}

/* ============================================================ MUSIC TOGGLE */

.music {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(12, 14, 26, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--muted); cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease), transform .25s var(--spring);
}
.music:hover { color: var(--text); border-color: var(--c-green); transform: translateY(-1px); }
.music[aria-pressed="true"] {
  color: var(--c-green);
  border-color: color-mix(in srgb, var(--c-green) 55%, transparent);
  background: rgba(78, 240, 143, .08);
  box-shadow: 0 0 22px rgba(78, 240, 143, .14);
}
.music__label b { font-weight: 700; }

/* Four bars that idle flat and dance while the track plays. */
.music__eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.music__eq i {
  width: 2px; height: 3px; border-radius: 1px;
  background: currentColor;
  transition: height .25s var(--ease);
}
.music[aria-pressed="true"] .music__eq i {
  animation: eq .9s ease-in-out infinite alternate;
}
.music[aria-pressed="true"] .music__eq i:nth-child(1) { animation-duration: .68s; }
.music[aria-pressed="true"] .music__eq i:nth-child(2) { animation-duration: 1.02s; }
.music[aria-pressed="true"] .music__eq i:nth-child(3) { animation-duration: .8s; }
.music[aria-pressed="true"] .music__eq i:nth-child(4) { animation-duration: 1.16s; }
@keyframes eq { from { height: 3px; } to { height: 13px; } }

@media (max-width: 640px) {
  .topbar { top: 12px; right: 12px; gap: 8px; }
  .music { padding: 8px 10px; }
  .music__label, .jump__key { display: none; }
  .jump { padding: 8px 12px; }
}

/* ============================================================ COMMAND PALETTE */

.cmdk {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 14vh 20px 20px;
}
.cmdk[hidden] { display: none; }

.cmdk__scrim {
  position: absolute; inset: 0;
  background: rgba(4, 5, 12, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.cmdk.is-open .cmdk__scrim { opacity: 1; }

.cmdk__panel {
  position: relative;
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column;
  max-height: min(60vh, 520px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-s);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(56, 225, 240, .07);
  overflow: hidden;
  opacity: 0; transform: translateY(-10px) scale(.985);
  transition: opacity .2s var(--ease), transform .28s var(--spring);
}
.cmdk.is-open .cmdk__panel { opacity: 1; transform: none; }

.cmdk__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 54px; flex: none;
  border-bottom: 1px solid var(--line);
}
.cmdk__prompt { font: 700 14px/1 var(--mono); color: var(--c-green); }
.cmdk__input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  color: var(--text); font: 400 14px/1.4 var(--mono);
}
.cmdk__input::placeholder { color: var(--dim); }
.cmdk__esc {
  flex: none; padding: 3px 7px;
  border: 1px solid var(--line-2); border-radius: 5px;
  font: 500 10px/1 var(--mono); color: var(--dim);
}

.cmdk__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }

.cmdk__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  cursor: pointer; scroll-margin: 6px;
}
.cmdk__item[aria-selected="true"] { background: rgba(255, 255, 255, .055); }
.cmdk__item[aria-selected="true"] .cmdk__label { color: var(--text); }

.cmdk__ico {
  flex: none; width: 26px; text-align: center;
  font: 700 10px/1 var(--mono); letter-spacing: .04em;
}
.cmdk__label {
  flex: 1; min-width: 0;
  font: 400 13.5px/1.35 var(--sans); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Characters that matched what you typed. */
.cmdk__hit { color: var(--c-cyan); font-weight: 700; }
.cmdk__group {
  flex: none; font: 500 10px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}

.cmdk__empty { margin: 0; padding: 26px 18px; text-align: center; font: 400 13px/1.6 var(--sans); color: var(--dim); }
.cmdk__empty b { color: var(--muted); font-weight: 500; font-family: var(--mono); }
.cmdk__empty[hidden] { display: none; }

.cmdk__foot {
  display: flex; align-items: center; gap: 16px; flex: none;
  padding: 9px 14px; border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
  font: 400 10.5px/1 var(--mono); color: var(--dim); letter-spacing: .06em;
}
.cmdk__foot kbd {
  display: inline-block; min-width: 16px; margin-right: 3px; padding: 2px 4px;
  border: 1px solid var(--line-2); border-radius: 4px;
  font: 500 9.5px/1 var(--mono); text-align: center;
}
.cmdk__brand { margin-left: auto; color: var(--line-2); letter-spacing: .18em; }

@media (max-width: 560px) {
  .cmdk { padding-top: 9vh; }
  .cmdk__group { display: none; }
}

/* ============================================================ SECTION ACCENTS */

#about    { --sa: var(--c-cyan);   --sg: rgba(56, 225, 240, .13); }
#experience { --sa: var(--c-green);  --sg: rgba(78, 240, 143, .13); }
#skills  { --sa: var(--c-amber);  --sg: rgba(255, 194, 71, .13); }
#achievements   { --sa: var(--c-pink);   --sg: rgba(255, 111, 174, .13); }
#writeups { --sa: var(--c-violet); --sg: rgba(169, 139, 255, .14); }
#certifications     { --sa: var(--c-gold);   --sg: rgba(255, 217, 119, .13); }
#contact   { --sa: var(--c-green);  --sg: rgba(78, 240, 143, .13); }

/* ============================================================ THE COURSE */

.course {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 132px;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 18, .84) 38%, var(--bg) 88%);
}
.course__canvas { display: block; width: 100%; height: 100%; }

/* Invisible hit targets over each marker: the walker is also the nav.
   Positioned by JS to match the canvas markers. Real links, so they
   work with a keyboard and show up to a screen reader. */
.course__hits { position: absolute; inset: 0; }
.course__hits a {
  position: absolute;
  bottom: 0;
  width: 92px; height: 54px;
  transform: translateX(-50%);
  pointer-events: auto;
  display: block;
  overflow: hidden;
  text-indent: -999em;
  border-radius: 8px;
  transition: background .25s var(--ease);
}
.course__hits a:hover { background: rgba(255, 255, 255, .05); }
.course__hits a:focus-visible { outline-offset: -2px; }

/* Keep the walker clear of the footer. Only the page that has one pays for it. */
.has-course { padding-bottom: 132px; }

@media (max-width: 720px) {
  .course { height: 104px; }
  .has-course { padding-bottom: 104px; }
}
@media (max-height: 560px) {
  .course { display: none; }
  .has-course { padding-bottom: 0; }
}

/* ============================================================ HERO */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 108px 28px 170px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 50% at 78% 42%, rgba(56, 225, 240, .17), transparent 72%),
    radial-gradient(ellipse 45% 45% at 12% 22%, rgba(169, 139, 255, .14), transparent 72%),
    radial-gradient(ellipse 60% 40% at 50% 96%, rgba(78, 240, 143, .10), transparent 72%),
    var(--bg);
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  display: grid; gap: 40px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; }
}

/* ---- the scene ---- */

.hero__art { position: relative; order: -1; }
@media (min-width: 1000px) { .hero__art { order: 0; } }

.hero__art::before {
  /* the room sits in its own pool of light */
  content: '';
  position: absolute; inset: 6% 2%;
  background: radial-gradient(ellipse 52% 46% at 50% 56%, rgba(56, 225, 240, .20), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
#sceneCanvas {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 520px);
}

/* ---- the words ---- */

.hero__text { min-width: 0; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgba(18, 21, 36, .72);
  backdrop-filter: blur(8px);
  padding: 9px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.blip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-green);
  animation: blip 2.2s infinite;
}
@keyframes blip {
  0%   { box-shadow: 0 0 0 0 rgba(78, 240, 143, .65); }
  70%  { box-shadow: 0 0 0 10px rgba(78, 240, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 240, 143, 0); }
}

.hero__title { display: grid; gap: 10px; margin-bottom: 16px; }
.hero__handle {
  font-family: var(--mono);
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .94;
  color: var(--text);
}
.hero__name {
  font-family: var(--mono);
  font-size: clamp(.72rem, 1.5vw, .95rem);
  font-weight: 500;
  letter-spacing: .4em;
  color: var(--c-cyan);
  padding-left: .3em;
}

.hero__role {
  font: 500 clamp(.85rem, 1.5vw, 1rem)/1.5 var(--mono);
  letter-spacing: .02em;
  color: var(--c-green);
  margin-bottom: 20px;
}

.hero__lede {
  max-width: 52ch;
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  color: var(--muted);
  margin-bottom: 32px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(18, 21, 36, .7);
  color: var(--text);
  font: 600 13.5px/1 var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
  transition: all .3s var(--spring);
}
.btn:hover {
  border-color: var(--c-cyan); color: var(--c-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px -14px var(--c-cyan);
}
.btn--primary {
  background: linear-gradient(100deg, var(--c-green), var(--c-cyan));
  border-color: transparent; color: #04150c;
}
.btn--primary:hover { color: #04150c; box-shadow: 0 14px 38px -12px var(--c-green); }

.hero__proof {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 36px;
}
.hero__proof b {
  display: block;
  font: 700 1.5rem/1 var(--mono);
  letter-spacing: -.04em;
  margin-bottom: 5px;
}
.hero__proof li:nth-child(1) b { color: var(--c-cyan); }
.hero__proof li:nth-child(2) b { color: var(--c-green); }
.hero__proof li:nth-child(3) b { color: var(--c-violet); }
.hero__proof span {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
}

.hero__scroll {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: var(--wrap);
  margin: 54px auto 0;
  font: 400 11px/1 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.hero__scroll span {
  width: 34px; height: 1px; background: var(--line-2);
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: ''; position: absolute; inset: 0; width: 14px;
  background: var(--c-green);
  animation: trace 2.4s var(--ease) infinite;
}
@keyframes trace { 0% { transform: translateX(-14px); } 100% { transform: translateX(34px); } }

/* ============================================================ SECTIONS */

.section {
  position: relative;
  padding: 118px 0;
  border-bottom: 1px solid var(--line);
}
.section--last { border-bottom: 0; }
.section:nth-child(even) { background: var(--bg-2); }

/* each section glows in its own colour */
.section::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 88% 6%, var(--sg), transparent 72%),
    radial-gradient(ellipse 40% 38% at 4% 86%, var(--sg), transparent 72%);
}
.section > .wrap { position: relative; z-index: 1; }

.shead { margin-bottom: 56px; max-width: 70ch; }
.shead__num {
  display: inline-block;
  font: 700 12px/1 var(--mono);
  letter-spacing: .3em;
  color: var(--sa);
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--sa) 34%, transparent);
  background: color-mix(in srgb, var(--sa) 10%, transparent);
  border-radius: 6px;
  margin-bottom: 18px;
}
.shead__title {
  font-family: var(--mono);
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  letter-spacing: -.045em;
  margin-bottom: 16px;
  background: linear-gradient(100deg, var(--text) 30%, var(--sa));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.shead__title::before { content: '/ '; -webkit-text-fill-color: var(--line-2); }
.shead__sub { color: var(--muted); font-size: 1.04rem; margin: 0; }
.shead__sub b { font-weight: 500; }

/* ============================================================ 00 ABOUT */

.intro { display: grid; gap: 44px; margin-bottom: 64px; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.05fr .95fr; align-items: start; } }

.intro__prose p { color: var(--muted); font-size: 1.05rem; }
.intro__prose strong { color: var(--text); font-weight: 600; }

.term {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: linear-gradient(165deg, var(--surface-2), var(--surface-s));
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95), 0 0 50px -28px var(--sa);
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--line);
}
.term__bar span { width: 11px; height: 11px; border-radius: 50%; }
.term__bar span:first-child  { background: #ff5f56; }
.term__bar span:nth-child(2) { background: #ffbd2e; }
.term__bar span:nth-child(3) { background: #27c93f; }
.term__bar em {
  margin-left: auto; font: 400 11px/1 var(--mono); font-style: normal; color: var(--dim);
}
.term__body {
  margin: 0; padding: 22px 20px;
  font: 400 12.5px/1.85 var(--mono);
  color: var(--muted);
  overflow-x: auto;
}
.t-p   { color: var(--c-green); }
.t-c   { color: var(--text); }
.t-g   { color: var(--c-cyan); }
.t-d   { color: var(--dim); }
.t-cur { color: var(--c-green); animation: blink 1.1s step-end infinite; }
.t-r   { color: var(--c-red); }
@keyframes blink { 50% { opacity: 0; } }

.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li {
  background: var(--surface-s);
  padding: 32px 24px;
  transition: background .3s var(--ease);
}
.stats li:hover { background: var(--surface-2); }
.stats b {
  display: block;
  font: 700 clamp(2.1rem, 4.8vw, 3.1rem)/1 var(--mono);
  letter-spacing: -.045em;
  margin-bottom: 8px;
}
.stats li:nth-child(1) b { color: var(--c-cyan); }
.stats li:nth-child(2) b { color: var(--c-green); }
.stats li:nth-child(3) b { color: var(--c-pink); }
.stats li:nth-child(4) b { color: var(--c-amber); }
.stats span {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================ 01 EXPERIENCE */

.log { list-style: none; margin: 0; padding: 0; }

.log__row {
  position: relative;
  display: grid; gap: 18px;
  padding: 38px 0 38px 0;
  border-top: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.log__row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) {
  .log__row { grid-template-columns: 180px 268px 1fr; gap: 36px; padding-left: 22px; }
  /* colour bar slides in on hover */
  .log__row::before {
    content: '';
    position: absolute; left: 0; top: 24px; bottom: 24px;
    width: 3px; border-radius: 3px;
    background: var(--sa);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s var(--ease);
  }
  .log__row:hover::before { transform: scaleY(1); }
  .log__row:hover { background: rgba(255, 255, 255, .018); }
}

.log__when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.log__date { font: 500 12.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.log__dur  { font: 400 11px/1 var(--mono); color: var(--dim); }

.tag {
  font: 600 10px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 5px;
}
.tag--live {
  background: color-mix(in srgb, var(--c-green) 16%, transparent);
  color: var(--c-green);
  border: 1px solid color-mix(in srgb, var(--c-green) 36%, transparent);
}

.log__who h3 { font-size: 1.14rem; margin-bottom: 6px; }
.log__org { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.log__org span { color: var(--dim); }
.log__badge {
  display: inline-block; margin: 0;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--sa);
  border: 1px solid color-mix(in srgb, var(--sa) 30%, transparent);
  background: color-mix(in srgb, var(--sa) 8%, transparent);
  border-radius: 5px;
  padding: 6px 10px;
}

.log__what p { color: var(--muted); font-size: .99rem; }
.log__what p:last-child { margin-bottom: 0; }
.log__what strong { color: var(--text); font-weight: 600; }
.log__what em { color: var(--muted); }

/* ============================================================ 02 SKILLS */

.arsenal {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.kit {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--surface-2), var(--surface-s));
  padding: 26px 24px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--spring), box-shadow .35s var(--ease);
}
.kit::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--kc, var(--sa)), transparent);
  opacity: .8;
}
.kit:nth-child(1) { --kc: var(--c-red); }
.kit:nth-child(2) { --kc: var(--c-violet); }
.kit:nth-child(3) { --kc: var(--c-cyan); }
.kit:nth-child(4) { --kc: var(--c-green); }
.kit:nth-child(5) { --kc: var(--c-amber); }
.kit:hover {
  border-color: color-mix(in srgb, var(--kc) 45%, transparent);
  transform: translateY(-5px);
  box-shadow: 0 26px 56px -34px var(--kc);
}

.kit__h {
  font: 700 11px/1 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--kc, var(--sa));
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.kit__list { list-style: none; margin: 0; padding: 0; }
.kit__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(34, 39, 65, .8);
  font-size: .92rem;
}
.kit__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.kit__list span { color: var(--muted); transition: color .2s; }
.kit__list li:hover span { color: var(--text); }

.lv {
  flex: none;
  font: 600 10px/1 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px;
  border: 1px solid transparent;
}
.lv--root  { color: var(--c-green);  background: rgba(78, 240, 143, .13); border-color: rgba(78, 240, 143, .34); }
.lv--user  { color: var(--c-blue);   background: rgba(106, 168, 255, .12); border-color: rgba(106, 168, 255, .3); }
.lv--guest { color: var(--dim);      background: rgba(107, 115, 152, .12); border-color: rgba(107, 115, 152, .3); }

/* Collapsed by default once JS runs: the full list is honest but nobody
   reads sixty rows. `is-extra` is applied by JS, never in the markup. */
.arsenal:not(.is-open) .is-extra { display: none; }

/* The "+N more" cue only makes sense while the tail is hidden. */
.arsenal.is-open .kit__more { display: none; }
.kit__more {
  display: block; width: 100%;
  padding: 9px 0 0;
  border: 0; background: none; cursor: pointer;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); text-align: left;
  transition: color .2s var(--ease);
}
.kit__more:hover { color: var(--kc, var(--sa)); }

.arsenal__foot { display: flex; justify-content: center; margin-top: 28px; }
.arsenal__toggle {
  padding: 11px 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface-s); cursor: pointer;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--spring);
}
.arsenal__toggle:hover { color: var(--text); border-color: var(--sa); transform: translateY(-1px); }
.arsenal__toggle b { color: var(--sa); font-weight: 700; }
.arsenal__toggle[hidden] { display: none; }

/* ============================================================ 03 ACHIEVEMENTS */

.impact {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-bottom: 64px;
}

.icard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--surface-2), var(--surface-s));
  padding: 28px 26px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--spring), box-shadow .35s var(--ease);
}
.icard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--ic, var(--sa)) 45%, transparent);
  box-shadow: 0 26px 56px -34px var(--ic, var(--sa));
}
.icard h3 { font-size: 1.12rem; margin-bottom: 8px; }
.icard p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.icard__meta {
  font: 500 11.5px/1 var(--mono) !important;
  letter-spacing: .06em;
  color: var(--dim) !important;
  margin-bottom: 16px !important;
}

.icard:nth-child(1) { --ic: var(--c-red); }
.icard:nth-child(2) { --ic: var(--c-amber); }
.icard:nth-child(3) { --ic: var(--c-green); }
.icard:nth-child(4) { --ic: var(--c-pink); }
.icard:nth-child(5) { --ic: var(--c-cyan); }
.icard:nth-child(6) { --ic: var(--c-violet); }

.icard--hero {
  grid-column: 1 / -1;
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(255, 107, 107, .16), transparent 68%),
    linear-gradient(170deg, var(--surface-2), var(--surface-s));
  border-color: rgba(255, 107, 107, .32);
}
@media (min-width: 900px) { .icard--hero { grid-column: span 2; } }
.icard--hero h3 { font-size: 1.45rem; }

.icard__sev {
  display: inline-block;
  font: 600 10px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 5px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.sev--crit    { color: var(--c-red);    background: rgba(255,107,107,.14); border-color: rgba(255,107,107,.38); }
.sev--high    { color: var(--high);     background: rgba(255,159,67,.13);  border-color: rgba(255,159,67,.36); }
.sev--med     { color: var(--c-amber);  background: rgba(255,194,71,.13);  border-color: rgba(255,194,71,.36); }
.sev--info    { color: var(--c-blue);   background: rgba(106,168,255,.13); border-color: rgba(106,168,255,.36); }
.sev--pending { color: var(--dim);      background: rgba(107,115,152,.13); border-color: rgba(107,115,152,.34); }

.ticker {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--surface-2), var(--surface-s));
  padding: 26px 0 28px;
  overflow: hidden;
}
.ticker__label {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  font: 600 11px/1 var(--mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
  padding: 0 26px;
  margin-bottom: 20px;
}
.ticker__label a {
  color: var(--sa); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.ticker__label a:hover { border-bottom-color: currentColor; }
.ticker__viewport {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__row {
  display: flex; align-items: center; gap: 46px;
  width: max-content;
  animation: slide 44s linear infinite;
}
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__row span {
  font: 500 clamp(1rem, 2vw, 1.35rem)/1 var(--mono);
  letter-spacing: -.02em;
  color: var(--dim);
  white-space: nowrap;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.ticker__row span:hover { color: var(--c-pink); transform: translateY(-2px); }
.ticker__more { color: var(--c-pink) !important; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================ 04 WRITEUPS */

.findings {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.finding {
  display: flex; flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--surface-2), var(--surface-s));
  padding: 28px 26px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--spring), box-shadow .35s var(--ease);
}
.finding::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--fc, var(--c-red)), transparent);
}
.finding:hover {
  border-color: color-mix(in srgb, var(--fc, var(--c-red)) 45%, transparent);
  transform: translateY(-5px);
  box-shadow: 0 26px 56px -34px var(--fc, var(--c-red));
}

.finding__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.finding__id { font: 600 11px/1 var(--mono); letter-spacing: .14em; color: var(--dim); }
.finding__head .icard__sev { margin-bottom: 0; }

.finding__title { font-size: 1.24rem; margin-bottom: 14px; }
.finding__title a { text-decoration: none; transition: color .2s; }
.finding__title a:hover { color: var(--fc, var(--c-red)); }

.finding__sum { color: var(--muted); font-size: .97rem; }
.finding__sum code {
  color: var(--c-violet);
  background: rgba(169, 139, 255, .14);
  padding: 1px 5px; border-radius: 4px;
}

.finding__facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin: 4px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.finding__facts dt {
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 5px;
}
.finding__facts dd { margin: 0; font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.finding__facts .fixed { color: var(--c-green); }

.finding__cta {
  margin-top: auto;
  font: 700 13px/1 var(--mono);
  color: var(--fc, var(--c-red));
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.finding__cta span { transition: transform .25s var(--ease); }
.finding__cta:hover span { transform: translateX(5px); }
.finding__cta--muted { color: var(--dim); }

/* Published research reads as a different kind of artefact to a bug report. */
.finding--paper { --fc: var(--c-blue); }
.finding--soon  { --fc: var(--dim); border-style: dashed; background: transparent; }
.finding--soon::after { display: none; }
.finding--soon:hover { transform: none; box-shadow: none; }

/* ============================================================ 05 CERTIFICATIONS */

.certs {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(246px, 1fr));
}

.cert {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--cc, var(--sa)) 34%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--cc, var(--sa)) 15%, transparent), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface-s));
  padding: 22px 22px 24px;
  overflow: hidden;
  transition: transform .4s var(--spring), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.cert::before {
  /* holographic sheen, like a foil trading card */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
  transform: translateX(-100%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.cert:hover {
  transform: translateY(-9px) rotate(-.6deg);
  border-color: var(--cc, var(--sa));
  box-shadow: 0 32px 64px -32px var(--cc, var(--sa));
}
.cert:hover::before { transform: translateX(100%); }

.cert:nth-child(1) { --cc: var(--c-red); }
.cert:nth-child(2) { --cc: var(--c-violet); }
.cert:nth-child(3) { --cc: var(--c-cyan); }
.cert:nth-child(4) { --cc: var(--c-gold); }

.cert__top {
  display: flex; align-items: center; justify-content: space-between;
  font: 600 10px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 26px;
}
.cert__cat { color: var(--cc, var(--sa)); }
.cert__num { color: var(--dim); }

.cert__sigil {
  font: 700 clamp(1.6rem, 3.4vw, 2.15rem)/1 var(--mono);
  letter-spacing: -.05em;
  color: var(--text);
  margin-bottom: 22px;
}
.cert__sigil i { font-style: normal; color: var(--cc, var(--sa)); }

.cert__name { font-size: 1.04rem; margin-bottom: 8px; }
.cert__desc { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.cert__issuer { margin: 0; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--dim); }

.cert--rare::after {
  content: '★';
  position: absolute; top: 18px; right: 62px;
  font-size: 11px; color: var(--cc, var(--sa));
}
.cert--progress { border-style: dashed; }

/* ============================================================ 06 CONTACT */

/* ---- what I take on ---- */

.offer { margin-bottom: 92px; }
.offer__h {
  font: 700 11px/1 var(--mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 18px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.offer__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.svc {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-s);
  transition: border-color .3s var(--ease), transform .35s var(--spring), background .3s var(--ease);
}
.svc:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--vc, var(--sa)) 45%, transparent);
  background: var(--surface-2);
}
.svc:nth-child(1) { --vc: var(--c-green); }
.svc:nth-child(2) { --vc: var(--c-blue); }
.svc:nth-child(3) { --vc: var(--c-violet); }
.svc:nth-child(4) { --vc: var(--c-amber); }

.svc__n {
  display: block; margin-bottom: 14px;
  font: 700 10.5px/1 var(--mono); letter-spacing: .18em;
  color: var(--vc, var(--sa));
}
.svc h4 {
  margin: 0 0 12px;
  font-size: 1.04rem; font-weight: 700; line-height: 1.32;
  letter-spacing: -.01em; color: var(--text);
}
.svc p { font-size: .93rem; line-height: 1.68; color: var(--muted); margin-bottom: 14px; }

/* The line that answers "so what do I actually receive". */
.svc__out {
  margin-bottom: 0 !important;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .88rem !important;
  color: var(--dim) !important;
}

.offer__note {
  max-width: 68ch; margin: 30px auto 0;
  text-align: center;
  font-size: .95rem; line-height: 1.7; color: var(--dim);
}

/* ---- sign-off ---- */

.signoff { text-align: center; }

.signoff__art {
  display: block;
  width: 100%;
  max-width: 420px;
  height: clamp(170px, 24vw, 250px);
  margin: 0 auto 10px;
}

.signoff__line {
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.signoff__line span {
  display: block;
  background: linear-gradient(100deg, var(--c-green), var(--c-cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.signoff__sub {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 56ch;
  margin: 0 auto 48px;
}

.signoff__links {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 940px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  text-align: left;
}

.link {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--surface-2), var(--surface-s));
  padding: 22px 22px 24px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--spring), box-shadow .35s var(--ease);
}
.link::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lc), transparent);
}
.link:nth-child(1) { --lc: var(--c-green); }
.link:nth-child(2) { --lc: var(--c-cyan); }
.link:nth-child(3) { --lc: var(--c-blue); }
.link:nth-child(4) { --lc: var(--c-violet); }
.link:hover {
  border-color: color-mix(in srgb, var(--lc) 48%, transparent);
  transform: translateY(-5px);
  box-shadow: 0 26px 56px -34px var(--lc);
}

.link__k {
  display: block;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.link a {
  font: 600 14.5px/1.4 var(--mono);
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  transition: color .2s;
}
.link:hover a { color: var(--lc); }
.link__ext { color: var(--dim); }

/* The email card keeps its copy button on the same row as the address. */
.link--mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.link--mail .link__k { flex: 1 0 100%; margin-bottom: 12px; }

.copy {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 7px 11px;
  cursor: pointer;
  transition: all .25s var(--spring);
}
.copy:hover { color: var(--c-green); border-color: var(--c-green); transform: translateY(-2px); }
.copy.is-done { color: #04150c; border-color: var(--c-green); background: var(--c-green); }

/* ============================================================ FOOTER */

.foot {
  position: relative;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.foot::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 50% 0%, rgba(78, 240, 143, .09), transparent 70%);
}
.foot .wrap { position: relative; z-index: 1; }

.foot__inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  justify-content: space-between; align-items: center;
}
.foot p { margin: 0; font: 400 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--dim); }
.foot__note { color: #4b5273 !important; }

.foot__links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__links a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot__links a:hover { color: var(--c-green); border-bottom-color: currentColor; }

/* ============================================================ REVEAL */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

/* ============================================================ MOTION / PRINT */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__row { animation: none; }
  /* Bars hold a lit height rather than freezing flat, so "on" still reads as on. */
  .music[aria-pressed="true"] .music__eq i { height: 9px; animation: none !important; }
}

@media print {
  .progress, .course, .hero__canvas, .hero__scroll, .copy, .music { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .section { page-break-inside: avoid; border-color: #ccc; }
}
