/* ============================================================
   ABINASH — PERSONAL SITE
   "Control room" theme · Construction Project Management
   ------------------------------------------------------------
   Restrained palette: near-black, off-white, one hi-vis accent.
   Every surface is a panel; every label is a readout.
   ------------------------------------------------------------
    1. Tokens
    2. Base + engineered grid background
    3. Overlays: grain, cursor, progress, section dots
    4. Preloader
    5. Buttons
    6. Navigation
    7. Hero (canvas, kinetic type, tilting HUD portrait)
    8. Ticker
    9. Metrics
   10. Projects — Gantt programme
   11. Expertise — meters + spotlight tool grid
   12. About + timeline
   13. Contact
   14. Footer
   15. Reveal animation system
   16. Responsive
   17. Reduced motion
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg:      #06080b;                     /* base                */
  --panel:   #0b0f15;                     /* raised surface      */
  --panel-2: #10151d;                     /* hover surface       */
  --text:    #eef2f6;                     /* primary text        */
  --muted:   #7d8794;                     /* secondary text      */
  --line:    rgba(255,255,255,.09);       /* hairline            */
  --hi:      #d8ff3e;                     /* hi-vis accent       */
  --hi-dim:  rgba(216,255,62,.14);

  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --container: 1180px;
  --r: 6px;                               /* crisp radius        */
  --ease: cubic-bezier(.19,1,.22,1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Engineered grid: fine mesh + heavier module lines */
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.container { width: min(var(--container), 90%); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 130px); }

/* Mono annotation label with leader line */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hi);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--hi); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.section-head .sub, .sub { color: var(--muted); margin-top: 14px; }

::selection { background: var(--hi); color: #06080b; }

/* ---------- 3. OVERLAYS ---------- */
/* Film grain — sits above everything, ignores pointer events */
.grain {
  position: fixed; inset: -150%;
  pointer-events: none; z-index: 90; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)}
  40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)}
  80%{transform:translate(3%,1%)}
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 95;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .3s;
}
.cursor-dot  { width: 6px; height: 6px; background: var(--hi); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(216,255,62,.55);
  transition: opacity .3s, width .25s var(--ease), height .25s var(--ease),
              background .25s, border-color .25s;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hot .cursor-ring {
  width: 62px; height: 62px;
  background: var(--hi-dim); border-color: var(--hi);
}

/* Scroll progress rail */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.06); z-index: 80;
}
.progress span { display: block; height: 100%; width: 0; background: var(--hi); }

/* Right-hand section index */
.dots {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 70; display: grid; gap: 16px;
}
.dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  position: relative; transition: background .25s, border-color .25s, transform .25s;
}
.dots .dot::after {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap; opacity: 0; transition: opacity .25s;
}
.dots .dot:hover::after { opacity: 1; }
.dots .dot.is-active {
  background: var(--hi); border-color: var(--hi); transform: scale(1.25);
}

/* ---------- 4. PRELOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease), opacity .4s .6s;
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-inner { width: min(320px, 70vw); text-align: center; }
.loader-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; letter-spacing: -.03em; margin-bottom: 22px;
}
.loader-bar { height: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--hi); }
.loader-meta {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .16em; color: var(--muted);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .94rem;
  border: 1px solid var(--line); cursor: pointer;
  background: transparent; color: var(--text);
  transition: color .3s, border-color .3s;
}
/* Accent wipes in from the bottom on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hi); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #06080b; border-color: var(--hi); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }

.btn-primary { background: var(--hi); color: #06080b; border-color: var(--hi); }
.btn-primary::before { background: #fff; }

/* ---------- 6. NAVIGATION ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 75;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav-wrap.stuck {
  background: rgba(6,8,11,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--hi); display: grid; place-items: center; }
.brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.brand-text em { font-style: normal; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); margin-left: 4px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .93rem; color: var(--muted); transition: color .25s; display: inline-flex; gap: 7px; align-items: baseline; }
.nav-links a i { font-family: var(--font-mono); font-size: .62rem; font-style: normal; color: var(--hi); opacity: .7; }
.nav-links a:hover { color: var(--text); }

.nav-status {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--hi); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--hi); animation: ping 1.9s ease-out infinite;
}
@keyframes ping { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(3.2);opacity:0} }

.nav-cta {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; color: var(--text) !important; font-weight: 600;
  transition: background .3s, color .3s, border-color .3s;
}
.nav-cta:hover { background: var(--hi); color: #06080b !important; border-color: var(--hi); }

.menu-toggle { display: none; }
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }

/* ---------- 7. HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 130px 90px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Soft accent bloom behind the portrait */
.hero-glow {
  position: absolute; top: 10%; right: -5%;
  width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(216,255,62,.10), transparent 62%);
  filter: blur(30px); pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}

