/* ==========================================================================
   MARWAN LOUHICHI · LANDO NORRIS x DEEP MATRIX EDITION (style.css)
   Full Lando Norris motion grammar (Preloader wipe, Sticky Hero Parallax,
   Split-Line Reveals, Scroll Fade Header, Chamfered Hall of Fame + 3D Tilt)
   fused with a deeper Phosphor Matrix aesthetic (CRT scanlines, emerald glow,
   glyph decode & ambient digital rain).
   ========================================================================== */

:root {
  /* Studio Light Surface (Hero default + Alignment section) */
  --paper: #f2efeb;
  --paper-card: #ffffff;
  --paper-ink: #07100a;
  --paper-muted: #4b5d53;
  --paper-border: rgba(7, 16, 10, 0.12);

  /* Deep Matrix Phosphor Dark Surfaces */
  --forest: #05110a;
  --forest-elevated: #0a1c12;
  --void: #020604;
  --void-card: #06100a;

  /* Text on Dark */
  --ink-light: #e9fff2;
  --ink-secondary: #8ab09a;
  --ink-muted: #4d6e5b;

  /* Phosphor Matrix Accent System */
  --matrix: #00ff88;
  --matrix-mid: #00e676;
  --matrix-ink: #020c06;
  --matrix-soft-ink: #6bffb8;
  --matrix-deep-ink: #077840;
  --matrix-glow: rgba(0, 255, 136, 0.18);
  --matrix-border: rgba(0, 255, 136, 0.38);

  /* Typography (Matrix Cyber Display + Terminal Mono + Clean Body Sans) */
  --font-display: 'Chakra Petch', 'Share Tech Mono', monospace;
  --font-matrix: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', ui-monospace, SFMono-Regular, monospace;

  /* Lando Motion Signature */
  --cubic-lando: cubic-bezier(0.65, 0.05, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --container-w: 1260px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--void);
  color: var(--ink-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--void);
  color: var(--ink-light);
  line-height: 1.55;
  overflow-x: clip;
}

::selection {
  background: var(--matrix);
  color: var(--matrix-ink);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 48px);
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   MATRIX PRELOADER CURTAIN (Lando-style fullscreen intro wipe)
   ========================================================================== */
.matrix-preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #020805;
  color: var(--matrix);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.85s var(--cubic-lando), opacity 0.4s ease;
}

.matrix-preloader.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.preloader-scanlines,
.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 136, 0.03) 0px,
    rgba(0, 255, 136, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

.preloader-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(300px, 80vw);
}

.preloader-monogram {
  font-family: var(--font-matrix);
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 36px rgba(0, 255, 136, 0.55);
}

.preloader-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(0, 255, 136, 0.16);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--matrix);
  box-shadow: 0 0 14px var(--matrix);
  transition: width 0.12s linear;
}

/* ==========================================================================
   CUSTOM MATRIX CURSOR RETICLE
   ========================================================================== */
.matrix-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--matrix);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.25s var(--cubic-lando), height 0.25s var(--cubic-lando), opacity 0.25s ease, background 0.25s ease;
}

.matrix-cursor.visible { opacity: 0.85; }
.matrix-cursor.hovering {
  width: 42px;
  height: 42px;
  background: rgba(0, 255, 136, 0.12);
}

@media (pointer: coarse) {
  .matrix-cursor { display: none; }
}

/* ==========================================================================
   TOPOGRAPHIC CONTOUR BACKDROP
   ========================================================================== */
.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-size: 640px 640px;
  background-repeat: repeat;
}

.topo-light {
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640' fill='none'%3E%3Cpath d='M-40 120C90 60 180 180 310 130C440 80 510 190 680 140' stroke='%2307100a' stroke-opacity='0.09' stroke-width='1'/%3E%3Cpath d='M-40 220C110 150 200 280 340 220C480 160 540 290 680 230' stroke='%2307100a' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M-40 340C80 290 210 410 350 350C490 290 560 400 680 360' stroke='%2307100a' stroke-opacity='0.09' stroke-width='1'/%3E%3Cpath d='M-40 470C120 420 220 530 370 470C520 410 570 520 680 480' stroke='%2307100a' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M-40 580C100 540 240 620 380 570C520 520 590 610 680 585' stroke='%2307100a' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
}

.topo-dark {
  opacity: 0.52;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640' fill='none'%3E%3Cpath d='M-40 120C90 60 180 180 310 130C440 80 510 190 680 140' stroke='%2300ff88' stroke-opacity='0.14' stroke-width='1'/%3E%3Cpath d='M-40 220C110 150 200 280 340 220C480 160 540 290 680 230' stroke='%2300ff88' stroke-opacity='0.1' stroke-width='1'/%3E%3Cpath d='M-40 340C80 290 210 410 350 350C490 290 560 400 680 360' stroke='%2300ff88' stroke-opacity='0.14' stroke-width='1'/%3E%3Cpath d='M-40 470C120 420 220 530 370 470C520 410 570 520 680 480' stroke='%2300ff88' stroke-opacity='0.1' stroke-width='1'/%3E%3Cpath d='M-40 580C100 540 240 620 380 570C520 520 590 610 680 585' stroke='%2300ff88' stroke-opacity='0.12' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==========================================================================
   SPLIT-LINE KINETIC REVEALS (Lando GSAP SplitText equivalent)
   ========================================================================== */
.split-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.split-line {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.9s var(--cubic-lando), opacity 0.65s ease;
}

.in-view .split-line,
.split-reveal.in-view .split-line {
  transform: translateY(0%);
  opacity: 1;
}

.split-mask:nth-child(2) .split-line { transition-delay: 0.09s; }
.split-mask:nth-child(3) .split-line { transition-delay: 0.18s; }
.split-mask:nth-child(4) .split-line { transition-delay: 0.27s; }

/* ==========================================================================
   MATRIX CODE ACCENTS & MICRO KICKERS
   ========================================================================== */
.serif-em {
  font-family: var(--font-matrix);
  font-style: normal;
  font-weight: 400;
  color: var(--matrix);
  letter-spacing: 0.03em;
  text-shadow: 0 0 22px rgba(0, 255, 136, 0.35);
}

.serif-em.dark-accent {
  color: var(--matrix-deep-ink);
  text-shadow: none;
}

.section-kicker {
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 12px;
}

.section-kicker.emerald {
  color: var(--matrix);
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
}

/* ==========================================================================
   LANDO BUTTON TEXT-ROLL MICRO-INTERACTION
   ========================================================================== */
.ln-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--matrix);
  color: var(--matrix-ink);
  font-family: var(--font-matrix);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.24);
  transition: transform 0.35s var(--cubic-lando), box-shadow 0.35s var(--cubic-lando);
}

