/* ============================================================
   OSEION — Launch capture site
   One page, one job: turn a curious visitor into a held place,
   in OSEION's voice, in under ten seconds.
   Mobile-first. Tokens distilled from the OSEION Design System.
   ============================================================ */

:root {
  /* Monochrome foundation */
  --void:        #0A0A0B;
  --ink:         #141415;
  --bone:        #ECECEA;
  --bone-dim:    #C4C4C2;
  --steel-400:   #B8BABD;
  --tertiary:    #8C8C8D;
  --quiet:       #5E5F62;

  /* The single warm note — the light past the door */
  --champagne:   #E4DBCB;
  --warm-core:   #FBF4E6;
  --warm-glow:   rgba(245, 232, 205, 0.55);

  /* Type */
  --font-display: 'Michroma', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 680px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100svh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--warm-glow); color: var(--void); }

a { color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid rgba(196,196,194,0.3); transition: color .3s var(--ease), border-color .3s var(--ease); }
a:hover { color: var(--bone); border-color: var(--bone); }

/* ============================================================
   The hero — the obsidian sheen (full-bleed WebGL, behind everything)
   ============================================================ */
.hero-bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; background: var(--void); }
.hero-vig {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 110% at 50% 44%, rgba(10,10,11,0) 50%, rgba(10,10,11,0.6) 100%);
}
/* Iridescent silk blended into the sheen. screen blend → the black of the
   photo vanishes into the obsidian; only the luminous folds add light. A
   vertical mask keeps it to the upper page so it melts into the dark below.
   scroll.js drives opacity (this value is the at-top state). */
.hero-silk {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; display: block;
  mix-blend-mode: screen;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 44%, rgba(0,0,0,0) 78%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 44%, rgba(0,0,0,0) 78%);
  will-change: opacity;
}

/* the mark, centred — the effect frames it, never competes */
.hero__logo {
  height: clamp(24px, 3.4vw, 34px); width: auto;
  filter: drop-shadow(0 0 22px rgba(10,10,11,0.85));
  animation: rise .9s var(--ease) both;
}
.hero__rule {
  width: 38px; height: 1px; background: rgba(236,236,234,0.4);
  animation: rule 1.2s var(--ease) .35s both;
}
@keyframes rule { from { width: 0; opacity: 0; } to { width: 38px; opacity: 1; } }

/* ============================================================
   The stage — content above the scene
   ============================================================ */
.stage { position: relative; z-index: 1; }

/* ---- Sections in the scroll ---- */
.sec {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(64px, 12vh, 140px) clamp(22px, 6vw, 48px);
  overflow: hidden;
}
.sec--hero { min-height: 100svh; overflow: visible; }
.hero__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: clamp(22px, 4vh, 34px);
  max-width: 480px; width: 100%;
  will-change: transform;
}
.enter { margin: 0 auto; }
.consent { justify-content: center; text-align: left; }

/* ---- Editorial lines (the story) ---- */
.line {
  margin: 0; max-width: 16ch;
  font-family: var(--font-body); font-weight: 200;
  font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: 1.28; letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 0 30px rgba(6,6,8,0.8);
  will-change: transform;
}
.line--sm { font-size: clamp(1.4rem, 4.4vw, 2.4rem); max-width: 22ch; }

/* The poem's thread — a vertical seam of light: the "single door". It runs
   closed through the first stanzas, opens at the door, blooms at the threshold,
   then narrows to a quiet promise. A deep, near-still parallax layer. */
.seam {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 0; will-change: transform;
}
.seam > i {
  display: block; width: 1px; height: 58vh;
  background: linear-gradient(to bottom, transparent, rgba(236,236,234,0.16) 50%, transparent);
}
.seam--ajar > i {
  width: 2px; height: 64vh;
  background: linear-gradient(to bottom, transparent, rgba(236,239,245,0.30) 50%, transparent);
  box-shadow: 0 0 70px 20px rgba(150,165,195,0.10);
}
.seam--open > i {
  width: 3px; height: 72vh;
  background: linear-gradient(to bottom, transparent, rgba(246,249,255,0.42) 50%, transparent);
  box-shadow: 0 0 120px 46px rgba(160,178,210,0.17);
}
.seam--narrow > i {
  width: 1px; height: 50vh;
  background: linear-gradient(to bottom, transparent, rgba(236,236,234,0.11) 50%, transparent);
}
.line, .cta-ghost { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--tertiary); text-shadow: 0 0 12px rgba(6,6,8,0.9);
}
.sub {
  margin: 24px auto 0; max-width: 40ch;
  font-size: 0.95rem; font-weight: 300; line-height: 1.7; letter-spacing: 0.01em;
  color: var(--bone-dim); text-shadow: 0 0 14px rgba(6,6,8,0.9);
}

