/* ============================================================
   MAJORSSS — Cybersecurity Portfolio
   Dark neumorphic interface · red / blue split identity
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #12151b;
  --bg-deep: #0b0e12;
  --surface: #171b22;
  --surface-2: #1a1f27;
  --surface-3: #20262f;

  --ink: #edf0f6;
  --ink-dim: #a6afc0;
  --ink-mute: #7c8799;

  --red: #e0473c;
  --red-soft: rgba(224, 71, 60, .12);
  --blue: #4f93e8;
  --blue-soft: rgba(79, 147, 232, .12);

  --line: rgba(255, 255, 255, .065);
  --line-strong: rgba(255, 255, 255, .12);

  --shadow-light: rgba(255, 255, 255, .035);
  --shadow-dark: rgba(0, 0, 0, .58);

  --raised: -7px -7px 18px var(--shadow-light), 10px 10px 26px var(--shadow-dark);
  --raised-sm: -3px -3px 9px rgba(255, 255, 255, .03), 6px 6px 14px rgba(0, 0, 0, .5);
  --inset: inset 4px 4px 10px rgba(0, 0, 0, .55), inset -3px -3px 8px rgba(255, 255, 255, .025);

  --radius: 22px;
  --display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;

  --ease: cubic-bezier(.22, .68, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 82% -8%, rgba(79, 147, 232, .09), transparent 62%),
    radial-gradient(780px 500px at 4% 18%, rgba(224, 71, 60, .065), transparent 62%),
    radial-gradient(640px 520px at 50% 112%, rgba(79, 147, 232, .05), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.01em;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0e1116; }
::-webkit-scrollbar-thumb {
  background: #272e39;
  border: 2px solid #0e1116;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #343d4a; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 12000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.eyebrow-idx { color: var(--red); }
.eyebrow .slash { color: var(--red); }

.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 240, 246, .32);
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(79, 147, 232, .5);
  animation: pulseDot 2.4s infinite;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1100;
  background: rgba(255, 255, 255, .03);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
  box-shadow: 0 0 12px rgba(79, 147, 232, .4);
}

/* ---------- Boot sequence ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  transition: opacity .55s var(--ease), visibility .55s;
}
html.boot-skip .boot { display: none; }
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-inner { width: min(320px, 78vw); text-align: center; }

.boot-mark {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 30px;
}
.boot-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(79, 147, 232, .22));
  animation: bootPulse 2.4s ease-in-out infinite;
}
.boot-ring {
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}

.boot-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--ink-mute);
  text-align: left;
}
.boot-status span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-track {
  height: 2px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.boot-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
  box-shadow: 0 0 12px rgba(79, 147, 232, .5);
  transition: width .2s linear;
}
.boot-foot {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .26em;
  color: var(--ink-mute);
}
.boot-foot span { color: var(--red); }

/* ---------- Page transition veil ---------- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.page-veil img {
  width: 84px;
  mix-blend-mode: screen;
  animation: bootPulse 1.8s ease-in-out infinite;
}
.page-veil span {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .32em;
  color: var(--ink-mute);
}
body.page-exit .page-veil { opacity: 1; visibility: visible; }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring, .cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
}
.cursor-dot.is-on, .cursor-ring.is-on, .cursor-glow.is-on { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 5px;
    height: 5px;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
  }
  .cursor-ring {
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(79, 147, 232, .45);
    transition: width .22s var(--ease), height .22s var(--ease), border-color .22s, background .22s, opacity .3s;
  }
  .cursor-ring.is-hover {
    width: 46px;
    height: 46px;
    border-color: rgba(224, 71, 60, .65);
    background: rgba(224, 71, 60, .055);
  }
  .cursor-glow {
    display: block;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(79, 147, 232, .065), transparent 66%);
    mix-blend-mode: screen;
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23, 27, 34, .96);
  box-shadow: var(--raised);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .03em;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.toast i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: translate .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { translate: 0 1px; }

.btn--primary {
  background: linear-gradient(145deg, #e85045, #cf3d33);
  color: #150d0c;
  box-shadow:
    -4px -4px 12px rgba(255, 255, 255, .05),
    9px 9px 22px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover {
  translate: 0 -2px;
  background: linear-gradient(145deg, #f05a4f, #d9443a);
  box-shadow:
    -4px -4px 12px rgba(255, 255, 255, .06),
    12px 14px 30px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--raised-sm);
}
.btn--ghost:hover {
  translate: 0 -2px;
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn--sm { padding: 11px 15px; border-radius: 10px; font-size: .58rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin-inline: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 18px;
  background: rgba(20, 24, 31, .72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled .header-inner {
  background: rgba(18, 22, 28, .92);
  border-color: rgba(255, 255, 255, .075);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  background: #0d1015;
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .6), inset -2px -2px 6px rgba(255, 255, 255, .04);
  overflow: hidden;
}
.brand-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: screen;
}
.brand-text {
  font-family: var(--display);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
}
.brand-text span { color: var(--blue); }
.brand-tag {
  align-self: flex-start;
  margin-top: 12px;
  padding: 1px 4px;
  border: 1px solid rgba(224, 71, 60, .35);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .1em;
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 9px 10px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s, background .2s, box-shadow .2s;
}
.nav-link span {
  margin-right: 4px;
  font-size: .5rem;
  color: var(--ink-mute);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .025); }
.nav-link.is-active {
  color: var(--ink);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .55), inset -1px -1px 4px rgba(255, 255, 255, .03);
}
.nav-link.is-active span { color: var(--red); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: 6px;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--raised-sm);
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: top .3s var(--ease), transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 25px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
body.menu-open .menu-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  padding: 116px 24px 40px;
  background: rgba(11, 14, 18, .975);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
body.menu-open .header-inner { background: rgba(18, 22, 28, .96); }

.mobile-nav {
  display: grid;
  width: min(640px, 100%);
  margin: 0 auto;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 600;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(14px);
  transition: color .2s, padding .2s;
}
body.menu-open .mobile-nav a {
  opacity: 1;
  transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s, padding .2s;
}
body.menu-open .mobile-nav a:nth-child(1) { transition-delay: .05s; }
body.menu-open .mobile-nav a:nth-child(2) { transition-delay: .1s; }
body.menu-open .mobile-nav a:nth-child(3) { transition-delay: .15s; }
body.menu-open .mobile-nav a:nth-child(4) { transition-delay: .2s; }
body.menu-open .mobile-nav a:nth-child(5) { transition-delay: .25s; }
body.menu-open .mobile-nav a:nth-child(6) { transition-delay: .3s; }
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--ink); padding-left: 10px; }
.m-idx {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--red);
}
.mobile-nav .icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--ink-mute);
}
.mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(640px, 100%);
  margin: 30px auto 0;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .07em;
  color: var(--ink-mute);
}
.mobile-foot a { color: var(--blue); }
.mobile-status { display: flex; align-items: center; gap: 8px; color: var(--ink-dim); }
.mobile-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulseDot 2.4s infinite;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(84px, 10vw, 132px) 0;
}
.section-head { margin-bottom: clamp(40px, 5vw, 62px); }
.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-top: 18px;
}
.section-head h2 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 5vw, 4rem);
  text-wrap: balance;
}
.section-lead {
  max-width: 46ch;
  padding-bottom: 6px;
  justify-self: end;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 152px 0 30px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow--red {
  top: 4%;
  left: -12%;
  width: 520px;
  height: 520px;
  background: rgba(224, 71, 60, .16);
}
.hero-glow--blue {
  right: -8%;
  bottom: -16%;
  width: 560px;
  height: 560px;
  background: rgba(79, 147, 232, .13);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 18%, transparent 76%);
  opacity: .6;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero-eyebrow { margin-bottom: 24px; color: var(--ink-dim); }
.hero-eyebrow::after { display: none; }

.hero-title {
  position: relative;
  display: inline-block;
  font-size: clamp(3rem, 9.5vw, 7.6rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.03em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--red) 0 49.9%, var(--blue) 50.1% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 46px rgba(224, 71, 60, .08));
}
.hero-title::before,
.hero-title::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-title::before {
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  animation: glitchTop 8s infinite steps(1);
}
.hero-title::after {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
  animation: glitchBottom 8s infinite steps(1);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title { color: var(--ink); }
}

.hero-role {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.hero-role em { font-style: normal; color: var(--red); }

.hero-lead {
  max-width: 54ch;
  margin-top: 16px;
  font-size: 1.01rem;
  line-height: 1.75;
  color: var(--ink-dim);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: .59rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-status i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulseDot 2.4s infinite;
}

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

.hero-stats {
  display: flex;
  gap: clamp(22px, 4vw, 46px);
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stat:nth-child(1) strong { color: var(--red); }
.hero-stat:nth-child(3) strong { color: var(--blue); }
.hero-stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.5;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ---------- Crest ---------- */
.crest {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
  will-change: transform;
}

