/* ============================================================
   Nunzio Lella · v8-REDESIGN LAYER (June 2026)
   --------------------------------------------------------------
   Loaded LAST (after v7-polish). Visual amplification only.
   - new layered hero with cut-out figure
   - editorial system: kicker bars, numbering, watermarks
   - asymmetric grids, thin-border cards, timeline polish
   - microinteractions (animated underlines, accent flashes)
   - DOES NOT touch: routing, internal links, /adminboard, cv.html
   ============================================================ */

:root {
  --v8-bg: #050505;
  --v8-surface: #0E0E0E;
  --v8-line: rgba(244,241,235,0.08);
  --v8-line-hi: rgba(244,241,235,0.18);
  --v8-text: #F4F1EB;
  --v8-muted: rgba(244,241,235,0.62);
  --v8-muted-2: rgba(244,241,235,0.40);
  --v8-accent: #FF2A00;
  --v8-accent-2: #FF5500;
  --v8-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   1 · HERO v8 — LAYERED FIGURE & EDITORIAL TYPOGRAPHY
   ============================================================ */
.hero-v8 {
  position: relative;
  min-height: 100vh;
  padding-top: 0 !important;
  overflow: hidden;
  isolation: isolate;
  background: var(--v8-bg);
}
.hero-v8 .hero-canvas,
.hero-v8 .hero-glowline,
.hero-v8 .hero-grid-bg { display: none !important; } /* replaced by v8 layers */

/* Lava shader canvas — full-cover background */
.hero-v8 .hv8-shader {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.hero-v8.hv8-nosh .hv8-shader { display: none; }
.hero-v8.hv8-nosh {
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(255,42,0,0.30) 0%, rgba(255,42,0,0.10) 30%, transparent 70%),
    linear-gradient(180deg, #050505 0%, #1a0605 100%);
}

/* Vignette overlay to keep text readable */
.hero-v8 .hv8-vignette {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 90% at 50% 55%, transparent 0%, transparent 40%, rgba(5,5,5,0.65) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.55) 0%, transparent 20%, transparent 70%, rgba(5,5,5,0.85) 100%);
}

/* Layer 0: technical grid (subtle, masked) */
.hero-v8 .hv8-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(244,241,235,0.030) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,235,0.030) 1px, transparent 1px);
  background-size: clamp(64px, 6vw, 96px) clamp(64px, 6vw, 96px);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 80%);
  opacity: 0.7;
  mix-blend-mode: overlay;
}

/* Grain overlay (very subtle) */
.hero-v8::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--v8-grain);
  background-size: 160px 160px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 5;
}

/* Hero wrap — flex column */
.hero-v8 .wrap {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding-top: clamp(120px, 14vh, 170px);
  padding-bottom: clamp(40px, 7vh, 80px);
  width: 100%;
}

/* Stack of: kicker → NUNZIO → LELLA → bottom info (no figure anymore) */
.hero-v8 .hv8-stack {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
}

/* Kicker with red bar (editorial signal) */
.hero-v8 .hv8-kicker {
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: .28em;
  color: var(--v8-accent);
  text-transform: uppercase;
  margin: 0 0 clamp(22px, 3vh, 36px);
  display: inline-flex; align-items: center; gap: 16px;
  align-self: flex-start;
  z-index: 8; position: relative;
}
.hero-v8 .hv8-kicker::before {
  content: "";
  width: clamp(28px, 4vw, 44px);
  height: 2px;
  background: var(--v8-accent);
  box-shadow: 0 0 12px rgba(255,42,0,.6);
}

/* Layered title */
.hero-v8 .hv8-h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(82px, 17.2vw, 244px);
  line-height: 0.84;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: var(--v8-text);
  margin: 0;
  position: relative;
}
.hero-v8 .hv8-h1 .ln { display: block; position: relative; z-index: 10; }
.hero-v8 .hv8-h1 .ln span { display: block; }
.hero-v8 .hv8-h1 .ln-front {
  margin-top: clamp(-16px, -1.4vw, -8px);
  text-align: right; padding-right: clamp(0px, 2vw, 24px);
}
.hero-v8 .hv8-h1 .ln-back  span {
  background: linear-gradient(115deg, #FFFFFF 0%, #FFFFFF 42%, #FF7A3A 50%, #FFFFFF 58%, #FFFFFF 100%);
  background-size: 240% 100%; background-position: 120% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hv8Sheen 9s linear infinite;
}
@keyframes hv8Sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.hero-v8 .hv8-h1 .ln-front span {
  color: transparent;
  -webkit-text-stroke: clamp(1.6px, 0.18vw, 2.4px) var(--v8-text);
}

/* Cutout figure between back and front lines */
.hero-v8 .hv8-figure {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  height: clamp(420px, 78vh, 880px);
  width: auto;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}
.hero-v8 .hv8-figure img {
  height: 100%; width: auto;
  display: block;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  -webkit-user-drag: none; user-select: none;
}

/* OPEN TO WORK rotating badge — attached to figure */
.hero-v8 .hv8-badge {
  position: absolute;
  top: -2%; right: -14%;
  width: clamp(86px, 9vw, 130px);
  height: clamp(86px, 9vw, 130px);
  z-index: 9;
  pointer-events: auto;
}
.hero-v8 .hv8-badge svg {
  width: 100%; height: 100%;
  animation: hv8Spin 22s linear infinite;
}
.hero-v8 .hv8-badge svg text {
  font-family: var(--mono);
  font-size: 8.4px;
  letter-spacing: .14em;
  fill: var(--v8-text);
  text-transform: uppercase;
}
.hero-v8 .hv8-badge .ob-core {
  position: absolute; inset: 0;
  width: auto; height: auto;
  display: grid; place-items: center;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--v8-text);
  font-weight: 700;
  background: transparent !important;
}
.hero-v8 .hv8-badge .ob-core::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: clamp(36px, 3.6vw, 50px); height: clamp(36px, 3.6vw, 50px);
  background: var(--v8-accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,42,0,.55);
  z-index: -1;
}
@keyframes hv8Spin { to { transform: rotate(360deg); } }