.ln-pill-cta.large { padding: 14px 24px; font-size: 0.8rem; }

.ln-pill-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 255, 136, 0.45);
}

.btn-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  color: transparent;
  white-space: nowrap;
}

.btn-roll::before,
.btn-roll::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--matrix-ink);
  transition: transform 0.45s var(--cubic-lando);
  pointer-events: none;
}

.btn-roll::before {
  transform: translateY(0%);
}

.btn-roll::after {
  transform: translateY(115%);
}

.ln-pill-cta:hover .btn-roll::before,
.ln-pill-cta:focus-visible .btn-roll::before {
  transform: translateY(-115%);
}

.ln-pill-cta:hover .btn-roll::after,
.ln-pill-cta:focus-visible .btn-roll::after {
  transform: translateY(0%);
}

.ln-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.32);
  color: var(--ink-light);
  font-family: var(--font-matrix);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}

.ln-ghost-btn:hover {
  border-color: var(--matrix);
  color: var(--matrix);
  background: rgba(0, 255, 136, 0.09);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.2);
}

/* ==========================================================================
   00 / ADAPTIVE HEADER BAR (Wordmark Fades Out Cleanly on Scroll!)
   ========================================================================== */
.ln-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(18px, 3vw, 40px);
  pointer-events: none;
  transition: color 0.4s ease;
}

.ln-header > * { pointer-events: auto; }
.ln-header-actions {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ln-cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(7, 16, 10, 0.24);
  background: rgba(242, 239, 235, 0.72);
  backdrop-filter: blur(12px);
  color: var(--paper-ink);
  font-family: var(--font-matrix);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--cubic-lando);
}

.ln-cv-chip:hover {
  border-color: var(--matrix-deep-ink);
  color: var(--matrix-deep-ink);
  background: rgba(0, 255, 136, 0.14);
}

.ln-header[data-nav-theme="dark"] .ln-cv-chip {
  border-color: rgba(0, 255, 136, 0.32);
  background: rgba(5, 17, 10, 0.78);
  color: var(--ink-light);
}

.ln-header[data-nav-theme="dark"] .ln-cv-chip:hover {
  border-color: var(--matrix);
  color: var(--matrix);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.22);
}

.ln-brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-ink);
  transition: color 0.4s ease;
}

.ln-header[data-nav-theme="dark"] .ln-brand {
  color: var(--ink-light);
}

.ln-monogram {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--paper-ink);
  color: var(--matrix);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.18);
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--cubic-lando);
}

.ln-header[data-nav-theme="dark"] .ln-monogram {
  background: var(--matrix);
  color: var(--matrix-ink);
}

/* Wordmark fades out & collapses smoothly on scroll */
.ln-wordmark-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--cubic-lando), transform 0.45s var(--cubic-lando), max-width 0.55s var(--cubic-lando);
}

.ln-header.scrolled .ln-wordmark-wrap {
  opacity: 0;
  transform: translateY(-10px);
  max-width: 0;
  pointer-events: none;
}

.ln-header.scrolled .ln-brand {
  gap: 0;
}

.ln-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.ln-submark {
  font-family: var(--font-matrix);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  opacity: 0.68;
}

/* Square Outlined Hamburger -> Solid Matrix X */
.ln-menu-btn {
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(7, 16, 10, 0.32);
  background: rgba(242, 239, 235, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.35s var(--cubic-lando), border-color 0.35s var(--cubic-lando);
}

.ln-header[data-nav-theme="dark"] .ln-menu-btn {
  border-color: var(--matrix-border);
  background: rgba(5, 17, 10, 0.78);
}

.ln-menu-btn .menu-line {
  width: 18px;
  height: 1.8px;
  background: var(--paper-ink);
  transition: transform 0.35s var(--cubic-lando), background 0.35s ease;
}

.ln-header[data-nav-theme="dark"] .ln-menu-btn .menu-line {
  background: var(--matrix);
}

.ln-menu-btn.open {
  background: var(--matrix) !important;
  border-color: var(--matrix) !important;
}

.ln-menu-btn.open .menu-line { background: var(--matrix-ink) !important; }
.ln-menu-btn.open .menu-line.top { transform: translateY(3.9px) rotate(45deg); }
.ln-menu-btn.open .menu-line.bottom { transform: translateY(-3.9px) rotate(-45deg); }

/* ==========================================================================
   FULLSCREEN MATRIX TOPOGRAPHIC NAVIGATION DRAWER
   ========================================================================== */
.ln-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: var(--forest);
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--cubic-lando), opacity 0.45s ease;
}

.ln-drawer.open {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
}

.ln-drawer-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.ln-drawer-crest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--matrix-soft-ink);
}

.crest-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--matrix);
  box-shadow: 0 0 12px var(--matrix);
}

