:root {
  --bg: #0b0d10;
  --mint: #84e3b6;
  --neon: #7dffc8;
  --ink: #0a0a12;
  --red: #ff4f79;
  --orange: #ff9f43;
  --yellow: #ffe95c;
  --cyan: #3fe0ff;
  --purple: #b061ff;

  /* the diagonal gloss band swept across titles; slide it with --sheen 0% → 100% */
  --sheen-band: linear-gradient(115deg, transparent 0 44%, #7dffd0 44% 47%, #fff 47% 52%, #c79bff 52% 55%, transparent 55%);

  /* one "art pixel" — everything chunky is a multiple of this */
  --u: clamp(3px, 0.8vmin, 7px);
  --card: clamp(150px, min(44vmin, 40svh), 420px);

  --panel: #11151a;
  --line: #2c333b;
  --text: #c3d1cb;
  --bone: #5fa890;
  --bar-h: 52px;

  --pixel-font: 'Silkscreen', ui-monospace, 'Courier New', monospace;
  --title-font: 'Pixelify Sans', 'Silkscreen', ui-monospace, monospace;
  --body-font: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

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

html { scrollbar-color: #2f8f72 var(--bg); }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--mint);
  font-family: var(--pixel-font);
  -webkit-font-smoothing: none;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--neon); color: var(--ink); }

button { font: inherit; color: inherit; }

/* ---------- background canvas ---------- */

#bg {
  position: fixed;
  top: 0;
  left: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;
}

/* ---------- layout ---------- */

.splash { position: relative; }

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vmin, 26px);
  padding: 16px 16px 76px;
  text-align: center;
  transform-origin: 50% 40%;
}

.js .stage, .js .sfx, .js .more { visibility: hidden; }

/* ---------- portrait card ---------- */

.float { perspective: 900px; margin-bottom: calc(var(--u) * 4); }
.tilt { will-change: transform; }

.card {
  --fan: 1;
  --sx: 0px;
  --sy: 0px;
  --notch: calc(var(--u) * 2);
  --clip: polygon(
    var(--notch) 0, calc(100% - var(--notch)) 0,
    calc(100% - var(--notch)) var(--notch), 100% var(--notch),
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, var(--notch) 100%,
    var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)),
    0 var(--notch), var(--notch) var(--notch)
  );
  position: relative;
  display: block;
  width: var(--card);
  height: var(--card);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  isolation: isolate;
  touch-action: manipulation;
  user-select: none;
}

.card:focus-visible { outline: none; }
.card:focus-visible .frame { background: #fff; }

.layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
  clip-path: var(--clip);
  transform: translate(
    calc(var(--k) * (var(--fan) * var(--u) + var(--sx))),
    calc(var(--k) * (var(--fan) * var(--u) + var(--sy)))
  );
}

.frame {
  position: absolute;
  inset: 0;
  padding: var(--u);
  /* graphite with a hard gloss highlight across the top-left corner */
  background: linear-gradient(135deg, #8b98a6 0 7%, #4a535e 7% 13%, #1d2228 13% 62%, #2c333b 62% 66%, #14181c 66%);
  clip-path: var(--clip);
}

.art {
  --notch: var(--u);
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: var(--clip);
  background: var(--mint);
}

.art img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}

/* gloss sweep, masked at runtime to the dark pixels of the skull */
.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.sheen.ready { opacity: 1; }
.sheen i {
  position: absolute;
  top: -20%;
  left: 0;
  width: 42%;
  height: 140%;
  transform: translateX(-140%) skewX(-24deg);
  background: linear-gradient(90deg,
    transparent 0 14%,
    rgba(63, 224, 255, .35) 14% 28%,
    rgba(255, 255, 255, .5) 28% 42%,
    rgba(176, 97, 255, .35) 42% 54%,
    transparent 54% 70%,
    rgba(255, 233, 92, .3) 70% 78%,
    transparent 78%);
}

