/* ========================================
   HAT-TRICK CAPITAL — Wonderland-Inspired
   Side Nav + Immersive Scroll
   ======================================== */

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

:root {
  --bg:          #060b18;
  --bg-dark:     #030710;
  --bg-surface:  #0c1528;
  --text:        #ffffff;
  --text-dim:    rgba(255,255,255,0.5);
  --text-muted:  rgba(255,255,255,0.22);
  --accent:      #3b82f6;
  --accent-light:#60a5fa;
  --accent-glow: rgba(59,130,246,0.25);
  --green:       #10b981;
  --purple:      #a855f7;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
  --mono:        'Space Mono', monospace;
  --nav-w:       260px;
  --ease:        cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
body { background: #050510; color: var(--text); font-family: var(--sans); overflow-x: hidden; }

/* ── Custom cursor — blue glow circle ── */
*, *::before, *::after { cursor: none !important; }
#site-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #4a8fff;
  box-shadow: 0 0 8px #4a8fff, 0 0 18px rgba(74,143,255,0.5),
              inset 0 0 6px rgba(74,143,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, box-shadow 0.2s;
}
#site-cursor::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #4a8fff;
  box-shadow: 0 0 6px #4a8fff;
  transform: translate(-50%, -50%);
}
/* Expand cursor on hover over clickable elements */
#site-cursor.cursor-hover {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 12px #4a8fff, 0 0 28px rgba(74,143,255,0.5),
              inset 0 0 10px rgba(74,143,255,0.3);
}
.hidden { display: none !important; }

/* ── IMMERSIVE LAYER (captures scroll) ── */
.immersive-layer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-dark);
}
.immersive-layer.exit {
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease;
}
.full-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; z-index: 1;
}
.full-iframe--hidden { opacity: 0; z-index: 0; pointer-events: none; }
.full-iframe--hidden.active { opacity: 1; z-index: 2; pointer-events: all; transition: opacity 1s ease; }
.white-flash {
  position: absolute; inset: 0; z-index: 10;
  background: radial-gradient(ellipse at center, #fff, rgba(200,220,255,0.8) 40%, transparent 70%);
  opacity: 0; pointer-events: none;
}
.white-flash.flash { opacity: 1; transition: opacity 0.6s ease; }
.white-flash.fade  { opacity: 0; transition: opacity 1.2s ease; }

.skip-btn {
  position: absolute; bottom: 36px; right: 36px; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-family: var(--sans);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  padding: 10px 22px; border-radius: 24px; cursor: pointer;
  transition: all 0.3s;
}
.skip-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }

.back-btn {
  position: absolute; top: 32px; left: 32px; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-family: var(--sans);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  padding: 10px 22px; border-radius: 24px; cursor: pointer;
  transition: all 0.3s;
}
.back-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }

/* ── DOOR OVERLAY (for nav portfolio click) ── */
.door-overlay {
  position: fixed; inset: 0; z-index: 600;
  pointer-events: none;
}
.door-overlay .door-left,
.door-overlay .door-right {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: var(--bg-dark);
}
.door-overlay .door-left { left: 0; transform: translateX(-100%); transition: transform 1s var(--ease); }
.door-overlay .door-right { right: 0; transform: translateX(100%); transition: transform 1s var(--ease); }
.door-overlay.closing .door-left { transform: translateX(0); }
.door-overlay.closing .door-right { transform: translateX(0); }
.door-overlay.opening .door-left { transform: translateX(-100%); }
.door-overlay.opening .door-right { transform: translateX(100%); }
.door-overlay .door-seam {
  position: absolute; top: 0; left: 50%; width: 1px; height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 10%, rgba(59,130,246,0.4) 30%, rgba(139,92,246,0.3) 50%, rgba(59,130,246,0.4) 70%, transparent 90%);
  opacity: 0;
  transition: opacity 0.5s;
}
.door-overlay.closing .door-seam { opacity: 1; }