/* OPEN TO WORK pill caption */
.hero-v8 .hv8-cap {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px); left: -8%;
  background: #0B0B0B;
  border: 1px solid var(--v8-line-hi);
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--v8-text);
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  z-index: 9;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.hero-v8 .hv8-cap .live {
  width: 7px; height: 7px;
  background: #00FF88;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,255,136,.7);
  animation: hv8Live 1.4s ease infinite;
}
@keyframes hv8Live { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* Bottom info row */
.hero-v8 .hv8-bottom {
  margin-top: auto;
  z-index: 8; position: relative;
  max-width: 680px;
}
.hero-v8 .hv8-lead {
  font-size: clamp(15px, 1.2vw, 18.5px);
  max-width: 56ch;
  color: rgba(244,241,235,0.78);
  margin: 0 0 24px;
  line-height: 1.5;
}
.hero-v8 .hv8-lead b { color: var(--v8-text); font-weight: 700; }
.hero-v8 .hv8-cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-v8 .hv8-contact {
  display: flex; flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v8-muted);
}
.hero-v8 .hv8-contact a { color: var(--v8-muted); text-decoration: none; transition: color .25s; }
.hero-v8 .hv8-contact a:hover { color: var(--v8-text); }
.hero-v8 .hv8-contact > span:first-child {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-v8 .hv8-contact .dot {
  width: 7px; height: 7px; background: var(--v8-accent);
  display: inline-block;
}

/* Scroll hint repositioning */
.hero-v8 .scroll-hint {
  position: absolute;
  bottom: clamp(20px, 3vh, 32px);
  right: clamp(24px, 4vw, 60px);
  z-index: 9;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--v8-muted-2);
}
.hero-v8 .scroll-hint .line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--v8-muted-2), transparent);
  animation: hv8ScrollLine 2.2s ease-in-out infinite;
}
@keyframes hv8ScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Mobile hero — stack figure between lines */
@media (max-width: 768px) {
  .hero-v8 .wrap { padding-top: clamp(96px, 12vh, 124px); padding-bottom: 40px; }
  .hero-v8 .hv8-h1 { font-size: clamp(74px, 23vw, 130px); letter-spacing: -.05em; }
  .hero-v8 .hv8-h1 .ln-front { margin-top: -8px; text-align: left; padding-right: 0; }
  .hero-v8 .hv8-figure {
    position: relative;
    top: auto; left: auto; right: auto;
    transform: none !important;
    height: clamp(320px, 46vh, 440px);
    margin: -18px auto -18px;
    display: block;
    z-index: 5;
  }
  .hero-v8 .hv8-figure img { margin: 0 auto; }
  .hero-v8 .hv8-badge {
    top: 16%; right: -4%;
    width: 72px; height: 72px;
  }
  .hero-v8 .hv8-cap {
    bottom: 6px; left: 0;
    font-size: 10px; padding: 6px 12px;
  }
  .hero-v8 .hv8-contact {
    font-size: 10.5px; gap: 6px 18px; letter-spacing: .12em;
  }
  .hero-v8 .hv8-bottom { margin-top: 24px; }
  .hero-v8 .hv8-glow { width: 110vw; height: 110vw; }
  .hero-v8 .scroll-hint { display: none; }
}
@media (max-width: 420px) {
  .hero-v8 .hv8-h1 { font-size: clamp(68px, 24vw, 108px); }
  .hero-v8 .hv8-figure { height: clamp(280px, 42vh, 380px); }
  .hero-v8 .hv8-lead { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v8 .hv8-glow,
  .hero-v8 .hv8-badge svg,
  .hero-v8 .scroll-hint .line,
  .hero-v8 .hv8-cap .live,
  .hero-v8 .hv8-h1 .ln-back span { animation: none !important; }
}


/* ============================================================
   2 · SELECTED BY & SEEN AT — replace logo-strip with text rail
   ============================================================ */
.programs-rail {
  margin-top: clamp(60px, 8vh, 100px);
  padding-top: clamp(36px, 5vh, 60px);
  border-top: 1px solid var(--v8-line);
}
.programs-rail .pr-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 18px;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.programs-rail .pr-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--v8-accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.programs-rail .pr-eyebrow::before {
  content: ""; width: 32px; height: 2px; background: var(--v8-accent);
}
.programs-rail .pr-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--v8-text);
  margin: 6px 0 0;
  max-width: 18ch;
}
.programs-rail .pr-link-all {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--v8-text);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--v8-line-hi);
  border-radius: 999px;
  transition: border-color .25s, color .25s, background .25s;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-end;
}
.programs-rail .pr-link-all:hover {
  border-color: var(--v8-accent);
  color: var(--v8-accent);
  background: rgba(255,42,0,0.05);
}
.programs-rail .pr-link-all .ar { transition: transform .3s var(--ease, ease); }
.programs-rail .pr-link-all:hover .ar { transform: translate(4px, -4px); }

.programs-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--v8-line);
}
.programs-item {
  border-right: 1px solid var(--v8-line);
  border-bottom: 1px solid var(--v8-line);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  background: transparent;
  transition: background .3s ease;
}
.programs-item:nth-child(4n) { border-right: none; }
.programs-item:hover { background: rgba(255,255,255,0.025); }
.programs-item .pi-year {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .22em;
  color: var(--v8-muted-2);
}
.programs-item .pi-logo {
  /* placeholder slot — replace with <img> via adminboard later */
  width: 100%;
  aspect-ratio: 3 / 1;
  background: rgba(255,255,255,0.025);
  border: 1px dashed var(--v8-line);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--v8-muted-2);
  margin-bottom: 6px;
}
.programs-item .pi-logo img {
  max-width: 80%; max-height: 80%;
  filter: grayscale(1) brightness(2) contrast(0.7);
  opacity: 0.7;
  transition: filter .3s, opacity .3s;
  object-fit: contain;
}
.programs-item:hover .pi-logo img { filter: none; opacity: 1; }
.programs-item .pi-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--v8-text);
}
.programs-item .pi-role {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--v8-muted);
}

