
:root {
  --bg: #0a0d0b;
  --bg-2: #0f1411;
  --surface: #121915;
  --line: #1f2a23;
  --line-2: #2b3a30;
  --text: #cfdad2;
  --muted: #8a9b8e;
  --dim: #778a7b;
  --accent: #4ade80;
  --accent-2: #22c55e;
  --copper: #e0965a;
  --danger: #f87171;

  --mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --max: 1080px;
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));

  color-scheme: dark;
}

html:not([lang="en"]) [data-l="en"],
html[lang="en"] [data-l="nl"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.mono   { font-family: var(--mono); }
.accent { color: var(--accent); }
.copper { color: var(--copper); }
.dim    { color: var(--dim); }

#pcb {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100dvh;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.18) 100%);
          mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.18) 100%);
}

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

.logo-mark { display: inline-block; line-height: 0; color: var(--accent); transition: filter .2s; }
.logo-mark i {
  display: block; width: 30px; aspect-ratio: 57.818 / 51.131;
  background: currentColor;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
          mask: url("../img/logo.svg") center / contain no-repeat;
}
.nav__logo:hover .logo-mark {
  filter: drop-shadow(-2px 0 rgba(255,40,90,.85)) drop-shadow(2px 0 rgba(40,220,255,.85)) drop-shadow(0 0 8px rgba(74,222,128,.8));
  animation: crt-jitter .2s steps(2) infinite;
}
.nav__logo:hover .nav__prompt { animation: crt-flicker .4s steps(3) 1; text-shadow: 0 0 8px rgba(74,222,128,.6); }
.cursor {
  display: inline-block; width: .55em; height: 1em; margin-left: 2px;
  vertical-align: -2px; background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
.nav__links { display: flex; gap: 20px; margin-left: auto; }
.nav__links a { color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--accent); }
.nav__links a::before { content: "./"; color: var(--dim); }

.lang-toggle { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.lang-toggle button {
  font: inherit; font-size: 12px; padding: 4px 10px;
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 700; }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--text); }

@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav__links { gap: 12px; }
  .nav__links a::before { content: none; }
  .nav__prompt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0 24px; }
.section__title {
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
  color: var(--accent); margin: 0 0 32px;
  display: flex; align-items: center; gap: 12px;
}
.section__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