.hero-title { font-size: clamp(2.9rem, 7.5vw, 5.6rem); letter-spacing: -.035em; }
/* Each line masked, then slides up — kinetic type reveal */
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title .line.in > span { transform: translateY(0); }
.hero-title .hl { color: var(--hi); }

.lede { color: var(--muted); font-size: 1.08rem; max-width: 50ch; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* --- Portrait: instrument panel with 3D tilt --- */
.hero-photo { perspective: 1000px; justify-self: center; }
.tilt { transform-style: preserve-3d; transition: transform .25s var(--ease); will-change: transform; }
.tilt-inner {
  position: relative; width: min(360px, 76vw);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.tilt-inner img {
  width: 100%;
  aspect-ratio: 1 / 1;        /* square hero frame */
  object-fit: cover;          /* crop, never squash */
  object-position: center 75%;/* keeps head + folded arms in frame */
  border-radius: 3px;
  filter: contrast(1.05) saturate(.92);
}

/* Registration corners */
.hud-corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--hi); z-index: 3; }
.c1 { top: 8px;    left: 8px;   border-top-width: 2px; border-left-width: 2px; }
.c2 { top: 8px;    right: 8px;  border-top-width: 2px; border-right-width: 2px; }
.c3 { bottom: 8px; left: 8px;   border-bottom-width: 2px; border-left-width: 2px; }
.c4 { bottom: 8px; right: 8px;  border-bottom-width: 2px; border-right-width: 2px; }

/* Slow scanning line across the portrait */
.scanline {
  position: absolute; left: 12px; right: 12px; height: 70px; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(216,255,62,.13), transparent);
  animation: scan 5.5s linear infinite;
}
@keyframes scan { 0%{top:-70px} 100%{top:100%} }

.hud-top {
  position: absolute; top: 20px; left: 22px; right: 22px; z-index: 4;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; color: var(--text);
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}
.rec { display: inline-flex; align-items: center; gap: 6px; }
.rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--hi); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25 } }

.hud-bottom {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 14px 4px 4px; margin-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em;
}
.hud-bottom b { display: block; color: var(--muted); font-weight: 400; margin-bottom: 3px; }
.hud-bottom span { color: var(--text); }
.ok { color: var(--hi); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: grid; justify-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .22em; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--hi), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0%,100%{transform:scaleY(.4);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ---------- 8. TICKER ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--panel); overflow: hidden; padding-block: 14px;
}
.ticker-track {
  display: flex; align-items: center; gap: 26px; white-space: nowrap;
  width: max-content; animation: slide 32s linear infinite;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.ticker-track i { color: var(--hi); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 9. METRICS ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); margin-top: clamp(60px, 8vw, 90px);
}
.metric { padding: 30px 26px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.03em; line-height: 1;
}
.metric span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 10. PROJECTS — GANTT ---------- */
.gantt {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
}
.gantt-scale {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--muted);
}
.gantt-scale span { padding: 10px 14px; border-right: 1px solid var(--line); }
.gantt-scale span:last-child { border-right: 0; }

.row { padding: 26px clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); transition: background .3s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--panel-2); }

.row-head { display: flex; align-items: baseline; gap: 14px; }
.row-head i { font-family: var(--font-mono); font-size: .68rem; font-style: normal; color: var(--hi); }
.row-head h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }

