/* =========================================================
   LEARNING STUDIO LAB — STYLES
   Design direction: "Apple Intelligence for Learning Science" —
   deep-space black canvas, SF-style typography at generous
   scale, glass surfaces, soft depth, and a single recurring
   signature: a slow-moving aurora gradient (violet → cyan →
   magenta → amber) used sparingly for emphasis, buttons and glow.
   ========================================================= */

:root{
  --bg: #000000;
  --surface: #0A0A0D;
  --surface-2: #131317;
  --surface-3: #1C1C21;
  --line: rgba(255,255,255,0.11);
  --line-soft: rgba(255,255,255,0.06);

  --text: #F5F5F7;
  --muted: rgba(245,245,247,0.68);
  --muted-2: rgba(245,245,247,0.42);

  /* aurora gradient stops — the site's single signature device */
  --grad-1: #7C5CFF; /* violet   */
  --grad-2: #33D6FF; /* cyan     */
  --grad-3: #FF5CAA; /* magenta  */
  --grad-4: #FFB86B; /* amber    */
  --aurora: linear-gradient(115deg, var(--grad-2) 0%, var(--grad-1) 40%, var(--grad-3) 72%, var(--grad-4) 100%);

  --accent: #8A6BFF;
  --accent-soft: rgba(138,107,255,0.14);
  --accent-dim: rgba(138,107,255,0.5);

  --white:#FFFFFF;
  --black:#000000;

  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font-main);
  --font-mono: var(--font-main);

  --container: 1240px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-main);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:hidden;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
ul{margin:0; padding:0; list-style:none;}
h1,h2,h3,h4,p{margin:0;}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

.grad-text{
  background:var(--aurora);
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:auroraShift 10s ease infinite;
}
@keyframes auroraShift{
  0%,100%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--muted);
  font-weight:600;
  margin-bottom:20px;
}
.eyebrow::before{
  content:"";
  width:9px; height:9px; border-radius:50%;
  background:var(--aurora);
  box-shadow:0 0 12px var(--accent-dim);
  flex:0 0 auto;
}

.section{
  position:relative;
  padding:130px 0;
  background:var(--bg);
}
.section-head{
  max-width:720px;
  margin-bottom:64px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
h2.section-title{
  font-size:clamp(32px, 4.4vw, 50px);
  font-weight:650;
  letter-spacing:-0.025em;
  line-height:1.1;
}
.section-sub{
  margin-top:18px;
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
  max-width:620px;
  font-weight:400;
}
.section-head.center .section-sub{ margin-left:auto; margin-right:auto; }

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 28px;
  border-radius:var(--radius-pill);
  font-size:15px;
  font-weight:600;
  border:1px solid transparent;
  transition:transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--aurora);
  background-size:200% 200%;
  color:#0A0A0D;
  font-weight:700;
}
.btn-primary:hover{ transform:translateY(-2px) scale(1.015); box-shadow:0 16px 40px -12px var(--accent-dim); background-position:100% 50%; }
.btn-ghost{
  background:rgba(255,255,255,0.05);
  border-color:var(--line);
  color:var(--text);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.btn-ghost:hover{ border-color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.09); transform:translateY(-2px); }
.btn-small{ padding:11px 20px; font-size:13.5px; }