@media (max-width: 920px) {
  .programs-list { grid-template-columns: repeat(2, 1fr); }
  .programs-item:nth-child(4n)   { border-right: 1px solid var(--v8-line); }
  .programs-item:nth-child(2n)   { border-right: none; }
}
@media (max-width: 520px) {
  .programs-list { grid-template-columns: 1fr; }
  .programs-item, .programs-item:nth-child(n) { border-right: none; }
}


/* ============================================================
   3 · INNER PAGES — EDITORIAL REDESIGN OVERRIDES
   Generous spacing, asymmetric grids, thin border cards
   ============================================================ */

/* Section paddings — more generous */
.section { padding-top: clamp(70px, 10vh, 130px) !important; padding-bottom: clamp(70px, 10vh, 130px) !important; }

/* Section heads — kicker bar uniformity */
.section-head { margin-bottom: clamp(40px, 6vh, 70px) !important; }
.section-head .idx {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 13px) !important;
  letter-spacing: .28em !important; text-transform: uppercase;
  color: var(--v8-accent) !important;
}
.section-head .idx::before {
  content: ""; width: 36px; height: 2px; background: var(--v8-accent);
  display: inline-block;
}
.section-head .section-title {
  font-family: var(--display);
  font-weight: 800 !important;
  font-size: clamp(34px, 5vw, 72px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
  margin-top: 16px !important;
  max-width: 22ch;
  color: var(--v8-text);
}

/* Page heroes — bigger title + watermark refined */
.page-hero { padding-top: clamp(140px, 18vh, 220px) !important; padding-bottom: clamp(60px, 9vh, 110px) !important; }
.page-hero h1 {
  font-size: clamp(58px, 11vw, 168px) !important;
  line-height: .9 !important;
  letter-spacing: -.04em !important;
}
.page-hero .ph-lead {
  font-size: clamp(16px, 1.25vw, 20px);
  max-width: 60ch;
  color: var(--v8-muted);
  margin-top: 24px;
  line-height: 1.5;
}

/* Card thin-border treatment + lift on hover */
.nav-card,
.proof-card,
.value,
.post-card,
.li-card,
.cs-panel,
.form-card,
.sl,
.soon-visual,
.about-portrait {
  border: 1px solid var(--v8-line) !important;
  transition: border-color .35s, transform .35s, background .35s, box-shadow .35s !important;
  background: rgba(255,255,255,0.012);
}
.nav-card:hover,
.proof-card:hover,
.value:hover,
.post-card:hover,
.li-card:hover {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.03);
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.45);
}

/* Accented top-line on cards (editorial signal) */
.nav-card,
.proof-card,
.post-card { position: relative; overflow: hidden; }
.nav-card::before,
.proof-card::before,
.post-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--v8-accent);
  transition: width .55s cubic-bezier(.2,.85,.25,1);
  z-index: 2;
}
.nav-card:hover::before,
.proof-card:hover::before,
.post-card:hover::before { width: 100%; }

/* Microinteraction: animated underline on links inside copy */
.section a:not(.btn):not(.nav-card):not(.proof-card):not(.post-card):not(.f-soc):not(.fc-li):not(.nc-arrow):not(.pr-link):not(.li-linkedin):not(.programs-item):not(.pr-link-all),
.page-hero a:not(.btn):not(.nc-arrow) {
  position: relative;
  color: var(--v8-text);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--v8-accent), var(--v8-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .45s var(--ease, ease), color .25s;
  padding-bottom: 2px;
}
.section a:not(.btn):not(.nav-card):not(.proof-card):not(.post-card):not(.f-soc):not(.fc-li):not(.nc-arrow):not(.pr-link):not(.li-linkedin):not(.programs-item):not(.pr-link-all):hover {
  background-size: 100% 1px;
  color: var(--v8-text);
}

/* Timeline (Experience / Education) — stronger rail + dots */
.tl-rail { background: linear-gradient(to bottom, var(--v8-accent) 0%, rgba(255,42,0,0.25) 35%, transparent 100%) !important; opacity: 1 !important; }
.tl-item, .xp-card { position: relative; }
.tl-item::before, .xp-card::before {
  content: "";
  position: absolute;
  left: -34px; top: 18px;
  width: 12px; height: 12px;
  background: var(--v8-accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,42,0,0.7), inset 0 0 0 2px #050505;
  z-index: 2;
}

/* Buttons polish — pill primary with shine, ghost with hover fill */
.btn { transition: background .3s, color .3s, border-color .3s, transform .25s, box-shadow .3s !important; }
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--v8-accent) !important;
  color: #fff !important;
  border: 1px solid var(--v8-accent) !important;
}
.btn-primary:hover {
  background: #ff4520 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,42,0,0.35);
}
.btn-ghost {
  background: transparent !important;
  color: var(--v8-text) !important;
  border: 1px solid var(--v8-line-hi) !important;
}
.btn-ghost:hover {
  background: var(--v8-text) !important;
  color: var(--v8-bg) !important;
  border-color: var(--v8-text) !important;
  transform: translateY(-1px);
}

/* Reveal-on-scroll: softer easing (base behavior already in styles.css) */
.reveal { transition: opacity .9s cubic-bezier(.16,.84,.34,1), transform .9s cubic-bezier(.16,.84,.34,1) !important; }

/* Stat strip — tighter editorial look */
.stat-strip { gap: clamp(20px, 4vw, 56px) !important; }
.stat .s-num {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--v8-text) 0%, rgba(244,241,235,0.55) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .u { color: var(--v8-accent); -webkit-text-fill-color: var(--v8-accent); }

/* Footer subtle polish */
.site-footer .footer-top { gap: clamp(24px, 4vw, 60px) !important; }

/* "Selected by & seen at" — TINY footprint version when used inside section already */
.section .programs-rail { margin-top: 60px; }

/* CV.html: untouched — explicit no-op safeguard */
body[data-page="cv"] .hero-v8,
body[data-page="cv"] .hv8-figure { all: revert; }