.eye {
  position: absolute;
  left: 65%;
  top: 22.5%;
  width: 22%;
  height: 22%;
  margin: -11% 0 0 -11%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 255, 130, .95) 0 14%, rgba(70, 255, 160, .5) 34%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .35;
}

.glint, .beam {
  position: absolute;
  left: 80.8%;
  top: 21.2%;
  opacity: 0;
}

.glint { width: 0; height: 0; }
.glint::before, .glint::after {
  content: '';
  position: absolute;
  background: #fff;
  box-shadow: 0 0 calc(var(--u) * 1.5) rgba(160, 255, 220, .9);
}
.glint::before { width: calc(var(--u) * 7); height: var(--u); left: calc(var(--u) * -3.5); top: calc(var(--u) * -.5); }
.glint::after  { width: var(--u); height: calc(var(--u) * 7); left: calc(var(--u) * -.5); top: calc(var(--u) * -3.5); }

.beam {
  width: 34%;
  height: calc(var(--u) * .75);
  margin-top: calc(var(--u) * -.375);
  transform-origin: 0 50%;
  transform: rotate(-53deg) scaleX(0);
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .0));
}

.drip {
  position: absolute;
  left: 80.6%;
  top: 62%;
  width: 1.5%;
  height: 4.5%;
  background: #6ff7e2;
  transform-origin: 50% 0;
  opacity: 0;
}

/* ---------- title ---------- */

