/* ═══════════════════════════════════════════════════════════
   MISSION LOG / BROADCAST HUD — Amine El Maroufi CV
   near-black ground · phosphor amber · cells · scanlines · log
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #05070a;
  --panel: #0b0f14;
  --panel-2: #090d13;
  --amber: #ffb000;
  --amber-soft: rgba(255, 176, 0, 0.08);
  --amber-wash: rgba(255, 176, 0, 0.05);
  --ink: #e8e6e1;
  --ink-dim: rgba(232, 230, 225, 0.72);
  --ink-faint: rgba(232, 230, 225, 0.62);
  --line: rgba(255, 176, 0, 0.35);
  --rule: rgba(255, 176, 0, 0.9);
  --rule-soft: rgba(232, 230, 225, 0.14);
  --track: rgba(255, 255, 255, 0.08);

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(14px, 2vw, 22px);
  --rail-w: 208px;
  --bar-h: 46px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--bar-h); /* mobile topbar */
  padding-bottom: 76px;      /* mobile tabbar */
}

/* scanlines + vignette — broadcast chrome, never interactive */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 42%, transparent 58%, rgba(0, 0, 0, 0.42));
}

::selection { background: var(--amber); color: var(--bg); }
:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

* { scrollbar-width: thin; scrollbar-color: var(--amber) var(--bg); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb { background: var(--amber); border: 2px solid var(--bg); }

.skip {
  position: fixed; top: -60px; left: 12px; z-index: 99;
  background: var(--amber); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 10px 16px; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

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

/* blinking block cursor — world signature */
.cursor {
  display: inline-block;
  width: 0.42em; height: 0.8em;
  background: var(--amber);
  margin-left: 0.1em;
  animation: blink 1s steps(2, start) infinite;
  vertical-align: baseline;
}

/* ─────────────── desktop statusbar ─────────────── */

.statusbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 45;
  height: var(--bar-h);
  align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(18px, 3vw, 36px);
  background: rgba(5, 7, 10, 0.94);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem; letter-spacing: 0.14em;
  color: var(--ink-dim); text-transform: uppercase;
}
.statusbar .chip {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--amber);
  border: 1px solid var(--line);
  padding: 5px 11px;
  background: var(--amber-soft);
}
.statusbar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}
.statusbar .sys { color: var(--ink-faint); }
.statusbar .ver { color: var(--ink-faint); }

/* ─────────────── rail (desktop) ─────────────── */

.rail {
  position: fixed; inset: var(--bar-h) auto 0 0; width: var(--rail-w); z-index: 40;
  display: none; flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 0 16px;
}

.mark {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px 16px; text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.mark-glyph {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem; line-height: 1;
  background: var(--amber); color: var(--bg);
  padding: 7px 8px 5px;
}
.mark-name {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.22em; font-weight: 700;
}

.rail-nav { display: flex; flex-direction: column; gap: 3px; padding: 16px 12px; }
.rail-nav a {
  display: block;
  padding: 11px 12px; text-decoration: none;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  border-left: 2px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.rail-nav a:hover { color: var(--ink); border-left-color: var(--line); }
.rail-nav a.active {
  color: var(--amber);
  border-left-color: var(--amber);
  background: rgba(255, 176, 0, 0.07);
}
.rail-nav a.active::before { content: "▸ "; }

.rail-foot {
  margin-top: auto; padding: 14px 18px 0;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.rail-gh {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; text-decoration: none;
  color: var(--ink-dim);
}
.rail-gh svg { width: 15px; height: 15px; }
.rail-gh:hover { color: var(--amber); }

/* language toggle */
.lang { display: inline-flex; border: 1.5px solid var(--line); }
.lang button {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em;
  background: transparent; color: var(--ink-dim);
  border: 0; padding: 7px 11px; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang button:hover { background: var(--amber-soft); color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--bg); }

/* record light */
.rec {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin: 0;
}
.rec .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}

/* ─────────────── mobile chrome ─────────────── */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.topbar .mark { padding: 0; border: 0; }
.topbar .rec { flex: 1; justify-content: center; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 2px 8px; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-dim);
  border-right: 1px solid var(--rule-soft);
}
.tabbar a:last-child { border-right: 0; }
.tabbar a svg {
  width: 20px; height: 20px; fill: none;
  stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.tabbar a.active {
  background: var(--amber); color: var(--bg);
}

/* ─────────────── splash / first viewport ─────────────── */

.splash {
  position: relative;
  min-height: calc(100svh - var(--bar-h));
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 6vh, 64px) var(--gutter) 48px;
}
/* amber console glow behind the portrait side */
.splash::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 42%, rgba(255, 176, 0, 0.07), transparent 70%),
    linear-gradient(rgba(255, 176, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 176, 0, 0.04) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
}