.crest-disc {
  position: absolute;
  inset: 11%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #1b212b, #0f1218 72%);
  box-shadow:
    inset -10px -10px 30px rgba(255, 255, 255, .03),
    inset 16px 16px 42px rgba(0, 0, 0, .62),
    0 34px 70px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.crest-img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 34px rgba(79, 147, 232, .14));
  animation: crestFloat 7s ease-in-out infinite;
}
.crest-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 147, 232, .55), transparent);
  box-shadow: 0 0 18px rgba(79, 147, 232, .45);
  animation: crestScan 5.8s var(--ease) infinite;
}

.crest-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.crest-ring--outer {
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, .13);
  animation: spin 48s linear infinite;
}
.crest-ring--outer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
  transform: translateX(-50%);
}
.crest-ring--inner {
  inset: 7.5%;
  border: 1px solid rgba(79, 147, 232, .14);
  animation: spin 32s linear infinite reverse;
}
.crest-ring--inner::after {
  content: "";
  position: absolute;
  right: 11%;
  bottom: 9%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.crest-orbit {
  position: absolute;
  inset: -17px;
  border-radius: 50%;
  animation: spin 19s linear infinite;
  pointer-events: none;
}
.crest-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.crest-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-style: solid;
  border-color: rgba(255, 255, 255, .22);
  pointer-events: none;
}
.crest-corner--tl { top: -4px; left: -4px; border-width: 1px 0 0 1px; }
.crest-corner--tr { top: -4px; right: -4px; border-width: 1px 1px 0 0; }
.crest-corner--bl { bottom: -4px; left: -4px; border-width: 0 0 1px 1px; }
.crest-corner--br { bottom: -4px; right: -4px; border-width: 0 1px 1px 0; }