.ln-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
  color: rgba(233, 255, 242, 0.82);
  opacity: 0;
  transform: translateY(24px);
  transition: color 0.25s ease, transform 0.55s var(--cubic-lando), opacity 0.45s ease, text-shadow 0.25s ease;
}

.ln-drawer.open .drawer-link {
  opacity: 1;
  transform: translateY(0);
}

.ln-drawer.open .drawer-link:nth-child(1) { transition-delay: 0.08s; }
.ln-drawer.open .drawer-link:nth-child(2) { transition-delay: 0.13s; }
.ln-drawer.open .drawer-link:nth-child(3) { transition-delay: 0.18s; }
.ln-drawer.open .drawer-link:nth-child(4) { transition-delay: 0.23s; }
.ln-drawer.open .drawer-link:nth-child(5) { transition-delay: 0.28s; }
.ln-drawer.open .drawer-link:nth-child(6) { transition-delay: 0.33s; }
.ln-drawer.open .drawer-link:nth-child(7) { transition-delay: 0.38s; }

.drawer-link:hover,
.drawer-link.active {
  color: var(--matrix);
  text-shadow: 0 0 28px rgba(0, 255, 136, 0.45);
}

.ln-drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.ln-drawer-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ln-drawer-socials {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
}

.ln-drawer-socials a:hover { color: var(--matrix); }

/* ==========================================================================
   01 / STUDIO WHITE HERO -> HOVER LIQUID PORTAL INTO CYBER MATRIX WORLD
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  min-height: 145vh;
  background: #f3f1ee;
  transition: background-color 0.55s var(--cubic-lando);
}

.hero-scroll-track.matrix-locked {
  background: #030906;
}

.cyber-hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  background: #f3f1ee;
  color: var(--paper-ink);
  overflow: hidden;
  user-select: none;
  transition: background-color 0.55s var(--cubic-lando), color 0.55s var(--cubic-lando);
}

.cyber-hero.matrix-locked {
  color: var(--ink-light);
}

/* Identical pixel-aligned vertical 764x1024 portrait wrapper for BOTH Light & Matrix */
.portrait-layer-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(626px, 92vw, calc((100dvh - 84px) * 764 / 1024));
  aspect-ratio: 764 / 1024;
  pointer-events: none;
}

.portrait-light-wrap {
  z-index: 2;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  opacity: 0;
  transition: opacity 0.85s var(--ease-out-expo);
}

.cyber-hero.hero-ready .portrait-light-wrap {
  opacity: 1;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero-light-base {
  filter: brightness(1.05) contrast(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 100%);
}

.portrait-wireframe-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: normal;
}