/* ============================================================
   4 · EDUCATION — editorial parity overhaul
   --------------------------------------------------------------
   Numbered panel headers, accent left rail, generous spacing
   ============================================================ */
body[data-page="education"] .edu-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: stretch;
}
body[data-page="education"] .edu-grid .panel.full { grid-column: 1 / -1; }

body[data-page="education"] .panel {
  position: relative;
  background: rgba(255,255,255,0.012);
  border: 1px solid var(--v8-line) !important;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px) clamp(28px, 3.4vw, 44px) clamp(36px, 4.2vw, 60px);
  transition: border-color .35s, background .35s, transform .35s;
  overflow: hidden;
}
body[data-page="education"] .panel:hover {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025);
}
/* numbered eyebrow + red bar */
body[data-page="education"] .panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--v8-accent) 0%, rgba(255,42,0,0.15) 60%, transparent 100%);
}
body[data-page="education"] .panel:nth-of-type(1)::after { content: "01"; }
body[data-page="education"] .panel:nth-of-type(2)::after { content: "02"; }
body[data-page="education"] .panel:nth-of-type(3)::after { content: "03"; }
body[data-page="education"] .panel:nth-of-type(4)::after { content: "04"; }
body[data-page="education"] .panel::after {
  position: absolute;
  top: clamp(22px, 2.6vw, 32px);
  right: clamp(22px, 2.6vw, 32px);
  font-family: var(--mono);
  font-size: clamp(64px, 5.6vw, 96px);
  font-weight: 600;
  color: rgba(244,241,235,0.06);
  letter-spacing: -.02em;
  line-height: 1;
  pointer-events: none;
}
body[data-page="education"] .panel h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 36px) !important;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--v8-text);
  margin: 0 0 clamp(24px, 3vw, 36px) !important;
  position: relative;
  padding-bottom: clamp(14px, 1.8vw, 22px);
  border-bottom: 1px solid var(--v8-line);
}
body[data-page="education"] .panel h3::before {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: clamp(32px, 4vw, 48px); height: 2px;
  background: var(--v8-accent);
  box-shadow: 0 0 12px rgba(255,42,0,.5);
}

/* Education list items: tighter rows + hover red border-left */
body[data-page="education"] .edu-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: clamp(14px, 1.6vw, 20px) 0;
  border-bottom: 1px solid var(--v8-line);
  gap: 16px;
  transition: padding-left .35s, border-color .35s;
}
body[data-page="education"] .edu-item:last-child { border-bottom: none; }
body[data-page="education"] .edu-item:hover {
  padding-left: 14px;
  border-bottom-color: var(--v8-line-hi);
}
body[data-page="education"] .edu-item .e-school {
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  color: var(--v8-text);
  margin-bottom: 4px;
  line-height: 1.2;
}
body[data-page="education"] .edu-item .e-deg {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--v8-muted);
  text-transform: uppercase;
}
body[data-page="education"] .edu-item .e-when {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--v8-accent);
  white-space: nowrap;
  padding-top: 2px;
}

/* Certifications list with red arrow indices */
body[data-page="education"] .cert-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
body[data-page="education"] .cert-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--v8-line);
  font-family: var(--display);
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--v8-text);
  transition: padding-left .3s, border-color .3s;
}
body[data-page="education"] .cert-list li:last-child { border-bottom: none; }
body[data-page="education"] .cert-list li:hover { padding-left: 10px; border-bottom-color: var(--v8-line-hi); }
body[data-page="education"] .cert-list .ck {
  font-family: var(--mono); font-size: 13px;
  color: var(--v8-accent);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,42,0,.45);
  border-radius: 50%;
  background: rgba(255,42,0,.06);
}

/* Tools cloud — proper pill badges */
body[data-page="education"] .tools-cloud {
  display: flex; flex-wrap: wrap; gap: 10px 8px;
}
body[data-page="education"] .tools-cloud span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v8-text);
  padding: 9px 16px;
  border: 1px solid var(--v8-line-hi);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  transition: border-color .25s, background .25s, color .25s, transform .25s;
  cursor: default;
}
body[data-page="education"] .tools-cloud span:hover {
  border-color: var(--v8-accent);
  color: var(--v8-accent);
  background: rgba(255,42,0,0.06);
  transform: translateY(-1px);
}

/* Languages list — strong typographic */
body[data-page="education"] .lang-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px;
}
body[data-page="education"] .lang-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--v8-line);
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--v8-text);
}
body[data-page="education"] .lang-list .lv {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--v8-accent);
  font-weight: 400;
}

@media (max-width: 920px) {
  body[data-page="education"] .edu-grid { grid-template-columns: 1fr; }
  body[data-page="education"] .lang-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body[data-page="education"] .panel { padding-left: clamp(20px, 5vw, 28px); }
  body[data-page="education"] .panel::after { font-size: 48px; top: 16px; right: 16px; }
}


/* ============================================================
   5 · INSIGHTS — editorial parity overhaul
   --------------------------------------------------------------
   Section heads with numbering, richer post-cards, hero rail polish
   ============================================================ */
body[data-page="insights"] .insights-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
}

/* Left rail — LinkedIn + Newsletter as editorial cards */
body[data-page="insights"] .li-rail { display: grid; gap: clamp(22px, 2.8vw, 36px); position: sticky; top: clamp(100px, 12vh, 130px); }

