/* ===========================================================================
   Liefwork — waitlist splash  ·  "living dark"
   Canonical Brand Identity (17 June 2026): coral-led palette over Void,
   Peach Rose CTA as the one warm "star", DM Serif Display + DM Sans.
   Source of record: Waitlist.md (status: draft). Path A static splash.
   =========================================================================== */

:root {
  /* — Brand Identity palette (coral-led, NOT green) — */
  --void:       #080A0C;   /* primary background — near-black, faint cool blue */
  --void-2:     #0a0e12;
  --deep-slate: #2A3540;   /* surfaces / panels / raised elements */
  --silver:     #A8B4BC;   /* structural surfaces, dividers, architectural type */
  --amber:      #E8B96A;   /* structural hierarchy — meristems / folders (pale straw-gold) */
  --periwinkle: #8499B8;   /* secondary labels, metadata, stems / rays */
  --star:       #EEF2F8;   /* primary text — cool off-white (liefs) */
  --peach:      #D4927A;   /* PRIMARY ACTION — the one warm moment per screen */
  --peach-soft: #e0a78f;
  --teal:       #5ECFBE;   /* reserved: active / focus / success — now also the CTA */
  --teal-soft:  #8FE0D3;

  /* — semantic — */
  --ink:       var(--star);
  --ink-soft:  var(--silver);
  --ink-faint: var(--periwinkle);
  --line:      rgba(168, 180, 188, 0.14);   /* silver-facade dividers */
  --line-soft: rgba(168, 180, 188, 0.07);

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Menlo", monospace;
  --font-logo:    "Quicksand", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ── atmosphere: cold amber lit-window (top) + warm peach-rose horizon (bottom) ── */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(232, 185, 106, 0.10), transparent 55%),
    radial-gradient(100% 70% at 50% 116%, rgba(212, 146, 122, 0.13), transparent 60%),
    /* the peach-rose horizon — warm, low, ~10% */
    linear-gradient(to top, rgba(212, 146, 122, 0.10) 0%, transparent 48%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 60%, #06080a 100%);
}
/* grain ~ keeps the dark from reading as flat digital black (Brand: "grain is depth") */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ───────────────────────────── topbar ───────────────────────────── */
.topbar {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px 32px 0;
  display: flex; align-items: baseline; justify-content: space-between;
}
.wordmark {
  font-family: var(--font-logo);
  font-size: 1.32rem; letter-spacing: 0.005em; font-weight: 600;
  text-decoration: none;
  /* the logo's holographic spectrum, crisp: teal → star-white → peach → amber */
  background: linear-gradient(100deg, #5ECFBE 0%, #EEF2F8 40%, #D4927A 74%, #E8B96A 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.wordmark-dot { color: var(--amber); }
.wordmark-img { height: 30px; width: auto; display: block; }
.topbar-status {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}

/* ───────────────────────────── hero ───────────────────────────── */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) 32px clamp(60px, 10vh, 120px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero-copy { max-width: 620px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); font-weight: 500; margin-bottom: 28px;
}

/* hero title — Quicksand (the logo wordmark font), uniform size.
   Replaces the earlier mixed-size DM Serif caps (per Pavlos, 20 June) so the
   tagline echoes the Liefwork logotype. */
.hero-title {
  font-family: var(--font-logo); font-weight: 600;
  color: var(--ink);
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.sub {
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  color: var(--ink-soft); max-width: 32em; margin-bottom: 38px;
  font-weight: 400;
}
.sub strong { color: var(--star); font-weight: 500; }

/* ── signup ── */
.signup { max-width: 30rem; }
.signup-row {
  display: flex; gap: 8px;
  background: rgba(168, 180, 188, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 7px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.signup-row:focus-within {
  border-color: rgba(94, 207, 190, 0.5);
  box-shadow: 0 0 0 4px rgba(94, 207, 190, 0.10), 0 8px 40px -12px rgba(94, 207, 190, 0.22);
  background: rgba(168, 180, 188, 0.07);
}
.signup-input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; outline: none;
}
.signup-input::placeholder { color: var(--ink-faint); }

/* the action: Iridescent Teal CTA */
.signup-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
  color: var(--void); cursor: pointer; border: 0; border-radius: 9px;
  padding: 12px 20px;
  background: linear-gradient(180deg, var(--teal-soft), var(--teal));
  box-shadow: 0 6px 24px -8px rgba(94, 207, 190, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.signup-btn svg { transition: transform 0.3s var(--ease); }
.signup-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 32px -8px rgba(94, 207, 190, 0.72); filter: brightness(1.05); }
.signup-btn:hover svg { transform: translateX(4px); }
.signup-btn:active { transform: translateY(0); }

.consent {
  font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; line-height: 1.5;
}
.consent a { color: var(--ink-soft); text-underline-offset: 2px; }
.consent a:hover { color: var(--amber); }

/* Hero CTA micro-line — the "watch it bloom" encourager under the button. */
.hero-micro {
  font-size: 0.9rem; color: var(--ink-soft); font-style: italic;
  letter-spacing: 0.01em; margin-top: 14px;
}

/* Footer brand tagline — "Grow Your Thinking" demoted from the H1 (29 June). */
.foot-tagline {
  font-style: italic; color: var(--ink-soft); letter-spacing: 0.02em;
}

/* success state (teal — reserved "active") */
.signup-done[hidden] { display: none; }   /* author display:flex would otherwise defeat [hidden] */
.signup-done {
  display: flex; align-items: flex-start; gap: 14px; max-width: 30rem;
  padding: 18px 20px; border: 1px solid rgba(94, 207, 190, 0.35);
  border-radius: 14px; background: rgba(94, 207, 190, 0.07);
  animation: rise 0.6s var(--ease) both;
}
.done-mark {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--void);
  background: var(--teal); box-shadow: 0 0 24px -2px rgba(94, 207, 190, 0.6);
}
.signup-done p { color: var(--ink); font-size: 0.98rem; }
.signup-inline-done { color: var(--teal); font-weight: 500; padding: 8px 2px; }

/* ───────────────────── hero coral (the finalised logo mark) ───────────────────── */
.hero-coral {
  position: relative; align-self: stretch; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.hero-coral-img {
  width: 100%; max-width: 440px; height: auto; max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 20px 70px rgba(94, 207, 190, 0.12));
  animation: floaty 9s ease-in-out infinite;
}
/* a slow, low float — keeps the static mark alive without faking growth */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ───────────────────────────── pillars ───────────────────────────── */
.section-kicker {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 34px;
}
.pillars, .joining {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(50px, 9vh, 100px) 32px;
  border-top: 1px solid var(--line-soft);
}
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.pillar {
  padding: 30px 30px 36px; border-radius: 16px;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.pillar:hover {
  border-color: var(--line); background: rgba(168, 180, 188, 0.03); transform: translateY(-3px);
}
.pillar-num {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--amber);
  display: block; margin-bottom: 18px; opacity: 0.9; letter-spacing: 0.04em;
}
.pillar h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.65rem;
  line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 12px;
}
.pillar p { color: var(--ink-soft); font-size: 1rem; font-weight: 400; }

/* ───────────────────────────── thesis ───────────────────────────── */
.thesis {
  max-width: 880px; margin: 0 auto; padding: clamp(50px, 11vh, 120px) 32px;
  text-align: center;
}
.thesis-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.32;
  letter-spacing: -0.01em; color: var(--ink);
}
.thesis-text em { font-style: italic; color: var(--amber); }

