/* ============================================================
   Eugene Koblytskyy — Portfolio
   HUD / terminal interface aesthetic
   ============================================================ */

:root {
  --void: #020a09;
  --bg: #04100f;
  --bg-2: #061a18;
  --panel: rgba(7, 28, 26, 0.55);
  --panel-solid: #061715;

  --line: rgba(95, 240, 221, 0.16);
  --line-2: rgba(95, 240, 221, 0.3);

  --cyan: #5ff0dd;
  --cyan-soft: rgba(95, 240, 221, 0.1);
  --cyan-dim: #2f9187;

  --text: #c6ece6;
  --text-dim: #7ba9a3;
  --text-faint: #4a7873;

  --hud: #ff5a1f;
  --hud-bright: #ff7a45;
  --hud-dim: rgba(255, 90, 31, 0.4);
  --hud-soft: rgba(255, 90, 31, 0.08);

  --max-width: 1180px;
  --frame-inset: 14px;

  --font-mono: 'JetBrains Mono', 'Consolas', ui-monospace, monospace;
  --font-hud: 'Chakra Petch', 'JetBrains Mono', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Ambient background layers ---------- */

/* vertical striations + horizontal scanlines.
   No mix-blend-mode here on purpose — a blended full-screen fixed layer
   forces the whole page through an expensive compositing path on every
   frame, which was a large share of the scroll cost on phones. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.30) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0 1px, transparent 1px 4px);
  opacity: 0.5;
}

/* vignette + green wash */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20, 90, 82, 0.28), transparent 62%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(1, 6, 6, 0.85) 100%);
  animation: crt-flicker 6s steps(1) infinite;
}

@keyframes crt-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.86; }
  94% { opacity: 1; }
  96% { opacity: 0.92; }
}

.field-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- HUD frame ---------- */

.hud-frame {
  position: fixed;
  inset: var(--frame-inset);
  z-index: 80;
  pointer-events: none;
  border: 1px solid var(--hud-dim);
}

.hud-frame::before {
  content: "";
  position: absolute;
  inset: 5px 5px auto 5px;
  height: 1px;
  background: var(--hud-dim);
  opacity: 0.5;
}

.hud-frame .c {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid var(--hud);
}

.hud-frame .tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud-frame .tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hud-frame .bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-frame .br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hud-frame .ticks {
  position: absolute;
  right: 60px;
  bottom: -4px;
  width: 150px;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--hud-dim) 0 1px, transparent 1px 9px);
}

/* ---------- Mode gate (first visit) ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.gate.closing { opacity: 0; pointer-events: none; }

body.gate-open { overflow: hidden; }

.gate-inner {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.gate-title {
  display: block;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--hud);
  margin-bottom: 18px;
}

.gate-note {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 34px;
}

.gate-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gate-opt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 22px 20px;
  background: rgba(7, 28, 26, 0.5);
  border: 1px solid var(--line-2);
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gate-opt::before,
.gate-opt::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--hud);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gate-opt::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.gate-opt::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.gate-opt:hover,
.gate-opt:focus-visible {
  border-color: var(--cyan);
  background: rgba(95, 240, 221, 0.07);
  transform: translateY(-2px);
  outline: none;
}

.gate-opt:hover::before, .gate-opt:hover::after,
.gate-opt:focus-visible::before, .gate-opt:focus-visible::after { opacity: 1; }

.gate-primary { border-color: var(--hud-dim); }
.gate-primary:hover, .gate-primary:focus-visible { border-color: var(--hud); background: var(--hud-soft); }

.gate-k {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.gate-primary .gate-k { color: var(--hud); }

.gate-v {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-faint);
}

.gate-hint {
  margin: 22px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .gate-options { grid-template-columns: 1fr; }
  .gate-note { margin-bottom: 24px; }
  .gate-opt { padding: 16px 16px; }
}

/* ---------- Boot overlay ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot.done { opacity: 0; visibility: hidden; }

.boot-line {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(95, 240, 221, 0.5);
}

.boot-bar {
  width: min(280px, 50vw);
  height: 1px;
  background: rgba(95, 240, 221, 0.18);
  position: relative;
  overflow: hidden;
}

.boot-bar span {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--hud);
  box-shadow: 0 0 12px var(--hud);
  animation: boot-fill 1.5s ease-out forwards;
}

@keyframes boot-fill {
  to { right: 0; }
}

/* ---------- Shared bits ---------- */