/* ── CONTENT LAYER ── */
.content-layer { position: relative; z-index: 1; }

/* Galaxy background canvas — fixed, behind all content */
#site-galaxy-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
/* Lift main content above galaxy without disturbing fixed-positioned nav */
.main { position: relative; z-index: 1; }

/* ── SIDE NAV ── */
.side-nav {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--nav-w);
  z-index: 500; padding: 32px 28px;
  display: flex; flex-direction: column;
  background: #030710;
  border-right: 1px solid rgba(255,255,255,0.04);
  overflow-y: auto;
}
.sn-brand { margin-bottom: 16px; }
.sn-logo { height: 28px; width: auto; }
.sn-meta {
  font-size: 9px; letter-spacing: 3px; line-height: 1.7;
  color: var(--text-muted); margin-bottom: 36px;
  text-transform: uppercase;
}
.sn-list { list-style: none; flex: 1; }
.sn-list > li { margin-bottom: 12px; }
.sn-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; font-size: 10px;
  color: var(--text-muted); margin-right: 8px;
}
.sn-link {
  font-size: 12px; letter-spacing: 2.5px; font-weight: 600;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.3s;
}
.sn-link:hover, .sn-link.active { color: var(--text); }
.sn-link.active {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 4px 14px;
}
.sn-sub {
  list-style: none; margin: 8px 0 4px 28px;
}
.sn-sub li { margin-bottom: 6px; }
.sn-sub-num {
  font-size: 10px; color: var(--text-muted);
  margin-right: 10px; font-family: var(--mono);
}
.sn-sub a {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: var(--text-muted);
  transition: color 0.3s;
}
.sn-sub a:hover { color: var(--text-dim); }
.sn-sub a.active { color: var(--accent); }
.sn-sub li:has(a.active) .sn-sub-num { color: var(--accent); }
.sn-footer {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.sn-scroll-track {
  width: 100%; height: 2px; background: rgba(255,255,255,0.06);
  border-radius: 1px; margin-bottom: 10px;
}
.sn-scroll-bar {
  height: 100%; width: 0%; border-radius: 1px;
  background: var(--accent); transition: width 0.1s;
}
.sn-time {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 2px; color: var(--text-muted);
}

/* ── BURGER (mobile) ── */
.burger {
  display: none; position: fixed; top: 20px; left: 20px;
  z-index: 600; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px;
}
.burger span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

/* ── MAIN ── */
.main { margin-left: var(--nav-w); }

/* ── SECTIONS ── */
.sec { position: relative; background: #050510; }
.sec-home { height: 100vh; }
.sec-content { padding: 200px 0; }
.sec-dark { background: #050510; }
.sec-inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* Section bar */
.sec-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.sec-bar-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.sec-bar-line { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

/* ── WONDERLAND-STYLE ROWS (label left, content right) ── */
.wl-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 80px 0;
}
.wl-label {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); padding-top: 6px;
}
.wl-content { max-width: 700px; }

/* Indented rows (no label) */
.wl-row--indent .wl-content {
  padding-left: 80px;
}
.wl-content--indent {
  padding-left: 80px;
}

/* Orbital animation row — larger gif, text indented */
.wl-row--orbit {
  align-items: center;
  grid-template-columns: 360px 1fr;
}
.wl-row--orbit .orbit-visual {
  width: 360px;
  margin: -30px -20px;
}
.orbit-gif {
  width: calc(100% + 40px);
  height: auto;
  display: block;
}
.wl-body {
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.wl-body:last-child { margin-bottom: 0; }
.wl-body--lead {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
}

.sec-h2 {
  font-size: clamp(32px, 4.5vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 48px;
}
.sec-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-light); }
.sec-sub { font-size: 16px; line-height: 1.8; color: var(--text-dim); margin-bottom: 40px; max-width: 500px; }

/* ── REVEAL ANIMATIONS ── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* Slide variant — label slides from left */
[data-reveal="slide"] {
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal="slide"].visible { opacity: 1; transform: translateX(0); }

/* Fade variant — text fades up with blur */
[data-reveal="fade"] {
  opacity: 0; transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
[data-reveal="fade"].visible {
  opacity: 1; transform: translateY(0); filter: blur(0);
}

/* ── HOME — 3D Gallery Embed ── */
.gallery-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; z-index: 1;
  transition: opacity 1s ease;
}
.gallery-hidden { opacity: 0; z-index: 0; pointer-events: none; }
.gallery-hidden.active { opacity: 1; z-index: 2; pointer-events: all; }
.white-flash {
  position: absolute; inset: 0; z-index: 10;
  background: radial-gradient(ellipse at center, #ffffff, rgba(200,220,255,0.8) 40%, transparent 70%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease;
}
.white-flash.flash { opacity: 1; }
.white-flash.fade { opacity: 0; transition: opacity 1.5s ease; }
.home-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  pointer-events: none; z-index: 10;
}
.home-bottom-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(6,11,24,0.6);
  backdrop-filter: blur(8px);
}
.hb-label { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; color: var(--text-muted); }
.hb-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.1); }
.hb-right { margin-left: auto; font-size: 9px; letter-spacing: 3px; color: var(--text-muted); }