.crest-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 16, 21, .78);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .11em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.crest-chip b { font-weight: 500; color: var(--ink-dim); }
.crest-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.crest-chip--tl { top: 5%; left: -1%; }
.crest-chip--tr { top: 5%; right: -1%; }
.crest-chip--bl { bottom: 5%; left: 2%; }
.crest-chip--br { bottom: 5%; right: 2%; }

.crest-caption {
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .24em;
  color: var(--ink-mute);
}
.crest-caption span { color: var(--red); }

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .15em;
  color: var(--ink-mute);
}
.hero-scroll { display: flex; align-items: center; gap: 10px; }
.hero-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -60%;
  width: 100%;
  height: 60%;
  background: var(--blue);
  animation: scrollLine 2.4s ease-in-out infinite;
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .012);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 46s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 38px);
  padding: 15px clamp(11px, 1.5vw, 22px);
}
.ticker-item {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ticker-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(224, 71, 60, .5);
}
.ticker-dot:nth-child(4n) {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(79, 147, 232, .5);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-copy { max-width: 58ch; }
.about-copy > p { color: var(--ink-dim); }
.about-copy > p + p { margin-top: 18px; }
.about-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  line-height: 1.7;
  color: var(--ink) !important;
}

.principles {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.principles li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: .96rem;
  color: var(--ink);
}
.principle-mark {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--red);
  box-shadow: 0 0 10px rgba(224, 71, 60, .5);
  transform: rotate(45deg);
}
.principles li:nth-child(2) .principle-mark {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(79, 147, 232, .5);
}
.principle-id {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .1em;
  color: var(--ink-mute);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s, border-color .2s;
}
.text-link .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.text-link:hover { color: var(--red); border-color: var(--red); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link--muted { color: var(--ink-dim); }
.text-link--muted:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Dossier ---------- */
.dossier {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised);
  overflow: hidden;
}
.dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
}

.dossier-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dossier-id { display: flex; flex-direction: column; gap: 4px; }
.dossier-id span {
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .2em;
  color: var(--ink-mute);
}
.dossier-id strong {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--blue);
}
.dossier-stamp {
  padding: 4px 7px;
  border: 1px solid rgba(79, 147, 232, .4);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .14em;
  color: var(--blue);
  opacity: .9;
  transform: rotate(-4deg);
}

.dossier-photo {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 16px;
  aspect-ratio: 1.5 / 1;
  border-radius: 12px;
  background: #0c0f14;
  box-shadow: var(--inset);
  overflow: hidden;
}
.dossier-photo img {
  width: 62%;
  mix-blend-mode: screen;
  opacity: .96;
}
.dossier-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -35%;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(79, 147, 232, .09), transparent);
  animation: photoScan 6.5s linear infinite;
  pointer-events: none;
}
.dossier-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
  opacity: .55;
  pointer-events: none;
}
.dossier-photo-id {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .1em;
  color: var(--ink-mute);
}

.dossier-fields { position: relative; margin-top: 16px; }
.dossier-fields > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.dossier-fields dt {
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.dossier-fields dd {
  font-family: var(--mono);
  font-size: .61rem;
  color: var(--ink-dim);
  text-align: right;
}
.dossier-fields dd.is-live { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.dossier-fields dd.is-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulseDot 2.4s infinite;
}

.dossier-barcode {
  height: 30px;
  margin-top: 18px;
  opacity: .5;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, .32) 0 1px, transparent 1px 3px,
    rgba(255, 255, 255, .16) 3px 5px, transparent 5px 8px,
    rgba(255, 255, 255, .28) 8px 9px, transparent 9px 13px);
  -webkit-mask-image: linear-gradient(90deg, #000, #000 72%, transparent);
  mask-image: linear-gradient(90deg, #000, #000 72%, transparent);
}
.dossier-note {
  margin-top: 14px;
  font-size: .8rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------- Arsenal ---------- */
.section--arsenal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(820px 420px at 84% 26%, rgba(79, 147, 232, .045), transparent 66%);
}

.arsenal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-label {
  font-family: var(--mono);
  font-size: .59rem;
  letter-spacing: .18em;
  color: var(--ink);
}
.panel-meta {
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

.meters { display: grid; gap: 19px; margin-top: 23px; }
.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.meter-name { font-size: .84rem; color: var(--ink-dim); }
.meter-value {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--ink-mute);
}
.meter-track {
  height: 9px;
  padding: 2px;
  border-radius: 3px;
  background: #0e1116;
  box-shadow: var(--inset);
  overflow: hidden;
}
.meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 1px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 10px);
  transition: width 1.4s var(--ease-out);
}
.meter-fill--red { color: var(--red); }
.meter-fill--blue { color: var(--blue); }

