/* ================================================================
   Animo — base styles
   Modern-clinical, dark canvas, restrained motion.
   ================================================================ */

:root {
  --bg: #0A0A0B;
  --bg-elev: #111114;
  --surface: #16161B;
  --border: #1F1F26;
  --border-strong: #2A2A33;

  --text: #F4F2EE;
  --text-dim: #B5B5BC;
  --text-mute: #6E6E76;

  --accent: #B8D4C0;
  --accent-soft: rgba(184, 212, 192, 0.08);
  --accent-line: rgba(184, 212, 192, 0.22);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --ease-breath: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --max: 1200px;
  --max-narrow: 760px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(184, 212, 192, 0.06), transparent 60%),
    var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: #0A0A0B; }

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

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent); color: #0A0A0B;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 100; font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 320ms var(--ease-out-soft), background 320ms var(--ease-out-soft);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  letter-spacing: -0.02em;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

.brand-logo {
  display: block;
  height: 24px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-logo-sm { height: 22px; opacity: 0.85; }

.site-nav {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px);
  font-size: 14px;
  color: var(--text-dim);
}

.site-nav a { transition: color 200ms var(--ease-out-soft); }
.site-nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 220ms var(--ease-out-soft), background 220ms var(--ease-out-soft), border-color 220ms var(--ease-out-soft), color 220ms var(--ease-out-soft);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
}
.btn-primary:hover { transform: translateY(-1px); background: #C9DECF; }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px clamp(20px, 5vw, 64px) 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center;
  pointer-events: none;
}

.hero-bg svg.blob {
  width: min(120vh, 1100px);
  height: min(120vh, 1100px);
  animation: breathe 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: 50% 50%;
  will-change: scale, opacity, translate;
  /* Cursor-reactive offset (set by JS as a CSS variable) — composes
     with the keyframe scale because translate/scale are independent properties. */
  translate: var(--cursor-x, 0px) var(--cursor-y, 0px);
  transition: translate 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Inhale → hold → exhale, easing matched to a real breath. */
@keyframes breathe {
  0%   { scale: 0.96; opacity: 0.55; }
  45%  { scale: 1.06; opacity: 1;    }
  55%  { scale: 1.06; opacity: 1;    }
  100% { scale: 0.96; opacity: 0.55; }
}

.hero-bg .morph {
  animation: drift-breathe 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite, drift 28s linear infinite;
  transform-origin: 50% 50%;
  transform-box: fill-box;
  will-change: transform;
}

/* Ring sympathises with the halo breath — slightly larger amplitude. */
@keyframes drift-breathe {
  0%, 100% { scale: 0.94; }
  50%      { scale: 1.08; }
}

@keyframes drift {
  to { rotate: 360deg; }
}

.hero-inner {
  text-align: center;
  max-width: 920px;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-5);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}

.hero-title {
  font-size: clamp(46px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.hero-title .display-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-title .hero-line {
  display: block;
  margin-top: 0.08em;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0;
  letter-spacing: 0.005em;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: var(--space-3);
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-mute);
  margin-top: var(--space-4);
}

.dot-pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(184, 212, 192, 0.55);
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 212, 192, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(184, 212, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 212, 192, 0); }
}

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

.section {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-narrow { max-width: var(--max-narrow); }

.section-head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: var(--space-8);
  max-width: 720px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.section-title em,
.section-title .display-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  margin: 0;
  max-width: 620px;
}

.section-body {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text-dim);
  line-height: 1.65;
  margin: var(--space-5) 0 0;
  max-width: 640px;
}

/* ----------------------------------------------------------------
   Pillars
   ---------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  background: var(--bg-elev);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  transition: background 280ms var(--ease-out-soft);
  position: relative;
}

.pillar::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 380ms var(--ease-out-soft);
}

.pillar:hover { background: var(--surface); }
.pillar:hover::before { transform: scaleY(1); }

.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.pillar p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   Principles list
   ---------------------------------------------------------------- */

.principles {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.principles li {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: var(--space-5);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.principles-key {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 3px;
}

.principles-val {
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.005em;
}

@media (max-width: 600px) {
  .principles li { grid-template-columns: 1fr; gap: 6px; }
}

/* ----------------------------------------------------------------
   CTA card / waitlist
   ---------------------------------------------------------------- */

.section-cta { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }

.cta-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: flex; flex-direction: column; gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

.cta-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 100% 0%, rgba(184, 212, 192, 0.07), transparent 60%);
  pointer-events: none;
}

.waitlist-form {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  position: relative; z-index: 1;
}

.waitlist-form input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 220ms var(--ease-out-soft), background 220ms var(--ease-out-soft);
}

.waitlist-form input::placeholder { color: var(--text-mute); }
.waitlist-form input:focus { border-color: var(--accent-line); background: #0F0F12; }

.waitlist-form .btn { width: auto; }

.form-status {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-mute);
  margin: 4px 0 0;
  min-height: 18px;
}
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #E89B9B; }

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
  pointer-events: none;
  opacity: 0;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
  pointer-events: none;
}

@media (max-width: 720px) {
  .waitlist-form { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Partner section
   ---------------------------------------------------------------- */

.section-partner {
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}

.section-partner .btn { margin-top: var(--space-5); }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(20px, 5vw, 64px) 36px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}

.footer-disclaimer {
  font-size: 12.5px;
  color: var(--text-mute);
  max-width: 720px;
  line-height: 1.55;
  margin: 0;
}

.footer-meta {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 0;
}

/* ----------------------------------------------------------------
   Reveal animation (set by JS via IntersectionObserver)
   ---------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
  transition: opacity 720ms var(--ease-out-soft), transform 720ms var(--ease-out-soft);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   Scroll progress (1px sage line at top of viewport)
   ---------------------------------------------------------------- */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
  opacity: 0.65;
  will-change: transform;
}

/* ----------------------------------------------------------------
   Word-by-word reveal for section titles
   ---------------------------------------------------------------- */

.section-title .word,
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  /* Give descenders (y, g, p, j, q) room inside the mask. */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.section-title .word-inner,
.hero-title .word-inner {
  display: inline-block;
  transform: translateY(108%);
  opacity: 0;
  transition:
    transform 760ms var(--ease-out-soft),
    opacity 760ms var(--ease-out-soft);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: transform, opacity;
}

.section-title.is-visible .word-inner,
.hero-title.is-visible .word-inner {
  transform: none;
  opacity: 1;
}

/* Eyebrow stays as a clean uppercase label — no decorative line. */

/* ----------------------------------------------------------------
   Hero parallax target
   ---------------------------------------------------------------- */

.hero-bg { will-change: transform, opacity; }

/* ----------------------------------------------------------------
   Film grain — fixed overlay, fractal noise via inline SVG.
   Adds analog tactility to the otherwise-flat dark canvas.
   ---------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

@media (prefers-reduced-motion: reduce) {
  .grain { opacity: 0.03; }
}


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