/* ── LOGO HERO ── */
.sec-asteroid {
  min-height: 100vh; position: relative;
  padding: 0 0 80px 0;
}
#asteroid-canvas {
  position: relative; top: 0; left: 0;
  width: 100%; height: 65vh; z-index: 0;
  display: block;
}
.asteroid-bottom {
  position: relative;
  z-index: 2; padding: 40px 48px 0 48px;
  pointer-events: none;
}
.asteroid-h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 5.5vw, 78px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.asteroid-h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none;
  color: rgba(255,255,255,0.25);
}

/* ── EDITORIAL SPLIT (Us & You) ── */
.editorial-split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 80px; }
.editorial-body { font-size: 15px; line-height: 1.9; color: var(--text-dim); margin-bottom: 36px; }
.editorial-lead { font-size: 17px; color: rgba(255,255,255,0.65); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 32px; }
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.meta-value { font-size: 18px; font-weight: 600; }

/* ── DISPLAY HEADING ── */
.display-heading h2, .display-heading span {
  font-size: clamp(44px, 7vw, 88px); font-weight: 800;
  line-height: 1.0; letter-spacing: -3px; text-transform: uppercase;
}
.display-heading em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent-light); text-transform: none;
}
.display-heading { margin-bottom: 60px; }
.display-heading--ghost h2 {
  color: rgba(255,255,255,0.12);
}
.display-heading--ghost em { color: var(--text); }

/* ── MIND MAP ── */
.mindmap-wrap {
  width: 100%;
  margin: 40px auto 0;
  height: 600px;
  position: relative;
}
.mindmap-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#how-we-help { padding-top: 120px; padding-bottom: 120px; }
#sectors { padding-top: 120px; padding-bottom: 120px; }
#overview { padding-top: 120px; padding-bottom: 120px; }
#research-papers { padding-top: 120px; padding-bottom: 120px; }
#newsletter { padding-top: 120px; padding-bottom: 120px; }