.panel-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .7rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

.tool-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  margin-top: 22px;
}
.tool-group h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tool-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.tool-dot--red { background: var(--red); box-shadow: 0 0 7px rgba(224, 71, 60, .6); }
.tool-dot--blue { background: var(--blue); box-shadow: 0 0 7px rgba(79, 147, 232, .6); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 7px;
  background: #151920;
  box-shadow: -2px -2px 5px rgba(255, 255, 255, .02), 3px 3px 7px rgba(0, 0, 0, .4);
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .02em;
  color: var(--ink-dim);
  transition: color .2s, border-color .2s, translate .2s var(--ease), box-shadow .2s;
}
.chip:hover {
  translate: 0 -2px;
  color: var(--ink);
  border-color: rgba(79, 147, 232, .28);
  box-shadow: -2px -2px 5px rgba(255, 255, 255, .025), 4px 5px 10px rgba(0, 0, 0, .45), 0 0 12px rgba(79, 147, 232, .08);
}

/* ---------- Capabilities ---------- */
.section--capabilities {
  border-block: 1px solid rgba(255, 255, 255, .03);
  background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 34%, transparent 68%, rgba(255, 255, 255, .008));
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cap-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised);
  overflow: hidden;
  transition: translate .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .055), transparent 65%);
  opacity: 0;
  transition: opacity .35s;
}
.cap-card:hover::before { opacity: 1; }
.cap-card:hover {
  translate: 0 -5px;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: -8px -8px 20px rgba(255, 255, 255, .03), 14px 18px 34px rgba(0, 0, 0, .55);
}
.cap-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--red);
  opacity: .85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.cap-card:nth-child(even)::after { background: var(--blue); }
.cap-card:hover::after { transform: scaleX(1); }

.cap-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.cap-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 13px;
  background: #14181f;
  box-shadow: var(--inset);
  color: var(--ink-dim);
  transition: color .3s, border-color .3s;
}
.cap-icon .icon { width: 22px; height: 22px; }
.cap-card:nth-child(odd) .cap-icon { color: var(--red); }
.cap-card:nth-child(even) .cap-icon { color: var(--blue); }
.cap-card:hover .cap-icon { border-color: currentColor; }
.cap-card h3 { margin-top: 22px; font-size: 1.22rem; }
.cap-card p {
  margin-top: 10px;
  font-size: .89rem;
  line-height: 1.65;
  color: var(--ink-dim);
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.cap-tags span {
  font-family: var(--mono);
  font-size: .49rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cap-tags span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--line-strong);
}

/* ---------- Terminal ---------- */
.section--terminal { overflow: hidden; }
.section-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.section--terminal .section-glow {
  top: 18%;
  right: 4%;
  width: 620px;
  height: 420px;
  background: radial-gradient(circle, rgba(79, 147, 232, .09), transparent 68%);
}
.section--terminal .container,
.section--contact .container { position: relative; z-index: 1; }

.terminal-shell { position: relative; }

.terminal {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, #1a1f27, #12151b);
  box-shadow:
    -10px -10px 26px rgba(255, 255, 255, .028),
    18px 22px 50px rgba(0, 0, 0, .55);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 14px;
}
.term-dots { display: flex; gap: 7px; }
.term-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b323d;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08);
}
.term-dots span:first-child { background: rgba(224, 71, 60, .8); }
.term-dots span:last-child { background: rgba(79, 147, 232, .7); }
.term-path {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  font-family: var(--mono);
  font-size: .59rem;
  letter-spacing: .02em;
  color: var(--ink-mute);
}
.term-user { color: var(--ink-dim); }
.term-sep { color: #5b6576; }
.term-dir { color: var(--blue); }
.term-badges { display: flex; align-items: center; gap: 10px; }
.term-chip {
  padding: 4px 7px;
  border: 1px solid rgba(79, 147, 232, .28);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .44rem;
  letter-spacing: .12em;
  color: var(--blue);
}
.term-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .12em;
  color: var(--ink-dim);
}
.term-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulseDot 1.8s infinite;
}

.terminal-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  border: 1px solid #05070a;
  border-radius: 16px;
  background: #090c10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015), inset 0 18px 50px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.term-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
.term-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px);
  opacity: .4;
}
.term-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, .5));
}
.term-body {
  position: relative;
  z-index: 3;
  flex: 1;
  max-height: 438px;
  padding: 20px 22px 8px;
  overflow-y: auto;
  scrollbar-width: none;
  font-family: var(--mono);
  font-size: .73rem;
  line-height: 1.8;
  color: #c3ccd9;
}
.term-body::-webkit-scrollbar { display: none; }

.term-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 13px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: rgba(9, 12, 16, .7);
  font-family: var(--mono);
  font-size: .64rem;
}
.term-prompt { color: var(--red); }
.term-caret {
  width: 7px;
  height: 14px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(79, 147, 232, .7);
  animation: blink 1.05s steps(1) infinite;
}
.term-hint {
  margin-left: auto;
  font-size: .48rem;
  letter-spacing: .1em;
  color: #4f5868;
}