/* ───────────────────────── what you're joining ───────────────────────── */
.joining-inner { max-width: 640px; }
.joining-lead {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft);
  font-weight: 400; line-height: 1.55; margin-bottom: 34px;
}
.joining-lead strong { color: var(--ink); font-weight: 500; }
.signup-repeat { max-width: 30rem; margin-bottom: 26px; }
.founder {
  font-size: 0.92rem; color: var(--ink-faint); line-height: 1.6; max-width: 34em;
}
.founder strong { color: var(--ink-soft); font-weight: 500; }
.founder-link { color: var(--amber); white-space: nowrap; }
.founder-link:hover { color: var(--star); }

/* ───────────────────────────── footer ───────────────────────────── */
.site-foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 34px 32px 48px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--ink-faint);
}
.foot-mark { font-size: 1.0rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink-faint); text-decoration: none; }
.foot-links a:hover { color: var(--amber); }

/* ───────────────────────── motion: reveals ───────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.85s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.reveal-on-scroll > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-on-scroll.in > * { opacity: 1; transform: translateY(0); }
.reveal-on-scroll.in .pillar:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll.in .pillar:nth-child(3) { transition-delay: 0.16s; }

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; }
  .hero-coral { order: -1; min-height: 280px; max-width: 360px; margin: 0 auto; }
  .hero-coral-img { max-width: 240px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 2px; }
  .topbar-status { display: none; }
}
@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup-btn { justify-content: center; padding: 13px 20px; }
  .topbar, .hero, .pillars, .joining, .thesis, .site-foot { padding-left: 22px; padding-right: 22px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-on-scroll > * { opacity: 1; transform: none; }
  .hero-coral-img { animation: none; transform: none; }
}

/* ═══════════════════ bake additions (24 June) — new layout ═══════════════════ */

/* hero subhead (Pav's functional value-prop under the brand tagline) */
.hero-subhead {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3;
  color: var(--ink); margin-bottom: 22px;
}

/* hero screenshot (replaces the portrait logo mark; landscape product capture) */
.hero-shot { position: relative; align-self: center; }
.hero-shot-img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -34px rgba(0,0,0,0.85), 0 0 60px -30px rgba(94,207,190,0.18);
}

/* what it is — alternating image + text beats */
.beats {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(46px,8vh,96px) 32px; border-top: 1px solid var(--line-soft);
}
.beat {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(34px,6vh,64px) 0;
}
.beat + .beat { border-top: 1px solid var(--line-soft); }
.beat.reverse .beat-media { order: 2; }
.beat-media { margin: 0; }
.beat-img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.85);
}
.beat-num {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--amber);
  display: block; margin-bottom: 14px; letter-spacing: 0.04em;
}
.beat-body h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem,2.6vw,2.15rem); line-height: 1.14;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px;
}
.beat-body p { color: var(--ink-soft); font-size: 1.05rem; }