body[data-page="insights"] .li-card {
  position: relative;
  background: rgba(255,255,255,0.012);
  border: 1px solid var(--v8-line) !important;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  transition: border-color .35s, background .35s, transform .35s;
}
body[data-page="insights"] .li-card:hover {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025);
  transform: translateY(-2px);
}
/* left red rail */
body[data-page="insights"] .li-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--v8-accent) 0%, transparent 80%);
}
/* eyebrow index */
body[data-page="insights"] .li-rail .li-card:nth-of-type(1)::after { content: "01 — RAIL"; }
body[data-page="insights"] .li-rail .li-card:nth-of-type(2)::after { content: "02 — SIGNAL"; }
body[data-page="insights"] .li-card::after {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--v8-muted-2);
  text-transform: uppercase;
}
body[data-page="insights"] .li-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px) !important;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--v8-text);
  margin: 0 0 14px !important;
  display: inline-flex; align-items: center; gap: 12px;
}
body[data-page="insights"] .li-card p {
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.55;
  color: var(--v8-muted);
  margin: 0 0 22px;
  max-width: 38ch;
}
body[data-page="insights"] .li-linkedin {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025);
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
  border-radius: 12px;
}
body[data-page="insights"] .li-linkedin:hover {
  background: rgba(255,42,0,0.08);
  border-color: var(--v8-accent) !important;
  transform: translateY(-1px);
}
body[data-page="insights"] .li-linkedin .lk-h {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--v8-text);
}
body[data-page="insights"] .li-linkedin .lk-s {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--v8-muted);
}

/* Newsletter form (in li-rail) */
body[data-page="insights"] .nl-form {
  display: grid; gap: 12px;
}
body[data-page="insights"] .nl-form input[type=email] {
  background: transparent;
  border: 1px solid var(--v8-line-hi);
  color: var(--v8-text);
  padding: 14px 16px;
  font-family: var(--mono); font-size: 13px;
  border-radius: 10px;
  transition: border-color .25s, background .25s;
}
body[data-page="insights"] .nl-form input[type=email]:focus {
  outline: none;
  border-color: var(--v8-accent);
  background: rgba(255,42,0,0.04);
}
body[data-page="insights"] .nl-form button {
  background: var(--v8-accent);
  color: #fff;
  border: 1px solid var(--v8-accent);
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background .25s, transform .25s, box-shadow .25s;
}
body[data-page="insights"] .nl-form button:hover {
  background: #ff4520;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,42,0,0.35);
}
body[data-page="insights"] .nl-small {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; color: var(--v8-muted-2);
}

/* Right column — section head with proper editorial numbering */
body[data-page="insights"] .section-head .idx {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--v8-accent) !important;
}
body[data-page="insights"] .section-head .idx::before {
  content: "03"; /* explicit numbering */
  font-family: var(--mono);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: .28em;
  color: var(--v8-accent);
  background: none; width: auto; height: auto;
}

/* Posts grid — fuller cards, bigger thumbs */
body[data-page="insights"] .posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}
body[data-page="insights"] .post-card {
  position: relative;
  background: rgba(255,255,255,0.012);
  border: 1px solid var(--v8-line) !important;
  padding: 0;
  overflow: hidden;
  transition: border-color .35s, background .35s, transform .35s;
  display: flex; flex-direction: column;
}
body[data-page="insights"] .post-card:hover {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025);
  transform: translateY(-3px);
}
body[data-page="insights"] .post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, rgba(255,42,0,0.05) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #1a0606 0%, #0a0202 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--v8-line);
}
body[data-page="insights"] .post-thumb .pt-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--v8-accent);
  padding: 6px 10px;
  background: rgba(255,42,0,0.1);
  border: 1px solid rgba(255,42,0,0.4);
  border-radius: 999px;
}
body[data-page="insights"] .post-thumb .pt-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--v8-muted);
}
body[data-page="insights"] .post-body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
body[data-page="insights"] .post-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--v8-muted-2);
  text-transform: uppercase;
}
body[data-page="insights"] .post-body h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 23px) !important;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--v8-text);
  margin: 0 !important;
}
body[data-page="insights"] .post-body p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--v8-muted);
  margin: 0;
}
body[data-page="insights"] .pc-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--v8-text);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--v8-line);
  display: inline-flex; align-items: center; gap: 10px;
  transition: color .25s, gap .3s;
}
body[data-page="insights"] .post-card:hover .pc-foot {
  color: var(--v8-accent);
  gap: 14px;
}

@media (max-width: 960px) {
  body[data-page="insights"] .insights-layout { grid-template-columns: 1fr; }
  body[data-page="insights"] .li-rail { position: relative; top: 0; }
  body[data-page="insights"] .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body[data-page="insights"] .posts-grid { grid-template-columns: 1fr; }
  body[data-page="insights"] .lang-list { grid-template-columns: 1fr; }
}


/* ============================================================
   6 · EXPERIENCE — timeline polish to match Education density
   ============================================================ */
body[data-page="experience"] .timeline { padding-left: clamp(36px, 4vw, 60px); position: relative; }
/* Timeline outer rail (solid, full-length, aligned to dots) */
body[data-page="experience"] .timeline::before {
  content: "";
  position: absolute;
  left: clamp(10px, 1.2vw, 16px);
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(255, 42, 0, 0.18);
  border-radius: 2px;
}

/* Realign GSAP scroll-progress line (was hardcoded left:206px in v5.css) */
body[data-page="experience"] .tl-progress {
  left: clamp(10px, 1.2vw, 16px) !important;
  top: 12px !important;
  bottom: 12px !important;
  margin-left: 0 !important;
}
body[data-page="experience"] .tl-progress span {
  background: linear-gradient(var(--v8-accent), #ff5520) !important;
  box-shadow: 0 0 14px rgba(255,42,0,.6) !important;
}
@media (max-width: 760px) {
  body[data-page="experience"] .tl-progress { left: 8px !important; }
}
body[data-page="experience"] .tl-item {
  position: relative;
  /* OVERRIDE pages.css 2-col grid -> single column card */
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  border: 1px solid var(--v8-line) !important;
  background: rgba(255,255,255,0.012);
  padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 40px) clamp(64px, 4vw, 72px) !important;
  margin-bottom: clamp(20px, 2.6vh, 32px);
  transition: border-color .35s, background .35s, transform .35s, max-height .55s cubic-bezier(.16,.84,.34,1);
  /* BENTO: compact standard height when collapsed */
  overflow: hidden;
}
body[data-page="experience"] .tl-item:last-child { margin-bottom: 0; }
body[data-page="experience"] .tl-item:hover:not(.tl-open) {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025);
}