/* ── PORTFOLIO NEWS — Sticky image + scrolling titles ── */
.pn-section {
  padding: 120px 0;
}
.pn-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px;
}
/* Left: sticky image window — vertically centered */
.pn-img-col {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  height: 320px;
  align-self: start;
  overflow: hidden;
}
.pn-img-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
.pn-slide {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 1.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}
.pn-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}
.pn-slide.pn-active {
  transform: translateY(0);
  z-index: 1;
}
.pn-slide.pn-prev {
  transform: translateY(0);
  z-index: 0;
}
/* Info overlay on image */
.pn-slide-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  align-items: center;
  gap: 12px;
}
.pn-slide-tag {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.pn-slide-tag--raise { color: #10b981; background: rgba(16,185,129,0.2); }
.pn-slide-tag--exit { color: #a855f7; background: rgba(168,85,247,0.2); }
.pn-slide-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
/* Right: scrolling text items */
.pn-text-col {
  display: flex;
  flex-direction: column;
}
.pn-item {
  display: block;
  text-decoration: none;
  padding: 50px 0;
  opacity: 0.3;
  transition: opacity 0.4s;
  cursor: pointer;
}
.pn-item.pn-current { opacity: 1; }
.pn-item:hover { opacity: 0.8; }
/* Meta */
.pn-item-meta {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pn-item-meta span { margin-right: 8px; }
/* Title — huge mixed typography */
.pn-item-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -1px;
}
.pn-item-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
  text-transform: none;
  letter-spacing: 0;
}


/* Image fills card */
.pn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.7);
}
.pn-card:hover .pn-img {
  transform: scale(1.05);
  filter: brightness(0.5);
}

/* Overlay text */
.pn-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pn-tag {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  width: fit-content;
}
.pn-tag--raise { color: #10b981; background: rgba(16,185,129,0.2); }
.pn-tag--exit { color: #a855f7; background: rgba(168,85,247,0.2); }
.pn-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.pn-amount {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-light);
}
.pn-sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
}

/* Research tag for papers section */
.news-tag--research { color: var(--accent); background: rgba(59,130,246,0.1); }
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 40px; }
.news-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 32px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
  text-decoration: none; transition: border-color 0.3s, background 0.3s;
}
.news-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.news-tag { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; padding: 3px 10px; border-radius: 4px; width: fit-content; }
.news-title { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4; }
.news-date { font-size: 11px; letter-spacing: 1px; color: var(--text-muted); }

/* ── HOW WE HELP ── */
.how-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.how-left p { font-size: 15px; line-height: 1.9; color: var(--text-dim); max-width: 380px; }
.numbered-list { display: flex; flex-direction: column; }
.nl-item {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 0; position: relative; cursor: default;
}
.nl-line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.06);
}
.nl-num { font-family: var(--mono); font-size: 12px; color: var(--text-muted); min-width: 30px; }
.nl-title {
  font-size: clamp(20px, 2.5vw, 34px); font-weight: 600;
  letter-spacing: -0.5px; transition: color 0.3s;
}
.nl-item:hover .nl-title { color: var(--accent-light); }
.nl-item:hover .nl-num { color: var(--accent); }

/* ── SECTORS ── */
.sectors-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
.sectors-intro { font-size: 15px; line-height: 1.8; color: var(--text-dim); margin-top: 20px; }
.sectors-intro strong { color: var(--text); }
.sectors-timeline { position: relative; padding-left: 32px; }
.timeline-line {
  position: absolute; left: 5px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--green), var(--purple));
}
.sector-entry { padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sector-entry:last-child { border-bottom: none; }
.sector-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sc); margin-bottom: 16px;
  box-shadow: 0 0 12px var(--sc);
  position: relative; left: -38px; margin-bottom: -6px;
  float: left;
}
.sector-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; margin-left: 0; }
.sector-desc { font-size: 14px; line-height: 1.8; color: var(--text-dim); clear: both; }

/* ── EXPERTISE ── */
.expertise-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-bottom: 60px; }
.exp-title { font-family: var(--mono); font-size: 10px; letter-spacing: 4px; margin-bottom: 14px; }
.exp-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.exp-list li { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.c-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; fill: rgba(255,255,255,0.4); }
.c-lbl--lg { font-size: 11px; letter-spacing: 3px; fill: rgba(255,255,255,0.65); font-weight: 700; }
.c-lbl--sm { font-size: 8px; fill: rgba(255,255,255,0.25); }
.c-pulse { animation: cpulse 3s ease-in-out infinite; }
@keyframes cpulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(59,130,246,0.3)); }
  50%     { filter: drop-shadow(0 0 18px rgba(59,130,246,0.7)); }
}