.splash-grid {
  position: relative; z-index: 1;
  width: min(1180px, 100%); min-width: 0; margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.slate {
  color: var(--amber); margin: 18px 0 0;
  font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: none;
}

.name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  text-transform: uppercase;
}
.name span:not(.cursor) { display: block; }
.name .cursor { display: inline-block; }

.role-line {
  color: var(--amber);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: none;
  margin: 14px 0 0;
  max-width: 68ch;
  line-height: 1.7;
}

/* pitch — terminal output line */
.sysline {
  margin: 22px 0 0;
  max-width: 58ch;
  color: var(--ink-dim);
  font-size: 0.97rem;
  line-height: 1.7;
  border-left: 2px solid var(--amber);
  padding-left: 14px;
}

/* telemetry cells */
.telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  margin-top: 26px;
  max-width: 640px;
  min-width: 0;
}
.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 15px 14px;
}
.cell .k {
  font-size: 0.75rem; letter-spacing: 0.16em;
  color: var(--ink-faint); margin: 0;
}
.cell .v {
  font-weight: 900; font-size: 1.55rem;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-top: 5px;
}
.cell .v em { color: var(--amber); font-style: normal; }
.cell .v span { font-size: 0.9rem; font-weight: 700; color: var(--ink-dim); }
.bar {
  height: 4px; background: var(--track);
  margin-top: 10px; position: relative; overflow: hidden;
}
.bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--amber);
}

.tick { color: var(--ink-faint); margin: 20px 0 0; font-size: 0.75rem; line-height: 1.9; text-transform: none; letter-spacing: 0.04em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  border: 1.5px solid var(--amber);
  color: var(--amber); background: transparent;
  border-radius: 4px;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease), filter 0.16s var(--ease);
}
.btn:hover { background: var(--amber); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--amber); color: var(--bg); font-weight: 700; }
.btn-solid:hover { filter: brightness(1.12); background: var(--amber); color: var(--bg); }

/* portrait — camera feed with bracket corners */
.splash-media { position: relative; justify-self: center; width: min(400px, 100%); }

.portrait-panel { margin: 0; position: relative; }
.portrait-panel::before,
.portrait-panel::after {
  content: "";
  position: absolute; z-index: 2;
  width: 26px; height: 26px;
  border: 2px solid var(--amber);
  pointer-events: none;
}
.portrait-panel::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.portrait-panel::after { bottom: 40px; right: -8px; border-left: 0; border-top: 0; }
.portrait-tone {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px solid var(--line);
}
.portrait-tone img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(0.95);
}
.portrait-panel figcaption {
  border-top: 1px solid var(--line);
  padding: 9px 2px 0;
  font-size: 0.75rem; letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.pageslate {
  position: absolute; bottom: -30px; right: 4px;
  color: var(--ink-faint); font-size: 0.75rem;
}

/* ─────────────── sections & cells ─────────────── */

.sec {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: clamp(22px, 3vw, 34px);
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.slug { color: var(--amber); font-size: 0.75rem; opacity: 0.85; }

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

/* ── profile ── */
.panel-wide { padding: clamp(20px, 3vw, 34px); }
.panel-body {
  margin: 0; max-width: 72ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  color: var(--ink-dim);
}
.fact-row {
  list-style: none; display: flex; flex-wrap: wrap;
  margin: 26px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-faint); font-size: 0.75rem;
}
.fact-row li {
  display: flex; align-items: baseline; gap: 7px;
  margin-right: 6px;
  padding-top: 3px;
  padding-right: 6px;
  padding-bottom: 3px;
  padding-left: 0;
  position: relative;
}
.fact-row li:not(:last-child)::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; right: -3px;
  width: 1px; background: var(--rule-soft);
}
.fact-row li:last-child { margin-right: 0; padding-right: 0; }
.fact-row b {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.05rem; color: var(--amber); letter-spacing: 0;
}