.hero { padding: clamp(64px, 12vh, 140px) 0 40px; }
.hero__pre { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.hero__name {
  font: 800 clamp(44px, 9vw, 104px)/1 var(--sans);
  letter-spacing: -.035em;
  margin: 0;
  color: #eef5f0;
}
.hero__tag { font-size: clamp(16px, 2.4vw, 22px); color: var(--copper); margin: 18px 0 0; min-height: 1.6em; }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.hero__intro { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 18px 0 40px; }

.glitch { position: relative; display: inline-block; cursor: default; transition: text-shadow .15s; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  background: var(--bg);
}
.glitch::before { color: #ff2a5f; text-shadow: 3px 0 rgba(40,220,255,.8); }
.glitch::after  { color: #28dcff; text-shadow: -3px 0 rgba(255,42,95,.8); }
.glitch:hover, .glitch.is-glitching {
  text-shadow: -3px 0 rgba(255,42,95,.75), 3px 0 rgba(40,220,255,.75), 0 0 28px rgba(74,222,128,.45);
  animation: crt-jitter .16s steps(2) infinite;
}
.glitch:hover::before, .glitch.is-glitching::before { opacity: 1; animation: slice-a .9s steps(1) infinite; }
.glitch:hover::after,  .glitch.is-glitching::after  { opacity: 1; animation: slice-b .7s steps(1) infinite; }
@keyframes slice-a {
  0%   { clip-path: inset(8% 0 82% 0);  transform: translate(-8px, 0); }
  15%  { clip-path: inset(62% 0 24% 0); transform: translate(6px, 0); }
  30%  { clip-path: inset(32% 0 58% 0); transform: translate(-4px, 0); }
  45%  { clip-path: inset(84% 0 4% 0);  transform: translate(10px, 0); }
  60%  { clip-path: inset(44% 0 44% 0); transform: translate(-10px, 0); }
  75%  { clip-path: inset(0 0 94% 0);   transform: translate(3px, 0); }
  90%  { clip-path: inset(70% 0 18% 0); transform: translate(-6px, 0); }
}
@keyframes slice-b {
  0%   { clip-path: inset(70% 0 12% 0); transform: translate(7px, 0); }
  20%  { clip-path: inset(18% 0 70% 0); transform: translate(-5px, 0); }
  40%  { clip-path: inset(50% 0 38% 0); transform: translate(9px, 0); }
  60%  { clip-path: inset(4% 0 88% 0);  transform: translate(-3px, 0); }
  80%  { clip-path: inset(88% 0 2% 0);  transform: translate(-9px, 0); }
}

.term {
  max-width: 720px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(74,222,128,.04), 0 30px 80px -30px rgba(0,0,0,.8), 0 0 60px -20px rgba(74,222,128,.15);
  overflow: hidden;
  cursor: text;
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term__title { margin-left: 10px; font-size: 12px; color: var(--dim); }
.term__out { padding: 14px 16px 0; font-size: 14px; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.term__out:empty { padding-top: 6px; }
.term__out .line { margin: 0; min-height: 1.4em; }
.term__out .cmd { color: var(--text); }
.term__out .out { color: var(--muted); }
.term__out .err { color: var(--danger); }
.term__out a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.term__in { display: flex; gap: 10px; align-items: center; padding: 10px 16px 14px; font-size: 14px; }
.term__in label { white-space: nowrap; }
.term__in input {
  flex: 1; min-width: 0;
  font: inherit; color: var(--text);
  background: transparent; border: 0; outline: none;
  caret-color: var(--accent);
}
.term__in input::placeholder { color: var(--dim); }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about__text p { margin: 0 0 16px; font-size: 17px; }
.stack {
  list-style: none; margin: 0; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 14px;
}
.stack li { display: grid; grid-template-columns: 48px 1fr; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.stack li:last-child { border-bottom: 0; }
.stack .bom { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack .bom li {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 2px 8px; border: 1px dashed var(--line-2); border-radius: 3px;
  font-size: 12px; transition: border-color .15s, color .15s;
}
.stack .bom li:last-child { border-bottom: 1px dashed var(--line-2); }
.stack .bom b { font-weight: 500; color: var(--copper); }
.stack .bom li:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: inherit; font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  transition: transform .25s, border-color .25s, opacity .25s;
}
.card[hidden] { display: none; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card::before, .card::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 2px solid var(--accent); opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.card::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.card::after  { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__link { display: block; height: 100%; }
.card__thumb { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card__thumb picture { display: block; height: 100%; }
.card__year {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font-size: 11px; letter-spacing: .04em; color: var(--accent);
  padding: 3px 8px; border-radius: 3px;
  background: rgba(10,13,11,.82); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--focus-y, 58%); }
.card__body { padding: 18px 20px 20px; }
.card__meta { font-size: 12px; color: var(--copper); margin: 0 0 6px; }
.card h3 { margin: 0 0 8px; font-size: 20px; color: #eef5f0; letter-spacing: -.01em; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font-size: 11px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 1px 8px; border-radius: 3px; }
.tags li::before { content: "#"; color: var(--dim); }

.thumb-pcb {
  background:
    radial-gradient(circle at 22% 30%, var(--copper) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 70%, var(--copper) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 21%, color-mix(in srgb, var(--copper) 70%, transparent) 21% 23%, transparent 23%) 0 0 / 100% 30%,
    linear-gradient(0deg, transparent 77%, color-mix(in srgb, var(--copper) 70%, transparent) 77% 79%, transparent 79%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,.025) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(255,255,255,.025) 19px 20px),
    linear-gradient(135deg, #0f3a24, #0a2418);
  position: relative;
}
.thumb-pcb::after {
  content: ""; position: absolute; left: 40%; top: 32%; width: 20%; aspect-ratio: 1;
  background: #111; border-radius: 3px;
  box-shadow: 0 0 0 3px #0a2418, 0 0 0 4px rgba(224,150,90,.6);
}
.thumb-pcb--alt { filter: hue-rotate(160deg) saturate(.8); }
.thumb-code { background: linear-gradient(135deg, #111814, #0b0f0d); display: grid; place-items: center; }
.thumb-code pre { margin: 0; font: 14px/1.5 var(--mono); color: var(--accent); opacity: .85; }

.contact { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.contact a { display: inline-flex; gap: 14px; padding: 6px 0; color: var(--text); transition: color .15s; }
.contact a:hover { color: var(--accent); }
.contact .dim { width: 32px; }
.mail__btn {
  display: inline-flex; gap: 14px; padding: 6px 0;
  font: inherit; color: var(--accent); background: none; border: 0; cursor: pointer;
}
.mail__btn:hover { text-shadow: -1px 0 rgba(255,42,95,.7), 1px 0 rgba(40,220,255,.7), 0 0 10px currentColor; animation: crt-flicker .3s steps(3) 1; }

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

.footer {
  max-width: var(--max); margin: 120px auto 0; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}

.crumbs { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 56px; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.p-head { padding: 24px 0 40px; border-bottom: 1px solid var(--line); }
.p-head h1 { font: 800 clamp(36px, 6vw, 64px)/1.05 var(--sans); letter-spacing: -.03em; margin: 8px 0 16px; color: #eef5f0; }
.p-head .lead { margin: 0; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 48px; }
.p-side { position: sticky; top: 90px; align-self: start; }
.specs { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 85%, transparent); font-family: var(--mono); font-size: 13px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; text-align: right; }
.btns { display: grid; gap: 8px; }
.btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font: 13px var(--mono);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--text); transition: all .15s;
}
.btn::after { content: "\2192 "; color: var(--dim); transition: transform .15s, color .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:hover::after { color: var(--accent); transform: translateX(3px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn--primary::after { color: var(--bg); }
.btn--primary:hover { background: var(--accent-2); color: var(--bg); }
.btn--primary:hover::after { color: var(--bg); }

.prose { font-size: 17px; max-width: 68ch; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; color: #eef5f0; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: "## "; color: var(--dim); font-family: var(--mono); font-weight: 400; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font: .88em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--copper); }
.prose pre { font: 14px/1.6 var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--text); }
.prose blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 2px solid var(--copper); color: var(--muted); }
.prose figure { margin: 24px 0; }
.prose figure .card__thumb { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); }
.prose figcaption { font: 12px var(--mono); color: var(--dim); margin-top: 8px; }
.prose figcaption::before { content: "fig. "; color: var(--copper); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 8px 14px; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose th { font: 500 12px var(--mono); color: var(--accent); letter-spacing: .04em; border-bottom: 1px solid var(--line-2); }
.prose td:nth-child(1) { font-family: var(--mono); color: var(--copper); white-space: nowrap; }
.prose td:nth-child(2) { font-family: var(--mono); white-space: nowrap; }
.prose td:nth-child(3) { color: var(--muted); }
.prose tbody tr:hover td { background: rgba(74,222,128,.04); }

.prose figure img, .p-hero img { width: 100%; height: auto; }
.prose figure img, .p-hero img { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.p-hero { margin: 40px 0 0; max-width: 680px; }
.p-hero figcaption { font: 12px var(--mono); color: var(--dim); margin-top: 8px; }
.p-hero figcaption::before { content: "fig. "; color: var(--copper); }
.zoom { display: block; position: relative; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.zoom::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background:
    linear-gradient(to bottom, transparent, rgba(74,222,128,.14) 50%, transparent) 0 -40% / 100% 40% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.35) 2px 4px);
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; animation: thumb-roll 1.6s linear infinite; }
.zoom:hover img { filter: saturate(1.2) contrast(1.05); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.gallery figure { margin: 0; }
.gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:last-child:nth-child(odd) { max-width: none; }
}
.side-note { font-size: 12px; color: var(--muted); margin: 0; }

.lightbox {
  padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); max-width: min(94vw, 1600px); max-height: 92vh; overflow: visible;
  box-shadow: 0 0 120px -20px rgba(74,222,128,.35);
}
.lightbox::backdrop { background: rgba(5,7,6,.88); backdrop-filter: blur(4px); }
.lightbox[open] { animation: crt-on .5s cubic-bezier(.2,.8,.2,1) both; }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 2px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox form { position: absolute; top: -40px; right: 0; margin: 0; }
.lightbox__close {
  font-size: 13px; padding: 6px 12px; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.lightbox__close:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .p-grid { grid-template-columns: 1fr; gap: 32px; }
  .p-side { position: static; order: -1; }
}


.term { position: relative; animation: crt-on 1s cubic-bezier(.2,.8,.2,1) .25s both; }
.term::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.3) 2px 3px),
    radial-gradient(ellipse at center, rgba(74,222,128,.04), transparent 70%);
  transition: opacity .3s;
}
.term__out, .term__in { text-shadow: 0 0 5px rgba(74,222,128,.35), 0 0 1px currentColor; }
.term:hover, .term:focus-within {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2));
  box-shadow: 0 0 0 1px rgba(74,222,128,.1), 0 30px 80px -30px rgba(0,0,0,.8), 0 0 80px -10px rgba(74,222,128,.28);
}
.term:hover .term__out, .term:focus-within .term__out {
  text-shadow: -1px 0 rgba(255,42,95,.35), 1px 0 rgba(40,220,255,.35), 0 0 8px rgba(74,222,128,.5);
}
@keyframes crt-on {
  0%   { transform: scale(1, .003); filter: brightness(6) saturate(0); opacity: 0; }
  12%  { transform: scale(1, .003); filter: brightness(6) saturate(0); opacity: 1; }
  45%  { transform: scale(1, 1);    filter: brightness(2.2) saturate(.6); }
  60%  { filter: brightness(.7); }
  75%  { filter: brightness(1.4); }
  100% { transform: none; filter: none; opacity: 1; }
}

.card__thumb { position: relative; }
.card__thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent, rgba(74,222,128,.18) 50%, transparent) 0 -40% / 100% 40% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.4) 2px 4px);
  opacity: 0; transition: opacity .2s;
}
.card:hover .card__thumb::before { opacity: 1; animation: thumb-roll 1.4s linear infinite; }
.card:hover .card__thumb {
  filter: saturate(1.5) contrast(1.15) brightness(1.15)
          drop-shadow(-2px 0 rgba(255,42,95,.5)) drop-shadow(2px 0 rgba(40,220,255,.5));
  animation: crt-flicker .35s steps(3) 1, crt-jitter .25s steps(2) 2;
}
.card:hover h3 {
  text-shadow: -2px 0 rgba(255,42,95,.7), 2px 0 rgba(40,220,255,.7), 0 0 14px rgba(74,222,128,.4);
  animation: crt-flicker .3s steps(3) 1;
}
@keyframes thumb-roll { to { background-position: 0 140%, 0 0; } }

.nav__links a:hover, .contact a:hover, .crumbs a:hover, .filters button:hover,
.prose a:hover, .footer a:hover {
  text-shadow: -1px 0 rgba(255,42,95,.7), 1px 0 rgba(40,220,255,.7), 0 0 10px currentColor;
  animation: crt-flicker .3s steps(3) 1;
}
.btn:hover, .lang-toggle button:hover { animation: crt-flicker .3s steps(3) 1; box-shadow: 0 0 18px -4px rgba(74,222,128,.6); }
.section__title { text-shadow: 0 0 10px rgba(74,222,128,.35); }

@keyframes crt-flicker { 0% { opacity: .55; } 33% { opacity: 1; } 66% { opacity: .75; } 100% { opacity: 1; } }
@keyframes crt-jitter {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2px, 1px) skewX(-2deg); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(2px, 0) skewX(1.5deg); }
}

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.brand { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.brand-mark {
  display: inline-block; height: 22px; aspect-ratio: 1761 / 570; background: currentColor; color: var(--text);
  -webkit-mask: url("../img/logos/aal.svg") center / contain no-repeat;
          mask: url("../img/logos/aal.svg") center / contain no-repeat;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.22) 2px 3px);
  }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
    background:
      radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
      linear-gradient(to bottom, transparent, rgba(74,222,128,.035) 50%, transparent) 0 -30vh / 100% 30vh no-repeat;
    animation: crt-roll 9s linear infinite, crt-flicker-soft 5s steps(1) infinite;
  }
  @keyframes crt-roll { to { background-position: 0 0, 0 130vh; } }
  @keyframes crt-flicker-soft { 0%, 100% { opacity: 1; } 47% { opacity: .85; } 48% { opacity: 1; } 81% { opacity: .92; } }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