/* ---- Reveal on scroll — a soft focus-in (parallax owns transform) ---- */
.reveal { transition: opacity 1.1s var(--ease), filter 1.1s var(--ease); }
.js-reveal .reveal { opacity: 0; filter: blur(7px); }
.js-reveal .reveal.in { opacity: 1; filter: blur(0); }
.sec .line + .line { margin-top: clamp(18px, 3vh, 32px); }

/* ---- Closing CTA ---- */
.sec--close .line { margin-bottom: 28px; }
.cta-ghost {
  display: inline-block; border: 1px solid rgba(236,236,234,0.28);
  border-radius: 4px; padding: 14px 34px;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone); text-shadow: 0 0 12px rgba(6,6,8,0.9);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cta-ghost:hover { background: var(--champagne); color: #1A1714; border-color: var(--champagne); }

/* ---- Scroll cue (hero) ---- */
.scrollcue {
  position: absolute; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; border: none;
  font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--tertiary);
}
.scrollcue:hover { color: var(--bone-dim); }
.scrollcue i { width: 1px; height: 32px; background: linear-gradient(var(--tertiary), transparent); animation: fall 2.4s var(--ease) infinite; }
@keyframes fall {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Scroll progress ---- */
.scrollprog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 5;
  background: linear-gradient(90deg, var(--champagne), var(--bone));
  transform: scaleX(0); transform-origin: left;
}

/* ---- Capture ---- */
.enter { width: 100%; max-width: 460px; }
.enter__hook {
  margin: 0 0 10px;
  font-family: var(--font-body); font-weight: 200;
  font-size: 1.2rem; line-height: 1.4; letter-spacing: 0.02em;
  color: var(--bone);
  text-shadow: 0 0 16px rgba(6,6,8,0.92);
}
.enter__invite {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--steel-400);
  text-shadow: 0 0 14px rgba(6,6,8,0.92);
}

/* The invitation — a hairline prompt that opens the way in on click */
.enter__open {
  display: none; align-items: center; gap: 10px;
  position: relative;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--champagne);
  padding: 9px 4px;
  text-shadow: 0 0 14px rgba(6,6,8,0.9);
  transition: color .3s var(--ease), letter-spacing .4s var(--ease);
}
.enter__open::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,232,205,0.65), transparent);
  transform: scaleX(0.5); transition: transform .45s var(--ease);
}
.enter__open:hover { color: var(--warm-core); letter-spacing: 0.27em; }
.enter__open:hover::after { transform: scaleX(1); }
/* No-JS: the prompt is hidden and the form is simply visible (the only
   conversion action still works). With JS, scroll.js adds .js-reveal early —
   then the prompt shows and the form hides until the prompt is clicked. */
.js-reveal .enter__open { display: inline-flex; }
.js-reveal .enter__form:not(.is-open) { display: none; }
.enter__open[hidden] { display: none; } /* [hidden] must beat the inline-flex above */

/* the words settle into focus on load, in sequence */
.enter__hook  { animation: focusin 1.1s var(--ease) .50s both; }
.enter__invite { animation: focusin 1.1s var(--ease) .66s both; }
.enter__open  { animation: focusin 1.1s var(--ease) .82s both; }
/* the form is revealed on click, not on load */
.enter__form--in { animation: focusin .7s var(--ease) both; }
@keyframes focusin { from { opacity: 0; filter: blur(7px); } to { opacity: 1; filter: blur(0); } }

