:root {
  --bg: #050708;
  --bg-soft: #0a0d0f;
  --panel: #0e1215;
  --panel-2: #11171b;
  --text: #f4f6f7;
  --muted: #9da8ae;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #9bc7df;
  --accent-bright: #d8effc;
  --max: 1200px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: rgba(155,199,223,.28); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 120px 0; position: relative; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 14px; border-radius: 8px; background: white; color: black;
  transform: translateY(-150%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(5,7,8,.82); border-color: var(--line); backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.brand img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 32px; color: #d8dde0; font-size: 14px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: white; }
.nav-cta { border: 1px solid var(--line-strong); padding: 10px 18px; border-radius: 999px; }
.nav-cta:hover { border-color: rgba(255,255,255,.48); }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: white; margin: 7px auto; transition: transform .2s ease; }

.hero { min-height: 900px; height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.08); transform: scale(1.02); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,8,.96) 0%, rgba(5,7,8,.75) 40%, rgba(5,7,8,.22) 72%, rgba(5,7,8,.44) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%, rgba(5,7,8,.2) 100%);
}
.flow-grid {
  position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}
.hero-content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 58px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 700; }
.hero h1 { margin: 0; max-width: 950px; font-size: clamp(48px, 7vw, 94px); line-height: .98; letter-spacing: -.052em; font-weight: 520; }
.hero h1 span { color: #aab4b9; }
.hero-copy { max-width: 690px; margin: 30px 0 0; font-size: clamp(17px, 2vw, 21px); color: #c4ccd0; }
.hero-copy strong { color: white; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 23px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 650; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: white; color: #080a0b; }
.button-primary:hover { background: var(--accent-bright); }
.button-ghost { border-color: var(--line-strong); background: rgba(0,0,0,.14); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: rgba(255,255,255,.5); }
.metric-strip {
  margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.metric-strip div { display: grid; gap: 5px; }
.metric-strip strong { font-size: 24px; letter-spacing: -.03em; font-weight: 560; }
.metric-strip span { color: var(--muted); font-size: 12px; }

.signal-band { overflow: hidden; border-block: 1px solid var(--line); background: #070a0b; padding: 16px 0; }
.signal-track { width: max-content; display: flex; align-items: center; gap: 28px; animation: ticker 34s linear infinite; color: #b9c1c5; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
.signal-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-43%); } }

.split-intro { display: grid; grid-template-columns: 1.1fr .8fr; gap: 110px; align-items: end; margin-bottom: 64px; }
.section-heading h2, .sticky-heading h2, .vision-card h2, .contact-copy h2 {
  margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.045em; font-weight: 520;
}
.section-heading > p:last-child, .sticky-heading > p:last-child { color: var(--muted); max-width: 600px; }
.section-copy { color: #c3cbcf; font-size: 18px; }
.section-copy p { margin: 0 0 15px; }
.muted { color: var(--muted); font-size: 14px; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature-card {
  grid-column: span 4; min-height: 390px; padding: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s ease, border-color .3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(155,199,223,.35); }
.feature-large { grid-column: span 8; min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.feature-wide { grid-column: span 8; min-height: 330px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; }
.card-index { position: absolute; top: 25px; left: 30px; color: #6f7a80; font-size: 11px; letter-spacing: .16em; }
.feature-card h3 { margin: 9px 0 10px; font-size: 26px; line-height: 1.12; letter-spacing: -.025em; font-weight: 560; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card .tag { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; }
.line-icon { height: 145px; display: grid; place-items: center; margin-bottom: 22px; }
.line-icon svg { width: 90px; fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .75; }
.feature-visual { height: 290px; position: relative; }
.octree-visual { perspective: 800px; }
.cube { position: absolute; border: 1px solid rgba(155,199,223,.45); box-shadow: inset 0 0 30px rgba(155,199,223,.035); transform: rotateX(58deg) rotateZ(45deg); }
.cube-a { width: 190px; height: 190px; left: 48px; top: 45px; }
.cube-b { width: 96px; height: 96px; left: 4px; top: 30px; }
.cube-c { width: 96px; height: 96px; left: 103px; top: -20px; }
.cube-d { width: 96px; height: 96px; left: 105px; top: 80px; }
.multigrid-stack { display: grid; justify-items: center; align-items: center; gap: 9px; }
.multigrid-stack span { display: block; height: 25px; border: 1px solid rgba(155,199,223,.4); border-radius: 4px; background: rgba(155,199,223,.035); }
.multigrid-stack span:nth-child(1) { width: 210px; }
.multigrid-stack span:nth-child(2) { width: 165px; }
.multigrid-stack span:nth-child(3) { width: 122px; }
.multigrid-stack span:nth-child(4) { width: 78px; }
.multigrid-stack span:nth-child(5) { width: 34px; background: rgba(155,199,223,.25); }

.technology-section { background: #080b0d; border-block: 1px solid var(--line); }
.technology-layout { display: grid; grid-template-columns: .8fr 1.15fr; gap: 120px; align-items: start; }
.sticky-heading { position: sticky; top: 130px; }
.tech-list { border-top: 1px solid var(--line); }
.tech-row { display: grid; grid-template-columns: 60px 1fr; gap: 25px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.tech-row > span { color: #647077; font-size: 11px; letter-spacing: .14em; padding-top: 7px; }
.tech-row h3 { margin: 0 0 9px; font-size: 25px; font-weight: 540; letter-spacing: -.02em; }
.tech-row p { margin: 0; max-width: 630px; color: var(--muted); }

.vision-section { padding-top: 40px; }
.vision-card {
  border: 1px solid var(--line); border-radius: 32px; padding: 60px;
  background: radial-gradient(circle at 85% 30%, rgba(83,139,171,.17), transparent 35%), linear-gradient(120deg, #0d1215, #080a0c);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: end; min-height: 430px;
}
.vision-card p:last-child { margin: 0; color: #bbc4c8; font-size: 20px; }

.centered { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.centered > p:last-child { margin-inline: auto; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.case-art { height: 290px; border-radius: 18px; overflow: hidden; position: relative; margin-bottom: 21px; background: #0d1114; border: 1px solid rgba(255,255,255,.06); }
.case-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; }
.case-art span { position: absolute; display: block; border: 1px solid rgba(155,199,223,.42); border-radius: 50%; }
.case-a span:nth-child(1) { width: 430px; height: 110px; left: -55px; top: 70px; transform: rotate(-8deg); }
.case-a span:nth-child(2) { width: 380px; height: 80px; left: -20px; top: 105px; transform: rotate(7deg); }
.case-a span:nth-child(3) { width: 330px; height: 50px; left: 20px; top: 140px; transform: rotate(-4deg); }
.case-b span { border-radius: 0; border-width: 0 0 1px; width: 140%; height: 70px; left: -20%; }
.case-b span:nth-child(1) { top: 45px; transform: rotate(8deg); }
.case-b span:nth-child(2) { top: 105px; transform: rotate(-5deg); }
.case-b span:nth-child(3) { top: 165px; transform: rotate(12deg); }
.case-c::before { content: ""; position: absolute; width: 150px; height: 90px; border: 1px solid rgba(155,199,223,.6); border-radius: 60% 35% 55% 30%; left: 105px; top: 95px; transform: rotate(-18deg); box-shadow: 0 0 60px rgba(155,199,223,.06); }
.case-c span { width: 280px; height: 70px; left: 40px; border-width: 1px 0 0; }
.case-c span:nth-child(1) { top: 45px; }
.case-c span:nth-child(2) { top: 170px; }
.case-c span:nth-child(3) { top: 210px; }
.case-meta { display: flex; justify-content: space-between; color: #77838a; text-transform: uppercase; font-size: 10px; letter-spacing: .15em; }
.case-card h3 { font-size: 25px; margin: 12px 0 8px; font-weight: 550; letter-spacing: -.02em; }
.case-card p { margin: 0; color: var(--muted); }

.team-section { background: #080b0d; border-block: 1px solid var(--line); }
.team-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; }
.founder-card { display: grid; grid-template-columns: 230px 1fr; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #0c1012; }
.founder-visual { min-height: 360px; background: radial-gradient(circle, rgba(155,199,223,.12), transparent 55%), #050708; display: grid; place-items: center; }
.founder-visual img { width: 205px; height: 205px; object-fit: cover; }
.founder-copy { padding: 44px; align-self: center; }
.founder-copy .role { color: var(--accent); text-transform: uppercase; letter-spacing: .17em; font-size: 10px; margin: 0 0 14px; }
.founder-copy h3 { font-size: 34px; margin: 0 0 12px; letter-spacing: -.03em; font-weight: 560; }
.founder-copy > p { color: #b7c0c4; }
.founder-copy > span { display: inline-block; margin-top: 16px; color: #7e8a90; font-size: 13px; }

.contact-section { padding-bottom: 80px; }
.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 70px; border-radius: 32px; background: linear-gradient(135deg, #11181c, #080b0d 70%); border: 1px solid rgba(155,199,223,.22); box-shadow: var(--shadow); }
.contact-copy > p:nth-of-type(2) { color: #bbc4c8; font-size: 18px; max-width: 500px; }
.contact-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.contact-points span { border: 1px solid var(--line); padding: 8px 11px; border-radius: 999px; color: #8f9ba1; font-size: 11px; }
.contact-form { display: grid; gap: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: grid; gap: 8px; color: #bac2c6; font-size: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; color: white; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(155,199,223,.55); background: rgba(255,255,255,.055); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .button { justify-self: start; margin-top: 4px; }
.form-note { margin: -5px 0 0; color: #657178; font-size: 11px; }

.site-footer { border-top: 1px solid var(--line); padding: 70px 0 24px; background: #040607; }
.footer-grid { display: grid; grid-template-columns: 1.8fr .7fr .7fr; gap: 70px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid > div:first-child p { color: #727e84; }
.footer-links { display: grid; align-content: start; gap: 13px; color: #9ca7ac; font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 65px; padding-top: 22px; border-top: 1px solid var(--line); color: #59646a; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Legal pages */
.legal-body { min-height: 100vh; }
.legal-hero { padding: 170px 0 60px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0; font-size: clamp(46px, 7vw, 80px); letter-spacing: -.05em; font-weight: 520; }
.legal-content { max-width: 820px; padding: 70px 0 120px; }
.legal-content h2 { margin: 45px 0 12px; font-size: 25px; font-weight: 560; }
.legal-content p, .legal-content li { color: #aab4b9; }
.placeholder { border-left: 2px solid var(--accent); background: rgba(155,199,223,.06); padding: 18px 20px; border-radius: 0 12px 12px 0; }

@media (max-width: 980px) {
  .section { padding: 90px 0; }
  .site-nav { gap: 20px; }
  .split-intro, .technology-layout, .team-layout, .contact-panel, .vision-card { grid-template-columns: 1fr; gap: 55px; }
  .sticky-heading { position: static; }
  .feature-card { grid-column: span 6; }
  .feature-large, .feature-wide { grid-column: span 12; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 9px); }
  .founder-card { max-width: 760px; }
  .contact-panel { padding: 50px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-toggle { display: block; position: relative; z-index: 3; }
  .site-nav {
    position: fixed; inset: 0; background: rgba(5,7,8,.98); display: flex; flex-direction: column; justify-content: center; gap: 26px;
    font-size: 22px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .nav-cta { border: 0; padding: 0; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { min-height: 860px; height: auto; }
  .hero-media > img { object-position: 57% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,7,8,.93), rgba(5,7,8,.55)), linear-gradient(0deg, var(--bg), transparent 48%); }
  .hero-content { padding-top: 150px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(46px, 14vw, 70px); }
  .hero-copy { font-size: 17px; }
  .metric-strip { grid-template-columns: 1fr 1fr; margin-top: 55px; }
  .split-intro { gap: 35px; }
  .bento-grid { display: block; }
  .feature-card, .feature-large, .feature-wide { display: flex; min-height: 370px; margin-bottom: 14px; }
  .feature-large { min-height: 520px; }
  .feature-wide { min-height: 420px; }
  .multigrid-stack { margin-top: 30px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card:last-child { grid-column: auto; max-width: none; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-visual { min-height: 260px; }
  .founder-copy { padding: 32px; }
  .contact-panel { padding: 34px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

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


/* Teaser-only homepage */
.teaser-nav-wrap { justify-content: space-between; }
.teaser-nav { gap: 18px; }
.teaser-hero { min-height: 100svh; }
.teaser-hero-content {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.teaser-copy {
  max-width: 760px;
}
.teaser-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.teaser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.teaser-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
@media (max-width: 760px) {
  .teaser-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Light theme + toggle for teaser website */
:root[data-theme="light"] {
  --bg: #f7f9fb;
  --bg-soft: #eef3f6;
  --panel: #ffffff;
  --panel-2: #f8fbfd;
  --text: #0f1720;
  --muted: #5c6973;
  --line: rgba(15, 23, 32, 0.10);
  --line-strong: rgba(15, 23, 32, 0.18);
  --accent: #4f7e9b;
  --accent-bright: #d8effc;
  --shadow: 0 24px 80px rgba(15,23,32,.08);
}
body.teaser-page { background: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 8px 6px 10px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.68); color: var(--text);
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(15,23,32,.06);
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(79,126,155,.28); background: rgba(255,255,255,.88); }
.theme-toggle-track {
  width: 50px; height: 28px; border-radius: 999px; position: relative; background: linear-gradient(180deg, #f3f6f9, #e7edf2);
  border: 1px solid rgba(15,23,32,.08); display: inline-flex; align-items: center; justify-content: space-between; padding: 0 6px;
}
.theme-icon { width: 12px; height: 12px; stroke: #6a7882; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon.sun { fill: rgba(250,194,70,.15); }
.theme-icon.moon { fill: rgba(79,126,155,.12); }
.theme-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 4px 10px rgba(15,23,32,.18); transition: transform .25s ease, background .25s ease;
}
.theme-toggle-label { font-size: 12px; font-weight: 650; letter-spacing: .02em; }
:root[data-theme="dark"] .theme-toggle {
  background: rgba(8,11,13,.78); border-color: rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
:root[data-theme="dark"] .theme-toggle:hover { border-color: rgba(155,199,223,.28); background: rgba(12,16,18,.95); }
:root[data-theme="dark"] .theme-toggle-track { background: linear-gradient(180deg, #12181c, #0a0d10); border-color: rgba(255,255,255,.10); }
:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(22px); background: #dce6ed; }
:root[data-theme="dark"] .theme-icon { stroke: #9cb4c3; }

:root[data-theme="light"] body { background: var(--bg); color: var(--text); }
:root[data-theme="light"] .site-header.scrolled { background: rgba(247,249,251,.82); border-color: var(--line); backdrop-filter: blur(18px); }
:root[data-theme="light"] .site-nav { color: #4d5a64; }
:root[data-theme="light"] .site-nav a:hover,
:root[data-theme="light"] .site-nav a.active { color: #0f1720; }
:root[data-theme="light"] .nav-cta:hover { border-color: rgba(15,23,32,.30); background: rgba(255,255,255,.7); }
:root[data-theme="light"] .hero-media > img { filter: saturate(.92) contrast(1.02) brightness(1.03); }
:root[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(247,249,251,.97) 0%, rgba(247,249,251,.88) 40%, rgba(247,249,251,.58) 72%, rgba(247,249,251,.72) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(247,249,251,.38) 35%, rgba(247,249,251,.12) 100%);
}
:root[data-theme="light"] .flow-grid {
  opacity: .35;
  background-image: linear-gradient(rgba(15,23,32,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,32,.05) 1px, transparent 1px);
}
:root[data-theme="light"] .eyebrow { color: var(--accent); }
:root[data-theme="light"] .hero h1 span { color: #61707b; }
:root[data-theme="light"] .hero-copy { color: #48555e; }
:root[data-theme="light"] .hero-copy strong { color: #0f1720; }
:root[data-theme="light"] .button-primary { background: #0f1720; color: #ffffff; }
:root[data-theme="light"] .button-primary:hover { background: #1d2a36; }
:root[data-theme="light"] .button-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.72); backdrop-filter: blur(10px); }
:root[data-theme="light"] .button-ghost:hover { border-color: rgba(15,23,32,.24); background: rgba(255,255,255,.94); }
:root[data-theme="light"] .teaser-note, :root[data-theme="light"] .teaser-footer, :root[data-theme="light"] .legal-content p, :root[data-theme="light"] .legal-content li { color: var(--muted); }
:root[data-theme="light"] .legal-hero { background: linear-gradient(180deg, #f7f9fb, #eef3f6); border-bottom: 1px solid var(--line); }
:root[data-theme="light"] .site-footer { background: #eef3f6; }
:root[data-theme="light"] .footer-bottom { color: #6b7881; }
:root[data-theme="light"] .placeholder { border-left: 2px solid var(--accent); background: rgba(79,126,155,.08); padding: 18px 20px; border-radius: 0 12px 12px 0; }

@media (max-width: 760px) {
  .nav-actions { gap: 8px; }
  .theme-toggle { min-height: 40px; padding-inline: 8px 9px; }
  .theme-toggle-label { display: none; }
}


/* Robust hero/header separation across browser aspect ratios */
:root {
  --teaser-header-height: 78px;
  --teaser-hero-gap: clamp(48px, 9vh, 96px);
  --teaser-min-height: 720px;
}

.site-header {
  isolation: isolate;
}
.teaser-nav-wrap {
  position: relative;
  z-index: 2;
}
.teaser-nav-wrap .brand,
.teaser-nav-wrap .nav-actions {
  flex: 0 0 auto;
}

.teaser-hero {
  height: auto;
  min-height: max(100svh, var(--teaser-min-height));
  align-items: stretch;
}
.teaser-hero-content {
  min-height: max(100svh, var(--teaser-min-height));
  padding-top: calc(var(--teaser-header-height) + var(--teaser-hero-gap));
  padding-bottom: clamp(28px, 5vh, 58px);
  justify-content: space-between;
}
.teaser-copy {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.teaser-footer {
  flex: 0 0 auto;
  margin-top: clamp(44px, 8vh, 104px);
}

/* Short, wide laptop/browser windows: shrink the content instead of moving it behind the header. */
@media (min-width: 761px) and (max-height: 800px) {
  :root {
    --teaser-hero-gap: 34px;
    --teaser-min-height: 680px;
  }
  .teaser-copy .eyebrow {
    margin-bottom: 14px;
  }
  .teaser-copy h1 {
    font-size: clamp(46px, 6.2vw, 74px);
    line-height: .98;
  }
  .teaser-copy .hero-copy {
    max-width: 650px;
    margin-top: 22px;
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.55;
  }
  .teaser-copy .hero-actions {
    margin-top: 26px;
  }
  .teaser-note {
    margin-top: 12px;
  }
  .teaser-footer {
    margin-top: 34px;
    padding-top: 18px;
  }
}

@media (min-width: 761px) and (max-height: 650px) {
  :root {
    --teaser-hero-gap: 24px;
    --teaser-min-height: 640px;
  }
  .teaser-copy h1 {
    font-size: clamp(42px, 5.7vw, 64px);
  }
  .teaser-copy .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }
  .teaser-copy .hero-actions {
    margin-top: 22px;
  }
  .teaser-footer {
    margin-top: 26px;
  }
}

@media (max-width: 760px) {
  :root {
    --teaser-header-height: 72px;
    --teaser-hero-gap: 44px;
    --teaser-min-height: 760px;
  }
  .teaser-hero-content {
    padding-top: calc(var(--teaser-header-height) + var(--teaser-hero-gap));
    padding-bottom: 24px;
  }
  .teaser-footer {
    margin-top: 46px;
  }
}

/* Keep the brand and controls from colliding in narrow browser widths. */
@media (max-width: 520px) {
  .teaser-nav-wrap {
    min-height: var(--teaser-header-height);
  }
  .brand {
    gap: 8px;
    font-size: 13px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-actions {
    gap: 6px;
  }
  .theme-toggle {
    min-height: 36px;
    padding: 4px 6px;
  }
  .theme-toggle-track {
    width: 44px;
    height: 25px;
  }
  .theme-toggle-thumb {
    width: 17px;
    height: 17px;
  }
  :root[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(19px);
  }
  .teaser-nav .nav-cta {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .brand span {
    max-width: 92px;
    line-height: 1.1;
  }
  .teaser-nav .nav-cta {
    display: none;
  }
}

/* Final legal-page content */
.legal-note {
  margin: 0 0 42px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(155,199,223,.08);
  color: var(--muted);
}
.legal-note strong { color: var(--text); }
.legal-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content code { padding: .12em .38em; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.045); font-size: .92em; }
.legal-footer-links { display: flex; align-items: center; gap: 20px; }
:root[data-theme="light"] .legal-note { background: rgba(79,126,155,.08); }
:root[data-theme="light"] .legal-content code { background: rgba(15,23,32,.04); }
@media (max-width: 620px) {
  .legal-footer-links { flex-wrap: wrap; gap: 12px 18px; }
}