/* Layer 2: Cyber Matrix World (#030906 + Falling Digital Rain + CRT Scanlines + Aligned Matrix Marwan) */
.matrix-world {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #030906;
  visibility: hidden;
  --x0: 50%; --y0: 30%; --r0: 0px;
  --x1: 50%; --y1: 30%; --r1: 0px;
  --x2: 50%; --y2: 30%; --r2: 0px;
  --x3: 50%; --y3: 30%; --r3: 0px;
  --x4: 50%; --y4: 30%; --r4: 0px;
  --x5: 50%; --y5: 30%; --r5: 0px;
  -webkit-mask-image:
    radial-gradient(circle var(--r0) at var(--x0) var(--y0), #000 72%, transparent 100%),
    radial-gradient(circle var(--r1) at var(--x1) var(--y1), #000 70%, transparent 100%),
    radial-gradient(circle var(--r2) at var(--x2) var(--y2), #000 68%, transparent 100%),
    radial-gradient(circle var(--r3) at var(--x3) var(--y3), #000 66%, transparent 100%),
    radial-gradient(circle var(--r4) at var(--x4) var(--y4), #000 64%, transparent 100%),
    radial-gradient(circle var(--r5) at var(--x5) var(--y5), #000 62%, transparent 100%);
  mask-image:
    radial-gradient(circle var(--r0) at var(--x0) var(--y0), #000 72%, transparent 100%),
    radial-gradient(circle var(--r1) at var(--x1) var(--y1), #000 70%, transparent 100%),
    radial-gradient(circle var(--r2) at var(--x2) var(--y2), #000 68%, transparent 100%),
    radial-gradient(circle var(--r3) at var(--x3) var(--y3), #000 66%, transparent 100%),
    radial-gradient(circle var(--r4) at var(--x4) var(--y4), #000 64%, transparent 100%),
    radial-gradient(circle var(--r5) at var(--x5) var(--y5), #000 62%, transparent 100%);
}

.cyber-hero.matrix-locked .matrix-world.full-open {
  -webkit-mask-image: none;
  mask-image: none;
}

.portrait-matrix-wrap {
  z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.hero-matrix-reveal {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 100%);
}

.matrix-rain-canvas {
  position: absolute;
  top: -48px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% + 48px);
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hero-crt-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 136, 0.04) 0px,
    rgba(0, 255, 136, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Layer 3: Adaptive Neon Portal Reticle Ring */
.portal-reticle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  pointer-events: none;
  border-radius: 50%;
  border: 1.5px dashed var(--matrix);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.32), inset 0 0 18px rgba(0, 255, 136, 0.14);
  opacity: 0;
  width: 0;
  height: 0;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  will-change: transform, width, height, opacity;
}

.matrix-wireframe-hint {
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.cyber-hero.matrix-locked .matrix-wireframe-hint,
.cyber-hero.portrait-hovering .matrix-wireframe-hint {
  opacity: 0;
}

.wire-ring.outer {
  transform-origin: 382px 195px;
  animation: wire-spin-cw 28s linear infinite;
}

.wire-ring.inner {
  transform-origin: 382px 195px;
  animation: wire-spin-ccw 20s linear infinite;
}

.wire-scan-line {
  animation: wire-scan 3.6s ease-in-out infinite;
}

@keyframes wire-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wire-spin-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes wire-scan {
  0%, 100% { transform: translateY(0px); opacity: 0.15; }
  50% { transform: translateY(130px); opacity: 0.7; }
}

@keyframes matrix-glitch-flash {
  0% { transform: translate(0, 0); filter: hue-rotate(0deg) contrast(1); }
  25% { transform: translate(-7px, 2px) skewX(5deg); filter: hue-rotate(20deg) contrast(1.6) brightness(1.2); }
  55% { transform: translate(6px, -2px) skewX(-4deg); filter: contrast(1.4) saturate(1.5); }
  100% { transform: translate(0, 0); filter: none; }
}

.cyber-hero.glitch-flash .matrix-world {
  animation: matrix-glitch-flash 0.3s steps(2, end);
}

/* Layer 4: Bottom Minimal Floating HUD (Light frosted glass -> Dark Matrix when locked) */
.hero-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 0 clamp(18px, 3vw, 40px) clamp(20px, 3vh, 36px);
  pointer-events: none;
}

.hero-hud > * {
  pointer-events: auto;
}

.telemetry-card {
  justify-self: start;
  max-width: 280px;
  padding: 14px 18px;
  background: rgba(243, 241, 238, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(7, 16, 10, 0.16);
  color: var(--paper-ink);
  box-shadow: 0 12px 32px rgba(7, 16, 10, 0.08);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: background 0.45s ease, border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.cyber-hero.matrix-locked .telemetry-card {
  background: rgba(5, 17, 10, 0.82);
  border-color: var(--matrix-border);
  color: var(--ink-light);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 255, 136, 0.14);
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.telemetry-kicker {
  font-family: var(--font-matrix);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--matrix-deep-ink);
  transition: color 0.45s ease;
}

.cyber-hero.matrix-locked .telemetry-kicker {
  color: var(--matrix);
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--matrix);
  box-shadow: 0 0 12px var(--matrix);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.telemetry-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.telemetry-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  margin-top: 3px;
  opacity: 0.84;
}

.telemetry-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(7, 16, 10, 0.12);
  opacity: 0.72;
  transition: border-color 0.45s ease;
}

.cyber-hero.matrix-locked .telemetry-meta {
  border-top-color: rgba(0, 255, 136, 0.24);
}

.lock-switch-wrap {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-label {
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-ink);
  transition: color 0.45s ease;
}

.cyber-hero.matrix-locked .lock-label {
  color: var(--ink-light);
}

.lock-switch-btn {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--matrix);
  color: var(--matrix-ink);
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.42);
  transition: transform 0.35s var(--cubic-lando), box-shadow 0.35s var(--cubic-lando);
}

.lock-switch-btn:hover {
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 0 44px rgba(0, 255, 136, 0.65);
}

.lock-switch-btn:focus-visible {
  outline: 2px solid var(--paper-ink);
  outline-offset: 4px;
}

.cyber-hero.matrix-locked .lock-switch-btn:focus-visible {
  outline-color: #ffffff;
}

/* Staggered fade-up entrance */
.cyber-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transition-delay: calc(var(--stagger, 0) * 0.2s + 0.15s);
}

.cyber-hero.hero-ready .cyber-fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   02 / IMPACT MANIFESTO (Sticky Reading Chamber — Deep Matrix CRT)
   ========================================================================== */
.manifesto-section {
  position: relative;
  min-height: 185vh;
  background: var(--forest);
  color: var(--ink-light);
  padding: 0;
  overflow: clip;
  border-top: 1px solid rgba(0, 255, 136, 0.16);
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 11vw, 150px) 0;
  overflow: clip;
}

.ambient-matrix-canvas {
  position: absolute;
  top: -90px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% + 180px);
  z-index: 1;
  opacity: 0.34;
  pointer-events: none;
}

.manifesto-inner {
  text-align: center;
  max-width: 960px;
}

.manifesto-crest {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--matrix-border);
  background: rgba(0, 255, 136, 0.06);
  font-family: var(--font-matrix);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--matrix);
  margin-bottom: 36px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.12);
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.3vw, 2.95rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.manifesto-headline .serif-em {
  font-size: 1.02em;
  text-transform: uppercase;
  font-weight: 400;
}

.manifesto-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   03 / DUAL TRACK SPLIT (Deep Matrix Terminal Aesthetic)
   ========================================================================== */
.dual-track-section {
  position: relative;
  min-height: 130vh;
  display: flex;
  align-items: center;
  background: #030b06;
  color: var(--ink-light);
  padding: clamp(140px, 16vw, 230px) 0;
  overflow: clip;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.dual-header {
  text-align: center;
  margin-bottom: 68px;
}

.dual-mega-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.track-card {
  position: relative;
  padding: clamp(32px, 3.6vw, 48px);
  background: rgba(6, 19, 12, 0.88);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(8px);
  transition: transform 0.45s var(--cubic-lando), border-color 0.35s ease, box-shadow 0.45s var(--cubic-lando);
}

.track-card:hover {
  transform: translateY(-6px);
  border-color: var(--matrix);
  box-shadow: 0 24px 54px rgba(0, 255, 136, 0.12);
}

.track-badge {
  font-family: var(--font-matrix);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--matrix);
}

.track-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.track-accent {
  font-family: var(--font-matrix);
  font-style: normal;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  color: var(--matrix-soft-ink);
}

.track-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.track-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 255, 136, 0.14);
}

.track-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-light);
}

.track-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--matrix);
  box-shadow: 0 0 10px var(--matrix);
}

/* ==========================================================================
   04 / CASE STUDIES "HALL OF FAME" (Chamfered Cards + 3D Tilt + Elliptical Wipe)
   ========================================================================== */
