/* ============================================================
   GROSSMAN.SYS — portfolio placeholder
   palette: blacks · grays · white · one orange
   ============================================================ */

:root {
  --bg:        #050506;
  --bg-2:      #0a0a0d;
  --panel:     #0d0d11;
  --line:      #1d1d24;
  --line-soft: #14141a;

  --gray-1: #26262d;
  --gray-2: #4a4a55;
  --gray-3: #8b8b96;
  --gray-4: #c4c4ce;
  --white:  #f2f2f5;

  --orange:      #ff6a00;
  --orange-hi:   #ff8a2b;
  --orange-dim:  rgba(255, 106, 0, 0.14);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(18px, 4.5vw, 56px);
  --hud-h: 52px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--gray-4);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

::selection { background: var(--orange); color: #000; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: none; color: inherit; }
@media (hover: none), (pointer: coarse) { button { cursor: pointer; } }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gray-1); border: 3px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
}

#field {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%;
}

.bg-noise {
  position: fixed; inset: -100px; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-32px, 14px); }
  20% { transform: translate(24px, -38px); }
  30% { transform: translate(-18px, -22px); }
  40% { transform: translate(36px, 28px); }
  50% { transform: translate(-26px, 34px); }
  60% { transform: translate(30px, -14px); }
  70% { transform: translate(-34px, 8px); }
  80% { transform: translate(14px, 30px); }
  90% { transform: translate(-8px, -30px); }
}

.bg-vignette {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: rgba(255,255,255,0.04);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gray-2), var(--orange));
  box-shadow: 0 0 12px rgba(255,106,0,0.6);
}

/* ============================================================
   CURSOR
   ============================================================ */

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255,106,0,0.8);
  transform: translate(-100px, -100px);
  display: none;
}
body.pointer-fine .cursor-dot { display: block; }

/* ============================================================
   PRELOADER
   ============================================================ */

#preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; }

.pre-inner { width: min(420px, 80vw); font-family: var(--font-mono); }
.pre-title {
  font-size: 11px; letter-spacing: 0.5em; color: var(--orange);
  margin-bottom: 18px;
}
.pre-line { font-size: 11px; color: var(--gray-3); letter-spacing: 0.12em; margin-bottom: 10px; }
.pre-bar {
  height: 1px; background: var(--line); overflow: hidden; margin-bottom: 10px;
}
.pre-fill {
  height: 100%; width: 0%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255,106,0,0.7);
  transition: width 0.15s linear;
}
.pre-pct { font-size: 11px; color: var(--gray-2); text-align: right; letter-spacing: 0.2em; }

/* ============================================================
   HUD
   ============================================================ */

.hud {
  position: fixed; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--gray-3);
  pointer-events: none;
}
.hud a, .hud button { pointer-events: auto; }
.hud-top {
  top: 0; height: var(--hud-h);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(5, 5, 6, 0.9);
}
.hud-bottom {
  bottom: 0; height: var(--hud-h);
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(5, 5, 6, 0.9);
}

.hud-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hud-mark {
  width: 8px; height: 8px; background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hud-brand { color: var(--gray-4); font-weight: 500; }
.hud-dim { color: var(--gray-2); }

.hud-nav { display: flex; gap: clamp(12px, 2.4vw, 30px); }
.hud-nav a { color: var(--gray-3); transition: color 0.25s; position: relative; }
.hud-nav a:hover { color: var(--orange); }
.hud-nav a.active { color: var(--white); }
.hud-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--orange);
}

.hud-sep { color: var(--gray-2); }
#hud-time { color: var(--gray-4); }
#hud-coords { color: var(--gray-2); }
#hud-depth { color: var(--gray-3); }

.hud-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s ease-in-out infinite;
}

@media (max-width: 640px) {
  #hero { padding-bottom: 130px; }
  .hero-inner { gap: 16px; }
  .avatar-wrap { width: clamp(190px, 52vw, 240px); }
  .avatar-caption { bottom: -28px; font-size: 8.5px; }
  .hero-name { margin-top: 16px; }
  .hero-meta li { min-width: 0; flex: 1 1 40%; padding: 10px 12px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; gap: 10px; }
  .hero-cta .btn { text-align: center; }
  .scroll-cue { display: none; }
  .sec-head { gap: 14px; }
  .d-line dd { word-break: break-word; }
}

@media (max-width: 820px) {
  .hud-nav { display: none; }
  #hud-coords { display: none; }
  #hud-state { display: none; }
}

/* ============================================================
   SHARED — sections
   ============================================================ */

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

.section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) var(--pad);
}