/* =========================================================
   HEADER — frosted glass
   ========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0;
  z-index:200;
  padding:20px 0;
  transition:background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border-color:var(--line-soft);
  padding:14px 0;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.logo{
  font-size:17px; font-weight:700; letter-spacing:-0.01em;
  display:flex; align-items:center; gap:10px;
}
.logo .dot{
  width:9px; height:9px; border-radius:50%;
  background:var(--aurora);
  box-shadow:0 0 12px var(--accent-dim);
}
.main-nav ul{ display:flex; gap:30px; }
.main-nav a{
  font-size:13.5px; color:var(--muted); font-weight:500;
  position:relative; padding:4px 0;
  transition:color .25s var(--ease);
}
.main-nav a:hover, .main-nav a:focus-visible{ color:var(--text); }
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--aurora); border-radius:2px;
  transform:scaleX(0); transform-origin:left;
  transition:transform .3s var(--ease);
}
.main-nav a:hover::after{ transform:scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:14px; }

.hamburger{
  display:none;
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.05);
  align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
}
.hamburger span{
  width:16px; height:1.5px; background:var(--text); display:block; transition:transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.open span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:0; top:0;
  background:rgba(0,0,0,0.97);
  backdrop-filter:blur(20px);
  z-index:190;
  display:flex; flex-direction:column;
  padding:100px 32px 40px;
  transform:translateY(-100%);
  transition:transform .5s var(--ease);
}
.mobile-nav.open{ transform:translateY(0); }
.mobile-nav ul{ display:flex; flex-direction:column; gap:6px; }
.mobile-nav a{
  font-size:28px; font-weight:650; padding:14px 0; border-bottom:1px solid var(--line-soft);
  letter-spacing:-0.01em;
}
.mobile-nav .btn{ margin-top:30px; align-self:flex-start; }

/* =========================================================
   HERO — aurora orbs
   ========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  padding:180px 0 100px;
  overflow:hidden;
  background:var(--bg);
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  overflow:hidden;
}
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:0.55;
  will-change:transform;
}
.orb-1{ width:560px; height:560px; top:-140px; left:8%; background:radial-gradient(circle at 30% 30%, var(--grad-1), transparent 70%); animation:orbFloat1 22s ease-in-out infinite; }
.orb-2{ width:480px; height:480px; top:10%; right:4%; background:radial-gradient(circle at 60% 40%, var(--grad-2), transparent 70%); animation:orbFloat2 26s ease-in-out infinite; }
.orb-3{ width:520px; height:520px; bottom:-220px; left:32%; background:radial-gradient(circle at 50% 50%, var(--grad-3), transparent 70%); animation:orbFloat3 30s ease-in-out infinite; }
@keyframes orbFloat1{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(60px,40px) scale(1.08); } }
@keyframes orbFloat2{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(-50px,30px) scale(0.95); } }
@keyframes orbFloat3{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(40px,-50px) scale(1.06); } }
@media (prefers-reduced-motion: reduce){ .orb{ animation:none !important; } }
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(60% 60% at 50% 40%, transparent 0%, var(--bg) 82%);
}
.hero-content{ position:relative; z-index:2; max-width:880px; }
.hero h1{
  font-size:clamp(38px, 6.2vw, 76px);
  font-weight:700;
  letter-spacing:-0.035em;
  line-height:1.05;
}
.hero-sub{
  margin-top:26px;
  font-size:19px;
  color:var(--muted);
  max-width:600px;
  line-height:1.7;
  font-weight:400;
}
.hero-actions{ display:flex; gap:16px; margin-top:42px; flex-wrap:wrap; }

.hero-stats{
  position:relative; z-index:2;
  margin-top:90px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.stat{
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  padding:26px 22px;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .35s var(--ease), border-color .35s var(--ease);
}
.stat:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,0.22); }
.stat-num{
  font-size:32px; font-weight:750; letter-spacing:-0.02em;
  background:var(--aurora); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-label{
  margin-top:6px; font-size:12.5px; color:var(--muted); font-weight:500;
}

/* =========================================================
   FLOW / CHAIN DIAGRAMS
   ========================================================= */
