/* =========================================================
   Matt van Zanten — Data & Cloud Architect
   ========================================================= */

/* self-hosted fonts (SIL OFL, see assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/exo-2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/exo-2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #02050b;
  --bg-2: #050b17;
  --panel: rgba(6, 14, 30, 0.72);
  --text: #dbe6f5;
  --text-2: #9fb2cc;
  --muted: #6b7f9c;
  --blue: #2f8cff;
  --blue-3: #a4c2f3;
  --cyan: #5cd6ff;
  --line: rgba(92, 160, 255, 0.16);
  --line-2: rgba(92, 170, 255, 0.34);
  --glow: 0 0 24px rgba(47, 140, 255, 0.35);

  --f-sans: "Exo 2", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--blue); color: #fff; }

.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--blue); color: #fff; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

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

/* ---------- background ---------- */
/* sized to the largest viewport (lvh) so iOS toolbar show/hide never resizes it */
#bg { position: fixed; top: 0; left: 0; z-index: -2; width: 100%; height: 100vh; height: 100lvh; }
.vignette {
  /* same fixed large-viewport size as #bg, so the iOS toolbar never reshapes it */
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(47, 140, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, rgba(2, 5, 11, 0.85) 100%);
}

/* ---------- cut-corner shape (45° top-right) ---------- */
.cut {
  position: relative;
  isolation: isolate;
  background: var(--panel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cut::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bd, var(--line-2));
  transition: background 0.3s;
  /* 1px ring: outer shape minus inner shape (diagonal compensated by √2) */
  clip-path: polygon(evenodd,
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 0,
    1px 1px, 1px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(var(--cut) + 0.41px), calc(100% - var(--cut) - 0.41px) 1px, 1px 1px);
}

/* ---------- kicker / section heads ---------- */
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 0.75rem; letter-spacing: 0.22em; color: var(--cyan);
  text-transform: uppercase;
}
.kicker .idx { color: var(--blue); }
.kicker .rule { width: 40px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: 0.02em;
  max-width: 22ch;
}
.sec-title b { font-weight: 700; color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(2, 5, 11, 0.9), rgba(2, 5, 11, 0.55));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.home {
  display: flex; align-items: baseline; gap: 6px;
  text-decoration: none; color: var(--text);
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.home span { font-family: var(--f-mono); font-size: 0.65rem; color: var(--blue); }
.home:hover { color: var(--cyan); }

nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  display: flex; align-items: baseline; gap: 6px;
  text-decoration: none; color: var(--text-2);
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a span { font-family: var(--f-mono); font-size: 0.65rem; color: var(--blue); }
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: #fff; }
.nav-links a[aria-current="true"] span { color: var(--cyan); }

.nav-toggle {
  display: none; position: relative; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line-2); cursor: pointer;
}
.nav-toggle i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: transform 0.3s; }
.nav-toggle i:first-of-type { top: 16px; }
.nav-toggle i:last-of-type { top: 23px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 40px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}

.name {
  margin-top: 22px;
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(47, 140, 255, 0.35);
}
.name .first,
.name .last { display: inline-block; }
.name .last {
  font-weight: 600;
  background: linear-gradient(100deg, #ffffff 30%, #9ccaff 70%, var(--blue-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.role {
  margin-top: 18px;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--blue);
}
.role em { font-style: normal; color: var(--cyan); }
.cursor {
  display: inline-block; width: 0.62em; height: 1.1em; margin-left: 0.3em;
  vertical-align: -0.2em; background: var(--cyan);
  box-shadow: 0 0 10px rgba(92, 214, 255, 0.6);
  animation: blink 2.4s steps(1) infinite;
}