.sec-head {
  display: flex; align-items: flex-start; gap: 22px;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.sec-index {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--orange); letter-spacing: 0.3em;
  border: 1px solid var(--line); padding: 6px 10px;
  margin-top: 8px;
  background: rgba(255,255,255,0.015);
}
.sec-title {
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 700; letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}
.sec-sub {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--gray-3); letter-spacing: 0.06em;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { --rd: 0.08s; } .d2 { --rd: 0.16s; } .d3 { --rd: 0.24s; }
.d4 { --rd: 0.32s; } .d5 { --rd: 0.40s; }

/* buttons */
.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em;
  padding: 15px 30px;
  transition: all 0.3s var(--ease);
  user-select: none;
}
.btn::before, .btn::after {
  content: ""; position: absolute; width: 7px; height: 7px;
  opacity: 0; transition: opacity 0.3s;
}
.btn::before { top: -1px; left: -1px; border-top: 1px solid var(--orange); border-left: 1px solid var(--orange); }
.btn::after  { bottom: -1px; right: -1px; border-bottom: 1px solid var(--orange); border-right: 1px solid var(--orange); }
.btn:hover::before, .btn:hover::after { opacity: 1; }

.btn-solid { background: var(--white); color: #0a0a0c; }
.btn-solid:hover { background: var(--orange); color: #000; box-shadow: 0 0 34px rgba(255,106,0,0.35); }

.btn-ghost { border: 1px solid var(--gray-1); color: var(--gray-4); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); }

/* ============================================================
   HERO
   ============================================================ */

#hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: calc(var(--hud-h) + 24px) var(--pad) 168px;
}

.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 22px;
}

.hero-kicker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.42em; color: var(--gray-3);
}
.hero-kicker::before { content: "— "; color: var(--orange); }
.hero-kicker::after  { content: " —"; color: var(--orange); }

/* avatar block */
.avatar-wrap {
  position: relative;
  width: clamp(230px, 34vw, 330px);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.ring {
  position: absolute; inset: 0;
  color: var(--gray-2);
  pointer-events: none;
}
.ring-b { color: var(--orange); }
.ring-a { animation: spin 46s linear infinite; }
.ring-b { animation: spin-rev 30s linear infinite; }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.tick {
  position: absolute; width: 14px; height: 14px; opacity: 0.7;
}
.tick-tl { top: 2%;  left: 4%;  border-top: 1px solid var(--gray-2); border-left: 1px solid var(--gray-2); }
.tick-tr { top: 2%;  right: 4%; border-top: 1px solid var(--gray-2); border-right: 1px solid var(--gray-2); }
.tick-bl { bottom: 2%; left: 4%;  border-bottom: 1px solid var(--gray-2); border-left: 1px solid var(--gray-2); }
.tick-br { bottom: 2%; right: 4%; border-bottom: 1px solid var(--gray-2); border-right: 1px solid var(--gray-2); }

.avatar-frame {
  position: relative;
  width: 74%; height: 74%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gray-1);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 60px rgba(255, 106, 0, 0.13),
    0 0 140px rgba(255, 106, 0, 0.07);
}
.avatar-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.12) contrast(1.06);
  transition: filter 0.5s ease, transform 0.6s var(--ease);
}
.avatar-frame:hover img { filter: grayscale(0) contrast(1.1); transform: scale(1.05); }

.avatar-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 55%, rgba(0,0,0,0.42) 100%);
}

/* wrapper travels via transform (compositor-only), inner line just glows */
.scan-wrap {
  position: absolute; inset: 0; pointer-events: none;
  animation: sweep 4.6s linear infinite;
}
.scan-sweep {
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,0.65), transparent);
  box-shadow: 0 0 14px rgba(255,106,0,0.5);
}
@keyframes sweep {
  0%, 100% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  46% { opacity: 1; }
  54% { transform: translateY(100%); opacity: 0; }
}

.avatar-caption {
  position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.3em; color: var(--gray-2); white-space: nowrap;
}