/* the memory system — centred statement */
.system {
  max-width: 940px; margin: 0 auto;
  padding: clamp(54px,10vh,116px) 32px; border-top: 1px solid var(--line-soft);
  text-align: center;
}
.system-lead { font-size: clamp(1.15rem,1.9vw,1.5rem); line-height: 1.5; color: var(--ink-soft); font-weight: 400; }
.system-lead strong { color: var(--ink); font-weight: 600; }

/* proof — teal-accented (the reserved "active/success" colour) */
.proof {
  max-width: 880px; margin: 0 auto;
  padding: clamp(40px,7vh,80px) 32px clamp(54px,10vh,116px); text-align: center;
}
.proof-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.proof-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem,3vw,2.1rem); line-height: 1.32;
  letter-spacing: -0.01em; color: var(--ink);
}
.proof-text strong { color: var(--star); font-weight: 400; }
.proof-text em { font-style: italic; color: var(--teal); }

/* responsive for the new sections */
@media (max-width: 860px) {
  .hero-shot { order: -1; margin: 0 auto 10px; max-width: 540px; width: 100%; }
  .beat { grid-template-columns: 1fr; gap: 18px; }
  .beat.reverse .beat-media { order: 0; }
  .beat-body { max-width: 600px; }
}
@media (max-width: 480px) {
  .beats, .system, .proof { padding-left: 22px; padding-right: 22px; }
}

/* ═══════════ design pass (24 June) — coral-immersion hero · wider beats · logo close ═══════════ */

/* HERO: full-bleed living coral; copy dissolves out of the Void on the left */
.hero {
  position: relative; display: flex; align-items: center;
  max-width: none; margin: 0;
  min-height: min(90vh, 880px);
  padding: 96px 0 88px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("./assets/hero-coral.png") no-repeat 70% center / cover;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--void) 3%, rgba(8,10,12,0.92) 30%, rgba(8,10,12,0.45) 62%, rgba(8,10,12,0.08) 100%),
    linear-gradient(180deg, rgba(8,10,12,0.55) 0%, transparent 16%, transparent 84%, var(--void) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 32px;
}
.hero-copy { max-width: 600px; }
.hero-subhead { color: var(--star); }

/* BEATS: wider, cinematic — the screenshot is the dominant element */
.beats { max-width: 1280px; }
.beat { grid-template-columns: 1.32fr 0.88fr; gap: clamp(30px, 5vw, 80px); }
.beat.reverse { grid-template-columns: 0.88fr 1.32fr; }
.beat.reverse .beat-media { order: 2; }

/* BRAND CLOSE: the holographic true-projection lockup */
.brandmark {
  border-top: 1px solid var(--line-soft);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px,12vh,140px) 32px;
  display: flex; justify-content: center;
}
.brandmark-img {
  width: 100%; max-width: 720px; height: auto; display: block;
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 52px 0 36px; }
  .hero-bg { background-position: 62% center; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(8,10,12,0.45) 0%, rgba(8,10,12,0.84) 52%, var(--void) 100%);
  }
  .beat, .beat.reverse { grid-template-columns: 1fr; gap: 18px; }
  .beat.reverse .beat-media { order: 0; }
}

/* ───────────────────── see it in action — live case-study corals ───────────────────── */
.showcase {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(50px, 9vh, 100px) 32px;
  border-top: 1px solid var(--line-soft);
}
.showcase-lead {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft);
  font-weight: 400; line-height: 1.55; max-width: 44em; margin: -16px 0 40px;
}
.showcase-lead strong { color: var(--ink); font-weight: 500; }
.showcase-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 34px);
}
.case-card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: rgba(168, 180, 188, 0.02);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
              transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case-card:hover, .case-card:focus-visible {
  border-color: rgba(132, 153, 184, 0.42); background: rgba(168, 180, 188, 0.045);
  transform: translateY(-4px); box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  outline: none;
}
/* poster still (grabbed in Studio → ./assets/case-*.png) over a coral-tinted
   fallback, so the card reads as intentional even before the PNG is dropped in */
.case-media {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  background:
    var(--poster, none) center / cover no-repeat,
    radial-gradient(120% 100% at 28% 0%, rgba(132, 153, 184, 0.20), transparent 60%),
    radial-gradient(120% 120% at 82% 100%, rgba(212, 146, 122, 0.10), transparent 55%),
    var(--void-2);
  border-bottom: 1px solid var(--line-soft);
}
.case-body { display: block; padding: 22px 24px 26px; }
.case-title {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 10px;
}
.case-desc {
  display: block; color: var(--ink-soft); font-size: 1rem; line-height: 1.5;
  margin-bottom: 16px;
}
.case-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--teal); transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.case-card:hover .case-cta, .case-card:focus-visible .case-cta {
  gap: 11px; color: var(--teal-soft);
}

@media (max-width: 720px) {
  .showcase { padding-left: 22px; padding-right: 22px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 18px; }
}