.t-line {
  min-height: 1.8em;
  white-space: pre-wrap;
  word-break: break-word;
  animation: lineIn .24s var(--ease) both;
}
.t-line--cmd { color: var(--ink); }
.t-user { color: var(--red); }
.t-sep { color: #5b6576; }
.t-path { color: var(--blue); }
.t-typed { color: var(--ink); }
.t-ok { color: var(--blue); }
.t-warn { color: var(--red); }
.t-dim { color: #6a7486; }
.t-bar {
  display: inline-block;
  width: 150px;
  height: 6px;
  margin: 0 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  vertical-align: middle;
}
.t-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(79, 147, 232, .45);
}
.t-pct { color: var(--ink-mute); }

.t-art {
  margin: 12px 0 6px;
  color: #5f6a7c;
  line-height: 1.45;
}
.art-row { white-space: pre; }
.art-box { color: #465061; }
.art-key { color: #778296; }
.art-val { color: var(--blue); }
.art-val--red { color: var(--red); }
.t-line--glitch { animation: lineIn .24s var(--ease) both, termGlitch .5s steps(2) .3s 1; }

.terminal-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding-inline: 4px;
  font-family: var(--mono);
  font-size: .51rem;
  letter-spacing: .12em;
  color: var(--ink-mute);
}
.terminal-caption span { display: flex; align-items: center; gap: 7px; }
.caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* ---------- Operations ---------- */
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.op-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised);
  overflow: hidden;
  transition: translate .3s var(--ease), border-color .3s, box-shadow .3s;
}
.op-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .05), transparent 65%);
  opacity: 0;
  transition: opacity .35s;
}
.op-card:hover::before { opacity: 1; }
.op-card:hover {
  translate: 0 -5px;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: -8px -8px 20px rgba(255, 255, 255, .03), 14px 18px 34px rgba(0, 0, 0, .55);
}
.op-ghost {
  position: absolute;
  top: 4px;
  right: 16px;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .022);
  pointer-events: none;
}
.op-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.op-id {
  font-family: var(--mono);
  font-size: .51rem;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.op-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .1em;
  color: var(--ink-dim);
}
.op-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 7px var(--blue);
}
.op-card:nth-child(even) .op-status i {
  background: var(--red);
  box-shadow: 0 0 7px var(--red);
}
.op-card h3 { position: relative; margin-top: 18px; font-size: clamp(1.3rem, 2vw, 1.55rem); }
.op-card > p {
  position: relative;
  max-width: 48ch;
  margin-top: 10px;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-dim);
}
.op-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.op-tags span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .47rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.op-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.op-meta span {
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .05em;
  color: var(--ink-mute);
}
.op-meta b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.op-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s;
}
.op-link .icon { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.op-link:hover { color: var(--red); }
.op-link:hover .icon { transform: translate(2px, -2px); }

/* ---------- Experience ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  padding-left: 28px;
}
.timeline-line,
.timeline-progress {
  position: absolute;
  left: 0;
  width: 1px;
}
.timeline-line {
  top: 6px;
  bottom: 6px;
  background: rgba(255, 255, 255, .08);
}
.timeline-progress {
  top: 6px;
  height: 0;
  background: linear-gradient(180deg, var(--red) 0 50%, var(--blue) 50% 100%);
  box-shadow: 0 0 10px rgba(79, 147, 232, .3);
  transition: height .12s linear;
}
.tl-item {
  position: relative;
  padding: 0 0 48px 26px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -32px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink-mute);
  border-radius: 50%;
  background: var(--bg);
  transition: border-color .4s, box-shadow .4s;
}
.tl-item.is-in::before {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 147, 232, .08), 0 0 12px rgba(79, 147, 232, .5);
}
.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tl-date {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--red);
}
.tl-tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tl-tag--live {
  display: flex;
  align-items: center;
  gap: 5px;
  border-color: rgba(79, 147, 232, .25);
  color: var(--blue);
}
.tl-tag--live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
}
.tl-item h3 { margin-top: 10px; font-size: clamp(1.25rem, 2vw, 1.45rem); }
.tl-org {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .04em;
  color: var(--blue);
}
.tl-org span { color: var(--ink-mute); }
.tl-text {
  max-width: 62ch;
  margin-top: 10px;
  font-size: .89rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.credentials {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.credentials-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.cred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised-sm);
  transition: translate .25s var(--ease), border-color .25s;
}
.cred:hover { translate: 0 -3px; border-color: var(--line-strong); }
.cred-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #12151b;
  box-shadow: var(--inset);
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
}
.cred:nth-child(odd) .cred-mark { color: var(--red); }
.cred-body { flex: 1; min-width: 0; }
.cred-body h3 {
  font-family: var(--display);
  font-size: .77rem;
  font-weight: 600;
  line-height: 1.3;
}
.cred-body p {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: .49rem;
  color: var(--ink-mute);
}
.cred-state {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cred--progress { border-color: rgba(79, 147, 232, .18); }
.cred-state--progress {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
}
.cred-state--progress i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 7px var(--blue);
  animation: pulseDot 2.4s infinite;
}

/* ---------- Contact ---------- */
.section--contact { overflow: hidden; }
.section-glow--red {
  top: 18%;
  left: -12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(224, 71, 60, .085), transparent 68%);
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy h2 {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-wrap: balance;
}
.contact-lead {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--ink-dim);
}
.contact-email {
  margin-top: 34px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.contact-label {
  font-family: var(--mono);
  font-size: .51rem;
  letter-spacing: .18em;
  color: var(--ink-mute);
}
.email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.email-row a {
  padding-bottom: 3px;
  font-family: var(--mono);
  font-size: clamp(.95rem, 1.8vw, 1.22rem);
  letter-spacing: -.02em;
  color: var(--ink);
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .35s var(--ease), color .2s;
}
.email-row a:hover { color: var(--red); background-size: 100% 1px; }
.copy-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--raised-sm);
  color: var(--ink-dim);
  transition: color .2s, translate .2s var(--ease), border-color .2s;
}
.copy-btn:hover { color: var(--blue); border-color: rgba(79, 147, 232, .3); translate: 0 -2px; }
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn .icon--check { display: none; color: var(--blue); }
.copy-btn.is-copied .icon--copy { display: none; }
.copy-btn.is-copied .icon--check { display: block; }

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 26px;
}
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.ci-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #14181f;
  box-shadow: var(--inset);
  color: var(--ink-mute);
}
.ci-icon .icon { width: 16px; height: 16px; }
.ci-label {
  display: block;
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .16em;
  color: var(--ink-mute);
}
.contact-info-item strong {
  display: block;
  margin-top: 2px;
  font-size: .79rem;
  font-weight: 500;
  color: var(--ink-dim);
}
.contact-info-item small {
  display: block;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: .48rem;
  color: var(--ink-mute);
}
.contact-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact-availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 9px var(--blue);
  animation: pulseDot 2.4s infinite;
}