/* Collapsed state — bento standard height, only header + role visible */
body[data-page="experience"] .tl-item.tl-collapsed {
  max-height: clamp(180px, 20vh, 220px);
  cursor: pointer;
}
body[data-page="experience"] .tl-item.tl-collapsed .tl-place,
body[data-page="experience"] .tl-item.tl-collapsed .tl-desc,
body[data-page="experience"] .tl-item.tl-collapsed .tl-chips,
body[data-page="experience"] .tl-item.tl-collapsed .tl-bullets {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity .3s;
}
/* Fade gradient at bottom of collapsed card */
body[data-page="experience"] .tl-item.tl-collapsed::after {
  /* keep watermark visible; add mask via mask-image (handled below) */
}
body[data-page="experience"] .tl-item.tl-collapsed .tl-mask {
  position: absolute;
  bottom: 52px; left: 0; right: 0; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(5,5,5,0.9));
  pointer-events: none;
  z-index: 2;
}
body[data-page="experience"] .tl-item.tl-open .tl-mask { display: none; }
body[data-page="experience"] .tl-item.tl-open {
  max-height: 1400px; /* enough for tallest card content */
  cursor: default;
}
body[data-page="experience"] .tl-item.tl-open .tl-place,
body[data-page="experience"] .tl-item.tl-open .tl-desc,
body[data-page="experience"] .tl-item.tl-open .tl-chips,
body[data-page="experience"] .tl-item.tl-open .tl-bullets {
  opacity: 1;
  transition: opacity .5s ease .15s;
}
body[data-page="experience"] .tl-item.tl-open {
  border-color: var(--v8-accent) !important;
  background: rgba(255,42,0,0.03);
  box-shadow: 0 14px 44px rgba(255,42,0,0.08), 0 0 0 1px rgba(255,42,0,0.15);
}

/* Toggle button — pill at bottom of card */
body[data-page="experience"] .tl-toggle {
  position: absolute;
  bottom: clamp(16px, 1.8vw, 22px);
  right: clamp(20px, 2.4vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  color: var(--v8-accent);
  border: 1px solid rgba(255,42,0,0.4);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 4;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
body[data-page="experience"] .tl-toggle:hover {
  background: rgba(255,42,0,0.1);
  border-color: var(--v8-accent);
  color: #fff;
  transform: translateY(-1px);
}
body[data-page="experience"] .tl-toggle .ch {
  display: inline-block;
  transition: transform .3s;
  font-size: 12px;
  line-height: 1;
}
body[data-page="experience"] .tl-item.tl-open .tl-toggle .ch { transform: rotate(180deg); }
/* Hide the pages.css internal 1px line (was inside the grid) */
body[data-page="experience"] .tl-item::before {
  display: none !important;
}
/* Timeline dot — anchored on the rail, aligned with card top */
body[data-page="experience"] .tl-dot {
  position: absolute !important;
  left: calc(-1 * clamp(36px, 4vw, 60px) + clamp(4px, 1.2vw, 12px)) !important;
  top: 30px !important;
  width: 14px !important; height: 14px !important;
  background: var(--v8-accent) !important;
  border-radius: 50% !important;
  transform: none !important;
  box-shadow: 0 0 18px rgba(255,42,0,0.7), inset 0 0 0 3px #050505;
  z-index: 3;
}


/* ============================================================
   6b · EARLIER ROLES — editorial panel to match timeline cards
   ============================================================ */
body[data-page="experience"] .xp-earlier {
  margin-top: clamp(50px, 6vh, 80px) !important;
  padding: clamp(32px, 3.6vw, 48px) clamp(28px, 3.2vw, 44px) !important;
  border: 1px solid var(--v8-line) !important;
  border-radius: 0;
  background: rgba(255,255,255,0.012);
  position: relative;
  overflow: hidden;
  transition: border-color .35s, background .35s;
}
body[data-page="experience"] .xp-earlier:hover {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025);
}
/* red accent top-line */
body[data-page="experience"] .xp-earlier::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--v8-accent) 0%, transparent 60%);
}
/* watermark */
body[data-page="experience"] .xp-earlier::after {
  content: "06";
  position: absolute;
  top: clamp(18px, 2.4vw, 26px);
  right: clamp(22px, 2.6vw, 30px);
  font-family: var(--mono);
  font-size: clamp(48px, 4.8vw, 80px);
  font-weight: 600;
  color: rgba(244,241,235,0.04);
  letter-spacing: -.02em;
  line-height: 1;
  pointer-events: none;
}
body[data-page="experience"] .xp-earlier .ee-label {
  font-family: var(--mono);
  font-size: 11.5px !important;
  letter-spacing: .26em !important;
  color: var(--v8-accent) !important;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 3vw, 36px) !important;
  padding-bottom: clamp(14px, 1.8vw, 22px);
  border-bottom: 1px solid var(--v8-line);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