main { position: relative; z-index: 5; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.06em;
  margin: 0 0 0.6em;
  color: var(--text);
}

p { margin: 0 0 1.1em; color: var(--text-dim); }

::selection { background: var(--hud); color: var(--void); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* bracketed micro-label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hud);
  margin-bottom: 18px;
}

.eyebrow::before { content: "[ ·"; opacity: 0.7; }
.eyebrow::after  { content: "· ]"; opacity: 0.7; }

/* ============================================================
   Decipher / scramble text effect
   ============================================================ */

.is-deciphering {
  color: var(--cyan) !important;
  text-shadow: 0 0 8px rgba(95, 240, 221, 0.55);
  animation: decipher-flicker 0.14s steps(1) infinite;
}

.is-deciphering * { color: inherit !important; }

@keyframes decipher-flicker {
  0%   { opacity: 1; }
  40%  { opacity: 0.72; }
  70%  { opacity: 1; }
  85%  { opacity: 0.88; }
}

/* keep mid-scramble text from reflowing */
[data-decipher] { word-break: break-word; }

/* hold intro text back until the boot overlay clears */
.pre-boot [data-decipher-load] { visibility: hidden; }

/* ============================================================
   Header / nav
   ============================================================ */

header.site-header {
  position: fixed;
  top: var(--frame-inset);
  left: var(--frame-inset);
  right: var(--frame-inset);
  z-index: 85;
  background: linear-gradient(180deg, rgba(3, 13, 12, 0.92), rgba(3, 13, 12, 0));
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px 26px;
  max-width: 100%;
}

.nav-logo {
  font-family: var(--font-hud);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.nav-logo .dot { color: var(--hud); }
.nav-logo:hover { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 10px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::before { content: "["; opacity: 0; margin-right: 5px; transition: opacity 0.2s ease; }
.nav-links a::after  { content: "]"; opacity: 0; margin-left: 5px; transition: opacity 0.2s ease; }

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::before,
.nav-links a:hover::after { opacity: 0.65; }

.nav-cta { color: var(--hud) !important; }
.nav-cta:hover { color: var(--hud-bright) !important; }

.rescan,
.motion-toggle {
  background: none;
  border: 1px solid var(--hud-dim);
  color: var(--hud);
  font-family: var(--font-hud);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.rescan:hover,
.motion-toggle:hover { background: var(--hud-soft); color: var(--hud-bright); border-color: var(--hud); }

/* motion toggle reads as "off" when effects are disabled */
html.motion-off .motion-toggle { color: var(--text-faint); border-color: var(--line-2); }

body.lb-open { overflow: hidden; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  width: 38px;
  height: 34px;
  color: var(--cyan);
  font-size: 1rem;
  cursor: pointer;
}

/* ============================================================
   Intro screen
   ============================================================ */

.intro {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px;
  border-top: none !important;
}

.intro::before { display: none; }

.intro-core {
  text-align: center;
  max-width: 1100px;
}

.intro-title {
  font-size: clamp(1.35rem, 4.2vw, 3.3rem);
  font-weight: 200;
  letter-spacing: 0.14em;
  line-height: 1.3;
  margin: 0 0 22px;
  color: #eafffb;
  text-shadow: 0 0 24px rgba(95, 240, 221, 0.28);
}

.intro-aka {
  font-family: var(--font-hud);
  font-size: clamp(0.6rem, 1.1vw, 0.74rem);
  font-weight: 300;
  letter-spacing: 0.34em;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.intro-sub {
  font-family: var(--font-hud);
  font-size: clamp(0.7rem, 1.4vw, 0.92rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin: 0 0 46px;
}

.intro-cta {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  text-transform: lowercase;
  color: var(--cyan);
  padding: 10px 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease, letter-spacing 0.3s ease;
}

.intro-cta:hover {
  color: #fff;
  letter-spacing: 0.42em;
  text-shadow: 0 0 18px rgba(95, 240, 221, 0.8);
}

/* angled HUD panel (bottom-left navigation guide) */

.hud-panel {
  position: absolute;
  background: var(--hud);
  padding: 1px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.hud-panel .hud-panel-in {
  background: rgba(4, 16, 15, 0.88);
  padding: 14px 22px 16px 16px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.nav-guide {
  left: 40px;
  bottom: 64px;
  width: 300px;
  max-width: calc(100vw - 80px);
}

.nav-guide .panel-title {
  font-family: var(--font-hud);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 10px;
}

.nav-guide ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-guide li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  margin-bottom: 7px;
  line-height: 1.35;
}

.nav-guide .num {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  color: var(--hud);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.nav-guide .k {
  font-size: 0.74rem;
  color: var(--text);
  letter-spacing: 0.1em;
  display: block;
}

.nav-guide a.k:hover { color: var(--cyan); }

.nav-guide .v {
  font-size: 0.62rem;
  color: var(--text-faint);
  display: block;
  letter-spacing: 0.04em;
}

.intro-social {
  position: absolute;
  right: 40px;
  bottom: 64px;
  display: flex;
  gap: 10px;
}

.intro-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hud-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hud);
  font-family: var(--font-hud);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.intro-social a:hover { background: var(--hud); color: var(--void); border-color: var(--hud); }

.intro-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-family: var(--font-hud);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: scroll-pulse 2.6s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ============================================================
   Sections
   ============================================================ */

section {
  padding: 110px 0;
  position: relative;
  border-top: 1px solid var(--line);
}

section::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 40px;
  width: 5px;
  height: 5px;
  background: var(--hud);
  box-shadow: 0 0 8px var(--hud);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  color: #e6fffa;
}

.section-head p { font-size: 0.92rem; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p { font-size: 0.92rem; }

.about-role {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 26px;
}

.about-side { display: grid; gap: 26px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.tag {
  font-family: var(--font-hud);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  background: var(--cyan-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  background: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { border-color: var(--hud); color: var(--hud); }
.btn-primary:hover { background: var(--hud); color: var(--void); }

.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }

/* ---------- Panels with corner brackets ---------- */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--hud);
  pointer-events: none;
}

.panel::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.panel::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Education timeline ---------- */

.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--hud-dim), var(--line), transparent);
}

.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--hud);
  background: var(--bg);
}

.timeline-item .when {
  font-family: var(--font-hud);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hud);
  margin-bottom: 6px;
}

