/* =========================================================
   Fonts — local Helvetica Neue
   ========================================================= */
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeueThin.otf") format("opentype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeueLight.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeueRoman.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeueMedium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeueLightItalic.otf") format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }

/* =========================================================
   Palette — two soft colours + one accent
   ========================================================= */
:root {
  --mist:   #bfd5ec;   /* soft 1 — cool, calm (brain)      */
  --blush:  #f2c3ad;   /* soft 2 — warm, human (body)      */
  --signal: #e2542b;   /* accent — retro orange-red "ready" signal */
  --signal-ink: #b73b18; /* same hue, deeper: small text on light bg */

  --bg:    #f4f2ee;
  --ink:   #141414;
  --ink-2: #5f5c57;
  --ink-3: #9b978f;
  --line:  rgba(20, 20, 20, 0.12);

  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "HN", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain: warm sepia specks on a transparent base, multiplied into the
   colours beneath so they tint with the page rather than sit on top. Jitters at
   ~12fps like projected film. The layer is oversized and only its transform
   moves, so it stays on the compositor and never repaints. Tune strength with
   opacity. */
.grain {
  position: fixed; inset: -200px; z-index: 100; pointer-events: none; opacity: 0.15;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.15  4 0 0 0 -1.8'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  will-change: transform;
  animation: grain 0.8s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-63px, 41px); }
  20%  { transform: translate(87px, -112px); }
  30%  { transform: translate(-128px, -27px); }
  40%  { transform: translate(34px, 139px); }
  50%  { transform: translate(-91px, -76px); }
  60%  { transform: translate(152px, 58px); }
  70%  { transform: translate(-17px, -143px); }
  80%  { transform: translate(119px, 96px); }
  90%  { transform: translate(-146px, 12px); }
}

/* =========================================================
   Gradient field — fixed behind the whole page
   ========================================================= */
.field {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  /* no filter: blur() here — the orbs are already soft radial gradients, and a
     full-screen blur over animated children gets recomputed every frame */
  will-change: transform;
}
/* =========================================================
   Liquid glass — very soft frosted panes over the gradient
   ========================================================= */
.glass {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  /* whole-page frost: a faint milky veil with a soft top-left sheen */
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}
.pane {
  position: absolute;
  /* no backdrop-filter: blurring an already-soft gradient was invisible but
     costly; the masked white sheen alone gives the frost */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0.6;
  /* long, gradual feather: no visible edge, the frost just fades in and out */
  -webkit-mask-image: radial-gradient(farthest-side, #000 25%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  mask-image: radial-gradient(farthest-side, #000 25%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  /* transform-only animation stays on the compositor (animating border-radius
     forced a repaint every frame) */
  will-change: transform;
}
.pane--1 {
  width: 46vmax; height: 40vmax; right: -8vmax; top: -6vmax;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: float1 30s ease-in-out infinite;
}
.pane--2 {
  width: 38vmax; height: 34vmax; left: -10vmax; bottom: -8vmax;
  border-radius: 61% 39% 45% 55% / 52% 61% 39% 48%;
  animation: float2 34s ease-in-out infinite;
}
.pane--3 {
  width: 22vmax; height: 20vmax; left: 46vw; top: 52vh;
  border-radius: 50% 50% 38% 62% / 58% 42% 58% 42%;
  opacity: 0.4;
  animation: float3 24s ease-in-out infinite;
}
@keyframes float1 { 50% { transform: translate(-6vw, 8vh) rotate(8deg); } }
@keyframes float2 { 50% { transform: translate(7vw, -6vh) rotate(-10deg); } }
@keyframes float3 { 50% { transform: translate(-12vw, -10vh) rotate(14deg) scale(1.1); } }

@media (max-width: 760px) {
  .pane--3 { display: none; }
}

.field__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb--a {
  width: 64vmax; height: 64vmax; right: -18vmax; top: -24vmax;
  background: radial-gradient(circle, var(--blush) 0%, color-mix(in srgb, var(--blush) 70%, transparent) 22%, color-mix(in srgb, var(--blush) 30%, transparent) 45%, color-mix(in srgb, var(--blush) 8%, transparent) 62%, transparent 72%);
  animation: driftA 16s ease-in-out infinite;
}
.orb--b {
  width: 58vmax; height: 58vmax; left: -18vmax; bottom: -26vmax;
  background: radial-gradient(circle, var(--mist) 0%, color-mix(in srgb, var(--mist) 70%, transparent) 22%, color-mix(in srgb, var(--mist) 30%, transparent) 45%, color-mix(in srgb, var(--mist) 8%, transparent) 62%, transparent 72%);
  animation: driftB 19s ease-in-out infinite;
}
.orb--c {
  width: 40vmax; height: 40vmax; right: 14vw; top: 34vh;
  background: radial-gradient(circle, var(--mist) 0%, color-mix(in srgb, var(--mist) 70%, transparent) 22%, color-mix(in srgb, var(--mist) 30%, transparent) 45%, color-mix(in srgb, var(--mist) 8%, transparent) 62%, transparent 72%);
  animation: driftC 14s ease-in-out infinite;
}
.orb--d {
  width: 34vmax; height: 34vmax; left: 22vw; top: 8vh;
  background: radial-gradient(circle, var(--blush) 0%, color-mix(in srgb, var(--blush) 70%, transparent) 22%, color-mix(in srgb, var(--blush) 30%, transparent) 45%, color-mix(in srgb, var(--blush) 8%, transparent) 62%, transparent 72%);
  opacity: 0.75;
  animation: driftD 21s ease-in-out infinite;
}
/* looping orbital paths: always moving, never snapping back */
@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-18vw, 14vh) scale(1.15); }
  66%      { transform: translate(-6vw, 26vh) scale(0.92); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20vw, -10vh) scale(1.12); }
  66%      { transform: translate(8vw, -24vh) scale(0.9); }
}
@keyframes driftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-28vw, -14vh) scale(1.2); }
}
@keyframes driftD {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30vw, 30vh) scale(0.85); }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
}
.nav { transition: background 0.4s, border-color 0.4s, padding 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(244, 242, 238, 0.7);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-color: var(--line);
}
.logo { font-size: 26px; font-weight: 500; letter-spacing: -0.06em; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 500;
}
.pill i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(226, 84, 43, 0.5);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 9px rgba(226, 84, 43, 0); } }

