/* ============================================================
   BUILD 03 — HYBRID EXPERIENCE
   Palette shift: premium modern tech (Linear / Vercel / Apple adjacency).
   Cooler base, softer blue, platinum silver highlight. Subtle gradients
   and frosted surfaces rather than hard lines.
   ============================================================ */

:root {
  /* Base */
  --bg-0:       #06090F;
  --bg-1:       #0A0E1A;
  --bg-2:       #10162A;
  --bg-card:    #141B2F;
  --bg-card-hi: #1A2340;       /* elevated on hover */

  --fg:         #EDF0F5;
  --fg-muted:   #8891A8;
  --fg-dim:     #525B74;

  /* Accents */
  --accent:        #4DA8FF;    /* softer blue vs original #0A96F7 */
  --accent-hi:     #7BC0FF;
  --accent-soft:   rgba(77,168,255,0.18);
  --accent-glow:   rgba(77,168,255,0.35);

  --platinum:      #C7D0E0;    /* silver highlight for premium feel */
  --platinum-soft: rgba(199,208,224,0.08);

  /* Lines */
  --line:        rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.12);

  /* Type */
  --mono: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui, sans-serif;

  /* Motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.45, 0, 0.55, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg-1); }
body {
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(77,168,255,0.06), transparent 60%),
    var(--bg-1);
}

body.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

a { color: inherit; text-decoration: none; }


/* ============================================================
   MORPHING CURSOR
   Three visual states, applied via body class:
   - default:     small dot
   - .cursor-ring (hover over links): ring, grows
   - .cursor-text (hover over data-cursor with label): pill with label
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  width: 12px; height: 12px;
  transform: translate3d(-50%, -50%, 0);
  transition: width .32s var(--ease), height .32s var(--ease), border-radius .32s var(--ease);
  will-change: transform, width, height;
}
.cursor__inner {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--fg);
  display: flex; align-items: center; justify-content: center;
  transition: background .28s var(--ease), border .28s var(--ease), color .28s var(--ease);
  overflow: hidden;
}
.cursor__label {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.18em;
  color: var(--bg-1);
  opacity: 0; white-space: nowrap;
  transition: opacity .2s var(--ease);
}

/* Ring state — empty circle outlined in accent */
body.cursor-ring .cursor { width: 44px; height: 44px; }
body.cursor-ring .cursor__inner { background: transparent; border: 1.5px solid var(--accent); }

/* Text state — pill with label inside */
body.cursor-text .cursor { width: 110px; height: 44px; border-radius: 999px; }
body.cursor-text .cursor__inner { background: var(--accent); border-radius: 999px; }
body.cursor-text .cursor__label { opacity: 1; }

/* Touch devices: restore the OS cursor */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ============================================================
   AMBIENT BACKGROUND — three soft radial blobs that parallax
   slowly on scroll. Gives the page a subtle depth without any
   obvious movement.
   ============================================================ */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient__blob {
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.ambient__blob--a { top: -10vw; left: -20vw; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.ambient__blob--b { top: 40vh; right: -25vw; background: radial-gradient(circle, rgba(199,208,224,0.06), transparent 70%); }
.ambient__blob--c { bottom: -10vw; left: 30vw;  background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0.4; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2rem;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10,14,26,0.8), rgba(10,14,26,0));
  backdrop-filter: blur(10px);
}
.site-header .logo {
  font-family: var(--mono); font-size: 1rem; letter-spacing: 0.22em;
  color: var(--fg);
}
.site-header .logo--link { transition: color .2s var(--ease); }
.site-header .logo--link:hover { color: var(--accent); }
.site-header nav { display: flex; gap: 0.3rem; }
.nav-link {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--fg-muted);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.04); }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 10rem 2rem 6rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__parallax-bg {
  position: absolute; inset: -20% 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 85%);
  opacity: 0.6;
  will-change: transform;
}
.hero__inner {
  position: relative;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.22em;
  color: var(--fg-muted);
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.75); }
}

.hero__title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.03;
  margin-bottom: 1.5rem;
  max-width: 950px;
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--platinum) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__tagline {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero__cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.15em;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  transition: transform .28s var(--ease), background .28s var(--ease),
              border-color .28s var(--ease), color .28s var(--ease),
              box-shadow .4s var(--ease);
  will-change: transform;
}
.btn__arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  color: var(--bg-1);
  box-shadow: 0 8px 30px -10px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px var(--accent-glow);
}
.btn--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__meta {
  display: flex; gap: 3rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--fg);
}
.hero__meta > div { display: flex; flex-direction: column; gap: 0.3rem; }
.hero__meta-label {
  color: var(--fg-dim); letter-spacing: 0.2em; font-size: 0.68rem;
}

/* ============================================================
   INTRO STRIP (ticker-ish accent strip between hero and grid)
   ============================================================ */
.intro-strip {
  padding: 3rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(77,168,255,0.03), transparent);
  text-align: center;
}
.intro-strip__text {
  font-family: var(--mono); font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.15em;
  color: var(--fg);
}
.intro-strip__text .mute { color: var(--fg-dim); margin: 0 0.4rem; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head { max-width: 1100px; margin: 0 auto 3rem; padding: 0 2rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--fg-muted); max-width: 620px;
}

