:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --ink: #eef1f8;
  --ink-dim: #9aa3b8;
  --ink-faint: #5b6276;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --cyan: #7dd3fc;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --magenta: #f0abfc;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-hi: rgba(255, 255, 255, 0.055);
  --radius: 22px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
  --maxw: 1340px;
  --grad: linear-gradient(120deg, var(--cyan), var(--teal) 40%, var(--violet) 80%);
  --grad-soft: linear-gradient(120deg, rgba(125,211,252,.16), rgba(167,139,250,.14));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(167, 139, 250, 0.10), transparent 60%),
    radial-gradient(45% 45% at 90% 90%, rgba(125, 211, 252, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* subtle edge vignette for depth */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
}

::selection { background: rgba(125, 211, 252, 0.3); color: #fff; }

/* global scrollbar */
html { scrollbar-color: rgba(125, 211, 252, 0.35) transparent; scrollbar-width: thin; }
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.2); border: 3px solid var(--bg); border-radius: 100px; }
body::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, 0.4); }

a { color: inherit; text-decoration: none; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Grain & cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; z-index: 1;
  border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(125, 211, 252, 0.10), transparent 60%);
  transition: opacity .4s; opacity: 0; will-change: transform;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 80;
  background: var(--grad); box-shadow: 0 0 14px rgba(125, 211, 252, 0.7);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; place-items: center; gap: 22px; }
.preloader__ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
.preloader__label { font-family: 'Space Grotesk', sans-serif; letter-spacing: .35em; font-size: 14px; color: var(--ink-dim); padding-left: .35em; }
.preloader__label span { color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 54px);
  transition: padding .4s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px clamp(20px, 5vw, 54px);
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px;
  letter-spacing: .14em; display: flex; align-items: center; gap: 12px;
}
.nav__deg { color: var(--teal); }
.nav__mark {
  width: 16px; height: 16px; border-radius: 5px; background: var(--grad);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.6); display: inline-block;
  animation: floatMark 5s ease-in-out infinite;
}
@keyframes floatMark { 50% { transform: translateY(-3px) rotate(8deg); } }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 14px; color: var(--ink-dim); font-weight: 400; position: relative;
  transition: color .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--grad); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { font-size: 13px; }
@media (max-width: 820px) { .nav__links, .nav__cta { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
  position: relative; will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn--primary {
  background: var(--grad); color: #04121a; font-weight: 600;
  box-shadow: 0 10px 40px -10px rgba(45, 212, 191, 0.6);
}
.btn--primary:hover { box-shadow: 0 16px 50px -8px rgba(45, 212, 191, 0.8); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: var(--glass); }
.btn--line:hover { border-color: var(--cyan); background: rgba(125, 211, 252, 0.08); }
.btn--ghost {
  border: 1px solid var(--line-strong); color: var(--ink); padding: 10px 20px;
  background: var(--glass);
}
.btn--ghost:hover { border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 0 clamp(20px, 5vw, 54px); z-index: 2; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(5,6,10,.78) 0%, rgba(5,6,10,.4) 40%, transparent 70%),
    radial-gradient(85% 85% at 50% 50%, transparent 50%, var(--bg) 94%);
}
.hero__content { max-width: 760px; position: relative; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px;
  color: var(--ink-dim); letter-spacing: .06em; margin-bottom: 30px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--glass); backdrop-filter: blur(8px);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }
.hero__title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--ink-dim); max-width: 560px; margin: 0 auto 38px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero__scroll-line { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line i { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--grad); animation: scrollDown 2.2s var(--ease) infinite; }
@keyframes scrollDown { 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; color: var(--ink-faint); letter-spacing: .04em; }
.marquee__track .dot { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 13vw, 170px) clamp(20px, 5vw, 54px); }
.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__index { font-family: 'Space Grotesk', sans-serif; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.section__index::before { content: ''; display: block; width: 44px; height: 3px; margin: 0 auto 20px; border-radius: 100px; background: var(--grad); }
.section__title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 22px; }
.section__sub { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-dim); max-width: 580px; margin: 0 auto; }