.lede { margin-top: 26px; max-width: 54ch; color: var(--text-2); font-size: 1.1rem; }
.lede strong { color: var(--text); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  --cut: 12px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font-family: var(--f-sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
button.btn { border: 0; cursor: pointer; line-height: inherit; -webkit-appearance: none; appearance: none; }
.btn-copy { min-width: 11.5em; } /* keeps width steady when the label changes to "Copied" */
.btn-copy.copied { color: var(--cyan); }
.btn-primary { background: rgba(47, 140, 255, 0.8); color: #fff; } /* --blue at 80% */
.btn-primary:hover { background: rgba(92, 214, 255, 0.8); color: var(--bg); } /* --cyan at 80% */
.btn-ghost { background: rgba(47, 140, 255, 0.06); color: var(--text); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--line-2);
  clip-path: polygon(evenodd,
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 0,
    1px 1px, 1px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(var(--cut) + 0.41px), calc(100% - var(--cut) - 0.41px) 1px, 1px 1px);
}
.btn-ghost:hover { background: rgba(47, 140, 255, 0.16); }
.btn-ghost:hover::before { background: var(--cyan); }

.readouts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 44px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.readouts div { border-left: 1px solid var(--line-2); padding-left: 12px; }
.readouts dt { color: var(--muted); }
.readouts dd { color: var(--text); }

/* orbital visual */
.hero-visual { position: relative; user-select: none; -webkit-user-select: none; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: end; }
.orbital { width: 100%; height: 100%; overflow: visible; cursor: grab; touch-action: pan-y; }
.orbital.dragging { cursor: grabbing; }
.o-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.o-ring.dashed { stroke: rgba(92, 214, 255, 0.35); stroke-dasharray: 2 8; }
.o-label path { fill: none; stroke: var(--line-2); stroke-width: 1; transition: stroke 0.4s; }
.o-label path.active { stroke: var(--cyan); }
.o-label text { cursor: pointer; fill: var(--text-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; transition: fill 0.4s; }
.o-label text.active { fill: #fff; }

/* 3D cube (vertices projected in main.js) */
.c-face { fill: transparent; transition: fill 0.4s; }
.c-face.front { fill: rgba(47, 140, 255, 0.05); }
.c-face.front.active { fill: rgba(47, 140, 255, 0.22); }
.c-face.active:not(.front) { fill: rgba(92, 214, 255, 0.05); }
.c-edge { stroke: rgba(47, 140, 255, 0.8); stroke-width: 1; }
.c-edge.back { stroke: rgba(92, 160, 255, 0.22); }
.c-vert { fill: var(--bg); stroke: var(--cyan); stroke-width: 1; }
.c-vert.back { opacity: 0.35; fill: none; }
.c-vert.hot { fill: #fff; stroke: none; filter: drop-shadow(0 0 8px var(--cyan)); }

.spin-slow { transform-box: fill-box; transform-origin: center; animation: rot 140s linear infinite; }

@keyframes rot { to { transform: rotate(360deg); } }

.corner { position: absolute; width: 18px; height: 18px; border-color: var(--line-2); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* oscilloscope */
.scope { margin-top: clamp(32px, 6vh, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.scope-meta {
  position: absolute; top: 8px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  font-size: 0.65rem; letter-spacing: 0.18em; color: var(--muted);
}
.scope-meta b { color: var(--cyan); font-weight: 500; }
.scope canvas { width: 100%; height: 120px; }
.contact-panel .scope { margin-top: 48px; }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 105px) 0; position: relative; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.prose p + p { margin-top: 1.2em; }
.prose p { color: var(--text-2); font-size: 1.12rem; }
.prose strong { color: var(--text); font-weight: 600; }

.panel { padding: 28px 24px; }
.kv div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.8rem; }
.kv div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.kv dd { color: var(--text); }
.kv-since { color: var(--muted); white-space: nowrap; } /* experience years; wraps as one unit */

/* capability cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { padding: 28px 24px 30px; }
/* shared hover for capability cards and platform panels: lift, bright edge, glow under the pointer */
.card, .platform { transition: transform 0.3s; }
.card::after, .platform::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--glow-r, 260px) circle at var(--mx, 50%) var(--my, -40%), rgba(47, 140, 255, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover, .platform:hover { --bd: rgba(92, 214, 255, 0.7); transform: translateY(-3px); }
.card:hover::after, .platform:hover::after { opacity: 1; }

/* spotlight: set when a cube label is clicked — eases in, holds, then slowly fades back */
@property --bd { syntax: "<color>"; inherits: true; initial-value: rgba(92, 170, 255, 0.34); }
.card.spotlight { animation: spotlight 4.5s ease-in-out forwards; }
.card.spotlight .icon .frame { animation: spotlight-icon 4.5s ease-in-out forwards; }
.card.spotlight h3 { animation: spotlight-title 4.5s ease-in-out forwards; }
.card.spot-dim { animation: spot-dim 4.5s ease-in-out forwards; }
@keyframes spotlight {
  0%, 100% { --bd: rgba(92, 170, 255, 0.34); background-color: var(--panel); }
  18%, 42% { --bd: rgba(92, 214, 255, 0.9); background-color: rgba(22, 66, 136, 0.65); }
}
@keyframes spotlight-icon {
  0%, 100% { fill: rgba(47, 140, 255, 0.05); stroke: var(--blue); }
  18%, 42% { fill: rgba(47, 140, 255, 0.24); stroke: var(--cyan); }
}
@keyframes spotlight-title {
  0%, 100% { color: var(--text); }
  18%, 42% { color: #8fdcff; }
}
/* the other cards recede so the selected group stands out */
@keyframes spot-dim {
  0%, 100% { opacity: 1; }
  18%, 42% { opacity: 0.7; }
}
.card h3 { margin-top: 20px; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; line-height: 1.6; }
.card-id { position: absolute; top: 22px; right: 30px; font-size: 0.65rem; letter-spacing: 0.18em; color: var(--muted); }

.icon { width: 72px; height: auto; overflow: visible; }
.icon .frame { fill: rgba(47, 140, 255, 0.05); stroke: var(--blue); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.icon .glyph, .icon .glyph * { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .accent { stroke: var(--cyan) !important; }
.icon .binary text { fill: var(--cyan); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px; text-anchor: middle; }
.card:hover .icon .frame { fill: rgba(47, 140, 255, 0.18); stroke: var(--cyan); }

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: stretch; }
.platform { --cut: 26px; --glow-r: 420px; padding: clamp(28px, 4vw, 44px); }
.platform-tag { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--cyan); }
.platform-name { margin: 14px 0 16px; font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.platform > p:not(.platform-tag) { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li {
  --cut: 7px;
  position: relative; isolation: isolate;
  padding: 6px 12px; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text);
  background: rgba(47, 140, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 32px; right: calc((100% - 84px) / 4 - 32px); height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
  opacity: 0.5;
}
.step { position: relative; }
.step-node { width: 64px; height: auto; position: relative; }
.step-node polygon { fill: var(--bg-2); stroke: var(--blue); stroke-width: 2; }
.step-node text { fill: var(--cyan); font-family: var(--f-mono); font-size: 20px; text-anchor: middle; }
.step h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; }

/* contact */
.contact-panel { --cut: 36px; padding: clamp(32px, 6vw, 72px); overflow: hidden; }
.contact-panel .sec-title { max-width: 20ch; }
.contact-panel .lede { margin-top: 18px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer .sep { color: var(--blue); opacity: 0.6; }
.blink { font-style: normal; color: var(--cyan); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4n+4) { transition-delay: 0.24s; }
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.steps .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; max-width: 380px; order: -1; margin-bottom: -20px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .platforms { gap: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(2, 5, 11, 0.96); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-visual { max-width: 300px; }
  .role { letter-spacing: 0.28em; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .kicker { letter-spacing: 0.14em; }
  .hero-visual { padding: 0 12px; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .readouts { gap: 10px 24px; }
  .btn { flex: 1 1 auto; }
}

@media (max-width: 440px) {
  .footer-inner { flex-direction: column; gap: 6px; }
  .footer .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* a blinking caret is a state cue, not motion — keep it */
  .cursor, .blink { animation: blink 2.4s steps(1) infinite !important; }
  /* spotlight is a colour fade, not movement — keep it */
  .card.spotlight { animation: spotlight 4.5s ease-in-out forwards !important; }
  .card.spotlight .icon .frame { animation: spotlight-icon 4.5s ease-in-out forwards !important; }
  .card.spotlight h3 { animation: spotlight-title 4.5s ease-in-out forwards !important; }
  .card.spot-dim { animation: spot-dim 4.5s ease-in-out forwards !important; }
}