/* ── STATS (Overview) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 48px;
}
.stat-card { }
.stat-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--text);
}
.stat-num .accent { color: var(--accent); }
.stat-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
}
.stat-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 320px;
}

/* ── TEAM ── */
/* ── TEAM — Wonderland Being Here style ── */
.tm-section { padding: 120px 0; }
.tm-header {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.tm-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.tm-card {
  position: relative;
  width: 42%;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22,1,0.36,1);
  margin-bottom: 60px;
}
.tm-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.tm-card--left {
  margin-left: 5%;
  z-index: 2;
}
.tm-card--right {
  margin-left: 45%;
  margin-top: -25%;
  z-index: 1;
}
.tm-photo {
  width: 100%;
  overflow: hidden;
}
.tm-photo {
  position: relative;
  overflow: hidden;
}
.tm-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.tm-card:hover .tm-photo img { transform: scale(1.03); }
.tm-card { overflow: visible; transition: opacity 0.4s ease, transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.tm-card:hover { z-index: 10 !important; }
/* When any card in gallery is hovered, dim all others */
.tm-gallery:hover .tm-card { opacity: 0.25; }
.tm-gallery:hover .tm-card:hover { opacity: 1; }
.tm-gallery:hover .tm-card.visible { opacity: 0.25; }
.tm-gallery:hover .tm-card.visible:hover { opacity: 1; }
/* Role label — top right */
/* Role labels hidden on individual cards — shown as group headers */
.tm-label { display: none; }

/* Group header — fixed top right */
.tm-group-label {
  text-align: right;
  padding: 60px 0 30px;
}
.tm-group-label span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tm-role {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Name bar below photo */
.tm-name-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  position: relative;
  z-index: 3;
  align-items: flex-start;
  text-align: left;
}
.tm-card--right .tm-name-bar {
  align-items: flex-end;
  text-align: right;
}
.tm-ln {
  margin-left: 0;
  margin-top: 4px;
}
.tm-person {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.tm-title {
  font-size: 12px;
  color: var(--text-dim);
}
.tm-ln {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  margin-left: auto;
}
.tm-ln:hover { text-decoration: underline; }
/* Bio overlay — appears on hover after 0.5s */
/* Bio — appears to the side of the photo */
.tm-bio {
  position: absolute;
  top: 40px;
  width: 220px;
  padding: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
  pointer-events: none;
  border-left: 1px solid rgba(59,130,246,0.3);
  padding-left: 16px;
}
/* Left cards: bio appears on the right side */
.tm-card--left .tm-bio {
  left: calc(100% + 32px);
}
/* Right cards: bio appears on the left side */
.tm-card--right .tm-bio {
  right: calc(100% + 32px);
  left: auto;
  transform: translateX(-10px);
  border-left: none;
  border-right: 1px solid rgba(59,130,246,0.3);
  padding-left: 0;
  padding-right: 16px;
  text-align: right;
}
.tm-card:hover .tm-bio {
  opacity: 1;
  transform: translateX(0);
}

/* Hide old team styles */
.group-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 28px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 52px; }
.team-card {
  border-radius: 10px; background: var(--bg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.4s, transform 0.4s;
  opacity: 0; transform: translateY(16px);
}
.team-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.4s; }
.team-card:hover { border-color: rgba(59,130,246,0.12); transform: translateY(-3px); }
.team-avatar { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-surface); }
.team-info { padding: 16px; }
.team-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.team-title { font-size: 11px; letter-spacing: 0.5px; color: var(--text-dim); }
.team-bio { display: none; font-size: 12px; line-height: 1.7; color: var(--text-dim); margin-top: 10px; }
.team-card:hover .team-bio { display: block; }
.team-linkedin { display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); text-decoration: none; }