.title {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(2.4rem, 15vmin, 7.5rem);
  line-height: .9;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.title .ch, .gloss {
  --sheen: 0%;
  display: inline-block;
  color: transparent;
  background:
    var(--sheen-band) var(--sheen) 0 / 400% 100% no-repeat,
    linear-gradient(180deg, #7c8996 0 22%, #39414b 22% 30%, #14181d 30% 78%, #0a0c0f 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .028em var(--neon);
  filter:
    drop-shadow(.04em .04em 0 var(--cyan))
    drop-shadow(.04em .04em 0 var(--purple))
    drop-shadow(.04em .04em 0 var(--red));
  will-change: transform;
}

/* ---------- tagline ---------- */

.tag {
  margin: 0;
  font-size: clamp(.7rem, 2.3vmin, 1.05rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag span {
  display: inline-block;
  min-width: 14ch;
  padding: .45em 1em .5em;
  background: var(--neon);
  color: var(--ink);
  box-shadow: calc(var(--u) * .75) calc(var(--u) * .75) 0 rgba(125, 255, 200, .22);
}

/* ---------- links ---------- */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--u) * 3);
}
.links:empty { display: none; }

.btn {
  --s: calc(var(--u) * .75);
  display: inline-block;
  padding: .6em 1.1em .65em;
  font-size: clamp(.7rem, 2.2vmin, 1rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--neon);
  background: linear-gradient(180deg, #2c333b 0 18%, #14181d 18%);
  border: var(--s) solid var(--neon);
  box-shadow: var(--s) var(--s) 0 rgba(125, 255, 200, .3);
  transition: transform .12s steps(3), box-shadow .12s steps(3), background-color .12s steps(2);
}
.btn:hover, .btn:focus-visible {
  outline: none;
  color: var(--ink);
  background: var(--neon);
  transform: translate(calc(var(--s) * -1), calc(var(--s) * -1));
  box-shadow:
    var(--s) var(--s) 0 var(--red),
    calc(var(--s) * 2) calc(var(--s) * 2) 0 var(--purple),
    calc(var(--s) * 3) calc(var(--s) * 3) 0 var(--cyan);
}
.btn:active {
  transform: translate(var(--s), var(--s));
  box-shadow: 0 0 0 var(--neon);
}

/* ---------- small print ---------- */

.hint {
  margin: 0;
  font-size: clamp(.6rem, 1.8vmin, .8rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(132, 227, 182, .6);
}

.sfx {
  position: fixed;
  z-index: 3;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  padding: .5em .8em .55em;
  font-size: .65rem;
  letter-spacing: .1em;
  background: transparent;
  border: 2px solid rgba(132, 227, 182, .4);
  color: rgba(132, 227, 182, .75);
  cursor: pointer;
  transition: background-color .12s steps(2), color .12s steps(2);
}
.sfx:hover, .sfx:focus-visible { outline: none; background: var(--neon); color: var(--ink); border-color: var(--neon); }
.sfx[aria-pressed="false"] { text-decoration: line-through; }

/* ---------- click effects ---------- */

.fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

.doot {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(1rem, 4.5vmin, 2.2rem);
  line-height: 1;
  color: var(--c, #fff);
  text-shadow: .08em .08em 0 var(--ink), -.04em -.04em 0 var(--ink), .04em -.04em 0 var(--ink), -.04em .04em 0 var(--ink);
  will-change: transform, opacity;
}

@media (max-height: 520px) {
  .hint { display: none; }
}

/* ================================================================== *
 * CV
 * ================================================================== */

/* ---------- "see more" ---------- */

.more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: max-content;
  margin: 0 auto;
  padding: 8px 14px 10px;
  color: var(--neon);
  background: var(--bg);
  border: 2px solid var(--line);
  font-size: clamp(.65rem, 2vmin, .85rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.more-in { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.more-arrow {
  width: 21px;
  height: 15px;
  background: var(--img-chevron) center / contain no-repeat;
}
.more:hover, .more:focus-visible { outline: none; color: #fff; border-color: var(--neon); }
/* gone the moment the page scrolls (toggled by cv.js); !important beats the intro tween's inline opacity */
.more { transition: opacity .25s ease-out, visibility .25s; }
.more.gone { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .more { transition: none; } }

/* ---------- sticky bar ---------- */

.bar {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: linear-gradient(180deg, #1c2127 0 4px, #0e1115 4px);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 3px 0 rgba(125, 255, 200, .22);
}
.js .bar { visibility: hidden; }

.bar-home { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.bar-skull {
  width: 32px;
  height: 32px;
  border: 2px solid var(--neon);
  background: var(--mint) url(../img/dootlord.png) 78% 12% / 170%;
  image-rendering: pixelated;
}
.bar-name {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--neon);
}
.bar-home:hover .bar-skull, .bar-home:focus-visible .bar-skull { border-color: #fff; }
.bar-home:focus-visible { outline: none; }

.bar nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a {
  flex: none;
  padding: .55em .75em .6em;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(132, 227, 182, .7);
  transition: color .12s steps(2), background-color .12s steps(2);
}
.bar nav a:hover, .bar nav a:focus-visible { outline: none; color: #fff; }
.bar nav a.on { color: var(--ink); background: var(--neon); }

/* ---------- sections ---------- */

.cv {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 32px) 40px;
  font-family: var(--body-font);
  font-size: clamp(.85rem, 1.6vw, .95rem);
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.sec {
  padding-top: clamp(64px, 11vh, 120px);
  scroll-margin-top: var(--bar-h);
}

.sec-head { margin-bottom: clamp(20px, 4vw, 34px); }

.kicker {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone);
}
.kicker span {
  display: inline-block;
  margin-right: 10px;
  padding: .2em .5em .25em;
  background: var(--neon);
  color: var(--ink);
  letter-spacing: .06em;
}

.gloss {
  margin: 10px 0 0;
  padding-right: .12em;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  line-height: 1;
  letter-spacing: .02em;
}

/* a long thin bone */
.bone-rule {
  position: relative;
  display: block;
  height: 4px;
  margin: 18px 4px 0;
  background: var(--bone);
  transform-origin: 0 50%;
}
.bone-rule::before, .bone-rule::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 4px;
  height: 12px;
  background: var(--bone);
}
.bone-rule::before { left: -4px; }
.bone-rule::after { right: -4px; }

/* ---------- panels ---------- */

.panel {
  position: relative;
  display: block;
  padding: clamp(16px, 3vw, 26px);
  color: inherit;
  text-decoration: none;
  /* graphite, with the same hard corner highlight as the portrait frame */
  background: linear-gradient(135deg, #46515c 0 9px, #232930 9px 15px, transparent 15px), var(--panel);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 rgba(125, 255, 200, .13);
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel p { margin: 0 0 1em; }

.panel-title, .job-role {
  margin: 0 0 14px;
  font-family: var(--pixel-font);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
}
.job-role { margin-bottom: 6px; font-size: 1rem; letter-spacing: .06em; color: #f0fff8; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

/* fewer, wider cards (projects) */
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}
.edu { margin-top: clamp(16px, 2.5vw, 24px); }

.panel .lead {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.1;
  color: #f0fff8;
}
.panel .lead-role {
  margin: 6px 0 18px;
  font-family: var(--pixel-font);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
}

.stats { margin: 0; }
.stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 2px dashed var(--line);
}
.stats div:last-child { border-bottom: 0; padding-bottom: 0; }
.stats dt {
  flex: none;
  font-family: var(--pixel-font);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
}
.stats dd { margin: 0; text-align: right; color: #f0fff8; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 2px dashed var(--line);
}
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.row-main { color: #f0fff8; font-weight: 700; }
.row-sub { grid-column: 1; }
.rows li .edu-projects { grid-column: 1 / -1; margin-top: 10px; }
.rows li .edu-projects li { display: list-item; padding: 0 0 0 20px; border: 0; }
.row-when {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--pixel-font);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}

/* chips */

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.panel p + .chips, .points + .chips { margin-top: 16px; }
.chips li {
  padding: .35em .7em .42em;
  font-family: var(--pixel-font);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neon);
  background: #0c0f12;
  border: 2px solid #2f8f72;
  transition: color .12s steps(2), background-color .12s steps(2), border-color .12s steps(2);
}
.chips li:hover { color: var(--ink); background: var(--neon); border-color: var(--neon); }

/* career: a spine with a job hanging off each rib */

.timeline { position: relative; padding: 50px 0 56px 66px; }
.timeline ol { list-style: none; display: grid; gap: clamp(20px, 3vw, 30px); margin: 0; padding: 0; }

.spine-skull {
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 40px;
  background: var(--img-skull) center / contain no-repeat;
}
.spine {
  position: absolute;
  left: 5px;
  top: 44px;
  bottom: 44px;
  width: 25px;
  background: var(--img-spine) top center / 25px 25px repeat-y;
  clip-path: inset(0 0 calc(100% - var(--p, 0%)) 0);
}
/* the skull at the far end: a faint ghost until the spine reaches it */
.spine-end {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 40px;
  background: var(--img-skull) center / contain no-repeat;
  opacity: .18;
  filter: grayscale(1);
  transform: scale(.8);
  transition: opacity .25s, filter .25s, transform .4s cubic-bezier(.34, 1.8, .64, 1);
}
.spine-end.on { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .spine-end { transition: none; }
}

.job { position: relative; }
.rib {
  position: absolute;
  left: -36px;
  top: 27px;
  width: 36px;
  height: 5px;
  background: linear-gradient(180deg, #b4c0cc 0 40%, #46515c 40%);
  transform-origin: 0 50%;
}
.rib::after {
  content: '';
  position: absolute;
  right: 0;
  top: -5px;
  width: 5px;
  height: 15px;
  background: #46515c;
}

.panel .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 14px;
  font-family: var(--pixel-font);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone);
}
.job-meta span + span::before { content: '/'; margin: 0 .7em; color: #46515c; }
.job-co { color: var(--neon); }

.points { list-style: none; margin: 0; padding: 0; }
.points li { position: relative; padding-left: 20px; margin-bottom: .45em; }
.points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--neon);
}

/* projects (uses `translate`, not `transform`, so it never fights the reveal tween) */

.project { transition: translate .12s steps(3), box-shadow .12s steps(3), border-color .12s steps(2); }
a.project:hover, a.project:focus-visible {
  outline: none;
  translate: -4px -4px;
  border-color: var(--neon);
  box-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--purple), 12px 12px 0 var(--cyan);
}
.open {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--pixel-font);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
}

/* featured: the advertised project, first section after the splash */

.feature {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(22px, 4vw, 40px);
  color: inherit;
  text-decoration: none;
  border-color: var(--neon);
  box-shadow: 6px 6px 0 rgba(125, 255, 200, .25);
  transition: translate .12s steps(3), box-shadow .12s steps(3);
}
a.feature:hover, a.feature:focus-visible {
  outline: none;
  translate: -4px -4px;
  box-shadow: 4px 4px 0 var(--red), 8px 8px 0 var(--purple), 12px 12px 0 var(--cyan);
}
a.feature:hover .btn, a.feature:focus-visible .btn {
  color: var(--ink);
  background: var(--neon);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
  padding: .3em .7em .35em;
  font-family: var(--pixel-font);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--neon);
}
.feature-tagline {
  font-family: var(--title-font);
  font-size: clamp(1.25rem, 3.2vw, 1.8rem);
  line-height: 1.2;
  color: #fff;
}
.feature .points { margin-top: 4px; }

.feature-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--pixel-font);
}
.feature-url {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--bone);
}