/* ---------- Science ---------- */
.science__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 80px; }
@media (max-width: 880px) { .science__grid { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 38px 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(10px); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), border-color .5s, background .5s, box-shadow .5s;
  will-change: transform;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 100% at 50% 0%, rgba(125, 211, 252, 0.1), transparent 60%);
}
/* light catching the top edge */
.card::after, .app::after {
  content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: .7; transition: opacity .5s, left .5s var(--ease), right .5s var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--glass-hi); transform: translateY(-5px); }
.card:hover::before { opacity: 1; }
.card:hover::after, .app:hover::after { left: 0; right: 0; opacity: 1; }
.card__num { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--teal); margin-bottom: 20px; letter-spacing: .02em; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--ink-dim); font-size: .98rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(10px); overflow: hidden;
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 44px 20px; border-right: 1px solid var(--line); transition: background .4s; }
.stat:last-child { border-right: none; }
.stat:hover { background: var(--glass-hi); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.stat__num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; line-height: 1; }
.stat__label { color: var(--ink-faint); font-size: .92rem; margin-top: 10px; }

/* ---------- Viewer ---------- */
.viewer__layout { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(34px, 5vw, 54px); }
.viewer__intro { max-width: 660px; }
.viewer__controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 32px 0 28px; }
.chip {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; cursor: pointer;
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line-strong);
  background: var(--glass); color: var(--ink-dim); transition: all .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--cyan); }
.chip.is-active { background: var(--grad); color: #04121a; font-weight: 600; border-color: transparent; box-shadow: 0 8px 30px -8px rgba(45,212,191,.6); }
.viewer__legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 26px; }
.viewer__legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-dim); }
.viewer__legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.viewer__toggle { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-dim); cursor: pointer; user-select: none; }
.viewer__toggle input { display: none; }
.viewer__switch { width: 42px; height: 24px; border-radius: 100px; background: var(--line-strong); position: relative; transition: background .3s; }
.viewer__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease); }
.viewer__toggle input:checked + .viewer__switch { background: var(--teal); }
.viewer__toggle input:checked + .viewer__switch::after { transform: translateX(18px); background: #04121a; }
.viewer__stage {
  position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background:
    radial-gradient(80% 80% at 50% 30%, rgba(45,212,191,.08), transparent 70%), var(--bg-soft);
  box-shadow: inset 0 0 80px rgba(0,0,0,.5), var(--shadow);
}
.viewer__stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.viewer__stage canvas:active { cursor: grabbing; }
.viewer__hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); pointer-events: none; }

/* ---------- Applications ---------- */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .apps { grid-template-columns: 1fr; } }
.app {
  position: relative; padding: 36px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.app::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 100% at 50% 0%, rgba(45, 212, 191, 0.12), transparent 60%);
}
.app:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--glass-hi); }
.app:hover::before { opacity: 1; }
.app > * { position: relative; }
.app__glyph { font-size: 2rem; color: var(--teal); margin-bottom: 20px; transition: transform .5s var(--ease); }
.app:hover .app__glyph { transform: rotate(180deg) scale(1.1); }
.app h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: 12px; }
.app p { color: var(--ink-dim); font-size: .94rem; margin-bottom: 22px; }
.app__tag { font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px; }