/* name + type */
.hero-name {
  margin-top: 26px;
  font-size: clamp(42px, 9vw, 108px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  position: relative;
}

.hero-type {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.7vw, 15px);
  color: var(--gray-3);
  letter-spacing: 0.05em;
  min-height: 1.6em;
  display: flex; align-items: center; gap: 10px;
}
.type-prompt { color: var(--orange); }
.caret {
  display: inline-block; width: 8px; height: 1.15em;
  background: var(--orange);
  margin-left: 2px;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-meta {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(10,10,14,0.85);
}
.hero-meta li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 22px;
  border-right: 1px solid var(--line);
  min-width: 128px;
}
.hero-meta li:last-child { border-right: none; }
.hero-meta span {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.3em; color: var(--gray-2);
}
.hero-meta b {
  font-family: var(--font-mono); font-size: 12.5px;
  font-weight: 500; letter-spacing: 0.14em; color: var(--gray-4);
}
.hero-meta li:nth-child(2) b { color: var(--orange); }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: calc(var(--hud-h) + 18px); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.34em; color: var(--gray-2);
}
.cue-line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--orange), transparent);
  animation: cue 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   GLITCH (name)
   ============================================================ */

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  background: var(--bg);
}
.glitch.glitching::before {
  opacity: 0.85; color: var(--orange);
  animation: gl-a 0.32s steps(3) both;
}
.glitch.glitching::after {
  opacity: 0.85; color: var(--gray-3);
  animation: gl-b 0.32s steps(3) both;
}
@keyframes gl-a {
  0%   { clip-path: inset(12% 0 74% 0); transform: translate(-6px, -2px); }
  50%  { clip-path: inset(58% 0 22% 0); transform: translate(5px, 2px); }
  100% { clip-path: inset(34% 0 48% 0); transform: translate(-3px, 0); }
}
@keyframes gl-b {
  0%   { clip-path: inset(66% 0 12% 0); transform: translate(6px, 2px); }
  50%  { clip-path: inset(8% 0 78% 0);  transform: translate(-5px, -1px); }
  100% { clip-path: inset(44% 0 38% 0); transform: translate(3px, 1px); }
}

/* ============================================================
   WHOAMI — typing roles
   ============================================================ */

.whoami {
  position: relative; z-index: 10;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(44px, 8vh, 84px) var(--pad);
  overflow: hidden;
}
.whoami-stage {
  position: relative;
  height: 1.3em;
  font-size: clamp(22px, 4vw, 46px);
  font-weight: 700;
}
.whoami-line {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0; visibility: hidden;
}
.whoami-line.active { opacity: 1; visibility: visible; }

.whoami-caret {
  display: inline-block;
  width: 0.12em; min-width: 7px;
  height: 0.95em;
  margin-left: 0.14em;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255,106,0,0.55);
  animation: blink 1.05s steps(2) infinite;
}

.whoami-line.glitch-out {
  animation: whoami-glitch 0.72s steps(1, end) both;
}
@keyframes whoami-glitch {
  0%   { transform: translate(0, 0); opacity: 1; text-shadow: none; }
  8%   { transform: translate(-7px, 2px) skewX(-4deg);
         text-shadow: 3px 0 rgba(255,106,0,0.85), -3px 0 rgba(255,255,255,0.5); }
  16%  { transform: translate(6px, -3px); opacity: 0.75; }
  24%  { transform: translate(-4px, 1px) skewX(3deg); text-shadow: none; }
  32%  { transform: translate(8px, 3px); opacity: 1;
         text-shadow: -4px 0 rgba(255,106,0,0.85); }
  42%  { transform: translate(-9px, -2px) skewX(-6deg); opacity: 0.55; }
  52%  { transform: translate(5px, 2px); opacity: 1; text-shadow: none; }
  62%  { transform: translate(-6px, -1px) skewX(4deg);
         text-shadow: 4px 0 rgba(255,255,255,0.6); }
  72%  { transform: translate(7px, 1px); opacity: 0.4; }
  84%  { transform: translate(-4px, 2px); opacity: 0.7; text-shadow: none; }
  100% { transform: translate(2px, 0) skewX(-8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whoami-stage { height: auto; font-size: clamp(20px, 3.4vw, 34px); }
  .whoami-line { position: static; opacity: 1; visibility: visible; padding: 4px 0; }
  .whoami-caret { display: none; }
}

/* ============================================================
   02 DOSSIER
   ============================================================ */

.dossier-file {
  max-width: 780px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0)) ,
    var(--panel);
  font-family: var(--font-mono);
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.dossier-file::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px;
  border-top: 2px solid var(--orange); border-left: 2px solid var(--orange);
}
.dossier-file::after {
  content: ""; position: absolute; bottom: -1px; right: -1px; width: 22px; height: 22px;
  border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange);
}

.dossier-head, .dossier-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 22px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--gray-2);
}
.dossier-head { border-bottom: 1px solid var(--line); }
.dossier-foot {
  border-top: 1px solid var(--line); flex-wrap: wrap;
  color: var(--gray-3);
}
.dossier-foot span:last-child { color: var(--orange); }

.dossier-body { padding: 26px 22px 30px; }

