/* =========================================================
   Portfolio — colorful + modern, scroll-driven
   Colors per section are set in index.html (data-bg / data-fg)
   ========================================================= */

:root {
  --bg: #120d2e;
  --fg: #ffffff;
  --ink: #1a1033;
  --violet: #7c5cff;
  --pink: #ff4f7b;
  --cyan: #00d4ff;
  --yellow: #ffd84d;
  --lime: #3dffa8;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --pad: 6vw;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

::selection { background: var(--pink); color: #fff; }

/* ---------- global overlays ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100;
  transform-origin: left; transform: scaleX(0);
  background: var(--fg);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem var(--pad);
  color: var(--fg);
}
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; letter-spacing: -.04em; }
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.nav nav { display: flex; gap: 1.8rem; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .92rem; opacity: .85; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
@media (max-width: 760px) { .nav nav a:not([href="#notes"]):not([href$="#notes"]) { display: none; } }

/* ---------- shared ---------- */
.scene { position: relative; height: var(--h, 200vh); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.label {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; opacity: .7;
}

h2 { font-weight: 800; letter-spacing: -.04em; line-height: .95; }

/* =========================================================
   HERO
   ========================================================= */
/* flat poster layout: solid colors, ink outlines, no blur or gradients */
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 6.2rem var(--pad) 2.4rem;
}
.hero-meta, .hero-bottom { border-top: 2px solid currentColor; will-change: transform, opacity; }
.hero-meta {
  display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.status { display: inline-flex; align-items: center; gap: .55rem; }
.status i {
  width: 10px; height: 10px; border-radius: 50%; background: #18b86b; border: 2px solid var(--ink);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { 50% { background: transparent; } }

.hero-main { align-self: end; }
.hero-hi {
  font-family: var(--mono); font-size: clamp(.85rem, 1.1vw, 1rem);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem;
  will-change: opacity;
}
.hero-title {
  font-size: clamp(4.5rem, 15vw, 15rem); font-weight: 800;
  line-height: .84; letter-spacing: -.065em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .05em 0; will-change: transform; }
.hero-title .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .1s; }
.hero-title .dot { font-style: normal; color: var(--pink); }
@keyframes rise { from { transform: translateY(105%); } }

.hero-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.2rem;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-weight: 700; font-size: .9rem; padding: .38rem .95rem; border-radius: 999px;
  background: var(--c); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.hero-tag { font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.scroll-cue { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }

/* dash field canvas (assets/js/field.js) sits behind the diagram and text */
/* site-wide character trail (assets/js/field.js): fixed layer behind all page content */
.site-field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.hero-net {
  position: absolute; z-index: 1; right: var(--pad); top: 42%;
  width: min(34vw, 520px); transform: translateY(-50%); overflow: visible;
}
.hn-lines line {
  stroke: var(--ink); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s .5s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hn .shape {
  stroke: var(--ink); stroke-width: 3; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: center;
  animation: pop .7s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(.2s + var(--d) * .09s);
}
@keyframes pop { from { transform: scale(0); } }
.hn text {
  font-family: var(--mono); font-size: 17px; font-weight: 700; fill: var(--ink);
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.hn text.light { fill: #fff; }

@media (max-width: 760px) {
  .hero-grid { padding-top: 5rem; }
  .hero-meta { font-size: .66rem; letter-spacing: .06em; }
  .hero-net { width: 82vw; right: -4vw; top: 7rem; transform: none; }
  .hero-title { font-size: 22vw; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

/* =========================================================
   ABOUT — word-by-word reveal
   ========================================================= */
.about .sticky { display: flex; align-items: center; }
.about-inner { padding: 0 var(--pad); max-width: 1300px; }
.about-grid { display: grid; grid-template-columns: 1fr minmax(190px, 23vw); gap: 4vw; align-items: center; margin-top: 1.6rem; }
.about-grid > .reveal-text { grid-column: 1; grid-row: 1; }
.about-grid > .photo-about { grid-column: 2; grid-row: 1; }
.reveal-text {
  font-size: clamp(1.4rem, 2.8vw, 2.8rem); font-weight: 750; line-height: 1.12; letter-spacing: -.03em;
}
.w { opacity: .12; transition: opacity .15s linear; }
.hl { display: inline-block; padding: 0 .18em; border-radius: .25em; margin: .04em 0; }
.hl-1 { background: var(--yellow); color: var(--ink); }
.hl-2 { background: var(--ink); color: #fff; }
.hl-3 { background: var(--lime); color: var(--ink); }
/* photo card: flat, ink outline, hard shadow (matches the skill cards) */
.photo {
  margin: 0; padding: .7rem .7rem .85rem; border-radius: 18px;
  background: #f3efe6; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(3deg); will-change: transform, opacity;
}
.photo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 2px solid var(--ink); }
.photo figcaption { margin-top: .6rem; font-family: var(--mono); font-size: .76rem; font-weight: 700; text-align: center; line-height: 1.35; }
@media (max-width: 860px) {
  /* phones: photo floats right, text wraps around it */
  .about-grid { display: block; margin-top: 1rem; }
  .about-grid::after { content: ""; display: block; clear: both; }
  .photo-about { float: right; width: 32vw; margin: .25rem 0 .5rem .9rem; padding: .35rem; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
  .photo-about img { border-radius: 7px; }
  .photo-about figcaption { display: none; }
  .reveal-text { font-size: 1.3rem; }
  .facts { gap: .8rem 1.2rem; margin-top: 1.4rem; }
  .facts dd { font-size: .88rem; }
}
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 2rem;
  margin-top: 3rem; padding-top: 1.2rem; border-top: 2px solid currentColor;
  opacity: 0; will-change: transform, opacity;
}
.facts dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.facts dd { font-weight: 700; font-size: 1.05rem; margin-top: .35rem; }
.facts dd.todo { opacity: .6; font-style: italic; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; margin-top: 2rem; } }

/* =========================================================
   JOURNEY — SVG topology drawn by scroll
   ========================================================= */
.journey .sticky {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 4vw;
  padding: 0 var(--pad);
}
.journey h2 { font-size: clamp(2rem, 4.4vw, 4rem); margin: .8rem 0 2.4rem; max-width: 14ch; }
.stages { position: relative; min-height: 15rem; }
.stage {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .5s ease;
  border-left: 4px solid var(--c); padding-left: 1.3rem;
}
.stage.active { opacity: 1; transform: none; }
.stage .step { font-family: var(--mono); font-size: .85rem; color: var(--c); letter-spacing: .08em; text-transform: uppercase; }
.stage h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.03em; margin: .4rem 0 .6rem; }
.stage p:last-child { font-size: 1.12rem; line-height: 1.55; opacity: .82; max-width: 36ch; }

.topology { width: 100%; max-height: 86vh; overflow: visible; }
.route-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.route { fill: none; stroke: #f3efe6; stroke-width: 5; stroke-linecap: round; }
.node .core { fill: #0a1a3a; stroke: #f3efe6; stroke-width: 3; transition: fill .35s ease; }
.node.on .core { fill: var(--c); }
.node .ring { fill: none; stroke: var(--c); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.node.on .ring { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.node .ico {
  font-family: var(--mono); font-size: 15px; font-weight: 700; fill: #f3efe6;
  text-anchor: middle; dominant-baseline: central; transition: fill .35s ease;
}
.node.on .ico { fill: var(--ink); }
.node .lbl { fill: currentColor; font-size: 17px; font-weight: 700; text-anchor: middle; opacity: .45; transition: opacity .35s; }
.node.on .lbl { opacity: 1; }
.packet { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }

@media (max-width: 860px) {
  .journey .sticky { grid-template-columns: 1fr; align-content: center; gap: 1rem; padding-top: 4rem; }
  .journey h2 { margin-bottom: 1.2rem; font-size: 1.9rem; }
  .stages { min-height: 10.5rem; }
  .topology { max-height: 46vh; }
}

/* =========================================================
   SKILLS — horizontal scroll track
   ========================================================= */
.skills .sticky { display: flex; flex-direction: column; justify-content: center; gap: 3vh; padding-top: 3rem; }
.skills-head { padding: 0 var(--pad); }
.skills h2 { font-size: clamp(2.4rem, 6.5vw, 6rem); margin-top: .6rem; }
.track { display: flex; gap: 2rem; padding: 1rem var(--pad) 2rem; width: max-content; will-change: transform; }
.skill-card {
  width: min(80vw, 380px); min-height: min(48vh, 420px);
  display: flex; flex-direction: column;
  padding: 2rem; border-radius: 28px;
  background: var(--c); color: var(--t, var(--ink));
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.skill-card:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.skill-card .num { font-size: clamp(3.4rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.skill-card h3 { font-size: 2.1rem; letter-spacing: -.03em; margin: auto 0 .7rem; }
.skill-card p { line-height: 1.5; opacity: .92; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.tags li { border: 2px solid currentColor; border-radius: 999px; padding: .22rem .8rem; font-size: .84rem; font-weight: 650; }

/* =========================================================
   PROJECTS — stacking cards
   ========================================================= */
.projects { padding: 22vh var(--pad) 12vh; }
.projects h2, .notes h2 { font-size: clamp(2.4rem, 6.5vw, 6rem); margin-top: .6rem; }
.stack { margin-top: 8vh; }
.project-card {
  position: sticky; top: calc(13vh + var(--i) * 26px);
  height: min(72vh, 600px); margin-bottom: 12vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 3.6rem); border-radius: 34px;
  background: var(--c); color: var(--t, #fff);
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transform-origin: center top; will-change: transform;
}
.project-card:last-child { margin-bottom: 0; }
.project-card > * { min-width: 0; } /* let long terminal lines shrink (ellipsis) instead of widening the card */
.project-card .meta { font-family: var(--mono); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.project-card h3 { font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1; letter-spacing: -.04em; margin: .8rem 0 1.2rem; }
.project-card p { font-size: 1.1rem; line-height: 1.55; max-width: 40ch; opacity: .92; }
.term {
  position: relative; background: var(--ink); color: #f3efe6; border: 3px solid var(--ink);
  border-radius: 18px; padding: 1.3rem 1.5rem; font-family: var(--mono); font-size: .9rem; line-height: 1.8;
}
.term p { font-size: inherit !important; opacity: 1 !important; max-width: none !important; line-height: inherit !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .dots { display: flex; gap: 6px; margin-bottom: .8rem; }
.term .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); }
.term .dots i:nth-child(2) { background: var(--yellow); }
.term .dots i:nth-child(3) { background: var(--lime); }
.term .c { color: var(--yellow); }
.term .ok { color: var(--lime); }

@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; gap: 1.5rem; height: auto; min-height: 66vh; align-content: center; }
  .term { font-size: .78rem; }
}

/* =========================================================
   NOTES
   ========================================================= */
.notes { padding: 20vh var(--pad) 18vh; }
.notes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.filters { display: flex; gap: .55rem; flex-wrap: wrap; }
.filter {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  background: transparent; color: inherit;
  border: 2px solid currentColor; border-radius: 999px; padding: .5rem 1.15rem;
  transition: background .2s, color .2s;
}
.filter:hover { background: rgba(255,255,255,.1); }
.filter.active { background: #f3efe6; color: var(--ink); border-color: #f3efe6; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.note-card {
  --k: var(--cyan); --r: 1; --lift: 0;
  display: flex; flex-direction: column; gap: .8rem; min-height: 240px;
  padding: 1.7rem; border-radius: 22px; text-decoration: none;
  background: #f3efe6; color: var(--ink); border: 3px solid var(--ink);
  box-shadow: calc(7px + var(--lift) * 1px) calc(7px + var(--lift) * 1px) 0 var(--k);
  opacity: var(--r);
  transform: translate(calc(var(--lift) * -1px), calc((1 - var(--r)) * 60px - var(--lift) * 1px));
  transition: box-shadow .2s, transform .2s;
}
.note-card[data-cat="servers"] { --k: var(--lime); }
.note-card[data-cat="security"] { --k: var(--pink); }
a.note-card:hover { --lift: 4; }
.note-card .cat {
  align-self: flex-start; font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--k); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .15rem .65rem;
}
.note-card h3 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.note-card p { line-height: 1.5; opacity: .8; flex: 1; }
.note-card .more { font-weight: 800; }
.note-card.soon {
  /* solid fill in the section colour (looks the same) so the background trail can't show through */
  background: var(--bg); box-shadow: none;
  color: color-mix(in srgb, var(--fg) 60%, var(--bg)); border: 2px dashed currentColor;
}
.note-card.soon .more { font-weight: 600; }
.note-card.hide { display: none; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 2.4rem; overflow: hidden;
}
.contact-top, .contact-bottom, .contact footer { border-top: 2px solid currentColor; }
.contact-top { display: flex; justify-content: space-between; padding-top: .9rem; }
.contact .label { opacity: 1; }
.contact-title {
  font-size: clamp(4.5rem, 15vw, 15rem); font-weight: 800;
  line-height: .84; letter-spacing: -.065em; margin: 6vh 0 4vh;
}
.contact-title .line { display: block; will-change: transform; }
.contact-title .line:nth-child(2) { text-align: right; }
.contact-title .dot { font-style: normal; color: var(--pink); }
/* ---------- cat stickers (cut-outs with baked cream outline) ---------- */
.skills-head, .projects-head, .notes-head { position: relative; }
.cat-sticker {
  position: absolute; z-index: 3; margin: 0; pointer-events: none;
  width: clamp(96px, 11vw, 165px); will-change: transform, opacity;
}
.cat-sticker img {
  display: block; width: 100%; height: auto; filter: drop-shadow(5px 5px 0 var(--ink));
  pointer-events: auto; cursor: pointer; transform-origin: 50% 85%;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), filter .25s;
}
/* hover (desktop) or tap (phone): the cat perks up and wiggles */
.cat-sticker img:hover { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(8px 8px 0 var(--ink)); }
.cat-sticker img.boop { animation: boop .55s ease; }
@keyframes boop {
  0% { transform: scale(1); } 25% { transform: scale(1.12) rotate(-9deg); }
  50% { transform: scale(1.06) rotate(7deg); } 75% { transform: scale(1.1) rotate(-4deg); } 100% { transform: scale(1); }
}
/* QA cat perches on the top edge of the project card stack and rides along with it */
.stack-perch { position: sticky; top: 13vh; height: 0; z-index: 6; }
.cat-sticker figcaption {
  position: absolute; left: 50%; bottom: -.4rem; transform: translateX(-50%) rotate(-3deg);
  white-space: nowrap; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  background: var(--ink); color: #f3efe6; padding: .28rem .65rem; border-radius: 999px;
}
.cat-root  { right: var(--pad); top: -4.5rem; }
.cat-qa    { right: 4%; top: -64px; width: clamp(96px, 9vw, 130px); }
.cat-study { right: 1vw; top: -7rem; }
@media (max-width: 760px) {
  .cat-sticker { width: 84px; }
  .cat-root { top: -6.2rem; }
  .cat-qa { top: -74px; right: 36%; width: 64px; }
  .cat-study { top: -5.6rem; right: 0; }
  .cat-sticker figcaption { font-size: .6rem; }
}
/* cut-out "sticker" photo set inside the headline, sized like a letter.
   The cream outline is baked into the image; the ink shadow follows its shape. */
.contact-title .inline-photo {
  display: inline-block; height: .98em; width: auto; vertical-align: -.1em;
  margin-left: .06em; transform: rotate(-4deg);
  filter: drop-shadow(5px 5px 0 var(--ink));
}
.contact-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  padding-top: 1.4rem;
}
.contact-sub { max-width: 32ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45; }
.links { display: flex; flex-wrap: wrap; gap: .9rem; }
.links a {
  text-decoration: none; font-weight: 800; font-size: 1.15rem; color: var(--ink);
  background: #f3efe6; border: 3px solid var(--ink); border-radius: 999px; padding: .85rem 1.8rem;
  box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s;
}
.links a:hover { background: var(--yellow); transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.contact footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 10vh; padding-top: 1rem; font-size: .9rem;
}
@media (max-width: 760px) {
  .contact-title { font-size: 22vw; }
  .contact-title .line:nth-child(2) { text-align: left; }
}

/* =========================================================
   NOTE PAGES
   ========================================================= */
.note-page { --bg: #0d2a26; --fg: #eafff7; }
.note { max-width: 780px; margin: 0 auto; padding: 9rem var(--pad) 7rem; font-size: 1.1rem; line-height: 1.75; }
.note .label { color: var(--lime); opacity: 1; }
.note h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.045em; margin: .9rem 0 1.4rem; }
.note .lead { font-size: 1.3rem; opacity: .85; }
.note h2 { font-size: 1.8rem; letter-spacing: -.025em; line-height: 1.15; margin: 3rem 0 1rem; }
.note p, .note ul, .note ol, .note table, .note pre, .note .callout { margin-bottom: 1.3rem; }
.note ul, .note ol { padding-left: 1.4rem; }
.note li { margin-bottom: .35rem; }
.note code { font-family: var(--mono); font-size: .9em; background: rgba(255,255,255,.08); padding: .1em .4em; border-radius: 6px; }
.note pre { background: #071a17; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 1.2rem 1.4rem; overflow-x: auto; line-height: 1.6; }
.note pre code { background: none; padding: 0; font-size: .9rem; }
.note table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.note th, .note td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.note th { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.callout { border-left: 4px solid var(--lime); background: rgba(61,255,168,.08); padding: 1rem 1.3rem; border-radius: 0 14px 14px 0; }
.callout.warn { border-color: var(--pink); background: rgba(255,79,123,.09); }
.back { display: inline-block; margin-top: 2rem; font-weight: 700; color: var(--lime); text-decoration: none; }

/* =========================================================
   REDUCED MOTION — everything visible, no scroll effects
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { height: auto !important; }
  .sticky { position: relative; height: auto; min-height: 100vh; overflow: visible; padding: 7rem 0; }
  .w, .facts, .cat-sticker, .photo-about { opacity: 1; }
  .stages { min-height: 0; }
  .stage { position: relative; opacity: 1; transform: none; margin-bottom: 1.6rem; }
  .route { stroke-dashoffset: 0 !important; }
  .packet { display: none; }
  .track { width: auto; overflow-x: auto; }
  .node.on .ring, .status i, .hero-title .line > span, .hn .shape { animation: none; }
  .hn-lines line { animation: none; stroke-dashoffset: 0; }
}