.cases-section {
  position: relative;
  min-height: 155vh;
  background: var(--void);
  color: var(--ink-light);
  padding: clamp(150px, 17vw, 240px) 0;
  overflow: clip;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.cases-head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 72px;
}

.cases-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.cases-title .serif-em { font-size: 1em; }

.cases-intro {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  margin-bottom: 18px;
  max-width: 520px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--ink-secondary);
  transition: all 0.3s var(--cubic-lando);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--matrix);
  border-color: var(--matrix);
  color: var(--matrix-ink);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.35);
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 30px;
  perspective: 1200px;
}

.hall-card {
  position: relative;
  background: var(--void-card);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.45s var(--cubic-lando), transform 0.25s ease-out;
}

.hall-card:hover {
  border-color: var(--matrix);
  box-shadow: 0 24px 56px rgba(0, 255, 136, 0.14);
}

.hall-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #040d07;
}

.hall-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.08);
  transition: transform 0.75s var(--cubic-lando), filter 0.5s ease;
}

.hall-card:hover .hall-visual img {
  transform: scale(1.1);
  filter: saturate(1.1) contrast(1.12);
}

/* Lando Elliptical Top-Down Wipe */
.hall-wipe {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.24), rgba(2, 6, 4, 0.82));
  clip-path: ellipse(100% 0% at 50% 0%);
  transition: clip-path 0.65s var(--cubic-lando);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
}

.hall-card:hover .hall-wipe {
  clip-path: ellipse(135% 135% at 50% 0%);
}

.hall-wipe-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--matrix);
  color: var(--matrix-ink);
}

.hall-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.hall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.hall-client { color: var(--ink-secondary); }
.hall-year { color: var(--matrix); font-weight: 700; }

.hall-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.24;
}

.hall-summary {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.hall-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 255, 136, 0.12);
}

.hall-kpi-val {
  font-family: var(--font-matrix);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--matrix);
}

.hall-kpi-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   05 / AI PM ALIGNMENT + HANDS-ON AI LAB
   ========================================================================== */
.alignment-section {
  position: relative;
  min-height: 135vh;
  display: flex;
  align-items: center;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(145px, 16vw, 230px) 0;
  overflow: clip;
}

.alignment-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.alignment-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.04;
  margin-bottom: 16px;
}

.alignment-sub {
  font-size: 0.88rem;
  color: var(--paper-muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pillar-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 16px;
  transition: transform 0.35s var(--cubic-lando), border-color 0.3s ease, box-shadow 0.35s ease;
}

.pillar-row:hover {
  transform: translateX(6px);
  border-color: var(--matrix-deep-ink);
}

.pillar-pct {
  font-family: var(--font-matrix);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--matrix-ink);
  background: var(--matrix);
  border-radius: 10px;
  padding: 8px 0;
  text-align: center;
}

.pillar-row h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.pillar-row p {
  font-size: 0.84rem;
  color: var(--paper-muted);
}

.ai-lab-card {
  background: var(--forest);
  color: var(--ink-light);
  border: 1px solid var(--matrix-border);
  border-radius: 22px;
  padding: clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 28px 64px rgba(2, 8, 5, 0.28), 0 0 40px rgba(0, 255, 136, 0.08);
}

.lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--matrix);
}

.lab-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

.lab-method {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.lab-sublabel {
  font-family: var(--font-matrix);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--matrix-soft-ink);
  margin-bottom: 8px;
}

.lab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lab-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.09);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--ink-light);
}

.lab-builds {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lab-builds li {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  padding-left: 16px;
  position: relative;
}

.lab-builds li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--matrix);
}

/* ==========================================================================
   06 / INFINITE MARQUEE + EXPERIENCE TIMELINE
   ========================================================================== */
.experience-section {
  position: relative;
  min-height: 150vh;
  background: var(--void);
  color: var(--ink-light);
  padding-bottom: clamp(140px, 16vw, 220px);
  overflow: clip;
}

.marquee-band {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  background: var(--forest);
  padding: 16px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: ln-marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-matrix);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.marquee-item::after {
  content: "◆";
  color: var(--matrix);
  font-size: 0.62rem;
  text-shadow: 0 0 10px var(--matrix);
}

@keyframes ln-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.exp-container { padding-top: clamp(110px, 12vw, 170px); }

.exp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.exp-head-left {
  max-width: 620px;
}

.exp-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.exp-subtitle {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.exp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(5, 17, 10, 0.86);
  border: 1px solid rgba(0, 255, 136, 0.28);
  font-family: var(--font-matrix);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--matrix);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.12);
}

.exp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--matrix);
  box-shadow: 0 0 10px var(--matrix);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ==========================================================================
   ANIMATED SCROLL-DRAWN CV TIMELINE
   ========================================================================== */
.cv-timeline {
  position: relative;
  max-width: 1080px;
  --tl-progress: 0;
}

.tl-rail {
  position: absolute;
  left: calc(168px + 22px);
  top: 34px;
  height: calc(100% - 68px);
  width: 2px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.tl-rail-track {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.24), rgba(0, 255, 136, 0.1) 50%, rgba(0, 255, 136, 0.2));
}

.tl-rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.45), var(--matrix));
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.55);
  transform-origin: top center;
  transform: scaleY(var(--tl-progress, 0));
  will-change: transform;
}