.timeline-item h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: 0.05em; }

.timeline-item .org {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.pill {
  font-family: var(--font-hud);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--hud-dim);
  color: var(--hud);
}

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill-card {
  background: var(--bg);
  padding: 26px 24px;
  position: relative;
  transition: background 0.25s ease;
}

.skill-card:hover { background: var(--bg-2); }

/* scaleX instead of animating width — transform stays on the compositor
   and never triggers layout */
.skill-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--hud);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.skill-card:hover::after { transform: scaleX(1); }

.skill-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--cyan);
}

.skill-card .icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hud-dim);
  color: var(--hud);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.skill-card p { font-size: 0.82rem; margin: 0; line-height: 1.8; }

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--hud);
  z-index: 3;
  transition: width 0.3s ease, height 0.3s ease;
}

.project-card::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.project-card::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.project-card:hover { border-color: var(--line-2); background: var(--bg-2); }
.project-card:hover::before,
.project-card:hover::after { width: 30px; height: 30px; }

.project-card .thumb {
  height: 220px;
  overflow: hidden;
  background: var(--void);
  position: relative;
}

.project-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(4, 30, 28, 0.45), rgba(4, 16, 15, 0.75));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Three filter functions instead of five, and only transform transitions
   on hover — animating `filter` re-runs the whole chain every frame. */
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.55) hue-rotate(115deg) saturate(1.3);
  transition: transform 0.5s ease;
}

.project-card:hover .thumb img { transform: scale(1.05); }

.project-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.project-card .when {
  font-family: var(--font-hud);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hud);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #e6fffa;
}

.project-card p { font-size: 0.82rem; flex: 1; line-height: 1.8; }