.d-line {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
}
.d-line:last-child { border-bottom: none; }
.d-line dt { color: var(--gray-2); letter-spacing: 0.22em; font-size: 11px; padding-top: 2px; }
.d-line dd { color: var(--gray-4); letter-spacing: 0.04em; }
.d-note { color: var(--gray-2); font-size: 10px; }
.d-nan { color: var(--orange); font-weight: 500; }

.redact {
  display: inline-block;
  background: #000;
  color: transparent;
  border: 1px solid var(--line);
  padding: 0 6px;
  user-select: none;
  position: relative;
  transition: background 0.18s;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { .redact { cursor: pointer; } }

.redact:hover {
  animation: redact-flicker 0.5s steps(2) infinite;
}
@keyframes redact-flicker {
  0%, 100% { background: #000; }
  50% { background: #1a0d00; }
}
.redact::after {
  content: "ACCESS DENIED";
  position: absolute; left: 50%; top: -30px;
  transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.22em;
  color: var(--orange);
  background: #000;
  border: 1px solid rgba(255,106,0,0.5);
  padding: 4px 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  z-index: 5;
}
.redact:hover::after { opacity: 1; }

@media (max-width: 640px) {
  .d-line { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   03 TERMINAL
   ============================================================ */

.terminal {
  max-width: 820px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 9, 0.93);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02);
}

.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #3a3a42; } .dot-y { background: #3a3a42; } .dot-g { background: var(--orange); }
.term-title {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--gray-2);
  margin-left: 10px;
}
.term-sig {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--gray-2);
}

.term-body {
  padding: 20px 20px 8px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.75;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  letter-spacing: 0.02em;
}
.term-body::-webkit-scrollbar { width: 6px; }

.t-line { white-space: pre-wrap; word-break: break-word; }
.t-cmd  { color: var(--white); }
.t-cmd::before { content: "guest@grossman:~$ "; color: var(--orange); }
.t-out  { color: var(--gray-3); }
.t-hi   { color: var(--orange); }
.t-dim  { color: var(--gray-2); }
.t-ok   { color: var(--gray-4); }

.term-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 13px;
  position: relative;
}
.term-input-row.off { opacity: 0.25; pointer-events: none; }
.term-prompt { color: var(--orange); white-space: nowrap; }
#term-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.03em; caret-color: var(--orange);
}
#term-input:disabled { color: var(--gray-2); }
.term-caret {
  width: 8px; height: 16px; background: var(--orange);
  position: absolute;
  pointer-events: none; opacity: 0;
}
.term-caret.on { opacity: 1; animation: blink 1.05s steps(2) infinite; }

/* ============================================================
   04 CONTACT
   ============================================================ */

.contact {
  max-width: none;
  text-align: center;
  padding-bottom: calc(var(--hud-h) + 90px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(255,106,0,0.025));
}
.contact-inner { max-width: 900px; margin: 0 auto; }

.contact-kicker {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.4em; color: var(--gray-2);
  margin-bottom: 28px;
}
.contact-title {
  font-size: clamp(38px, 7.4vw, 84px);
  font-weight: 700; line-height: 1.02;
  color: var(--white); letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.contact-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--orange);
}
.contact-sub {
  color: var(--gray-3); font-size: 15px;
  max-width: 480px; margin: 0 auto 40px;
}
.contact-cta { margin-bottom: 54px; }

.contact-links {
  display: flex; justify-content: center; gap: clamp(18px, 4vw, 44px);
  margin-bottom: 60px; flex-wrap: wrap;
}
.c-link {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.26em; color: var(--gray-3);
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.c-link span { color: var(--gray-2); transition: 0.3s; display: inline-block; }
.c-link:hover { color: var(--white); border-color: var(--orange); }
.c-link:hover span { color: var(--orange); transform: translate(2px, -2px); }

.footer-meta {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.24em; color: var(--gray-2);
}
.fm-sep { color: var(--orange); }

/* ============================================================
   TOAST
   ============================================================ */

#toast {
  position: fixed; bottom: calc(var(--hud-h) + 26px); left: 50%;
  transform: translate(-50%, 24px);
  z-index: 100;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--orange);
  background: rgba(5,5,6,0.92);
  border: 1px solid rgba(255,106,0,0.45);
  padding: 14px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease);
  max-width: min(520px, 86vw);
  text-align: center;
  box-shadow: 0 0 40px rgba(255,106,0,0.12);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   SCRAMBLE hover base
   ============================================================ */

[data-scramble], [data-scramble-hover] { display: inline-block; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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