.tl-rail-head {
  position: absolute;
  left: 50%;
  top: calc(var(--tl-progress, 0) * 100%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4ffea;
  box-shadow: 0 0 18px 4px var(--matrix), 0 0 6px #ffffff;
  transform: translate(-50%, -50%);
  opacity: clamp(0, calc(var(--tl-progress, 0) * 20), 1);
}

.tl-items {
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
  z-index: 2;
}

.tl-item {
  display: grid;
  grid-template-columns: 168px 44px 1fr;
  align-items: start;
}

.tl-date-col {
  text-align: right;
  padding: 26px 14px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  opacity: 0.48;
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.tl-item.is-passed .tl-date-col {
  opacity: 0.78;
}

.tl-item.is-active .tl-date-col {
  opacity: 1;
  transform: translateX(-4px);
}

.tl-step-tag {
  font-family: var(--font-matrix);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  transition: color 0.35s ease;
}

.tl-item.is-active .tl-step-tag {
  color: var(--matrix);
}

.tl-year-big {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  transition: text-shadow 0.35s ease, color 0.35s ease;
}

.tl-item.is-active .tl-year-big {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.48);
}

.tl-period-full {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-secondary);
}

.tl-node-col {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.tl-node {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid rgba(0, 255, 136, 0.28);
  display: grid;
  place-items: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.45s var(--cubic-lando);
}

.tl-node-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.3);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.tl-item.is-passed .tl-node {
  border-color: rgba(0, 255, 136, 0.72);
}

.tl-item.is-passed .tl-node-core {
  background: var(--matrix);
}

.tl-item.is-active .tl-node {
  border-color: var(--matrix);
  transform: scale(1.22);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.55);
}

.tl-item.is-active .tl-node-core {
  background: #eafff4;
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--matrix);
}

.tl-item.is-active .tl-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--matrix);
  animation: tl-sonar 1.9s ease-out infinite;
}

@keyframes tl-sonar {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.75); opacity: 0; }
}

.tl-connector {
  position: absolute;
  top: 39px;
  left: 50%;
  right: 0;
  height: 1.5px;
  background: rgba(0, 255, 136, 0.16);
  z-index: 1;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.tl-item.is-passed .tl-connector {
  background: rgba(0, 255, 136, 0.42);
}

.tl-item.is-active .tl-connector {
  background: var(--matrix);
  box-shadow: 0 0 12px var(--matrix);
}

.cv-timeline .timeline-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 40px);
  background: rgba(6, 16, 10, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: border-color 0.35s ease, transform 0.35s var(--cubic-lando), box-shadow 0.45s ease;
}

.timeline-card:hover {
  border-color: var(--matrix);
  transform: translateX(4px);
}

.tl-item.is-active .timeline-card {
  border-color: rgba(0, 255, 136, 0.62);
  box-shadow: 0 22px 58px rgba(0, 255, 136, 0.12), inset 0 0 32px rgba(0, 255, 136, 0.04);
}

.tl-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tl-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tl-company-pill {
  font-family: var(--font-matrix);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 255, 136, 0.11);
  border: 1px solid rgba(0, 255, 136, 0.34);
  color: var(--matrix);
}

.tl-role {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.tl-period {
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.tl-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}

.tl-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.tl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--matrix);
  box-shadow: 0 0 8px var(--matrix);
}

.tl-point-lead {
  color: var(--ink-light);
  font-weight: 600;
}

.tl-summary {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tl-badges { display: flex; flex-wrap: wrap; gap: 7px; }

.tl-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.18);
  color: var(--ink-light);
}

.credentials-col { display: flex; flex-direction: column; gap: 16px; }

.cred-card {
  padding: 22px 24px;
  background: var(--forest);
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 16px;
}

.cred-title {
  font-family: var(--font-matrix);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--matrix);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cred-item + .cred-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.cred-main { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; }
.cred-sub { font-size: 0.78rem; color: var(--ink-secondary); margin-top: 2px; }

.skill-group + .skill-group { margin-top: 16px; }
.skill-group-lbl { font-size: 0.8rem; font-weight: 700; color: var(--ink-light); margin-bottom: 8px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(0, 255, 136, 0.06);
  color: var(--ink-secondary);
}

/* ==========================================================================
   07 / LANDO-STYLE NOTCHED MATRIX FOOTER
   ========================================================================== */
.ln-footer {
  position: relative;
  background: var(--matrix);
  color: var(--matrix-ink);
  padding: clamp(72px, 9vw, 120px) 0 40px;
  overflow: clip;
}

.footer-notched-card {
  position: relative;
  background: var(--forest);
  color: var(--ink-light);
  border-radius: 26px;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 4.5vw, 60px);
  clip-path: polygon(
    0 24px, 24px 0, calc(50% - 80px) 0, calc(50% - 60px) 16px,
    calc(50% + 60px) 16px, calc(50% + 80px) 0, calc(100% - 24px) 0,
    100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%,
    24px 100%, 0 calc(100% - 24px)
  );
}

.footer-card-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 32px;
  align-items: center;
}

.footer-col-left,
.footer-col-right {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.86rem;
}

.footer-col-right { text-align: right; }

.footer-col-title {
  font-family: var(--font-matrix);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--matrix);
  margin-bottom: 6px;
}

.footer-col-left a,
.footer-col-right a { color: var(--ink-secondary); transition: color 0.25s ease; }
.footer-col-left a:hover,
.footer-col-right a:hover { color: var(--matrix); }

.footer-col-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-kicker {
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--matrix-soft-ink);
}

.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.9vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--matrix-ink);
}

/* ==========================================================================
   CASE STUDY DRAWER & TOAST
   ========================================================================== */
.case-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 8, 5, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.35s ease;
}

.case-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.case-drawer {
  width: min(720px, 100vw);
  height: 100%;
  background: var(--forest);
  border-left: 1px solid var(--matrix-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.55s var(--cubic-lando);
}

.case-modal-backdrop.open .case-drawer { transform: translateX(0); }

.drawer-progress-bar { height: 3px; width: 0%; background: var(--matrix); box-shadow: 0 0 12px var(--matrix); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.14);
}