.project-card .view-link {
  margin-top: 18px;
  font-family: var(--font-hud);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-card .view-link .arrow { transition: transform 0.25s ease; }
.project-card:hover .view-link .arrow { transform: translateX(6px); }

/* ---------- Client websites ---------- */

.client-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.client {
  background: var(--bg);
  padding: 32px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: start;
  position: relative;
  transition: background 0.25s ease;
}

.client:hover { background: var(--bg-2); }

.client-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-num {
  font-family: var(--font-hud);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--hud);
}

.client-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  background: #060f0e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.client-logo::before,
.client-logo::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0 solid var(--hud);
  pointer-events: none;
}

.client-logo::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.client-logo::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.client-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* logos keep their own brand colour — only knock back the brightness
     slightly so they sit in the palette instead of glaring */
  filter: saturate(0.92) brightness(0.96);
}

.client-body h3 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #e6fffa;
}

.client-sector {
  display: block;
  font-family: var(--font-hud);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 16px;
}

.client-summary {
  font-size: 0.88rem;
  line-height: 1.85;
  max-width: 70ch;
  margin-bottom: 22px;
}

.client-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
}

.client-col h4 {
  font-family: var(--font-hud);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hud);
  margin: 0 0 12px;
}

.client-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-col li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.client-col li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hud);
  font-size: 0.7rem;
}

.client-col p {
  font-size: 0.8rem;
  line-height: 1.8;
  margin: 0;
}

.client-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.client-link::before { content: "["; opacity: 0.55; }
.client-link::after { content: "]"; opacity: 0.55; }

.client-link:hover {
  border-color: var(--hud);
  background: var(--hud-soft);
  color: var(--hud-bright);
}

.client-link .arrow { transition: transform 0.2s ease; }
.client-link:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Homepage showcase teasers ----------
   Two big blocks on the front page — a collage on one side, a headline
   and a button on the other — that hand off to the dedicated
   websites.html / projects.html pages. */

.showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

/* alternate the collage to the other side on the second block */
.showcase-alt .showcase-media { order: 2; }

.showcase-text h2 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  color: #eafffb;
  margin-bottom: 14px;
}

.showcase-lede {
  font-size: 0.98rem;
  color: var(--text);
  max-width: 42ch;
  margin-bottom: 24px;
}

.showcase-facts {
  list-style: none;
  margin: 0 0 30px;
  padding: 18px 0 0;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.showcase-facts li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.showcase-facts b {
  min-width: 3.6ch;
  font-weight: 500;
  color: var(--cyan);
}

.showcase .btn { padding: 15px 30px; font-size: 0.74rem; }
.showcase .btn .arrow { transition: transform 0.25s ease; }
.showcase .btn:hover .arrow { transform: translateX(5px); }

/* --- the collage --- */

.showcase-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  background: #060f0e;
  overflow: hidden;
}

.shot.lead { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

.shot::before,
.shot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--hud);
  pointer-events: none;
  z-index: 2;
}

.shot::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.shot::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.shot img { transition: transform 0.4s ease; }

.shot-logo img {
  width: auto;
  max-width: 64%;
  max-height: 68%;
  object-fit: contain;
  /* same treatment as the client logos — knocked back, not recoloured */
  filter: saturate(0.92) brightness(0.96);
}

.shot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) sepia(0.2) hue-rotate(115deg) saturate(1.3);
}

.showcase-media:hover .shot img { transform: scale(1.04); }

.shot-tag {
  position: absolute;
  left: 10px;
  bottom: 7px;
  z-index: 2;
  font-family: var(--font-hud);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Index pages (websites.html / projects.html) ---------- */

.index-hero { padding: 150px 0 10px; border-top: none; }
.index-hero::before { display: none; }

.index-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  color: #eafffb;
  margin-bottom: 14px;
}

.index-hero .lede { font-size: 0.98rem; color: var(--text); max-width: 60ch; }

.index-body { padding: 46px 0 90px; border-top: none; }
.index-body::before { display: none; }

/* ---------- Contact ---------- */

.contact-box {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 64px 40px;
  text-align: center;
  position: relative;
}

.contact-box::before,
.contact-box::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--hud);
}

.contact-box::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.contact-box::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.contact-box h2 {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 200;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.contact-box p { max-width: 520px; margin: 0 auto 32px; font-size: 0.88rem; }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  position: relative;
  z-index: 5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-hud);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-inner a { color: var(--text-faint); }
.footer-inner a:hover { color: var(--hud); }

