/* halfpast — landing page */

@font-face {
  font-family: 'Poppins';
  src: url('assets/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #F0EBE6;
  --bg-deep:   #F7F3EF;
  --bg-card:   #E4DBD3;
  --sand-300:  #E4DBD3;
  --sand-400:  #D4C9BF;

  --text:      #2E2C29;
  --text-inv:  #F7F3EF;
  --muted:     #6E6960;
  --muted-2:   rgba(110,105,96,.55);

  --terra:     #8A2A35;
  --terra-2:   #6B1F2A;
  --terra-3:   #4A1420;

  --border:    rgba(91,77,65,.18);
  --border-hi: rgba(91,77,65,.38);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --max-w:        1080px;
  --max-w-narrow: 680px;

  --space-xs:   8px;
  --space-sm:   12px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-xxl:  48px;
  --space-huge: 80px;

  --radius:    12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s cubic-bezier(.4,0,.2,1),
              transform .75s cubic-bezier(.4,0,.2,1);
  transition-delay: calc(var(--i, 0) * .12s);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

#join { scroll-margin-top: 80px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.container--narrow { max-width: var(--max-w-narrow); }

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

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 20px var(--space-lg);
  transition: padding .3s ease;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease, backdrop-filter .4s ease;
  pointer-events: none;
}
.header.is-scrolled::before {
  background: rgba(240,235,230,.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}

.logo {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-mark--sm { width: 22px; height: 22px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.015em;
  color: var(--text);
}

.header-cta {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  background: rgba(46,44,41,.04);
  transition: background .15s ease, border-color .15s ease;
}
.header-cta svg { width: 14px; height: 14px; flex: none; }
.header-cta:hover { background: rgba(46,44,41,.08); border-color: rgba(91,77,65,.6); }
.header-cta:focus-visible { outline: 2px solid rgba(138,42,53,.4); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 var(--space-lg);
}

/* Atmospheric background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: min(800px, 130vw);
  height: min(800px, 130vw);
  background: radial-gradient(circle at 50% 50%,
    rgba(138,42,53,.13) 0%,
    rgba(138,42,53,.05) 38%,
    transparent 68%
  );
  border-radius: 50%;
  animation: orb-breathe 11s ease-in-out infinite;
}
.hero-orb--2 {
  top: 30%;
  left: 60%;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle at 50% 50%,
    rgba(180,130,90,.08) 0%,
    transparent 65%
  );
  animation: orb-breathe-2 14s ease-in-out 2s infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: translate(-50%, -52%) scale(1);    opacity: .85; }
  50%       { transform: translate(-50%, -52%) scale(1.14); opacity: 1;   }
}
@keyframes orb-breathe-2 {
  0%, 100% { transform: translate(-50%, -52%) scale(1);    opacity: .6; }
  50%       { transform: translate(-50%, -52%) scale(1.18); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-orb--2 { animation: none; }
}

/* Vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 40%, rgba(240,235,230,.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  animation: fade-up .8s cubic-bezier(.4,0,.2,1) .05s both;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 3px rgba(138,42,53,.18);
  animation: pulse 2.8s ease-in-out infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(138,42,53,.18); }
  50%       { box-shadow: 0 0 0 8px rgba(138,42,53,.05); }
}

/* Brand — the centrepiece */
.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(76px, 15vw, 172px);
  line-height: .92;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0;
  padding-bottom: clamp(4px, 1vw, 14px);
  text-shadow:
    0 0  60px rgba(138,42,53,.14),
    0 0 140px rgba(138,42,53,.07);
  animation: brand-in 1.2s cubic-bezier(.16,1,.3,1) .15s both;
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand { animation: fade-up .5s ease both; }
}

/* Separator */
.hero-rule {
  width: 28px; height: 1px;
  background: var(--terra);
  border-radius: 1px;
  opacity: .65;
  animation: fade-up .6s cubic-bezier(.4,0,.2,1) .5s both;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
  opacity: .85;
  animation: fade-up .8s cubic-bezier(.4,0,.2,1) .6s both;
}

/* Sub-tagline */
.hero-sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
  letter-spacing: .01em;
  animation: fade-up .8s cubic-bezier(.4,0,.2,1) .75s both;
}

/* Hero CTA */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--text-inv);
  background: var(--terra);
  padding: 14px 30px;
  border-radius: 100px;
  margin-top: 8px;
  transition: background .15s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 48px rgba(138,42,53,.28), 0 4px 18px rgba(46,44,41,.18);
  animation: fade-up .8s cubic-bezier(.4,0,.2,1) .9s both;
}
.hero-btn svg { width: 17px; height: 17px; flex: none; }
.hero-btn:hover {
  background: var(--terra-2);
  transform: translateY(-2px);
  box-shadow: 0 0 72px rgba(138,42,53,.40), 0 8px 28px rgba(46,44,41,.28);
}
.hero-btn:active { transform: scale(.98); }
.hero-btn:focus-visible { outline: 2px solid rgba(138,42,53,.45); outline-offset: 3px; }