.drawer-badge { font-family: var(--font-matrix); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.14em; color: var(--matrix); }

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-matrix);
  font-size: 0.72rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--ink-light);
}

.drawer-close-btn:hover { border-color: var(--matrix); color: var(--matrix); }

.drawer-body {
  padding: 28px 32px 56px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: 0.01em; line-height: 1.18; }
.drawer-subtitle { color: var(--ink-secondary); font-size: 0.9rem; line-height: 1.6; }

.drawer-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.drawer-stat-box {
  padding: 14px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 12px;
}

.drawer-stat-num { font-family: var(--font-matrix); font-weight: 400; font-size: 1rem; letter-spacing: 0.04em; color: var(--matrix); }
.drawer-stat-lbl { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-secondary); text-transform: uppercase; margin-top: 3px; }

.drawer-section { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(0, 255, 136, 0.12); }
.drawer-sec-label { font-family: var(--font-matrix); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.16em; color: var(--matrix); }
.drawer-sec-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.drawer-sec-text { color: var(--ink-secondary); font-size: 0.86rem; line-height: 1.65; }
.drawer-moves-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.drawer-move-card {
  padding: 14px 16px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 12px;
}

.drawer-move-card h4 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; color: var(--ink-light); }
.drawer-move-card p { font-size: 0.84rem; color: var(--ink-secondary); }

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 250;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--matrix);
  color: var(--matrix-ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--cubic-lando);
}

.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Scroll Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE & REDUCED MOTION
   ========================================================================== */
@media (max-width: 960px) {
  .ln-submark { display: none; }
  .dual-grid, .cases-head-split, .hall-grid, .alignment-split, .exp-layout, .footer-card-inner { grid-template-columns: 1fr; }
  .footer-col-left, .footer-col-right { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-col-title { width: 100%; }
}

@media (max-width: 640px) {
  .ln-header { grid-template-columns: auto 1fr auto; }
  .ln-header-actions { gap: 6px; }
  .ln-wordmark { font-size: 0.78rem; }
  .ln-pill-cta { padding: 9px 14px; font-size: 0.68rem; }
  .ln-cv-chip { padding: 8px 11px; font-size: 0.68rem; }
  .hero-hud { grid-template-columns: 1fr auto; }
  .telemetry-card { max-width: 215px; padding: 11px 13px; }
  .lock-label { display: none; }
  .drawer-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ln-header .ln-wordmark-wrap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .matrix-preloader { display: none; }
  .marquee-track { animation: none; }
  .reveal-up, .split-line { opacity: 1; transform: none; transition: none; }
  .cyber-fade-up, .portrait-light-wrap { opacity: 1; transform: none; transition: none; }
  .cyber-hero.matrix-locked .matrix-world { visibility: visible; -webkit-mask-image: none; mask-image: none; }
  .wire-ring.outer, .wire-ring.inner, .wire-scan-line, .telemetry-dot { animation: none; }
}

/* ==========================================================================
   OUAH MOTION LAYER: LASER BAR, SCROLL-SCRUBBED WORDS, SPOTLIGHT, GLITCH,
   COUNTER-MARQUEE & CURTAIN CARD REVEALS
   ========================================================================== */
.scroll-laser-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 300;
  background: linear-gradient(90deg, #00c853, var(--matrix), #b9ffdd);
  box-shadow: 0 0 16px var(--matrix), 0 0 6px var(--matrix);
  pointer-events: none;
}

/* Scroll-Scrubbed Word-by-Word Kinetic Manifesto */
.scroll-scrub-headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.16em 0.28em;
}

.scrub-word {
  display: inline-block;
  opacity: 0.16;
  transform: translateY(14px);
  filter: blur(2px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.45s var(--cubic-lando), filter 0.35s ease, text-shadow 0.35s ease;
}

.scrub-word.lit {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.scrub-word.lit .serif-em {
  text-shadow: 0 0 36px rgba(0, 255, 136, 0.48);
}

/* Interactive Radial Matrix Spotlight on Dark Cards */
.track-card,
.hall-card,
.ai-lab-card,
.timeline-card {
  --mx: 50%;
  --my: 50%;
}

.track-card::after,
.hall-card::after,
.ai-lab-card::after,
.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(0, 255, 136, 0.14),
    transparent 65%
  );
  z-index: 2;
}

.track-card:hover::after,
.hall-card:hover::after,
.ai-lab-card:hover::after,
.timeline-card:hover::after {
  opacity: 1;
}

/* Curtain Clip-Path Wipe on Hall Cards */
.hall-card.curtain-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  opacity: 0;
  transition: clip-path 0.85s var(--cubic-lando), opacity 0.55s ease, border-color 0.35s ease, box-shadow 0.45s var(--cubic-lando), transform 0.25s ease-out;
}

.hall-card.curtain-reveal.in-view {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  opacity: 1;
}

/* Dual Counter-Scrolling Marquee (Lando Left + Right) */
.marquee-band.secondary {
  border-top: none;
  background: var(--void);
  padding: 14px 0;
}

.marquee-track.marquee-left {
  animation: ln-marquee-left 26s linear infinite;
}

.marquee-track.marquee-right {
  animation: ln-marquee-right 30s linear infinite;
}

.marquee-band.secondary .marquee-item {
  color: var(--matrix-soft-ink);
  font-size: 0.76rem;
}

@keyframes ln-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ln-marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scrub-word { opacity: 1; transform: none; filter: none; }
  .hall-card.curtain-reveal { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
  .marquee-track.marquee-left, .marquee-track.marquee-right { animation: none; }
}

/* ==========================================================================
   V3 REFINEMENTS: BOOK-LIKE SLOW REVEALS,
   FIXED CASE STUDIES VISIBILITY & SPLIT EDUCATION SECTION
   ========================================================================== */