/* ============================================================
   Terminal window
   ============================================================ */

.terminal {
  background: rgba(2, 12, 11, 0.8);
  border: 1px solid var(--line);
  position: relative;
}

.terminal::before,
.terminal::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--hud);
}

.terminal::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.terminal::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(95, 240, 221, 0.04);
}

.terminal-bar span {
  width: 7px;
  height: 7px;
  display: inline-block;
  border: 1px solid var(--hud-dim);
}

.terminal-bar span:nth-child(1) { background: var(--hud-dim); }

.terminal-bar .terminal-title {
  width: auto;
  height: auto;
  border: none;
  margin-left: 10px;
  font-family: var(--font-hud);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: none;
}

.terminal-body {
  padding: 20px 20px 22px;
  font-size: 0.76rem;
  line-height: 2.1;
  overflow-x: auto;
}

.terminal-body .prompt { color: var(--hud); }
.terminal-body .cmd { color: var(--cyan); }
.terminal-body .out-key { color: var(--text-faint); }
.terminal-body .out-val { color: var(--text-dim); }
.terminal-body .out-alias { color: var(--text-faint); }

.terminal-body .blink-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--cyan);
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}

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

/* ============================================================
   Portrait frame
   ============================================================ */

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--void);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 40%, rgba(2, 10, 9, 0.8) 100%);
  pointer-events: none;
}

.hero-photo .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero-photo .slide.active { opacity: 1; }

.hero-photo .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) sepia(0.3) hue-rotate(115deg) saturate(1.5) contrast(1.05);
}

.hero-photo .slide-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.hero-photo .slide-dots button {
  width: 12px;
  height: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
}

.hero-photo .slide-dots button.active { background: var(--hud); }

.portrait-cap {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

/* ---------- Org badges ---------- */

.org-badge { display: inline-flex; align-items: center; gap: 10px; }

.org-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px;
  flex-shrink: 0;
}

.org-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   Project detail pages
   ============================================================ */

.project-hero { padding: 150px 0 50px; border-top: none; }
.project-hero::before { display: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-hud);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.back-link:hover { color: var(--hud); }

.project-hero h1 {
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  max-width: 900px;
  color: #eafffb;
}

.project-hero .lede { font-size: 0.95rem; max-width: 760px; }

.meta-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 34px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item .label {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--hud);
  margin-bottom: 6px;
  display: block;
}

.meta-item .value { font-size: 0.82rem; color: var(--text); letter-spacing: 0.06em; }

.hero-figure {
  margin: 44px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.hero-figure img { width: 100%; filter: grayscale(0.35) sepia(0.2) hue-rotate(115deg) saturate(1.3); }

.project-body { padding: 0 0 40px; }

.project-section { padding: 56px 0; border-top: 1px solid var(--line); }

.project-section::before { left: 40px; }

.project-section h2 {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e6fffa;
}

.project-section h2 .num {
  font-family: var(--font-hud);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--hud);
  border: 1px solid var(--hud-dim);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0;
}

