/* ============================================================
   Prime Life Labs — Harland Reed
   Design system: calm, classy, expensive. Apple-grade restraint.
   ============================================================ */

:root {
  --ink:        #0a0e16;
  --ink-2:      #0e1422;
  --cream:      #f4efe6;
  --cream-dim:  #c9c3b6;
  --gold:       #c9a86a;
  --gold-soft:  rgba(201, 168, 106, 0.45);
  --muted:      #8a93a6;
  --hair:       rgba(244, 239, 230, 0.10);
  --hair-strong:rgba(244, 239, 230, 0.18);

  --serif: "Fraunces", "New York", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: 0.005em;
}

/* Anti-gravity swirl canvas sits behind everything */
#swirl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background:
    radial-gradient(120% 90% at 50% -10%, #11192b 0%, var(--ink) 55%),
    var(--ink);
  pointer-events: none;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  max-width: 18ch;
}
.section__title em { font-style: italic; color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
  z-index: 50;
}
.nav.is-scrolled {
  background: rgba(10, 14, 22, 0.62);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
}
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color .35s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--gold); color: #1a1206; }
.btn--solid:hover { transform: translateY(-2px); background: #d9bd84; }
.btn--ghost { border: 1px solid var(--hair-strong); color: var(--cream); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 1.05rem 2.4rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem var(--pad) 6rem;
}
.hero__inner { max-width: 880px; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub {
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  color: var(--cream-dim);
  max-width: 56ch; margin: 0 auto 2.6rem;
  font-weight: 300;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; background: var(--hair-strong); overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: -56px; left: 0; width: 1px; height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.6s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { top: -56px; } 60%,100% { top: 56px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 12vw, 10rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__body { max-width: 60ch; font-size: 1.08rem; color: var(--cream-dim); display: grid; gap: 1.3rem; }
.section__body p { font-weight: 300; }

/* Programmes cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.card {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background: linear-gradient(160deg, rgba(244,239,230,0.035), rgba(244,239,230,0.01));
  transition: transform .55s var(--ease), border-color .55s var(--ease), background .55s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-soft); background: linear-gradient(160deg, rgba(201,168,106,0.07), rgba(244,239,230,0.01)); }
.card__kicker { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.card__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; letter-spacing: 0.02em; }
.card__body { color: var(--cream-dim); font-weight: 300; margin-bottom: 1.6rem; }
.card__link { color: var(--gold); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em; border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.card__link:hover { border-color: var(--gold); }

/* Method pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.pillar { border-top: 1px solid var(--hair); padding-top: 1.6rem; }
.pillar__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.pillar h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.pillar p { color: var(--cream-dim); font-weight: 300; font-size: 1rem; }

/* Harland */
.harland__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.harland__text .section__title { margin-bottom: 1.4rem; }
.harland__text p { color: var(--cream-dim); font-weight: 300; max-width: 46ch; margin-bottom: 1.1rem; }
.harland__mark { display: flex; justify-content: center; }
.monogram {
  width: clamp(140px, 22vw, 220px); aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); font-style: italic;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: radial-gradient(circle at 50% 35%, rgba(201,168,106,0.10), transparent 70%);
  box-shadow: 0 0 80px rgba(201,168,106,0.08) inset;
}

/* CTA */
.section--cta { text-align: center; }
.cta__title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.3rem; }
.cta__sub { color: var(--cream-dim); max-width: 50ch; margin: 0 auto 2.4rem; font-weight: 300; font-size: 1.08rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--hair);
  padding: 2.4rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  color: var(--muted); font-size: 0.85rem;
}
.footer__brand { font-family: var(--serif); font-size: 1.05rem; color: var(--cream-dim); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.pillars .reveal:nth-child(2) { transition-delay: .08s; }
.pillars .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .cards, .pillars { grid-template-columns: 1fr; }
  .harland__grid { grid-template-columns: 1fr; }
  .harland__mark { order: -1; }
}

/* ---------- Shop / products ---------- */
.shop-hero { padding: clamp(7rem,14vw,11rem) var(--pad) clamp(3rem,7vw,5rem); max-width: var(--maxw); margin: 0 auto; text-align: center; }
.shop-hero .section__title { margin: 0 auto; }
.products { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(5rem,12vw,9rem); }
.products__group { margin-bottom: clamp(3rem,7vw,5rem); }
.products__group h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 1.8rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(1.2rem,3vw,2rem); }
.pcard { border: 1px solid var(--hair); border-radius: 16px; padding: clamp(1.6rem,3vw,2.2rem); background: linear-gradient(160deg, rgba(244,239,230,0.035), rgba(244,239,230,0.01)); display: flex; flex-direction: column; transition: transform .55s var(--ease), border-color .55s var(--ease); }
.pcard:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.pcard__tag { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.pcard__title { font-size: 1.35rem; margin-bottom: .7rem; }
.pcard__desc { color: var(--cream-dim); font-weight: 300; font-size: .98rem; margin-bottom: 1.4rem; flex: 1; }
.pcard__price { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-bottom: 1.2rem; }
.pcard__price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.pcard .btn { text-align: center; }
.modules { max-width: 760px; margin: clamp(1rem,3vw,2rem) auto 0; }
.module { display: flex; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--hair); }
.module:last-child { border-bottom: 1px solid var(--hair); }
.module__n { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; min-width: 2.2rem; }
.module__t { font-size: 1.08rem; color: var(--cream); }
.module__d { color: var(--cream-dim); font-weight: 300; font-size: .95rem; margin-top: .2rem; }
.waitlist { max-width: 520px; margin: 2rem auto 0; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.waitlist input { flex: 1; min-width: 220px; background: rgba(244,239,230,0.04); border: 1px solid var(--hair); color: var(--cream); padding: .85rem 1.1rem; border-radius: 999px; font-family: var(--sans); font-size: .95rem; }
.waitlist input:focus { outline: none; border-color: var(--gold); }
.note { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 1rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