/* ============================================================
   DISCIPLINES — tilt card grid
   ============================================================ */
.disciplines {
  position: relative;
  padding: 10rem 0 8rem;
}
.grid {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* 3D tilt card — the .tilt-card element listens for pointer events locally
   and JS writes its rotateX/rotateY. .tilt-card__inner carries the transform
   so we can layer a shine that reads the same rotation. */
.tilt-card {
  position: relative;
  display: block;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card) 50%, var(--bg-card-hi));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color .35s var(--ease), box-shadow .4s var(--ease);
  cursor: none;
}
.tilt-card:hover {
  border-color: rgba(77,168,255,0.4);
  box-shadow: 0 30px 60px -30px rgba(77,168,255,0.2);
}
/* Linked variant — overrides cursor:none so the browser treats it as a real link */
.tilt-card--linked {
  display: block;
  cursor: none;           /* keep custom cursor */
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tilt-card--linked * {
  pointer-events: none;   /* all children pass clicks up to the <a> */
}
.tilt-card__inner {
  padding: 1.75rem 1.75rem 1.5rem;
  transform-style: preserve-3d;
  transition: transform .2s var(--ease);
  will-change: transform;
  height: 100%;
  position: relative;
}

.tilt-card__status {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.18em;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  border: 1px solid rgba(77,168,255,0.25);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  transform: translateZ(20px);
}
.tilt-card__title {
  font-family: var(--mono);
  font-size: 1.05rem; letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  transform: translateZ(30px);
}
.tilt-card__body {
  font-size: 0.92rem; color: var(--fg-muted); line-height: 1.6;
  transform: translateZ(15px);
  margin-bottom: 1.5rem;
}
.tilt-card__arrow {
  position: absolute; top: 1.5rem; right: 1.75rem;
  font-size: 1.1rem; color: var(--fg-dim);
  transform: translateZ(35px);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.tilt-card:hover .tilt-card__arrow { color: var(--accent); transform: translateZ(45px) translate(3px, -3px); }

/* Dynamic shine — JS positions this via CSS vars based on pointer */
.tilt-card__shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle 320px at var(--sx, 50%) var(--sy, 50%),
                              rgba(77,168,255,0.18), transparent 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  border-radius: 16px;
}
.tilt-card:hover .tilt-card__shine { opacity: 1; }

/* ============================================================
   FEATURED
   ============================================================ */
.featured {
  position: relative;
  padding: 6rem 0 10rem;
  overflow: hidden;
}
.featured__bg {
  position: absolute; inset: -20% -5%;
  background:
    radial-gradient(ellipse 50% 40% at 60% 50%, var(--accent-soft), transparent 65%);
  will-change: transform;
}
.featured-card {
  max-width: 1100px;
  margin: 0 auto;
}
.featured-card__inner {
  padding: 3rem clamp(2rem, 4vw, 4rem);
}
.featured-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.15em;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  transform: translateZ(25px);
}
.featured-card__status { color: var(--accent); }
.featured-card__title {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  max-width: 800px;
  transform: translateZ(40px);
}
.featured-card__body {
  color: var(--fg-muted); max-width: 640px;
  transform: translateZ(15px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--fg-dim);
  background: var(--bg-0);
}
.site-footer__mark { letter-spacing: 0.22em; }

/* ============================================================
   REVEAL STATES
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* ============================================================
   PAGE LAYOUT — subpages (contact / youtube / 404)
   Shared container for pages that aren't the full homepage.
   ============================================================ */
.page {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 10rem 2rem 6rem;
}
.page__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.22em;
  color: var(--fg-muted);
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.contact__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
.contact__title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 900px;
}
.contact__title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--platinum) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact__lead {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 3rem;
}

/* Hero-sized email "card" that feels clickable — actually the wrapping <a>. */
.contact__email-card {
  display: block;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-hi) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 2.5rem clamp(1.75rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .4s var(--ease);
}
.contact__email-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -20px var(--accent-glow);
}
.contact__email-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.22em;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}
.contact__email-status { color: var(--accent); }
.contact__email-address {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  word-break: break-all;
}
.contact__email-note {
  color: var(--fg-muted); font-size: 0.95rem;
}

/* Three info tiles below the email card */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.contact__tile {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .3s var(--ease);
}
.contact__tile:hover { border-color: rgba(77,168,255,0.3); }
.contact__tile-label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 0.6rem;
}
.contact__tile-body {
  font-size: 0.92rem; color: var(--fg-muted); line-height: 1.6;
}

.contact__fineprint {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--fg-dim); letter-spacing: 0.12em;
}

/* ============================================================
   YOUTUBE PAGE
   ============================================================ */
.yt__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.22em;
  color: var(--fg-muted);
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.yt__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.yt__title {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.yt__title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--platinum) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.yt__tagline {
  font-family: var(--mono); color: var(--fg-muted);
  font-size: 1rem; max-width: 640px;
  margin-bottom: 2rem;
}