.flow{
  display:flex; align-items:center; flex-wrap:wrap; gap:14px;
  margin-top:20px;
}
.flow-step{
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  padding:24px 24px;
  min-width:180px;
  flex:1 1 180px;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.flow-step:hover{ border-color:rgba(255,255,255,0.25); transform:translateY(-4px); background:rgba(255,255,255,0.07); }
.flow-step .num{
  font-size:12px; font-weight:700; letter-spacing:0.04em;
  background:var(--aurora); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.flow-step .label{ margin-top:10px; font-size:16.5px; font-weight:650; }
.flow-step .desc{ margin-top:6px; font-size:13.5px; color:var(--muted); line-height:1.5; }
.flow-arrow{
  flex:0 0 auto;
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted-2);
  font-size:16px;
}
.flow.vertical{ flex-direction:column; align-items:stretch; }
.flow.vertical .flow-arrow{ align-self:center; transform:rotate(90deg); }
@media (max-width: 720px){
  .flow{ flex-direction:column; align-items:stretch; }
  .flow .flow-arrow{ align-self:center; transform:rotate(90deg); }
}

/* =========================================================
   PILLARS
   ========================================================= */
.pillars{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
}
.pillar{
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  padding:38px 32px;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.pillar:hover{ transform:translateY(-6px); border-color:rgba(255,255,255,0.24); background:rgba(255,255,255,0.075); }
.pillar .idx{
  font-size:12px; letter-spacing:0.06em; font-weight:700;
  background:var(--aurora); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.pillar h3{ margin-top:16px; font-size:22px; font-weight:650; letter-spacing:-0.01em; }
.pillar p{ margin-top:12px; color:var(--muted); font-size:14.5px; line-height:1.65; }
@media (max-width:820px){ .pillars{ grid-template-columns:1fr; } }

/* =========================================================
   LIBRARY (books)
   ========================================================= */
.library-controls{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  margin-bottom:34px;
}
.filter-row{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-chip{
  padding:9px 16px;
  border-radius:var(--radius-pill);
  border:1px solid var(--line);
  background:rgba(255,255,255,0.04);
  font-size:13px;
  color:var(--muted); font-weight:500;
  transition:all .25s var(--ease);
}
.filter-chip:hover{ border-color:rgba(255,255,255,0.3); color:var(--text); }
.filter-chip.active{ background:var(--aurora); border-color:transparent; color:#0A0A0D; font-weight:700; }

.search-box{
  position:relative;
  display:flex; align-items:center;
  min-width:240px;
}
.search-box input{
  width:100%;
  background:rgba(255,255,255,0.05);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:var(--radius-pill);
  padding:11px 18px 11px 38px;
  font-size:13.5px;
  font-family:inherit;
}
.search-box input:focus{ border-color:rgba(255,255,255,0.35); outline:none; }
.search-box input::placeholder{ color:var(--muted-2); }
.search-box svg{ position:absolute; left:13px; width:15px; height:15px; color:var(--muted-2); }

.carousel-wrap{ position:relative; }
.carousel{
  display:flex; gap:20px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  padding:6px 6px 14px;
  scrollbar-width:thin;
  scrollbar-color:var(--surface-3) transparent;
}
.carousel::-webkit-scrollbar{ height:6px; }
.carousel::-webkit-scrollbar-thumb{ background:var(--surface-3); border-radius:10px; }

.carousel-nav{
  display:flex; gap:10px; justify-content:flex-end; margin-top:18px;
}
.carousel-btn{
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--line); background:rgba(255,255,255,0.05);
  display:flex; align-items:center; justify-content:center; color:var(--text);
  transition:all .25s var(--ease);
}
.carousel-btn:hover{ border-color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.1); }

.book-card{
  scroll-snap-align:start;
  flex:0 0 230px;
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  display:flex; flex-direction:column;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.book-card:hover{ transform:translateY(-8px); border-color:rgba(255,255,255,0.24); box-shadow:0 24px 50px -24px rgba(124,92,255,0.45); }
.book-cover{
  aspect-ratio:3/4;
  background:var(--aurora);
  background-size:220% 220%;
  position:relative;
  display:flex; align-items:flex-end; padding:16px;
  opacity:0.9;
}
.book-card:hover .book-cover{ background-position:100% 100%; }
.book-cover .cat-tag{
  position:relative; z-index:1;
  font-size:10.5px; letter-spacing:.03em; text-transform:uppercase;
  color:#0A0A0D; font-weight:800;
  background:rgba(255,255,255,0.88);
  padding:5px 9px; border-radius:6px;
}
.book-body{ padding:16px; flex:1; display:flex; flex-direction:column; gap:8px; }
.book-title{ font-size:14.5px; font-weight:650; line-height:1.35; }
.book-author{ font-size:12.5px; color:var(--muted); }
.book-meta{ font-size:11px; color:var(--muted-2); margin-top:auto; }
.book-view-btn{
  margin-top:10px;
  font-size:12.5px; font-weight:700; color:var(--text);
  display:inline-flex; align-items:center; gap:6px;
  align-self:flex-start;
}

/* =========================================================
   RESEARCHERS GRID
   ========================================================= */
.researchers-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
@media (max-width:1080px){ .researchers-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .researchers-grid{ grid-template-columns:repeat(2,1fr); } }
.researcher-card{
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  padding:20px;
  text-align:left;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.researcher-card:hover{ transform:translateY(-5px); border-color:rgba(255,255,255,0.24); background:rgba(255,255,255,0.08); }
.researcher-photo{
  aspect-ratio:1/1;
  border-radius:50%;
  width:60px;
  background:var(--aurora);
  display:flex; align-items:center; justify-content:center;
  font-size:17px; font-weight:750; color:#0A0A0D;
  margin-bottom:14px;
}
.researcher-name{ font-size:14.5px; font-weight:650; }
.researcher-field{ font-size:11.5px; color:var(--muted); margin-top:4px; font-weight:500; }
.researcher-contribution{ font-size:12.5px; color:var(--muted); margin-top:8px; line-height:1.5; }
.researcher-view{ margin-top:12px; font-size:12px; font-weight:650; color:var(--muted-2); display:inline-flex; align-items:center; gap:6px; }
.researcher-card:hover .researcher-view{ color:var(--text); }

/* =========================================================
   KNOWLEDGE MAP
   ========================================================= */
.map-wrap{
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  padding:20px;
  overflow:hidden;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.map-wrap svg{ width:100%; height:auto; display:block; }
.map-node-label{ fill:var(--muted); font-size:12px; font-family:var(--font-main); }
.map-node-label.active{ fill:var(--text); font-weight:600; }
.map-edge{ stroke:var(--line); stroke-width:1.2; transition:stroke .3s ease, stroke-width .3s ease; }
.map-edge.active{ stroke:var(--grad-1); stroke-width:2; }
.map-dot{ fill:var(--surface-3); stroke:var(--line); stroke-width:1; transition:fill .3s ease; }
.map-dot.active{ fill:var(--grad-1); }

/* =========================================================
   PRINCIPLES GRID
   ========================================================= */
.principles-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
@media (max-width:980px){ .principles-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .principles-grid{ grid-template-columns:1fr; } }
.principle-card{
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  padding:26px;
  position:relative;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.principle-card:hover{ border-color:rgba(255,255,255,0.24); transform:translateY(-4px); background:rgba(255,255,255,0.075); }
.principle-card h4{ font-size:17px; font-weight:650; }
.principle-card p{ margin-top:10px; font-size:13.5px; color:var(--muted); line-height:1.6; }
.principle-tags{ margin-top:14px; display:flex; flex-wrap:wrap; gap:6px; }
.principle-tags span{
  font-size:11px; padding:4px 10px; border-radius:var(--radius-pill);
  background:rgba(255,255,255,0.08); color:var(--muted); font-weight:500;
}

/* =========================================================
   ECOSYSTEM
   ========================================================= */
.ecosystem-lead{
  position:relative;
  background:rgba(255,255,255,0.045);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  padding:46px;
  margin-bottom:22px;
  overflow:hidden;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.ecosystem-lead::before{
  content:"";
  position:absolute; top:-60%; right:-20%;
  width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, var(--grad-1), transparent 70%);
  filter:blur(90px); opacity:0.35; pointer-events:none;
}
.ecosystem-lead .tag{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color:#0A0A0D;
  background:var(--aurora); padding:6px 12px; border-radius:var(--radius-pill);
}
.ecosystem-lead h3{ margin-top:18px; font-size:32px; font-weight:700; letter-spacing:-0.02em; }
.ecosystem-lead .sub{ margin-top:6px; color:var(--muted); font-size:15px; }
.ecosystem-lead .desc{ margin-top:18px; max-width:640px; color:var(--muted); font-size:14.5px; line-height:1.7; }
.product-pills{ margin-top:26px; display:flex; flex-wrap:wrap; gap:10px; position:relative; z-index:1; }
.product-pills span{
  font-size:12.5px; padding:8px 14px; border-radius:var(--radius-pill);
  border:1px solid var(--line); color:var(--text); background:rgba(255,255,255,0.04);
}

.future-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:820px){ .future-grid{ grid-template-columns:1fr; } }
.future-card{
  border:1px dashed var(--line);
  border-radius:var(--radius-md);
  padding:30px;
  min-height:150px;
  display:flex; flex-direction:column; justify-content:center;
  color:var(--muted-2);
}
.future-card .plus{ font-size:22px; color:var(--muted); margin-bottom:10px; }
.future-card .name{ font-size:13.5px; font-weight:600; color:var(--muted); }
.future-card .note{ font-size:12px; margin-top:6px; }

/* =========================================================
   PUBLICATIONS
   ========================================================= */
.pub-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:980px){ .pub-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .pub-grid{ grid-template-columns:1fr; } }
.pub-card{
  background:rgba(255,255,255,0.045); border:1px solid var(--line-soft); border-radius:var(--radius-md);
  padding:24px; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  transition:border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.pub-card:hover{ border-color:rgba(255,255,255,0.24); transform:translateY(-4px); background:rgba(255,255,255,0.075); }
.pub-type{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-2); font-weight:700; }
.pub-title{ margin-top:12px; font-size:15.5px; font-weight:650; line-height:1.4; }
.pub-note{ margin-top:14px; font-size:12px; color:var(--muted-2); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline{
  position:relative;
  display:flex; gap:0;
  overflow-x:auto;
  padding:20px 0 30px;
}
.timeline::before{
  content:"";
  position:absolute; left:0; right:0; top:44px; height:1px;
  background:var(--line);
}
.timeline-item{
  flex:0 0 220px;
  position:relative;
  padding:0 22px;
}
.timeline-item .dot{
  width:11px; height:11px; border-radius:50%; background:var(--surface-3);
  border:2px solid var(--line);
  position:relative; top:39px; margin-bottom:30px;
  transition:background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.timeline-item.in-view .dot{ background:var(--aurora); border-color:transparent; box-shadow:0 0 14px var(--accent-dim); }
.timeline-year{ font-size:12px; color:var(--muted-2); font-weight:700; letter-spacing:.03em; }
.timeline-label{ margin-top:8px; font-size:15px; font-weight:650; }
.timeline-note{ margin-top:6px; font-size:12.5px; color:var(--muted); line-height:1.5; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto{
  text-align:center;
  padding:150px 0;
  position:relative;
}
.manifesto h2{
  font-size:clamp(30px,4.6vw,54px);
  font-weight:700; letter-spacing:-0.025em; line-height:1.15;
  max-width:900px; margin:0 auto;
}
.manifesto p{
  max-width:660px; margin:28px auto 0;
  color:var(--muted); font-size:17px; line-height:1.8;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta{
  text-align:center;
  padding:140px 0 160px;
  position:relative;
}
.final-cta h2{ font-size:clamp(34px,5.2vw,58px); font-weight:700; letter-spacing:-0.025em; }
.final-cta p{ max-width:560px; margin:22px auto 0; color:var(--muted); font-size:16.5px; line-height:1.7; }
.final-cta .hero-actions{ justify-content:center; margin-top:40px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  border-top:1px solid var(--line-soft);
  padding:70px 0 40px;
  background:var(--bg);
}
.footer-top{
  display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap;
  padding-bottom:40px; border-bottom:1px solid var(--line-soft);
}
.footer-brand{ max-width:340px; }
.footer-brand .logo{ margin-bottom:16px; }
.footer-brand p{ color:var(--muted); font-size:13.5px; line-height:1.7; }
.footer-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h5{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); margin-bottom:16px; }
.footer-col a, .footer-col span{ display:block; font-size:13.5px; color:var(--muted); margin-bottom:10px; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:28px; font-size:12.5px; color:var(--muted-2);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top{
  position:fixed; bottom:26px; right:26px; z-index:150;
  width:46px; height:46px; border-radius:50%;
  background:rgba(255,255,255,0.06); border:1px solid var(--line);
  color:var(--text);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:all .35s var(--ease);
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.back-to-top:hover{ border-color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.12); }

/* =========================================================
   MODAL / DIALOG
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0; z-index:300;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease);
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal-box{
  background:#0D0D11;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  max-width:640px; width:100%;
  max-height:86vh; overflow-y:auto;
  padding:0;
  transform:translateY(24px) scale(.98);
  transition:transform .35s var(--ease);
  box-shadow:0 40px 100px -30px rgba(0,0,0,0.7);
}
.modal-overlay.open .modal-box{ transform:translateY(0) scale(1); }
.modal-header{
  padding:28px 30px 0;
  display:flex; justify-content:space-between; align-items:flex-start; gap:20px;
}
.modal-close{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line); background:rgba(255,255,255,0.05);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  color:var(--text);
}
.modal-close:hover{ border-color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.12); }
.modal-cover{
  margin:22px 30px 0;
  aspect-ratio:16/7;
  border-radius:var(--radius-md);
  background:var(--aurora);
  opacity:0.85;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:rgba(10,10,13,0.85);
  text-align:center; padding:20px;
}
.modal-body{ padding:26px 30px 34px; }
.modal-tag{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-2); font-weight:700; }
.modal-title{ font-size:24px; font-weight:700; margin-top:10px; letter-spacing:-0.015em; }
.modal-author{ font-size:14px; color:var(--muted); margin-top:6px; }
.modal-meta-row{ display:flex; gap:18px; margin-top:16px; flex-wrap:wrap; }
.modal-meta-row div{ font-size:12px; color:var(--muted-2); }
.modal-meta-row strong{ display:block; color:var(--text); font-size:13px; margin-bottom:2px; }
.modal-section{ margin-top:22px; }
.modal-section h5{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted-2); margin-bottom:10px; }
.modal-section p{ font-size:14.5px; color:var(--muted); line-height:1.7; }
.modal-chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.modal-chip-row span{ font-size:12px; padding:6px 12px; border-radius:var(--radius-pill); background:rgba(255,255,255,0.08); color:var(--text); font-weight:600; }
.modal-related{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.modal-related span{ font-size:12.5px; padding:8px 14px; border-radius:var(--radius-pill); border:1px solid var(--line); color:var(--muted); }
.modal-actions{ margin-top:26px; display:flex; gap:12px; flex-wrap:wrap; }

/* Tooltip */
.tooltip{
  position:absolute;
  background:rgba(255,255,255,0.95);
  padding:7px 12px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  color:#0A0A0D;
  pointer-events:none;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .2s ease, transform .2s ease;
  z-index:400;
  white-space:nowrap;
}
.tooltip.show{ opacity:1; transform:translateY(0); }

/* Counters visually hidden helper */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Responsive nav collapse */
@media (max-width: 980px){
  .main-nav{ display:none; }
  .header-actions .btn-primary{ display:none; }
  .hamburger{ display:flex; }
  .hero-stats{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px){
  .section{ padding:90px 0; }
  .hero{ padding:150px 0 70px; }
  .researchers-grid{ grid-template-columns:repeat(2,1fr); }
  .orb{ filter:blur(60px); opacity:0.4; }
}