.contact-form-wrap {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised);
}
.form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.form-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
.form-secure .icon { width: 12px; height: 12px; color: var(--blue); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 10px;
  background: #12151b;
  box-shadow: var(--inset);
  font-family: var(--body);
  font-size: .85rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #5a6374; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(79, 147, 232, .45);
  box-shadow: var(--inset), 0 0 0 3px rgba(79, 147, 232, .09);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select option { background: #12151b; color: var(--ink); }
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(224, 71, 60, .5);
  box-shadow: var(--inset), 0 0 0 3px rgba(224, 71, 60, .08);
}
.field-error {
  font-family: var(--mono);
  font-size: .49rem;
  letter-spacing: .03em;
  color: var(--red);
}
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--ink-mute);
  pointer-events: none;
}
.contact-form .btn--block { margin-top: 20px; }
.form-note {
  margin-top: 12px;
  font-size: .62rem;
  line-height: 1.5;
  color: var(--ink-mute);
  text-align: center;
}
.form-status {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .55rem;
  line-height: 1.6;
  color: var(--blue);
  text-align: center;
}
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 70px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 15, .35);
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -4vw;
  font-family: var(--display);
  font-size: 18vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .035);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr .8fr .8fr 1fr;
  gap: 40px;
}
.footer-brand p {
  max-width: 34ch;
  margin-top: 16px;
  font-size: .81rem;
  line-height: 1.7;
  color: var(--ink-mute);
}
.footer-mail {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(79, 147, 232, .25);
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--blue);
}
.footer-mail:hover { color: var(--ink); border-color: var(--ink); }
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-title {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: .49rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-col a {
  font-size: .79rem;
  color: var(--ink-dim);
  transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: var(--ink); padding-left: 3px; }
.footer-muted {
  font-family: var(--mono);
  font-size: .53rem;
  color: var(--ink-mute);
}
.footer-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .57rem;
  color: var(--ink-dim);
}
.footer-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulseDot 2.4s infinite;
}
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .49rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
}
.footer-motto span { color: var(--red); }
.back-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  transition: color .2s;
}
.back-top .icon { width: 12px; height: 12px; }
.back-top:hover { color: var(--blue); }

/* ---------- Legal / privacy page ---------- */
.legal-hero {
  position: relative;
  padding: 172px 0 54px;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 380px at 82% 6%, rgba(79, 147, 232, .07), transparent 66%),
    radial-gradient(620px 360px at 6% 30%, rgba(224, 71, 60, .05), transparent 66%);
}
.legal-hero .container { position: relative; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .2s;
}
.back-link .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.back-link:hover { color: var(--blue); }

.legal-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: .95;
  text-wrap: balance;
}
.legal-hero .lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-dim);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .53rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.legal-meta span { display: flex; align-items: center; gap: 8px; }
.legal-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  padding-bottom: 110px;
}
.legal-toc {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc-label {
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.toc-list {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  border-left: 1px solid var(--line);
}
.toc-list a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  font-family: var(--mono);
  font-size: .56rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-mute);
  transition: color .2s, border-color .2s;
}
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { color: var(--blue); border-left-color: var(--blue); }