.yt__frame {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-hi) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 2.5rem clamp(1.75rem, 3vw, 3rem);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: border-color .35s var(--ease);
}
.yt__frame:hover { border-color: rgba(77,168,255,0.3); }

.yt__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 2rem;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(77,168,255,0.12), transparent 70%),
    linear-gradient(180deg, #0D1220 0%, #070A14 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
/* Animated scanlines — evokes an old CRT without being loud. */
.yt__screen::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.03) 2px,
    rgba(255,255,255,0.03) 3px
  );
  pointer-events: none;
  animation: scanDrift 8s linear infinite;
}
@keyframes scanDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(6px); }
}
.yt__screen-label {
  position: relative;
  font-family: var(--mono);
  color: var(--fg-muted);
  font-size: 0.9rem; letter-spacing: 0.18em;
  text-align: center;
}
.yt__screen-label strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.yt__description {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}
.yt__cta-row {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Topic chips */
.yt__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.yt__topic {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ============================================================
   404 PAGE — giant gradient number + shine tracking
   ============================================================ */
.err {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 6rem;
  position: relative;
}
.err__inner {
  text-align: center;
  max-width: 720px;
  position: relative;
}

.err__code {
  font-family: var(--sans);
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--platinum) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientDrift 8s ease-in-out infinite;
  /* shine position driven by JS via --sx/--sy, same mechanic as tilt cards */
  position: relative;
  display: inline-block;
}
@keyframes gradientDrift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.err__label {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.err__sub {
  font-family: var(--mono);
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.err__cta-row {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LIVE CALLOUT STRIP
   ============================================================ */
.live-callout {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  background: rgba(61,190,122,0.02);
}
.live-callout__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3DBE7A;
  box-shadow: 0 0 8px rgba(61,190,122,0.55);
  animation: live-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.live-callout__tag {
  color: #3DBE7A;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}
.live-callout a {
  color: var(--accent);
  font-family: var(--mono);
}
.live-callout a:hover { color: var(--accent-hi); }
.live-callout__sep { color: var(--fg-dim); }
.live-callout__arrow { color: var(--fg-dim); margin-left: auto; }

/* ============================================================
   CONTACT SOCIALS
   ============================================================ */
.contact__socials {
  margin-top: 2rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact__socials-label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.contact__social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.contact__social-link:last-child { border-bottom: none; }
.contact__social-link:hover {
  background: rgba(77,168,255,0.04);
  text-decoration: none;
  color: inherit;
}
.contact__social-platform {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  min-width: 7rem;
}
.contact__social-handle {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.contact__social-arrow {
  margin-left: auto;
  color: var(--fg-dim);
  font-size: 0.8rem;
}
.contact__fineprint--domains {
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
.domain-ext {
  color: var(--accent);
  opacity: 0.8;
}

/* ============================================================
   SIGNAL LOG / PIPELINE SECTION
   ============================================================ */
.signal-log {
  padding: 5rem clamp(1.25rem, 4vw, 2rem);
  max-width: 1140px;
  margin: 0 auto;
}

.log-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.log-grid--single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.log-block {
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
}

.log-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.log-block__label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}

.log-block__status {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
}

.log-block__status--active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(77,168,255,0.25);
}

.log-list {
  margin: 0;
  padding: 0;
}

.log-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.log-row:last-child { border-bottom: none; }

.log-row--full {
  grid-template-columns: 1fr;
}

.log-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.log-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.log-desc--dim {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .page { padding: 7rem 1.25rem 4rem; }
  .contact__email-card { padding: 1.75rem 1.25rem; }
  .yt__frame { padding: 1.75rem 1.25rem; }
  .err { padding: 6rem 1.25rem 4rem; }
  .site-header nav { gap: 0; }
  .nav-link { padding: 0.5rem 0.7rem; font-size: 0.78rem; }

  .hero { padding: 7rem 1.25rem 4rem; }
  .hero__cta-row { margin-bottom: 3rem; }
  .hero__meta { gap: 1.5rem; }
  .disciplines, .featured { padding: 6rem 0; }
  .grid, .section-head, .featured-card { padding-left: 1.25rem; padding-right: 1.25rem; }
  .featured-card { padding: 0; }
  .featured-card__inner { padding: 2rem 1.5rem; }
  .site-header { padding: 0.9rem 1.25rem; }
  .intro-strip__text { line-height: 2; }
  .log-grid { grid-template-columns: 1fr; }
  .signal-log .section-head { padding-left: 0; padding-right: 0; }
}

/* Tilt effect can feel queasy on mobile → disable tilt motion there */
@media (max-width: 720px) {
  .tilt-card__inner { transform: none !important; }
  .tilt-card__status, .tilt-card__title, .tilt-card__body, .tilt-card__arrow,
  .featured-card__meta, .featured-card__title, .featured-card__body { transform: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ambient__blob, .hero__parallax-bg, .featured__bg { transform: none !important; }
  .cursor { display: none; }
  body { cursor: auto; }
}