.project-section h3 {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.project-section p { max-width: 800px; font-size: 0.9rem; }
.project-section ul { max-width: 800px; color: var(--text-dim); padding-left: 20px; font-size: 0.9rem; }
.project-section li { margin-bottom: 10px; }
.project-section li::marker { color: var(--hud); }

.callout {
  max-width: 800px;
  background: var(--cyan-soft);
  border: 1px solid var(--line);
  border-left: 2px solid var(--hud);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.callout strong { color: var(--cyan); font-weight: 400; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.gallery.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.gallery figure {
  margin: 0;
  background: rgba(2, 12, 11, 0.6);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease;
}

.gallery figure:hover { border-color: var(--line-2); }

.gallery figure .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery figure .img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.gallery figure.tall .img-wrap { aspect-ratio: 3/4; }
.gallery figure.wide .img-wrap { aspect-ratio: 16/9; }
.gallery figure.code .img-wrap { aspect-ratio: auto; background: var(--void); padding: 10px; }
.gallery figure.code .img-wrap img { object-fit: contain; }

.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  filter: sepia(0.4) hue-rotate(115deg) saturate(1.2);
  transition: transform 0.35s ease;
}

.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  padding: 12px 14px;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.reflection-block { max-width: 800px; }

.reflection-block h4 {
  font-family: var(--font-hud);
  color: var(--hud);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-top: 30px;
  margin-bottom: 10px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}

.project-nav a {
  font-family: var(--font-hud);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-2);
  padding: 13px 20px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-nav a:hover { border-color: var(--hud); color: var(--hud); background: var(--hud-soft); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 60px;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border: 1px solid var(--line-2);
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  padding: 0 40px;
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Custom cursor
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button,
  .has-custom-cursor .gallery img { cursor: none; }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--hud);
  box-shadow: 0 0 10px var(--hud);
}

.cursor-ring {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(255, 90, 31, 0.55);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  background: rgba(255, 90, 31, 0.55);
}

.cursor-ring::before { left: 50%; top: -5px; width: 1px; height: 4px; }
.cursor-ring::after { left: 50%; bottom: -5px; width: 1px; height: 4px; }

.cursor-ring.cursor-hover { border-color: var(--cyan); background: rgba(95, 240, 221, 0.08); }
.cursor-ring.cursor-active { background: rgba(255, 90, 31, 0.15); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 34px; }
  .showcase-alt .showcase-media { order: 0; }
  .client { grid-template-columns: 150px 1fr; gap: 24px; padding: 26px; }
  .client-detail { grid-template-columns: 1fr; gap: 20px; }
  .gallery.gallery-2, .gallery.gallery-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .nav-guide { display: none; }
}

@media (max-width: 760px) {
  :root { --frame-inset: 8px; }
  body { font-size: 14px; }
  .wrap { padding: 0 22px; }
  .nav { padding: 12px 14px 20px; }
  .nav-logo { font-size: 0.62rem; letter-spacing: 0.16em; }
  .rescan { display: none; }
  .motion-toggle { font-size: 0.54rem; letter-spacing: 0.12em; padding: 5px 7px; }
  /* boot overlay is shorter on phones — keep the fill bar in step with it */
  .boot-bar span { animation-duration: 0.8s; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 58px;
    left: var(--frame-inset);
    right: var(--frame-inset);
    background: rgba(3, 14, 13, 0.97);
    border: 1px solid var(--line-2);
    flex-direction: column;
    padding: 18px 20px;
    gap: 10px;
    transform: translateY(-160%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  section { padding: 70px 0; }
  section::before, .project-section::before { left: 22px; }
  .client { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .client-aside { flex-direction: row; align-items: center; gap: 14px; }
  .client-logo { width: 120px; flex-shrink: 0; }
  .client-link { width: 100%; justify-content: center; }
  .showcase-facts li { letter-spacing: 0.14em; font-size: 0.66rem; }
  .showcase .btn { width: 100%; justify-content: center; }
  .index-hero { padding: 110px 0 6px; }
  .index-body { padding: 34px 0 70px; }
  .intro { padding: 100px 22px; }
  .intro-title { letter-spacing: 0.06em; }
  .intro-sub { letter-spacing: 0.24em; }
  .intro-social { right: 22px; bottom: 46px; }
  .contact-box { padding: 40px 22px; }
  .project-hero { padding: 110px 0 40px; }
  .meta-row { gap: 22px; }
  .lightbox { padding: 24px; }
}

/* ============================================================
   Professional mode — chosen at the gate, or forced by the OS
   ============================================================ */

/* .motion-off is set by JS when the visitor picks the professional view. */
html.motion-off { scroll-behavior: auto; }
html.motion-off body::after { animation: none; }
html.motion-off .intro-scroll { animation: none; opacity: 0.6; }
html.motion-off [data-reveal] { opacity: 1; transform: none; transition: none; }
html.motion-off .boot-bar span { animation: none; }
html.motion-off .blink-cursor { animation: none; }

/* Same treatment before JS runs, or with JS unavailable, when the OS
   asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
  html:not(.motion-on) body::after { animation: none; }
  html:not(.motion-on) .is-deciphering { animation: none; }
  html:not(.motion-on) .intro-scroll { animation: none; opacity: 0.6; }
  html:not(.motion-on) [data-reveal] { opacity: 1; transform: none; }
}

/* Phones skip the full-screen flicker repaint entirely. */
@media (max-width: 760px) {
  body::after { animation: none; }
}