.legal-body { max-width: 760px; }
.legal-intro {
  padding: 20px 22px;
  border: 1px solid rgba(79, 147, 232, .16);
  border-left: 2px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: rgba(79, 147, 232, .035);
  font-size: .93rem;
  line-height: 1.75;
  color: var(--ink-dim);
}
.legal-intro strong { color: var(--ink); font-weight: 600; }

.legal-section { padding-top: 46px; scroll-margin-top: 110px; }
.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}
.sec-num {
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--red);
}
.legal-section p {
  margin-top: 14px;
  font-size: .91rem;
  line-height: 1.82;
  color: var(--ink-dim);
}
.legal-section h3 {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.legal-section ul { display: grid; gap: 10px; margin-top: 14px; }
.legal-section li {
  position: relative;
  padding-left: 18px;
  font-size: .89rem;
  line-height: 1.75;
  color: var(--ink-dim);
}
.legal-section li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  opacity: .8;
  transform: rotate(45deg);
}
.legal-section li:nth-child(even)::before { background: var(--blue); }
.legal-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(79, 147, 232, .35);
}
.legal-section a:hover { color: var(--ink); }
.legal-section code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #151920;
  font-family: var(--mono);
  font-size: .82em;
  color: var(--ink);
}
.footer-col a[aria-current="page"] { color: var(--blue); }

.legal-callout {
  margin-top: 20px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .015);
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-dim);
}
.legal-callout strong { color: var(--ink); font-weight: 600; }

.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.rights-grid li {
  padding: 11px 13px 11px 27px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #151920;
  font-size: .8rem;
}
.rights-grid li::before { left: 13px; top: 1.05em; }

.legal-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #181d25, #13161c);
  box-shadow: var(--raised-sm);
}
.legal-contact p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
.legal-contact strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
}
.legal-contact a {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--blue);
  border-bottom: 1px solid rgba(79, 147, 232, .3);
  padding-bottom: 2px;
}
.legal-contact a:hover { color: var(--ink); border-color: var(--ink); }

.legal-updated {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
}