body[data-page="experience"] .xp-earlier .ee-label::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--v8-accent);
  box-shadow: 0 0 10px rgba(255,42,0,.5);
}
body[data-page="experience"] .xp-earlier .ee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
}
body[data-page="experience"] .xp-earlier .ee-item {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--v8-line) !important;
  transition: padding-left .3s, border-color .3s, color .3s;
  position: relative;
  font-size: clamp(14px, 1.05vw, 15.5px) !important;
}
body[data-page="experience"] .xp-earlier .ee-item::before {
  content: "→";
  position: absolute;
  left: -2px;
  top: 15px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--v8-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
}
body[data-page="experience"] .xp-earlier .ee-item:hover {
  padding-left: 22px !important;
  border-bottom-color: var(--v8-line-hi) !important;
}
body[data-page="experience"] .xp-earlier .ee-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}
body[data-page="experience"] .xp-earlier .ee-item .ee-role {
  color: rgba(244,241,235,0.78) !important;
  font-family: var(--display);
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 1.35;
}
body[data-page="experience"] .xp-earlier .ee-item .ee-role b {
  color: var(--v8-text) !important;
  font-weight: 700;
}
body[data-page="experience"] .xp-earlier .ee-item .ee-when {
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--v8-accent) !important;
  white-space: nowrap;
  padding-top: 3px;
}
@media (max-width: 720px) {
  body[data-page="experience"] .xp-earlier .ee-grid { grid-template-columns: 1fr; }
  body[data-page="experience"] .xp-earlier::after { font-size: 40px; top: 14px; right: 14px; }
}
/* watermark indices on each item */
body[data-page="experience"] .tl-item:nth-of-type(1)::after { content: "01"; }
body[data-page="experience"] .tl-item:nth-of-type(2)::after { content: "02"; }
body[data-page="experience"] .tl-item:nth-of-type(3)::after { content: "03"; }
body[data-page="experience"] .tl-item:nth-of-type(4)::after { content: "04"; }
body[data-page="experience"] .tl-item:nth-of-type(5)::after { content: "05"; }
body[data-page="experience"] .tl-item::after {
  position: absolute;
  top: clamp(20px, 2.4vw, 28px);
  right: clamp(22px, 2.6vw, 30px);
  font-family: var(--mono);
  font-size: clamp(48px, 4.8vw, 80px);
  font-weight: 600;
  color: rgba(244,241,235,0.04);
  letter-spacing: -.02em;
  line-height: 1;
  pointer-events: none;
}
/* Date pill — now inline at top */
body[data-page="experience"] .tl-when {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--v8-accent) !important;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 9px 16px !important;
  border: 1px solid rgba(255,42,0,0.4);
  background: rgba(255,42,0,0.06);
  border-radius: 999px;
  line-height: 1.2 !important;
  white-space: nowrap;
}
body[data-page="experience"] .tl-when br { display: none; }
body[data-page="experience"] .tl-when .tl-sep {
  color: rgba(255,42,0,0.5);
  margin: 0 2px;
  font-weight: 400;
}
body[data-page="experience"] .tl-when .now { color: var(--v8-accent); }
/* Body column padding reset */
body[data-page="experience"] .tl-body {
  padding-left: 0 !important;
}
/* role */
body[data-page="experience"] .tl-role {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--v8-text);
  margin: 0 0 6px !important;
  text-transform: uppercase;
}
body[data-page="experience"] .tl-role .tl-org {
  color: var(--v8-muted);
  font-weight: 600;
  font-size: 0.78em;
  -webkit-text-stroke: 0 !important;
}
body[data-page="experience"] .tl-place {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--v8-muted-2) !important;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--v8-line);
  margin-top: 8px !important;
}
body[data-page="experience"] .tl-desc {
  font-size: clamp(14.5px, 1.05vw, 16px) !important;
  line-height: 1.55 !important;
  color: rgba(244,241,235,0.78);
  margin: 0 0 18px !important;
  max-width: 64ch;
}
/* chips polish — metric tags */
body[data-page="experience"] .tl-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
  margin-top: 0 !important;
}
body[data-page="experience"] .tl-chips .chip {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v8-text) !important;
  padding: 7px 14px !important;
  border: 1px solid var(--v8-line-hi);
  background: rgba(255,255,255,0.04) !important;
  border-radius: 999px;
  position: relative;
  transition: border-color .25s, background .25s, color .25s;
  white-space: nowrap;
}
body[data-page="experience"] .tl-chips .chip:hover {
  border-color: var(--v8-accent);
  background: rgba(255,42,0,0.1) !important;
  color: var(--v8-accent) !important;
}
/* bullets polish — arrow indicator + hover indent */
body[data-page="experience"] .tl-bullets { padding: 0; margin-top: 16px; display: grid; gap: 0; max-width: 72ch; }
body[data-page="experience"] .tl-bullets li {
  position: relative;
  padding: 10px 0 10px 28px !important;
  font-size: clamp(14px, 1.05vw, 15.5px) !important;
  color: rgba(244,241,235,0.82);
  line-height: 1.55;
  border-bottom: 1px solid var(--v8-line);
  transition: padding-left .3s, color .3s, border-color .3s;
}
body[data-page="experience"] .tl-bullets li:last-child { border-bottom: none; }
body[data-page="experience"] .tl-bullets li::before {
  content: "→" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  width: auto !important; height: auto !important;
  background: transparent !important;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--v8-accent) !important;
  transition: transform .3s, color .3s;
}
body[data-page="experience"] .tl-bullets li:hover {
  padding-left: 36px !important;
  color: var(--v8-text);
  border-bottom-color: var(--v8-line-hi);
}
body[data-page="experience"] .tl-bullets li:hover::before {
  transform: translateX(4px);
  color: #ff5520 !important;
}

@media (max-width: 720px) {
  body[data-page="experience"] .timeline { padding-left: 28px; }
  body[data-page="experience"] .timeline::before { left: 8px; }
  body[data-page="experience"] .tl-dot { left: -22px !important; top: 28px !important; }
  body[data-page="experience"] .tl-item::after { font-size: 40px; top: 16px; right: 14px; }
  body[data-page="experience"] .tl-role { font-size: 20px !important; }
}


/* ============================================================
   7 · PROJECTS — soon-list polish + soon-visual editorial
   ============================================================ */
body[data-page="projects"] .soon-list .sl {
  position: relative;
  padding: 22px 26px !important;
  background: rgba(255,255,255,0.012) !important;
  border: 1px solid var(--v8-line) !important;
  overflow: hidden;
  transition: border-color .35s, background .35s, transform .35s;
}
body[data-page="projects"] .soon-list .sl::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--v8-accent);
  transition: width .55s cubic-bezier(.2,.85,.25,1);
}
body[data-page="projects"] .soon-list .sl:hover::before { width: 100%; }
body[data-page="projects"] .soon-list .sl:hover {
  border-color: var(--v8-line-hi) !important;
  background: rgba(255,255,255,0.025) !important;
  transform: translateX(8px);
}
body[data-page="projects"] .soon-list .sl .si {
  font-family: var(--mono) !important;
  font-size: 11.5px !important;
  letter-spacing: .22em !important;
  color: var(--v8-accent) !important;
  text-transform: uppercase;
  border: 1px solid rgba(255,42,0,0.35);
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255,42,0,0.06);
}
body[data-page="projects"] .soon-list .sl .st {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px) !important;
  color: var(--v8-text) !important;
  letter-spacing: -.01em;
  line-height: 1.25;
}
body[data-page="projects"] .soon-list .sl .sk {
  font-family: var(--mono) !important;
  letter-spacing: .22em !important;
  text-transform: uppercase;
  color: var(--v8-accent) !important;
}