/* ── career — log entries ── */
.role {
  display: block;
  padding: clamp(18px, 2.6vw, 30px);
  margin-bottom: var(--gutter);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.role:hover, .role:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--rule);
  box-shadow: 3px 3px 0 rgba(255, 176, 0, 0.25);
  z-index: 2;
}
.role > * { position: relative; }

.role-top {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.role-ch {
  margin: 0 0 8px; color: var(--amber);
  font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: none;
}
.role h3 {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.3; font-weight: 900;
  letter-spacing: -0.015em;
  max-width: 34ch;
}
.role-org {
  margin: 8px 0 0; font-weight: 700;
  color: var(--ink-dim); font-size: 0.96rem;
}
.role-meta {
  display: flex; flex-direction: column; gap: 7px;
  align-items: flex-end; text-align: right;
  color: var(--ink-faint); font-size: 0.75rem; line-height: 1.5;
}
.role-dates {
  color: var(--amber); font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.tenure {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 0.75rem;
  background: var(--amber-soft);
  color: var(--amber);
}

/* metric chip (was SFX burst) */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  padding: 8px 12px;
  border: 1.5px solid var(--amber);
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.role-ctx {
  margin: 18px 0 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
  max-width: 78ch;
  padding: 12px 14px;
  border-left: 2px solid var(--line);
  background: var(--amber-wash);
}
.role-bullets {
  margin: 16px 0 0; padding: 0 0 0 1.15em;
  max-width: 74ch;
}
.role-bullets li { margin-bottom: 9px; }
.role-bullets li::marker { content: "▸  "; color: var(--amber); }

.role-stack {
  margin: 18px 0 0; padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-faint);
  font-size: 0.75rem; line-height: 1.9;
  text-transform: none; letter-spacing: 0.04em;
  word-break: break-word;
}

/* progressive confidence — current loudest, earliest quieter */
.role-now {
  border-width: 2px;
  border-color: var(--rule);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 0, 0.12);
}
.role-now h3 { font-size: clamp(1.2rem, 2.3vw, 1.58rem); }
.role-now .role-org { color: var(--ink); }
.role-now .role-top {
  background: var(--amber-wash);
  margin: -6px -6px 0; padding: 6px 6px 10px;
}
.role-first { opacity: 0.9; }
.role-first h3 { font-size: clamp(1.02rem, 1.8vw, 1.2rem); font-weight: 700; }
.role-first .role-ctx { background: transparent; border-left-color: var(--rule-soft); }
/* amber log marker — corner tick, not a side-tab border */
.role::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 14px; height: 3px; background: var(--amber);
}
.role-now::before { width: 28px; height: 4px; }

/* ── stack — telemetry tiles ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gutter);
}
.tile { padding: 16px 16px 18px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.tile:hover { transform: translate(-3px, -3px); border-color: var(--rule); }
.tile h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.14em;
  padding: 7px 9px;
  background: var(--amber);
  color: var(--bg);
  border-radius: 3px;
  font-weight: 700;
}
.tile p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--ink-dim); }

/* ── education + more ── */
.duo {
  display: grid; gap: var(--gutter);
  grid-template-columns: 1fr;
}
.edu-col, .more-col { display: flex; flex-direction: column; gap: var(--gutter); }

.edu { padding: 18px 18px 20px; }
.edu-date {
  margin: 0 0 8px; color: var(--amber);
  font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
.edu h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.4; font-weight: 900; }
.edu p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

.panel-h {
  margin: 0 0 12px !important;
  font-family: var(--font-mono);
  font-size: 0.75rem !important; letter-spacing: 0.14em;
  padding: 7px 9px;
  background: var(--amber);
  color: var(--bg);
  border-radius: 3px;
  font-weight: 700;
}
.more-col .panel { padding: 16px; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  padding: 7px 0 7px 1.1em; position: relative;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 0.95rem;
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--amber);
}

/* ─────────────── CONTACT — establish-link channel ─────────────── */