/* ---------- Reveal / motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity .8s var(--ease-out),
    transform .8s var(--ease-out),
    filter .8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.72); }
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.045); opacity: 1; }
}
@keyframes scrollLine {
  0% { top: -60%; }
  60%, 100% { top: 100%; }
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@keyframes crestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes crestScan {
  0% { top: 8%; opacity: 0; }
  8% { opacity: .9; }
  70% { opacity: .75; }
  100% { top: 92%; opacity: 0; }
}
@keyframes photoScan {
  0% { top: -35%; }
  100% { top: 110%; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes termGlitch {
  0% { transform: translate(0); text-shadow: none; }
  20% { transform: translate(-2px, 0); text-shadow: 2px 0 var(--red), -2px 0 var(--blue); }
  40% { transform: translate(2px, 0); text-shadow: -1px 0 var(--blue); }
  60% { transform: translate(-1px, 0); text-shadow: -2px 0 var(--red), 2px 0 var(--blue); }
  100% { transform: translate(0); text-shadow: none; }
}
@keyframes glitchTop {
  0%, 91%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0); opacity: 0; }
  92% { clip-path: inset(8% 0 68% 0); transform: translate(-3px, -1px); opacity: .6; }
  93% { clip-path: inset(38% 0 44% 0); transform: translate(3px, 1px); opacity: .45; }
  94% { clip-path: inset(64% 0 18% 0); transform: translate(-2px, 0); opacity: .55; }
  95% { clip-path: inset(100% 0 0 0); opacity: 0; }
}
@keyframes glitchBottom {
  0%, 91.5%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0); opacity: 0; }
  92.5% { clip-path: inset(52% 0 18% 0); transform: translate(3px, 1px); opacity: .45; }
  93.5% { clip-path: inset(72% 0 6% 0); transform: translate(-3px, -1px); opacity: .55; }
  94.5% { clip-path: inset(100% 0 0 0); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 8px; font-size: .57rem; }
  .brand-tag { display: none; }
}

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 136px 0 40px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 640px; }
  .hero-title { font-size: clamp(3.2rem, 12.5vw, 7rem); }
  .hero-visual { margin-top: 6px; }
  .crest { width: min(100%, 430px); }
  .hero-foot { margin-top: 46px; }

  .section-head-row { grid-template-columns: 1fr; gap: 16px; }
  .section-lead { justify-self: start; max-width: 58ch; }
  .section-head h2 { max-width: 18ch; }

  .about-grid { grid-template-columns: 1fr; }
  .about-copy { max-width: 100%; }
  .dossier { max-width: 540px; }

  .arsenal-grid { grid-template-columns: 1fr; }
  .tool-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .cap-grid { grid-template-columns: 1fr 1fr; }
  .ops-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { max-width: 640px; }
  .contact-form-wrap { max-width: 640px; }

  .cred-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 46ch; }

  .legal-grid { grid-template-columns: 1fr; gap: 36px; }
  .legal-toc {
    position: relative;
    top: 0;
    max-height: none;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .012);
  }
  .toc-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    border-left: 0;
  }
  .toc-list a { padding-left: 0; border-left: 0; }
  .toc-list a.is-active { border-left: 0; color: var(--blue); }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .header-inner { height: 66px; padding: 0 14px; gap: 12px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-text { font-size: .86rem; }
  .hero { padding-top: 124px; }
  .hero-eyebrow { font-size: .56rem; letter-spacing: .14em; flex-wrap: wrap; }
  .hero-role { font-size: 1.12rem; }
  .hero-lead { font-size: .95rem; }
  .hero-cta .btn { flex: 1; min-width: 180px; }
  .hero-stats { gap: 18px; }
  .hero-stat span { font-size: .46rem; }
  .hero-foot .hero-coords { display: none; }
  .hero-foot { justify-content: center; }
  .crest { width: min(100%, 380px); }
  .crest-chip { font-size: .45rem; padding: 5px 7px; }
  .crest-chip--tl { left: 0; }
  .crest-chip--tr { right: 0; }
  .crest-chip--bl { left: 1%; }
  .crest-chip--br { right: 1%; }

  .section { padding: 74px 0; }
  .section-head h2 { font-size: clamp(2.1rem, 8.5vw, 2.9rem); }
  .section-lead { font-size: .94rem; }

  .dossier { padding: 20px; }
  .tool-groups { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { padding: 24px; }
  .cap-card h3 { margin-top: 18px; }

  .terminal { padding: 8px; border-radius: 20px; }
  .terminal-bar { padding: 6px 8px 12px; gap: 10px; }
  .term-path { display: none; }
  .term-badges { margin-left: auto; }
  .terminal-screen { min-height: 400px; }
  .term-body { max-height: 350px; padding: 16px 15px 6px; font-size: .65rem; line-height: 1.75; }
  .term-foot { padding: 9px 15px 12px; font-size: .58rem; }
  .term-hint { display: none; }
  .t-bar { width: 90px; }
  .terminal-caption { font-size: .46rem; }
  .terminal-caption span:last-child { display: none; }

  .op-card { padding: 24px; }
  .op-ghost { font-size: 4rem; }
  .tl-top { flex-wrap: wrap; gap: 8px; }
  .tl-item { padding-bottom: 40px; }
  .cred-grid { grid-template-columns: 1fr; }
  .credentials { margin-top: 48px; }

  .contact-copy h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .contact-info { grid-template-columns: 1fr; gap: 16px; }
  .contact-form-wrap { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field--full { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-col--status { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-motto { display: none; }

  .legal-hero { padding: 132px 0 42px; }
  .legal-hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .legal-grid { padding-bottom: 80px; }
  .toc-list { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  .legal-section { padding-top: 38px; }
  .legal-contact { padding: 20px; }
}

@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .hero-title { font-size: clamp(3rem, 17vw, 4.4rem); }
  .hero-stats { flex-wrap: wrap; gap: 20px 26px; }
  .hero-stat { min-width: 84px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .crest { width: min(100%, 330px); }
  .crest-caption { font-size: .48rem; letter-spacing: .16em; }

  .about-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dossier-photo { aspect-ratio: 1.4 / 1; }
  .dossier-fields > div { padding: 6px 0; }
  .tool-groups { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .panel-head { padding-bottom: 12px; }

  .terminal-caption { justify-content: center; }
  .terminal-screen { min-height: 380px; }
  .term-body { max-height: 320px; font-size: .6rem; }
  .t-bar { width: 64px; }
  .term-foot { font-size: .54rem; }

  .contact-info-item strong { font-size: .74rem; }
  .email-row { gap: 10px; }
  .email-row a { font-size: .86rem; }
  .copy-btn { width: 38px; height: 38px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-col--status { grid-column: auto; }
  .legal-hero { padding-top: 120px; }
  .legal-meta { font-size: .48rem; gap: 8px 16px; }
}

@media (max-width: 400px) {
  .brand-text { font-size: .8rem; letter-spacing: .1em; }
  .header-inner { height: 62px; }
  .crest { width: 290px; }
  .crest-chip--bl, .crest-chip--br { display: none; }
  .hero-stat strong { font-size: 1.55rem; }
  .term-body { font-size: .56rem; }
  .section-head h2 { font-size: 2rem; }
}

@media (hover: none) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
  .ticker-track { animation-duration: 60s; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-canvas, .term-rain { display: none; }
  .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
  .ticker-track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after { display: none; }
  .site-header, .scroll-progress, .page-veil, .toast, .boot,
  .cursor-dot, .cursor-ring, .cursor-glow, .site-footer,
  .legal-toc, .back-link, .skip-link { display: none !important; }
  .legal-hero { padding: 0 0 20px; }
  .legal-hero h1, .legal-section h2, .legal-contact strong { color: #111; }
  .legal-hero .lead, .legal-section p, .legal-section li,
  .legal-intro, .legal-callout, .legal-contact p { color: #333; }
  .legal-body { max-width: none; }
  .legal-grid { display: block; padding: 0; }
  .legal-section { padding-top: 26px; page-break-inside: avoid; }
  .legal-section a { color: #0b4f9c; }
  .legal-intro, .legal-callout, .legal-contact { border-color: #ccc; background: #fff; box-shadow: none; }
  .legal-section li::before { background: #555; }
}
