/* ==========================================================================
   Dreamnara — corporate site
   ========================================================================== */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../vendor/fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../vendor/fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../vendor/fonts/inter-tight-variable.woff2') format('woff2-variations'),
       url('../vendor/fonts/inter-tight-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-0: #050506;
  --ink-1: #0a0b0d;
  --ink-2: #111317;
  --ink-3: #1a1d22;
  --line: rgba(236, 232, 225, 0.09);
  --line-strong: rgba(236, 232, 225, 0.18);
  --text: #ece8e1;
  --text-soft: rgba(236, 232, 225, 0.72);
  --text-mute: rgba(236, 232, 225, 0.5);
  --bronze: #c3926a;
  --bronze-soft: #a7795a;
  --sapphire: #6f93ff;
  --sapphire-deep: #2c4aa8;

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1440px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--ink-0);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

::selection { background: rgba(111, 147, 255, 0.35); color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--ink-0);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* --------------------------------------------------------------------------
   Stage (fixed 3D canvas + overlays)
   -------------------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% 40%, #0d1018 0%, var(--ink-0) 60%);
}

.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}
.has-webgl .stage__canvas.is-ready { opacity: 1; }

.stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 110% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.55) 0%, transparent 14%, transparent 86%, rgba(5, 5, 6, 0.6) 100%);
}

.stage__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Darken the stage as the visitor reaches the contact section and footer. */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-0);
  opacity: var(--stage-dim, 0);
}

/* CSS fallback when WebGL is unavailable (and before the scene is ready). */
.stage__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 1.2s var(--ease-out);
}
.has-webgl.scene-ready .stage__fallback { opacity: 0; }

.fallback-core {
  position: absolute;
  left: 68%;
  top: 50%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.fallback-core > span { position: absolute; border-radius: 50%; }
.fallback-core__halo {
  inset: -30%;
  background: radial-gradient(circle, rgba(111, 147, 255, 0.12) 0%, rgba(195, 146, 106, 0.06) 30%, transparent 62%);
}
.fallback-core__ring {
  inset: 0;
  border: 1px solid rgba(236, 232, 225, 0.22);
  box-shadow: inset 0 0 0 6px rgba(140, 145, 152, 0.06), 0 0 40px rgba(111, 147, 255, 0.05);
}
.fallback-core__ring--a { transform: rotateX(72deg) rotateZ(10deg); border-color: rgba(195, 146, 106, 0.45); }
.fallback-core__ring--b { inset: 7%; transform: rotateY(68deg) rotateZ(-24deg); }
.fallback-core__ring--c { inset: 14%; transform: rotateX(58deg) rotateY(38deg); border-color: rgba(111, 147, 255, 0.35); }
.fallback-core__glass {
  inset: 28%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(40, 52, 80, 0.4), rgba(10, 12, 18, 0.85) 70%);
  border: 1px solid rgba(236, 232, 225, 0.16);
  box-shadow: inset 0 -20px 40px rgba(111, 147, 255, 0.12), inset 0 10px 30px rgba(255, 255, 255, 0.05);
}
.fallback-core__seed {
  inset: 42%;
  background: radial-gradient(circle, #fff6ea 0%, #e6b48a 30%, rgba(111, 147, 255, 0.4) 65%, transparent 72%);
  filter: blur(1px);
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--ink-0);
  transition: opacity 1.1s var(--ease-inout), visibility 0s linear 1.1s;
}
.js.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; gap: 18px; justify-items: center; }
.loader__word {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-left: 0.5em;
}
.loader__bar {
  width: 140px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--sapphire));
  transform-origin: left;
  transform: scaleX(var(--load, 0.08));
  transition: transform 0.6s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(5, 5, 6, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand__mark { width: 28px; height: 28px; overflow: visible; }
.brand__seed { fill: var(--text); opacity: 0.92; }
.brand__orbit { fill: none; stroke: var(--text); stroke-width: 1; opacity: 0.55; }
.brand__orbit--b { stroke: var(--bronze); opacity: 0.8; }
.brand__node { fill: var(--sapphire); }
.brand__word {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  transition: color 0.3s ease;
}
.nav__idx {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active .nav__idx { color: var(--bronze); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.nav__cta:hover { background: var(--text); color: var(--ink-0); border-color: var(--text); }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--text);
  transition: transform 0.45s var(--ease-out);
}
.nav__toggle-line--a { top: 18px; }
.nav__toggle-line--b { top: 25px; }
.nav__toggle[aria-expanded='true'] .nav__toggle-line--a { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-line--b { transform: translateY(-3.5px) rotate(-45deg); }

.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.nav__progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--text) 50%, var(--sapphire));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