/* ── CAREERS ── */
.careers-list { display: flex; flex-direction: column; gap: 12px; }
.career-item {
  padding: 0; border-radius: 10px;
  background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.3s;
  overflow: hidden;
}
.career-item:hover { border-color: rgba(59,130,246,0.12); }
.career-item[open] { border-color: rgba(59,130,246,0.25); }
.career-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; cursor: pointer;
  list-style: none; gap: 16px;
}
.career-summary::-webkit-details-marker { display: none; }
.career-summary-left { flex: 1; min-width: 0; }
.career-title { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.career-meta { font-size: 11px; color: var(--text-dim); }
.career-type {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  padding: 5px 14px; border: 1px solid rgba(59,130,246,0.2); border-radius: 16px;
  white-space: nowrap;
}
.career-toggle {
  font-size: 20px; color: var(--text-dim); font-weight: 300;
  width: 24px; text-align: center; transition: transform 0.3s;
}
.career-item[open] .career-toggle { transform: rotate(45deg); }
.career-body {
  padding: 0 28px 28px 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.career-desc {
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.career-subblock { margin-bottom: 18px; }
.career-subblock h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; font-weight: 700;
}
.career-subblock ul {
  list-style: none; padding: 0; margin: 0;
}
.career-subblock li {
  font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.6);
  padding-left: 16px; position: relative; margin-bottom: 6px;
}
.career-subblock li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--accent); font-size: 10px; top: 2px;
}
.career-apply {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent); padding: 10px 20px;
  border: 1px solid rgba(59,130,246,0.3); border-radius: 20px;
  margin-top: 8px; transition: all 0.25s;
}
.career-apply:hover {
  background: rgba(59,130,246,0.1);
  border-color: var(--accent);
}

/* ── INSIGHTS ── */
.insights-list { display: flex; flex-direction: column; }
.insight-item {
  display: flex; align-items: center; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none; color: var(--text); transition: padding-left 0.3s;
}
.insight-item:hover { padding-left: 10px; }
.insight-num { font-family: var(--mono); font-size: 11px; color: var(--text-muted); min-width: 24px; }
.insight-date { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 4px; }
.insight-title { font-size: 20px; font-weight: 600; }
.insight-title em { font-family: var(--serif); font-style: italic; color: var(--accent-light); font-weight: 400; }
.insight-arrow { margin-left: auto; font-size: 18px; color: var(--text-muted); transition: transform 0.3s, color 0.3s; }
.insight-item:hover .insight-arrow { transform: translateX(5px); color: var(--accent); }

/* ── NEWSLETTER ── */
.nl-form { display: flex; gap: 12px; max-width: 420px; margin: 0 auto; }
.nl-input {
  flex: 1; padding: 14px 20px; font-family: var(--sans); font-size: 13px;
  letter-spacing: 1px; color: var(--text); background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 28px; outline: none;
  transition: border-color 0.3s;
}
.nl-input:focus { border-color: var(--accent); }
.nl-input::placeholder { color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: 14px 32px; border-radius: 32px; border: none; cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-primary { background: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 13px; }
.btn-arrow { font-size: 16px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── FOOTER ── */
.footer-top { text-align: center; margin-bottom: 72px; }
.footer-top .display-heading { margin-bottom: 32px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 28px;
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fc-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.fc-value { font-size: 13px; color: var(--text-dim); text-decoration: none; line-height: 1.6; }
.fc-value:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.footer-logo { height: 20px; width: auto; opacity: 0.3; }
.footer-bottom p { font-size: 11px; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .side-nav { display: none; }
  .side-nav.open { display: flex; width: 100%; z-index: 700; }
  .burger { display: block; }
  .main { margin-left: 0; }
  .sec-inner { padding: 0 24px; }
  .editorial-split, .how-split, .sectors-split, .wl-row { grid-template-columns: 1fr; gap: 16px; }
  .expertise-columns { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 40px 32px; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .nl-form { flex-direction: column; }
  .sec-content { padding: 80px 0; }
}