/* Track = quarter grid; bar animates from zero width on reveal */
.track {
  position: relative; height: 34px; margin-top: 16px;
  background:
    repeating-linear-gradient(90deg, transparent, transparent calc(25% - 1px),
    var(--line) calc(25% - 1px), var(--line) 25%);
  border-radius: 3px;
}
.bar {
  position: absolute; top: 5px; height: 24px;
  left: var(--start); width: 0; border-radius: 3px;
  display: flex; align-items: center; padding-inline: 12px;
  overflow: hidden; cursor: default;
  transition: width 1.1s var(--ease) .1s, filter .3s, transform .3s;
}
.gantt.in .bar { width: var(--len); }
.bar em {
  font-family: var(--font-mono); font-style: normal; font-size: .63rem;
  letter-spacing: .06em; color: #06080b; white-space: nowrap;
  opacity: 0; transition: opacity .4s .8s;
}
.gantt.in .bar em { opacity: 1; }
.bar:hover, .bar:focus-visible { transform: translateY(-2px); filter: brightness(1.12); outline: none; }
/* Four tints of the single accent — no second colour introduced */
.b-a { background: var(--hi); }
.b-b { background: #b9e02f; }
.b-c { background: #9ac224; }
.b-d { background: #7fa41c; }

.row-note { color: var(--muted); font-size: .93rem; margin-top: 14px; max-width: 70ch; }

/* ---------- 11. EXPERTISE ---------- */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }

.meters { display: grid; gap: 22px; align-content: start; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; }
.m-label { font-size: .93rem; }
.m-val { font-family: var(--font-mono); font-size: .74rem; color: var(--hi); }
.m-track { grid-column: 1 / -1; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.m-track i { display: block; height: 100%; width: 0; background: var(--hi); transition: width 1.3s var(--ease); }
.meter.in .m-track i { width: var(--v); }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; }
.tool {
  background: var(--panel); padding: 22px 18px;
  transition: background .3s, transform .3s;
}
.tool:hover { background: var(--panel-2); }
.tool b { display: block; font-family: var(--font-display); font-size: 1rem; }
.tool span { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 12. ABOUT ---------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
.about-media img { border: 1px solid var(--line); border-radius: var(--r); filter: contrast(1.05) saturate(.9); }
.about-tag {
  position: absolute; bottom: -12px; left: -12px;
  background: var(--hi); color: #06080b;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 3px;
}
.about-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }

.timeline { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.timeline li { position: relative; padding-left: 26px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--hi); }
.timeline li::after { content: ""; position: absolute; left: 3.5px; top: 20px; bottom: -20px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-family: var(--font-display); font-size: 1rem; }
.timeline span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- 13. CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-copy h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.mailto {
  display: inline-block; margin-top: 24px;
  font-family: var(--font-mono); font-size: .9rem; color: var(--hi);
  border-bottom: 1px solid var(--hi-dim); padding-bottom: 3px;
  transition: border-color .3s;
  word-break: break-all;   /* keeps the address tidy on narrow phones */
}
.mailto:hover { border-color: var(--hi); }

.contact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 42px); display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 2px; resize: vertical;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #4a525c; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--hi); }
.contact .btn { justify-self: start; }

/* ---------- 14. FOOTER ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.footer-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.f-block b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f-block span { font-size: .92rem; }
.socials { display: flex; gap: 16px; }
.socials a { transition: color .25s; }
.socials a:hover { color: var(--hi); }
#clock { font-family: var(--font-mono); }

/* Oversized wordmark bleeding off the bottom edge */
.footer-huge {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.5rem, 17vw, 15rem); line-height: .78;
  letter-spacing: -.05em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
  margin-bottom: -.18em; user-select: none;
}

/* ---------- 15. REVEAL SYSTEM ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .dots { display: none; }
  .skills { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 300px; }
  .footer-in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .hud-bottom { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }

  /* Collapse nav into burger menu */
  .burger { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav-wrap { background: rgba(6,8,11,.85); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    gap: 18px; width: 100%; padding-block: 22px 10px;
  }
  .menu-toggle:checked ~ .nav-links { display: flex; }
  .menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .tools { grid-template-columns: 1fr; }
}

/* ---------- 17. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scanline, .ticker-track, .pulse::after, .scroll-hint i, .rec i { animation: none !important; }
  .cursor-dot, .cursor-ring { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  * { transition-duration: .01ms !important; }
}