/* Shared fade-up keyframe */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-brand, .hero-rule,
  .hero-tagline, .hero-sub, .hero-btn {
    animation: none;
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fade-up .6s ease 1.4s forwards;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(46,44,41,.28));
  animation: scroll-drop 2.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(-44px); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; transform: none; opacity: .3; }
}

/* ---------- Pivot (pain → turn) ---------- */
.pivot {
  position: relative;
  padding: var(--space-huge) 0;
  background: var(--bg);
  overflow: hidden;
}
.pivot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(138,42,53,.07), transparent 60%),
    radial-gradient(40% 45% at 14% 10%, rgba(180,130,80,.04), transparent 70%);
  pointer-events: none;
  animation: pivot-breathe 10s ease-in-out infinite;
}
@keyframes pivot-breathe {
  0%, 100% { opacity: .8; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { .pivot::before { animation: none; } }
.pivot .container { position: relative; z-index: 1; }

.pain-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 3.8vw, 36px);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0;
}
.pain-line + .pain-line { margin-top: var(--space-lg); }
.pain-line:nth-child(1) { color: rgba(46,44,41,.84); }
.pain-line:nth-child(2) { color: rgba(46,44,41,.50); }
.pain-line:nth-child(3) { color: rgba(46,44,41,.28); }

.turn-text {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: var(--space-huge) 0 0;
  padding-top: var(--space-lg);
  max-width: 22ch;
  color: var(--text);
}
.turn-text::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--terra);
  border-radius: 1px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  transition-delay: calc(var(--i, 0) * .12s + .28s);
}
.turn-text.is-visible::before { width: 36px; }
@media (prefers-reduced-motion: reduce) { .turn-text::before { width: 36px; transition: none; } }

.pivot-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xl);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.pivot-cta:hover { color: var(--text); }
.pivot-cta .arrow { transition: transform .22s ease; }
.pivot-cta:hover .arrow { transform: translateX(5px); }
.pivot-cta:focus-visible {
  outline: 2px solid rgba(46,44,41,.25);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Close band ---------- */
.close-band {
  background: linear-gradient(
    180deg,
    var(--bg)      0%,
    #D9C5BB       14%,
    #B08070       32%,
    #8A2A35       58%,
    var(--terra-2) 80%,
    var(--terra-3) 100%
  );
  color: var(--text-inv);
  padding: var(--space-huge) 0 calc(var(--space-huge) * 1.3);
  text-align: center;
}
.close-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: var(--space-md);
  color: var(--text-inv);
}
.close-sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  opacity: .75;
  max-width: 42ch;
  margin: 0 auto var(--space-xl);
  letter-spacing: .01em;
  color: var(--text-inv);
}

/* Store buttons */
.store-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: rgba(247,243,239,.12);
  border: 1px solid rgba(247,243,239,.24);
  color: var(--text-inv);
  text-decoration: none;
  min-height: 52px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .15s ease, transform .2s ease, box-shadow .2s ease;
}
.store-btn:hover {
  background: rgba(247,243,239,.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.store-btn--disabled {
  opacity: .38;
  cursor: default;
  pointer-events: none;
}
.store-btn:active { transform: scale(.99); }
.store-btn:focus-visible { outline: 2px solid rgba(247,243,239,.5); outline-offset: 2px; }
.store-btn svg { width: 20px; height: 20px; flex: none; }
.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}
.store-btn-prefix {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 3px;
}
.store-btn-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.01em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: var(--space-xl) 0 var(--space-xxl);
  color: rgba(240,235,230,.4);
  font-size: 13px;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: rgba(240,235,230,.62);
  letter-spacing: .01em;
}
.footer-meta { color: rgba(240,235,230,.4); }
.footer-email { color: rgba(240,235,230,.55); text-decoration: underline; }
.footer-email:hover { color: rgba(240,235,230,.88); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(240,235,230,.4);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-social:hover { color: rgba(240,235,230,.65); }
.footer-social-label { font-size: 13px; }

/* ---------- Consent ---------- */
.consent {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(46,44,41,.18);
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-w-narrow);
  margin-inline: auto;
}
.consent[hidden] { display: none; }
.consent-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.consent-text {
  flex: 1 1 260px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.consent-actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.consent-btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  background: transparent;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.consent-btn:hover { background: rgba(46,44,41,.06); color: var(--text); }
.consent-btn--accept {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--text-inv);
}
.consent-btn--accept:hover { background: var(--terra-2); border-color: var(--terra-2); }
.consent-btn:focus-visible { outline: 2px solid rgba(138,42,53,.4); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .consent { padding: var(--space-md); }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }

  .store-btns { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }

  .hero-content { gap: 16px; }
  .hero-sub br { display: none; }
}

@media (min-width: 640px) {
  .pivot { padding: 96px 0; }
  .close-band { padding: 96px 0 120px; }
}

@media (min-width: 960px) {
  .pivot { padding: 120px 0; }
  .close-band { padding: 120px 0 148px; }
  .hero-content { gap: 24px; }
}