/* Section rail */
.rail {
  position: fixed;
  right: max(18px, calc(var(--gutter) * 0.35));
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
}
.rail__list { display: grid; gap: 14px; }
.rail__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
.rail__item::after {
  content: '';
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transition: width 0.5s var(--ease-out), opacity 0.4s ease;
}
.rail__item span { opacity: 0; transform: translateX(6px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.rail__item.is-active { color: var(--text); }
.rail__item.is-active::after { width: 34px; opacity: 1; }
.rail__item.is-active span { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  background: linear-gradient(100deg, #f1ddc6 0%, var(--bronze) 45%, #9fb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero__title { font-size: clamp(3rem, 7.4vw, 7.6rem); }
.h2 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }

.lede {
  max-width: 34em;
  text-shadow: 0 1px 18px rgba(5, 5, 6, 0.65);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 350;
}
.body {
  max-width: 36em;
  color: var(--text-mute);
  font-size: 15.5px;
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow__line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
}
.kicker__idx {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--bronze);
  border: 1px solid rgba(195, 146, 106, 0.35);
  border-radius: 999px;
}

.caption {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 28px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s ease, transform 0.45s var(--ease-out);
}
.btn--primary { background: var(--text); color: var(--ink-0); }
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, #f3e3d1, var(--bronze) 55%, #8fa9ff);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.btn--primary:hover::before { opacity: 1; }
.btn__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 0.5s var(--ease-out); }
.btn--primary:hover .btn__icon { transform: translateY(2px); }

.btn--ghost {
  background: rgba(236, 232, 225, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(236, 232, 225, 0.5); background: rgba(236, 232, 225, 0.06); }
.btn--small { height: 44px; padding: 0 20px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

main { position: relative; z-index: 1; }

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 9vh) 0 12vh;
}

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.split--right .panel { grid-column: 7 / span 6; }
.split--left .panel { grid-column: 1 / span 6; }
.panel { display: grid; gap: 28px; align-content: start; }
.panel--wide { gap: 28px; }
.split--right .panel--wide { grid-column: 6 / span 7; }

/* Hero */
.hero { padding-bottom: 0; justify-content: flex-start; }
.hero__grid { flex: 1; display: flex; align-items: center; }
.hero__copy { display: grid; gap: 32px; max-width: 54rem; width: 62%; }
.hero__lede { max-width: 28em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-top: 32px;
  padding-bottom: 32px;
}
.caption--right { text-align: right; }
.hero__scroll {
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-left: 0.32em;
}
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 52px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--text));
  animation: scroll-cue 2.4s var(--ease-inout) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* Vision principles */
.principles {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principle__idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--bronze);
  line-height: 1.3;
}
.principle__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.principle__text { color: var(--text-mute); font-size: 15px; line-height: 1.6; text-shadow: 0 1px 14px rgba(5, 5, 6, 0.8); }

/* Ecosystem portfolio */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 12px;
}
.product__card {
  position: relative;
  display: grid;
  gap: 18px;
  height: 100%;
  padding: 30px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(236, 232, 225, 0.07), rgba(236, 232, 225, 0.015) 40%, rgba(10, 11, 13, 0.4)),
    rgba(10, 11, 14, 0.5);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  overflow: hidden;
  transition: border-color 0.5s ease, transform 0.6s var(--ease-out);
}
.product__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(236, 232, 225, 0.35), transparent 35%, transparent 65%, var(--accent, var(--sapphire)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.product__card::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  right: -110px; top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow, rgba(111, 147, 255, 0.28)), transparent 65%);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out), opacity 0.6s ease;
}
.product--live .product__card:hover { transform: translateY(-4px); }
.product--live .product__card:hover::before { opacity: 1; }
.product--live .product__card:hover::after { transform: scale(1.25); }

.product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__idx { font-size: 11px; letter-spacing: 0.2em; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.product__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.35);
}
.product__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--sapphire));
  box-shadow: 0 0 10px var(--accent, var(--sapphire));
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.product__category { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); }
.product__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.01em; }
.product__desc { color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.product__domain { font-size: 12.5px; color: var(--text-mute); letter-spacing: 0.02em; }
.product__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.product__link-icon {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.product__link-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.5s var(--ease-out); }
.product__link:hover .product__link-icon { background: var(--text); color: var(--ink-0); border-color: var(--text); }
.product__link:hover .product__link-icon svg { transform: translate(1px, -1px); }
/* Make the whole card clickable while keeping a single, labelled link. */
.product__link::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }

.product--future .product__card {
  background: rgba(10, 11, 14, 0.25);
  border-style: dashed;
  border-color: rgba(236, 232, 225, 0.14);
  align-content: space-between;
  min-height: 220px;
}
.product--future .product__card::before,
.product--future .product__card::after { display: none; }
.product--future .product__name { font-size: clamp(1.7rem, 2.2vw, 2.1rem); color: var(--text-soft); font-style: italic; }
.product--future .product__head { display: grid; gap: 12px; }
.product--future .product__desc { color: var(--text-mute); font-size: 14.5px; }

/* About facts */
.facts { display: grid; border-top: 1px solid var(--line); margin-top: 6px; }
.facts__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); padding-top: 3px; }
.facts dd { font-size: 15.5px; color: var(--text); }

/* Contact */
.contact { text-align: center; min-height: 92vh; }
.contact__inner { display: grid; justify-items: center; gap: 30px; }
.kicker--center { justify-content: center; }
.contact__title { font-size: clamp(2.8rem, 7vw, 7.2rem); max-width: 12ch; }
.contact__lede { margin: 0 auto; text-align: center; }
.contact__actions { display: grid; justify-items: center; gap: 22px; padding-top: 10px; }
.contact__email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.contact__email::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), var(--text), var(--sapphire));
  transform: scaleX(0.35);
  transition: transform 0.8s var(--ease-out);
}
.contact__email:hover::after, .contact__email:focus-visible::after { transform: scaleX(1); }
.contact__arrow { flex: none; width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.6s var(--ease-out); }
.contact__email:hover .contact__arrow { transform: translate(3px, -3px); }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 72px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.6), var(--ink-0) 40%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__note { max-width: 26em; color: var(--text-mute); font-size: 14px; }
.footer__heading {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 14.5px; color: var(--text-soft); transition: color 0.3s ease; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--text); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer__top:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Reveal animations (only when JS is running)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for italic overhang and descenders */
  padding: 0.04em 0.08em 0.12em 0.02em;
  margin: -0.04em -0.08em -0.12em -0.02em;
}
.js [data-split] .w__i {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--delay, 0s));
}
.js [data-split].is-visible .w__i { transform: none; }

/* Gradient text must sit on the inner span when headings are split. */
.js .display em .w__i {
  background: linear-gradient(100deg, #f1ddc6 0%, var(--bronze) 45%, #9fb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .display em { background: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav__cta { display: none; }
  .split--right .panel, .split--right .panel--wide { grid-column: 5 / span 8; }
  .split--left .panel { grid-column: 1 / span 8; }
  .hero__copy { width: 74%; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .rail { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: center;
    padding: var(--nav-h) var(--gutter) 40px;
    background: rgba(5, 5, 6, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out); }
  .nav.is-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link {
    padding: 14px 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    gap: 18px;
  }
  .nav__link::after { display: none; }
  .nav__idx { font-family: var(--sans); font-size: 11px; }

  .section { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 88px; }
  .hero { min-height: 100vh; min-height: 100svh; padding-top: 40svh; padding-bottom: 0; }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, transparent 30%, rgba(5, 5, 6, 0.6) 46%, rgba(5, 5, 6, 0.78) 100%);
    pointer-events: none;
  }
  .hero__grid { align-items: center; }
  .hero__lede { font-size: 1rem; }
  .hero__copy { width: 100%; gap: 22px; }
  .hero__foot { grid-template-columns: 1fr auto; padding-top: 24px; padding-bottom: 24px; }
  .hero__foot .caption--right { display: none; }

  .split { display: block; }
  .panel {
    padding: 28px 22px;
    margin: 0 -6px;
    border-radius: 22px;
    background: linear-gradient(170deg, rgba(14, 16, 20, 0.72), rgba(7, 8, 10, 0.78));
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .vision, .about { padding-top: 46vh; }
  .ecosystem { padding-top: 38vh; }
  .contact { min-height: 100svh; padding-top: 46svh; justify-content: flex-start; }
  .contact__inner { padding-bottom: 4vh; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  .h2 { font-size: clamp(2.3rem, 10.4vw, 3rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .contact__actions .btn { width: auto; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.22em; }
  .eyebrow__line { width: 28px; }
  .product__card { padding: 24px 22px; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .principle { grid-template-columns: 34px 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .fallback-core { width: 82vw; left: 50%; top: 30%; }
}

@media (max-width: 860px) and (min-width: 521px) {
  .fallback-core { width: 62vw; left: 50%; top: 30%; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@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;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-split] .w__i { opacity: 1; transform: none; }
  .hero__scroll-line::after { display: none; }
}

@media (forced-colors: active) {
  .display em, .js .display em .w__i { color: CanvasText; background: none; }
  .stage { display: none; }
}