/* ---------- Intelligence / Chat ---------- */
.intelligence { position: relative; }
.intelligence__aura { position: absolute; top: 10%; left: 50%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; transform: translateX(-50%); background: radial-gradient(circle, rgba(167,139,250,.12), transparent 65%); pointer-events: none; z-index: -1; filter: blur(30px); }
.section__head + .chat { margin-top: 10px; }
.chat {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background: rgba(10, 12, 20, 0.75);
  backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
}
.chat__header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.chat__avatar { position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.chat__pulse { width: 12px; height: 12px; border-radius: 50%; background: #04121a; box-shadow: 0 0 0 0 rgba(4,18,26,.6); }
.chat__name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; }
.chat__status { font-size: .78rem; color: var(--ink-dim); display: flex; align-items: center; gap: 6px; }
.chat__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 2s infinite; }
.chat__stream { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; max-height: 440px; min-height: 220px; overflow-y: auto; scroll-behavior: smooth; }
.chat__stream::-webkit-scrollbar { width: 6px; }
.chat__stream::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.msg { display: flex; max-width: 84%; animation: msgIn .5s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; }
.msg__bubble { padding: 13px 18px; border-radius: 18px; font-size: .96rem; line-height: 1.55; }
.msg--bot .msg__bubble { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.msg--user .msg__bubble { background: var(--grad); color: #04121a; font-weight: 400; border-bottom-right-radius: 5px; }
.msg__bubble strong { font-weight: 600; }
.msg__bubble em { background: none; color: var(--teal); font-style: italic; }
.typing { display: flex; gap: 5px; padding: 16px 18px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }
.chat__suggestions { display: flex; gap: 10px; padding: 0 22px 16px; flex-wrap: wrap; }
.suggestion { font-size: .82rem; cursor: pointer; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-dim); transition: all .3s; }
.suggestion:hover { color: var(--ink); border-color: var(--cyan); background: rgba(125,211,252,.06); }
.chat__input { display: flex; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }
.chat__input input { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 100px; padding: 13px 20px; color: var(--ink); font-family: inherit; font-size: .95rem; outline: none; transition: border-color .3s; }
.chat__input input:focus { border-color: var(--cyan); }
.chat__send { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: none; cursor: pointer; background: var(--grad); color: #04121a; display: grid; place-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.chat__send:hover { transform: scale(1.08); box-shadow: 0 8px 30px -6px rgba(45,212,191,.7); }
.chat__send:disabled { opacity: .5; cursor: not-allowed; }
.intelligence__disclaimer { text-align: center; font-size: .82rem; color: var(--ink-faint); margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 70px clamp(20px, 5vw, 54px) 36px; max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer__brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .12em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 320px; }
.footer__brand p { width: 100%; font-family: 'Inter', sans-serif; font-weight: 300; font-size: .92rem; letter-spacing: 0; color: var(--ink-dim); margin-top: 14px; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.footer__col a { font-size: .92rem; color: var(--ink-dim); transition: color .3s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-faint); }
@media (max-width: 720px) {
  .footer__top { flex-direction: column; align-items: center; text-align: center; }
  .footer__brand { justify-content: center; max-width: none; }
  .footer__cols { justify-content: center; gap: 40px; }
  .footer__col { align-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- Large desktops: use the available width ---------- */
@media (min-width: 1100px) {
  .hero__content { max-width: 940px; }
  .hero__title { font-size: clamp(3.6rem, 6.4vw, 7.2rem); }
  .hero__lead { max-width: 640px; font-size: 1.22rem; }
  .section { padding-left: clamp(40px, 6vw, 80px); padding-right: clamp(40px, 6vw, 80px); }
  .section__head { max-width: 840px; margin-bottom: 80px; }
  .science__grid { gap: 28px; }
  .apps { gap: 24px; }
}

/* 3D-Lab becomes two balanced columns on desktop so it fills the width */
@media (min-width: 1024px) {
  .viewer__layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center; text-align: left; gap: clamp(50px, 6vw, 96px);
  }
  .viewer__intro { max-width: 520px; }
  .viewer__intro .section__index::before { margin-left: 0; margin-right: 0; }
  .viewer__intro .section__sub { margin-left: 0; }
  .viewer__controls, .viewer__legend { justify-content: flex-start; }
  .viewer__stage { max-width: 640px; width: 100%; justify-self: end; }
}

@media (min-width: 1500px) {
  .hero__content { max-width: 1040px; }
  .hero__title { font-size: clamp(4rem, 6vw, 8rem); }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.hero__title .line[data-reveal] { transform: translateY(100%); }
.hero__title .line[data-reveal].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
