:root {
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --muted: #86868b;
  --rule: rgba(0, 0, 0, .1);
  --accent: #f5a524;
  --indigo: #5b6cff;
  --teal: #19b8a6;
  --grad: linear-gradient(90deg, #5b6cff, #19b8a6 55%, #f5a524);
  --dark: #000000;
  --dark-rule: rgba(255, 255, 255, .14);
  --dark-muted: #86868b;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, .84, .24, 1);
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(91, 108, 255, .2); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.dim { color: var(--muted); }
.dark .dim { color: #6e6e73; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--rule); }
.nav.on-dark { background: rgba(0, 0, 0, .72); border-bottom-color: var(--dark-rule); color: var(--paper); }
.nav.on-dark .btn--ink { background: var(--paper); color: var(--ink); }
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.mark { width: 26px; height: 26px; overflow: visible; }
.mark path { fill: none; stroke: url(#markGrad); stroke-width: 2.4; stroke-linecap: round; }
.mark circle { fill: var(--accent); }
.nav__links { display: flex; gap: 36px; font-size: 14px; }
.nav__links a { opacity: .7; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #3a3a3c; }
.btn--paper { background: var(--paper); color: var(--ink); height: 56px; padding: 0 26px; }
.btn--paper:hover { background: #e8e8ed; }
.btn--text { padding: 0 4px; height: auto; border-radius: 0; position: relative; }
.btn--text::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -4px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.0001); transition: transform .4s var(--ease); }
.btn--text:hover::after { transform: scaleX(1); }
.arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(2px, 2px); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; }
.hero__plot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; padding-top: 128px; padding-bottom: 56px; width: 100%; }
.hero__label { margin-bottom: 36px; color: var(--ink-2); font-size: 15px; }
.hero__title {
  font-weight: 600; font-size: clamp(42px, 8.6vw, 132px); line-height: .94; letter-spacing: -0.05em;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ln > span { display: inline-block; transform: translateY(105%); animation: up 1.2s var(--ease) forwards; }
.hero__title .ln:nth-child(2) > span { animation-delay: .1s; }
.hero__title .ln:nth-child(3) > span { animation-delay: .2s; }
@keyframes up { to { transform: none; } }
.hero__foot { margin-top: auto; padding-top: 48px; display: flex; flex-direction: column; gap: 28px; max-width: 460px; }
.hero__sub { font-size: 20px; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.012em; }
.hero__cta { display: flex; align-items: center; gap: 28px; }
.fade { opacity: 0; animation: fade 1.2s var(--ease) forwards; }
.hero__label.fade { animation-delay: .05s; }
.hero__foot.fade { animation-delay: .55s; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* plot primitives (hero + chart) */
.plot-grid line { stroke: var(--rule); stroke-width: 1; }
.plot-curve { fill: none; stroke: url(#plotGrad); stroke-width: 2.5; stroke-linecap: round; }
.plot-ghost { fill: none; stroke: var(--ink); stroke-opacity: .22; stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
.plot-tick { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; stroke-dasharray: 2 4; }
.plot-node { fill: var(--paper); stroke: var(--c, var(--ink)); stroke-width: 2; }
.plot-label { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--muted); }
.plot-dot { fill: var(--accent); }
.plot-halo { display: none; }

/* ---------- SECTIONS ---------- */
.sec { padding: 140px 0; }
.sec + .sec { padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.sec__idx { grid-column: 1 / span 3; align-self: start; padding-top: 18px; border-top: 1px solid var(--rule); width: 100%; }
.sec__idx span { color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.sec__body { grid-column: 4 / span 9; padding-top: 18px; border-top: 1px solid var(--rule); }
.display { text-wrap: balance; font-weight: 600; font-size: clamp(40px, 5.2vw, 80px); line-height: 1; letter-spacing: -0.045em; }
.display--xl { font-size: clamp(52px, 8vw, 128px); line-height: .94; }
.body-l { margin-top: 32px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 640px; letter-spacing: -0.01em; }
.lede { margin-top: 48px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.3; letter-spacing: -0.025em; max-width: 900px; }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* pillars */
.pillars { margin-top: 96px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.pillar { padding: 28px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--rule); }
.pillar h3 { margin: 40px 0 12px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.pillar p:not(.label) { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 360px; }
.pillars .pillar:nth-child(2) { transition-delay: .08s; }
.pillars .pillar:nth-child(3) { transition-delay: .16s; }

/* chart */
.chart { margin-top: 80px; }
.chart__svg { display: block; width: 100%; height: 360px; overflow: visible; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.stage { padding: 24px 28px 0 0; opacity: .35; transition: opacity .8s var(--ease); }
.stage + .stage { padding-left: 28px; border-left: 1px solid var(--rule); }
.stage.is-on { opacity: 1; }
.stage h3 { margin: 20px 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.stage p:not(.label) { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- DARK ---------- */
.dark { background: var(--dark); color: var(--paper); }
.dark .sec:first-child { padding-top: 140px; }
.dark .label { color: var(--dark-muted); }
.dark .sec__idx, .dark .sec__body { border-top-color: var(--dark-rule); }
.dark .sec__idx span { color: var(--paper); }
.dark .body-l { color: #a1a1a6; }

.soon {
  position: relative; overflow: hidden; margin-top: 72px; min-height: 440px;
  border-radius: 28px; padding: 40px; background: #161617;
  display: flex; flex-direction: column; gap: 24px;
}
.soon__row { position: relative; display: flex; justify-content: space-between; gap: 16px; }
.dark .soon__row .label:first-child { color: #f5f5f7; }
.soon h3 { margin-top: auto; font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; max-width: 640px; position: relative; }
.soon .btn--text { align-self: flex-start; position: relative; }
.soon__plot { position: absolute; right: 0; bottom: 0; width: 58%; height: 78%; }
.soon__plot path { fill: none; stroke: url(#soonGrad); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }

.cta { padding-bottom: 160px; }
.cta__row { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta__row .body-l { margin-top: 0; max-width: 460px; }

.footer { border-top: 1px solid var(--dark-rule); }
.footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__mail:hover { color: var(--paper); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .sec { padding: 96px 0; }
  .dark .sec:first-child { padding-top: 96px; }
  .sec__idx { grid-column: 1 / -1; }
  .sec__body { grid-column: 1 / -1; border-top: 0; padding-top: 28px; }
  .pillars, .stages { grid-template-columns: 1fr; }
  .pillar, .stage { padding: 28px 0 32px !important; border-left: 0 !important; }
  .pillar + .pillar, .stage + .stage { border-top: 1px solid var(--rule); }
  .pillar h3 { margin-top: 20px; }
  .stage { opacity: 1; }
  .stage h3 { margin-top: 16px; }
  .chart__svg { height: 220px; }
  .hero__inner { padding-top: 112px; }
  .soon { min-height: 400px; padding: 24px; }
  .soon__plot { width: 90%; height: 40%; top: 72px; bottom: auto; }
  .soon__meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