/* four little bars that pulse like a signal meter */
.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.signal i { display: block; width: 3px; background: var(--ink); animation: signal 1.2s steps(4) infinite; }
.signal i:nth-child(1) { height: 30%; }
.signal i:nth-child(2) { height: 55%; animation-delay: .15s; }
.signal i:nth-child(3) { height: 80%; animation-delay: .3s; }
.signal i:nth-child(4) { height: 100%; animation-delay: .45s; }
@keyframes signal { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .signal i { animation: none; } }

@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; }
  .feature-cta { align-items: flex-start; }
}

/* contact + footer */

.contact { text-align: center; padding-block: clamp(26px, 5vw, 44px); }
.contact p { max-width: 56ch; margin-inline: auto; }
.contact .links { margin-top: 22px; font-family: var(--pixel-font); }

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px clamp(14px, 4vw, 32px) 36px;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(132, 227, 182, .5);
}
.foot a { color: var(--neon); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { outline: none; color: #fff; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bar-name { display: none; }
  .timeline { padding: 42px 0 46px 42px; }
  .spine-skull, .spine-end { width: 28px; height: 32px; }
  .spine { left: 4px; top: 36px; bottom: 36px; width: 20px; background-size: 20px 20px; }
  .rib { left: -18px; width: 18px; top: 24px; }
}

/* ---------- print: a plain, readable CV ---------- */

@media print {
  #bg, .splash, .bar, .sfx, .fx, .foot a, #featured, .spine, .spine-skull, .spine-end, .rib, .open { display: none !important; }
  body { background: #fff; color: #000; }
  .cv { max-width: none; padding: 0; color: #000; font-size: 10.5pt; }
  .sec { padding-top: 18pt; }
  .reveal, .chips li { opacity: 1 !important; transform: none !important; }
  .gloss { color: #000; background: none; -webkit-text-stroke: 0; filter: none; font-size: 20pt; }
  .bone-rule { background: #000; transform: none !important; }
  .bone-rule::before, .bone-rule::after { background: #000; }
  .kicker span { background: none; color: #000; padding: 0; }
  .panel { background: none; border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .timeline { padding: 0; }
  .lead, .job-role, .row-main, .stats dd { color: #000; }
  .panel-title, .lead-role, .job-co, .kicker, .job-meta, .stats dt, .row-when { color: #333; }
  .chips li { color: #000; background: none; border-color: #999; }
  .points li::before { background: #000; }
  .foot { color: #666; }
}