/* Soon-wrap layout polish */
body[data-page="projects"] .soon-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 3.6vw, 60px);
  align-items: center;
}
body[data-page="projects"] .soon-wrap h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px) !important;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--v8-text);
  margin: 18px 0 22px !important;
  max-width: 14ch;
}
body[data-page="projects"] .soon-wrap p {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.55;
  color: rgba(244,241,235,0.74);
  max-width: 56ch;
  margin: 0 0 28px;
}
body[data-page="projects"] .soon-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--v8-accent);
  padding: 8px 14px;
  border: 1px solid rgba(255,42,0,0.4);
  background: rgba(255,42,0,0.06);
  border-radius: 999px;
}
body[data-page="projects"] .soon-badge .pulse {
  width: 7px; height: 7px;
  background: var(--v8-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,42,0,.7);
  animation: hv8Live 1.4s ease infinite;
}
body[data-page="projects"] .soon-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--v8-line) !important;
  background:
    repeating-linear-gradient(45deg, rgba(255,42,0,0.04) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 50%, rgba(255,42,0,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #0a0202 0%, #050505 60%) !important;
  overflow: hidden;
}
body[data-page="projects"] .soon-visual::before {
  content: "01 — 03";
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--v8-muted-2);
  text-transform: uppercase;
}
body[data-page="projects"] .soon-visual .sv-core {
  position: absolute;
  bottom: 18px; left: 18px;
  color: var(--v8-accent) !important;
}

@media (max-width: 820px) {
  body[data-page="projects"] .soon-wrap { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="projects"] .soon-visual { aspect-ratio: 16 / 10; }
}


/* ============================================================
   8 · PAGE CURTAIN v2 · Lite (CSS-only, no WebGL)
   Black panel + red radial gradient + same NL logo as header
   ============================================================ */
.page-curtain.pc-lite {
  background: #050505 !important;
  border-radius: 0 !important;
  overflow: hidden;
  display: block !important;
}
.page-curtain.pc-lite .pc-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,42,0,0.55) 0%,
      rgba(255,42,0,0.22) 22%,
      rgba(255,42,0,0.06) 45%,
      transparent 68%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
  animation: pcGlowPulse 2.4s ease-in-out infinite;
}
@keyframes pcGlowPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
.page-curtain.pc-lite .pc-stage {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background: transparent !important;
  width: 100%;
}
.page-curtain.pc-lite .pc-logo {
  display: inline-block;
  text-decoration: none;
  transform: scale(1);
  opacity: 0;
  animation: pcLogoIn .5s cubic-bezier(.2,.85,.25,1) .05s forwards;
  filter: drop-shadow(0 8px 30px rgba(255,42,0,0.35));
}
@keyframes pcLogoIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
/* Upscale the NL mono-mark inside the curtain — inherits header mono-mark styling */
.page-curtain.pc-lite .pc-logo .mono-mark {
  width: clamp(72px, 8vw, 96px) !important;
  height: clamp(72px, 8vw, 96px) !important;
  font-size: clamp(30px, 3.4vw, 42px) !important;
  border-radius: 14px !important;
}
.page-curtain.pc-lite .pc-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: rgba(248,245,238,.6);
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0;
  animation: pcMetaInV2 .5s ease .30s forwards;
}
.page-curtain.pc-lite .pc-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #FF2A00;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,42,0,.7);
  animation: pcDotBlinkV2 1s ease-in-out infinite;
}
.page-curtain.pc-lite .pc-sep { opacity: .35; }
.page-curtain.pc-lite .pc-tick {
  color: #F8F5EE;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  display: inline-block;
}
@keyframes pcMetaInV2  { to { opacity: 1; } }
@keyframes pcDotBlinkV2 { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .page-curtain.pc-lite .pc-logo,
  .page-curtain.pc-lite .pc-meta,
  .page-curtain.pc-lite .pc-glow,
  .page-curtain.pc-lite .pc-dot { animation: none !important; opacity: 1 !important; }
}


/* ============================================================
   9 · SECTION UNIFIED BACKGROUNDS
   Fluid transition hero → subsequent sections; no more inhomogeneous slabs
   ============================================================ */
main {
  position: relative;
  background: linear-gradient(to bottom, #050505 0%, #060404 6vh, #050403 100%);
}
/* Under-hero soft red bleed for smooth handoff */
main::before {
  content: "";
  position: absolute;
  top: 88vh;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 700px;
  background: radial-gradient(ellipse 50% 50% at 50% 0%,
    rgba(255,42,0,0.10) 0%,
    rgba(255,42,0,0.035) 30%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
/* Fixed grain overlay across whole page for perceptual homogeneity */
main::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--v8-grain);
  background-size: 160px 160px;
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 100;
}
/* Sections themselves transparent so main gradient shows through */
.section,
.page-hero,
.hero:not(.hero-v8),
.cta-band {
  position: relative;
  background: transparent !important;
  z-index: 1;
}
/* Neutralize legacy per-child backgrounds that break homogeneity */
.stat-strip,
.proof-grid,
.explore-grid,
.about-panel,
.edu-grid,
.timeline,
.insights-layout,
.contact-layout,
.soon-wrap,
.about-portrait {
  background-color: transparent !important;
}
/* Section-junction accent (subtle red line at top of each section following hero) */
main > section + section {
  position: relative;
}
main > section + section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(80%, 900px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,42,0,0.28), transparent);
  z-index: 2;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  main::before { display: none; }
}