/* =========================================================
   Screen 1 — Hero
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad) 32px;
  position: relative;
}
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }

.hero__title {
  font-size: clamp(58px, 11vw, 176px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin-bottom: 36px;
}
.hero__title em {
  font-style: italic; padding-right: 0.06em;
  background: linear-gradient(90deg, #b8361a, var(--signal) 45%, #ea8a3a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub {
  max-width: 540px;
  font-size: clamp(17px, 1.45vw, 20px);
  color: var(--ink-2);
  margin-bottom: 36px;
}

.form {
  display: flex; gap: 6px; max-width: 460px;
  padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s;
}
.form:focus-within { box-shadow: 0 0 0 3px rgba(226, 84, 43, 0.18); }
.form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  padding: 0 18px; font: 400 16px var(--font); color: var(--ink);
}
.form input::placeholder { color: var(--ink-3); }
.form.is-done { opacity: 0.5; pointer-events: none; }
.form.is-sending .btn { opacity: 0.7; cursor: progress; }

.btn {
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #ea6c45; color: var(--ink);
  font: 500 15px/1 var(--font); cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.btn:hover { background: var(--signal); transform: translateY(-1px); }

.form__msg { margin-top: 14px; font-size: 14px; color: var(--ink-2); min-height: 21px; padding-left: 20px; }

.hero__more {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.hero__more .arrow { font-size: 16px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* =========================================================
   Screen 2 — Why + Tech stack + Team
   ========================================================= */
.tech {
  min-height: 0;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) var(--pad) 0;
  display: flex; flex-direction: column;
}

.why {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.14;
  text-wrap: pretty;
  margin-bottom: clamp(110px, 18vh, 200px);
}
.why span { color: var(--ink-3); }

.label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: clamp(40px, 6vh, 64px);
}

/* Shared three-column system: every column has its own top rule and
   identical padding, so titles and copy line up exactly. */
.cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 64px);
}
.col { border-top: 1px solid var(--line); padding-top: 32px; }
.col__tag {
  display: block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--signal-ink);
}
.col__title {
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 300; letter-spacing: -0.045em; line-height: 1;
  margin: 22px 0 20px; white-space: nowrap;
}
.col__title .plus { color: var(--ink-3); font-weight: 200; margin: 0 0.06em; }
.col__title--sm {
  font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.025em; line-height: 1.15;
  font-weight: 400; white-space: normal;
}
.col p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 330px; }

.tagline {
  margin-top: clamp(140px, 24vh, 260px);
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 300; letter-spacing: -0.045em; line-height: 1.06;
  text-wrap: pretty;
}
.tagline span {
  font-style: italic;
  background: linear-gradient(90deg, #c9441f, var(--signal) 45%, #ef9a4a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}

/* =========================================================
   Screen 3 — FAQ + backers
   ========================================================= */
.end {
  min-height: 100svh;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(160px, 26vh, 280px) var(--pad) 40px;
  display: flex; flex-direction: column;
}
.faq {
  display: grid; grid-template-columns: 1fr 2fr;
  column-gap: clamp(24px, 3vw, 48px);
}
.faq__title {
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 300; letter-spacing: -0.045em; line-height: 1;
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 300; line-height: 1; color: var(--ink-3);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--signal-ink); }
.faq summary:hover::after { color: var(--signal-ink); }
.faq details p { color: var(--ink-2); font-size: 15.5px; padding: 0 0 28px; line-height: 1.6; max-width: 560px; }

.hero__team {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero__team strong { font-weight: 500; color: var(--ink); }
.hero__team::before {
  content: ""; width: 22px; height: 1px; background: var(--ink-3);
}

.foot {
  margin-top: auto;
  padding-top: clamp(120px, 18vh, 200px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.foot__meta { display: flex; gap: 28px; font-size: 13px; color: var(--ink-3); }
.foot__meta a:hover { color: var(--signal-ink); }

/* =========================================================
   Reveal
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.hero__more.reveal { transform: translate(-50%, 24px); }
.hero__more.reveal.in { transform: translateX(-50%); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; row-gap: 36px; }
  .col__title { margin: 10px 0 10px; }
  .faq { grid-template-columns: 1fr; row-gap: 28px; }
}
@media (max-width: 520px) {
  .form { flex-direction: column; border-radius: 24px; padding: 8px; }
  .form input { height: 46px; }
  .hero__more { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