.field {
  display: flex; align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(236,236,234,0.30);
  border-radius: 0;
  background: transparent;
  transition: border-color .35s var(--ease);
}
.field:focus-within {
  border-bottom-color: rgba(245,232,205,0.85);
  box-shadow: 0 1px 0 0 rgba(245,232,205,0.5), 0 12px 26px -18px rgba(245,232,205,0.45);
}
.field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field__input {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent;
  color: var(--bone);
  font-family: var(--font-body); font-size: 1rem; font-weight: 300;
  letter-spacing: 0.01em;
  padding: 13px 2px;
}
.field__input::placeholder { color: var(--tertiary); }
/* The way through — a quiet inline action, not a marketing button */
.field__submit {
  flex: 0 0 auto;
  border: 0; background: transparent; cursor: pointer;
  color: var(--champagne);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 12px 2px 12px 18px; white-space: nowrap;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.field__submit::after { content: " \2192"; }
.field__submit:hover { color: var(--warm-core); }
.field__submit:disabled { opacity: 0.5; cursor: progress; }
.field__submit:disabled::after { content: ""; }

/* Privacy notice — fine print, not a consent control */
.enter__fine {
  margin: 12px 0 0;
  font-size: 0.72rem; line-height: 1.5; font-weight: 300;
  color: var(--steel-400); letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(6,6,8,0.92);
}
.enter__fine a { color: var(--bone-dim); border-bottom-color: rgba(196,196,194,0.5); }
.enter__fine a:hover { color: var(--bone); border-color: var(--bone); }

/* Members — discreet entrance to the private salon (limited members) */
.members {
  position: absolute; z-index: 2;
  top: clamp(20px, 5vw, 40px); right: clamp(22px, 6vw, 56px);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-400); border: none;
  text-shadow: 0 0 12px rgba(6,6,8,0.95), 0 0 4px rgba(6,6,8,0.9);
}
.members:hover { color: var(--bone); }

.consent {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 18px;
  cursor: pointer;
}
.consent__box {
  flex: 0 0 auto;
  width: 13px; height: 13px; margin-top: 2px;
  accent-color: var(--champagne);
  cursor: pointer;
}
.consent__text {
  font-size: 0.72rem; line-height: 1.55; font-weight: 300;
  color: var(--steel-400); letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(6,6,8,0.92);
}

/* Turnstile widget — collapses to nothing until the widget mounts */
.turnstile:not(:empty) { margin-top: 16px; }

.enter__error {
  margin: 14px 0 0;
  font-size: 0.78rem; letter-spacing: 0.01em;
  color: #E2675C;
}

/* ---- Held (confirmation, in-world) ---- */
.held { width: 100%; max-width: 460px; animation: rise .9s var(--ease) both; }
.held__line {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  letter-spacing: 0.01em; color: var(--bone);
  text-shadow: 0 0 30px rgba(245,232,205,0.22);
}
.held__sub {
  margin: 14px 0 0;
  font-size: 0.95rem; font-weight: 300; line-height: 1.6;
  color: var(--steel-400);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Footer — wordmark, year, only legally required links ---- */
.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px);
  border-top: 1px solid rgba(236,236,234,0.08);
}
.foot__copy {
  margin: 0;
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--bone-dim);
  text-shadow: 0 0 12px rgba(6,6,8,0.95), 0 0 4px rgba(6,6,8,0.9);
}
.foot__legal {
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-dim);
  text-shadow: 0 0 12px rgba(6,6,8,0.95), 0 0 4px rgba(6,6,8,0.9);
}
.foot__legal a { color: var(--bone-dim); border: none; }
.foot__legal a:hover { color: var(--bone); }
.foot__dot { color: var(--quiet); }

/* ============================================================
   Larger viewports
   ============================================================ */
@media (min-width: 720px) {
  .hero { gap: clamp(36px, 6vh, 56px); }
  .field__input { padding: 15px 2px; }
}

@media (min-width: 1100px) {
  .stage { padding: 56px 72px; }
  .hero { max-width: 520px; gap: clamp(26px, 4vh, 38px); }
}

/* ============================================================
   Motion & contrast respect
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero__rule, .held,
  .enter__hook, .enter__invite, .enter__open, .enter__form--in { animation: none; }
  .reveal { transition: none; }
  .js-reveal .reveal { opacity: 1; filter: none; }
  * { scroll-behavior: auto; }
}

/* Privacy / legal pages reuse the type system via .doc */
.doc {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) clamp(22px, 6vw, 48px);
}
.doc h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.doc .doc__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--tertiary); margin: 0 0 28px;
}
.doc h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bone); margin: 38px 0 12px;
}
.doc p, .doc li {
  font-size: 0.95rem; line-height: 1.7; font-weight: 300;
  color: var(--steel-400);
}
.doc a { color: var(--bone-dim); }
.doc__back {
  display: inline-block; margin-top: 44px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tertiary); border: none;
}