/* Slower, book-like editorial reading pace across all reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1), transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-line {
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.05s ease;
}

.scrub-word {
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease, text-shadow 0.65s ease;
}

/* FIX Case Studies visibility: keep chamfered 5-point polygon constant & animate opacity/transform cleanly */
.hall-card.curtain-reveal {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  opacity: 0;
  transform: translateY(42px) scale(0.975);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.45s var(--cubic-lando);
}

.hall-card.curtain-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Studio Mode Spotlight (same rich interactivity in light sections, Studio Ink tint) */
.pillar-row,
.cred-card-light {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.pillar-row::after,
.cred-card-light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    320px circle at var(--mx) var(--my),
    rgba(7, 120, 64, 0.11),
    transparent 65%
  );
}

.pillar-row:hover::after,
.cred-card-light:hover::after {
  opacity: 1;
}

/* Separate Airy Education, Training & Skills Section */
.credentials-section {
  position: relative;
  min-height: 120vh;
  display: flex;
  align-items: center;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(140px, 16vw, 220px) 0;
  overflow: clip;
}

.cred-head {
  margin-bottom: 60px;
}

.cred-mega-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cred-card-light {
  padding: 32px 30px 36px;
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  border-radius: 20px;
  transition: transform 0.45s var(--cubic-lando), border-color 0.35s ease, box-shadow 0.45s var(--cubic-lando);
}

.cred-card-light:hover {
  transform: translateY(-4px);
  border-color: var(--matrix-deep-ink);
  box-shadow: 0 20px 44px rgba(7, 16, 10, 0.08);
}

.cred-card-light .cred-title {
  color: var(--matrix-deep-ink);
}

.cred-card-light .cred-item + .cred-item {
  border-top-color: var(--paper-border);
}

.cred-card-light .cred-main {
  color: var(--paper-ink);
}

.cred-card-light .cred-sub {
  color: var(--paper-muted);
}

.cred-card-light .skill-group-lbl {
  color: var(--paper-ink);
}

.cred-card-light .skill-chip {
  background: rgba(7, 120, 64, 0.08);
  color: var(--paper-ink);
  border: 1px solid rgba(7, 120, 64, 0.16);
}

@media (max-width: 960px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MULTI-LAYER SCROLL PARALLAX & MATRIX FOCUS MOTION
   ========================================================================== */
[data-parallax],
.portrait-layer-wrap,
.hero-hud,
.matrix-rain-canvas {
  translate: 0 var(--py, 0px);
}

.topo-bg[data-parallax] {
  inset: -140px 0;
}

.hall-visual img[data-parallax-img] {
  translate: 0 var(--img-py, 0px);
  transform: scale(1.28);
  will-change: translate, transform;
}

.hall-card:hover .hall-visual img[data-parallax-img] {
  transform: scale(1.35);
}

.marquee-track {
  translate: var(--mx-shift, 0px) 0;
}

/* Floating subtle Matrix depth glyphs inside Manifesto */
.matrix-depth-glyphs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.depth-code {
  position: absolute;
  font-family: var(--font-matrix);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(0, 255, 136, 0.24);
  writing-mode: vertical-rl;
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.25);
}

.depth-code.left {
  top: 22%;
  left: clamp(12px, 2.2vw, 32px);
}

.depth-code.right {
  bottom: 18%;
  right: clamp(12px, 2.2vw, 32px);
}

/* Scroll-Focus Active Matrix Highlight as cards travel through center viewport */
.track-card.scroll-active,
.timeline-card.scroll-active {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 18px 46px rgba(0, 255, 136, 0.09);
}

.pillar-row.scroll-active {
  border-color: rgba(7, 120, 64, 0.45);
  box-shadow: 0 14px 32px rgba(7, 16, 10, 0.07);
}

@media (max-width: 960px) {
  .depth-code { display: none; }
  .hero-scroll-track { min-height: 120vh; }
  .manifesto-section { min-height: 145vh; }
  .dual-track-section,
  .cases-section,
  .alignment-section,
  .credentials-section {
    min-height: auto;
    padding-top: clamp(92px, 14vw, 140px);
    padding-bottom: clamp(92px, 14vw, 140px);
  }
  .experience-section {
    min-height: auto;
    padding-bottom: clamp(92px, 14vw, 140px);
  }
  .exp-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 44px;
  }
  .tl-rail {
    left: 16px;
  }
  .tl-items {
    gap: 36px;
  }
  .tl-item {
    grid-template-columns: 32px 1fr;
    column-gap: 14px;
  }
  .tl-node-col {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 20px;
  }
  .tl-connector {
    top: 29px;
  }
  .tl-date-col {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 12px 0 10px;
    gap: 6px 14px;
  }
  .tl-item.is-active .tl-date-col {
    transform: none;
  }
  .cv-timeline .timeline-card {
    grid-column: 2;
    grid-row: 2;
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-track,
  .manifesto-section,
  .manifesto-sticky {
    min-height: auto;
  }
  .cyber-hero,
  .manifesto-sticky {
    position: relative;
  }
  .tl-item.is-active .tl-node::after,
  .exp-live-dot {
    animation: none;
  }
  .btn-roll::before,
  .btn-roll::after {
    transition: none;
  }
  .ln-pill-cta:hover .btn-roll::before,
  .ln-pill-cta:focus-visible .btn-roll::before {
    transform: none;
  }
  .btn-roll::after {
    display: none;
  }
  [data-parallax],
  .portrait-layer-wrap,
  .hero-hud,
  .matrix-rain-canvas,
  .hall-visual img[data-parallax-img],
  .marquee-track {
    translate: none !important;
  }
  .hall-visual img[data-parallax-img] {
    transform: none;
  }
}