.term {
  margin-top: clamp(64px, 9vw, 110px);
  background: #070b10;
  border-top: 2px solid var(--amber);
  padding-top: 14px;
  padding-right: 16px;
  padding-bottom: 14px;
  padding-left: 16px;
}
.term-inner {
  width: min(1180px, 100%); margin: 0 auto;
  padding: clamp(42px, calc(9vw - 14px), 96px) 0 clamp(48px, 7vw, 88px);
}
.term-slate {
  margin: 0 0 18px; color: var(--amber);
  font-size: 0.75rem; letter-spacing: 0.04em;
  text-transform: none;
}
.term-h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 0.96; letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}
.term-h .cursor { animation-delay: 0s; }
.term-lede {
  margin: 24px 0 0; max-width: 64ch;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.8;
}

.term-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-amber {
  background: var(--amber); color: var(--bg);
  border-color: var(--amber);
  text-transform: none; letter-spacing: 0.04em;
  font-weight: 700;
}
.btn-amber:hover { filter: brightness(1.12); background: var(--amber); color: var(--bg); }
.btn-ghost {
  background: transparent; color: var(--amber);
  border-color: var(--line);
  text-transform: none; letter-spacing: 0.04em;
}
.btn-ghost:hover { background: var(--amber); color: var(--bg); border-color: var(--amber); }

.term-foot {
  display: flex; flex-wrap: wrap; gap: 34px;
  justify-content: space-between; align-items: flex-end;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.qr-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.qr-block img {
  width: 118px; height: 118px;
  border: 1.5px solid var(--line); padding: 6px;
  background: #fff;
  filter: grayscale(1) contrast(1.2);
}
.qr-block p { margin: 0; font-size: 0.75rem; color: var(--ink-faint); }
.term-gh { color: var(--amber); font-size: 0.75rem; }
.term-gh:hover { text-decoration: underline; text-underline-offset: 3px; }
.loc { text-align: right; font-size: 0.75rem; line-height: 2.1; color: var(--ink-dim); text-transform: none; letter-spacing: 0.04em; }
.loc p { margin: 0; }
.loc a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

.colophon {
  padding: 26px var(--gutter) 30px;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
}
.colophon p {
  margin: 0; color: var(--ink-faint);
  font-size: 0.75rem; word-break: break-word;
  text-transform: none; letter-spacing: 0.04em;
}

/* ─────────────── reveal motion — precise, no rotation ─────────────── */

.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.rv.in { opacity: 1; transform: translateY(0); }
.role.rv { transform: translateY(26px); }
.role.rv.in { transform: translateY(0); }
.role.rv.in:hover, .role.rv.in:focus-visible { transform: translate(-3px, -3px); }
.tile.rv { transform: translateY(14px); }
.tile.rv.in { transform: translateY(0); }
.tile.rv.in:hover { transform: translate(-3px, -3px); }

/* chip pop on entry */
.chip { transition: transform 0.45s var(--ease); }
.rv .chip { transform: scale(0.6); opacity: 0; }
.rv.in .chip { transform: scale(1); opacity: 1; }

/* telemetry bars fill on entry — transform, never layout */
.bar i { transform-origin: left center; }
.rv .bar i { transition: transform 0.9s var(--ease) 0.15s; }
.rv:not(.in) .bar i { transform: scaleX(0); }

/* ─────────────── responsive ─────────────── */

@media (min-width: 760px) {
  .splash-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .duo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

@media (min-width: 1080px) {
  body { padding-bottom: 0; padding-left: var(--rail-w); padding-top: var(--bar-h); }
  .statusbar { display: flex; }
  .rail { display: flex; }
  .topbar, .tabbar { display: none; }
  .splash { min-height: calc(100svh - var(--bar-h)); padding-top: 40px; }
  html { scroll-padding-top: calc(var(--bar-h) + 24px); }
}

@media (max-width: 1079px) {
  .splash { min-height: auto; padding-top: 40px; }
}

@media (max-width: 560px) {
  .role-meta { align-items: flex-start; text-align: left; }
  .role-top { flex-direction: column; }
  .cta-row .btn { flex: 1 1 auto; }
  .term-foot { flex-direction: column; align-items: flex-start; }
  .loc { text-align: left; }
  .fact-row li { padding-right: 0; margin-right: 14px; }
  .fact-row li::after { display: none; }
  .fact-row { gap: 6px 0; }
  .pageslate { position: static; display: block; margin-top: 36px; text-align: right; }
}

/* ─────────────── reduced motion ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .rv .chip { transform: none; opacity: 1; }
  .cursor { animation: none; opacity: 1; }
}
