/* ============================================================
   PURMARK — Dark Luxe design system
   Tokens first; every section styled below. Zero build step.
   ============================================================ */

:root {
  --obsidian: #0A0A0F;
  --panel: #12121A;
  --panel-2: #16161F;
  --gold: #C9A962;
  --gold-pale: #E8D5A8;
  --ivory: #F5F2EA;
  --slate: #8A8A96;
  --line: rgba(201, 169, 98, 0.22);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

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

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

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--obsidian); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- film grain + vignette ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5));
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12; letter-spacing: 0.005em;
}
.h2 em, .hero__title em, .closer__title em { font-style: italic; color: var(--gold-pale); }
.h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.55rem; margin-bottom: 0.75rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold);
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B08F45 100%);
  color: var(--obsidian);
  box-shadow: 0 0 32px rgba(201, 169, 98, 0.18);
}
.btn--gold:hover {
  box-shadow: 0 0 48px rgba(201, 169, 98, 0.45);
  transform: translateY(-2px);
}
.btn--ghost { background: transparent; color: var(--gold-pale); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,98,0.06); }
.btn--lg { padding: 1.15rem 2.8rem; }
.btn--nav { padding: 0.65rem 1.5rem; font-size: 0.7rem; }
.btn--block { display: block; text-align: center; margin-top: auto; }

/* ---------- glass surface ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  transition: all 0.4s var(--ease);
}
.nav--scrolled {
  padding-top: 0.8rem; padding-bottom: 0.8rem;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; color: var(--gold); }
.nav__mark { width: 30px; height: 30px; }
.nav__wordmark {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.42em; color: var(--ivory);
}
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a:not(.btn) {
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate); transition: color 0.3s;
}
.nav__links a:not(.btn):hover { color: var(--gold-pale); }
.nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(10,10,15,0.15), rgba(10,10,15,0.82) 90%),
    linear-gradient(to bottom, rgba(10,10,15,0.45), transparent 30%, transparent 65%, var(--obsidian));
}
.hero__content { position: relative; z-index: 2; max-width: 900px; padding: 0 1.5rem; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 1.06; margin-bottom: 1.6rem;
}
.hero__sub {
  max-width: 620px; margin: 0 auto 2.6rem;
  font-size: 1.06rem; color: rgba(245, 242, 234, 0.75);
}
.hero__cta { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero__scroll-line {
  display: block; width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.9; transform-origin: top; }
  50% { transform: scaleY(0.45); opacity: 0.35; transform-origin: top; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(5rem, 10vw, 8.5rem) clamp(1.25rem, 4vw, 3.5rem); position: relative; }
.section__inner { max-width: var(--w-max); margin: 0 auto; }
.section__inner--narrow { max-width: 820px; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lede { margin-top: 1.2rem; color: var(--slate); max-width: 520px; }

.cards3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cards3--wrap { grid-auto-rows: 1fr; } /* 6-card strategy grid: equal-height rows */

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-top: 1px solid rgba(201,169,98,0.1);
  border-bottom: 1px solid rgba(201,169,98,0.1);
  background: linear-gradient(180deg, var(--obsidian), var(--panel) 50%, var(--obsidian));
  padding: 3.2rem clamp(1.25rem, 4vw, 3.5rem);
}
.stats__grid {
  max-width: var(--w-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold-pale); line-height: 1;
}
.stat__label {
  display: block; margin-top: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   THE DIVIDE
   ============================================================ */
.divide__grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start;
}
.divide__right p { margin-bottom: 1.4rem; color: rgba(245,242,234,0.8); }
.divide__accent {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--gold-pale) !important;
  border-left: 1px solid var(--gold); padding-left: 1.4rem; margin-top: 2rem;
}

/* four principles row (inside philosophy section) */
.principles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid rgba(201,169,98,0.14);
}
.principle h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  color: var(--gold-pale); margin-bottom: 0.6rem;
}
.principle p { font-size: 0.88rem; color: rgba(245,242,234,0.66); }

/* ============================================================
   THE OFF-THE-SHELF PROBLEM (pain → agitate → solve)
   ============================================================ */
.pas { background: linear-gradient(180deg, var(--obsidian), #0D0D13 55%, var(--obsidian)); }
.pas__flow { position: relative; padding-left: clamp(2rem, 5vw, 3.5rem); margin-top: 0.5rem; }
.pas__line {
  position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 1px;
  background: rgba(201, 169, 98, 0.16);
}
.pas__line-fill {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--gold), var(--gold-pale));
  transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 12px rgba(201,169,98,0.5);
}
.pas__beat { margin-bottom: clamp(2.8rem, 6vw, 4.2rem); max-width: 660px; }
.pas__beat:last-child { margin-bottom: 0; }
.pas__beat .h2 { margin-bottom: 1rem; }
.pas__h3 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2; margin-bottom: 0.9rem;
}
.pas__beat p { color: rgba(245,242,234,0.78); margin-bottom: 1.1rem; }
.pas__cta { margin-top: 0.9rem; }

/* ============================================================
   INSTRUMENTS MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(201,169,98,0.12);
  border-bottom: 1px solid rgba(201,169,98,0.12);
  padding: 1.35rem 0;
}
.marquee__track { display: flex; width: max-content; animation: marqueeScroll 48s linear infinite; }
.marquee__set { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; }
.marquee__set span {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--gold-pale); opacity: 0.85; white-space: nowrap;
}
.marquee__set i { color: var(--gold); font-style: normal; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ============================================================
   FIVE-LAYER FRAMEWORK
   ============================================================ */
.layers { display: flex; flex-direction: column; gap: 0.9rem; perspective: 1200px; }
.layer {
  display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3rem);
  padding: 1.9rem clamp(1.4rem, 3vw, 2.6rem);
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.layer:hover {
  border-color: rgba(201,169,98,0.5);
  transform: translateX(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 32px rgba(201,169,98,0.06);
}
.layer__num {
  font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--gold); opacity: 0.85; line-height: 1; flex-shrink: 0;
  min-width: 2ch;
}
.layer__body .h3 { margin-bottom: 0.4rem; font-size: 1.35rem; }
.layer__body p { font-size: 0.93rem; color: rgba(245,242,234,0.7); }
.framework__note {
  margin-top: 2.4rem; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--gold-pale);
}

/* ============================================================
   CASH FLOW MACHINE BAND
   ============================================================ */
.cfm {
  border-top: 1px solid rgba(201,169,98,0.12);
  border-bottom: 1px solid rgba(201,169,98,0.12);
  background: linear-gradient(90deg, rgba(201,169,98,0.06), transparent 60%);
  padding: 2.8rem clamp(1.25rem, 4vw, 3.5rem);
}
.cfm__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cfm__inner .eyebrow { margin-bottom: 0.6rem; }
.cfm__text { max-width: 560px; color: rgba(245,242,234,0.78); font-size: 0.97rem; }

/* strategy card tag */
.card__tag {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.3rem;
}

/* ============================================================
   METHOD CARDS
   ============================================================ */
.card { padding: 2.6rem 2.2rem; transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.card:hover {
  border-color: rgba(201,169,98,0.5);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 0 40px rgba(201,169,98,0.07);
}
.card__num {
  font-family: var(--serif); font-size: 1.1rem; color: var(--gold);
  letter-spacing: 0.2em; margin-bottom: 1.6rem;
}
.card p { color: rgba(245,242,234,0.72); font-size: 0.95rem; }

/* ============================================================
   OFFER / TIERS
   ============================================================ */
.offer { background: linear-gradient(180deg, var(--obsidian), #0D0D14 50%, var(--obsidian)); }
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; align-items: stretch;
  perspective: 1400px;
}
.tier {
  display: flex; flex-direction: column;
  padding: 2.8rem 2.3rem;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.tier--flagship {
  border-color: rgba(201,169,98,0.55);
  background: linear-gradient(165deg, rgba(201,169,98,0.09), rgba(201,169,98,0.015) 55%);
  box-shadow: 0 0 60px rgba(201,169,98,0.1);
}
.tier__flag {
  position: absolute; top: 1.15rem; right: 1.3rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.tier { position: relative; }
.tier__name {
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 1.1rem;
}
.tier__price {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold-pale);
  line-height: 1; margin-bottom: 1.8rem;
}
.tier__price sup { font-size: 1.2rem; vertical-align: 0.9rem; margin-right: 0.1rem; }
.tier__price span { font-family: var(--sans); font-size: 0.8rem; color: var(--slate); letter-spacing: 0.08em; }
.tier__list { margin-bottom: 2.2rem; flex: 1; }
.tier__list li {
  padding: 0.6rem 0 0.6rem 1.6rem; position: relative;
  font-size: 0.92rem; color: rgba(245,242,234,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tier__list li::before {
  content: "·"; position: absolute; left: 0.3rem;
  color: var(--gold); font-weight: 600; font-size: 1.4rem; line-height: 1.1;
}
.offer__note {
  margin-top: 2.6rem; text-align: center;
  font-size: 0.82rem; color: var(--slate); max-width: 640px;
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   PROOF / TESTIMONIALS
   ============================================================ */
.quote { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; }
.quote blockquote {
  font-family: var(--serif); font-size: 1.22rem; font-style: italic;
  line-height: 1.5; color: rgba(245,242,234,0.9); flex: 1;
}
.quote figcaption {
  margin-top: 1.8rem; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { background: linear-gradient(180deg, var(--obsidian), var(--panel) 60%, var(--obsidian)); }
.founder__grid {
  display: grid; grid-template-columns: 4fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.founder__monogram {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
}
.founder__monogram span {
  font-family: var(--serif); font-size: clamp(6rem, 12vw, 10rem);
  color: var(--gold); opacity: 0.85;
}
.founder__letter p { margin-top: 1.4rem; color: rgba(245,242,234,0.8); }
.founder__letter .h2 { margin-bottom: 0.6rem; }
.founder__sig {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--gold-pale) !important; margin-top: 2rem !important;
}
.founder__role {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--slate); margin-top: 0.5rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq__item { padding: 0 1.8rem; transition: border-color 0.3s; }
.faq__item[open] { border-color: rgba(201,169,98,0.45); }
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 1.35rem 2rem 1.35rem 0;
  font-weight: 400; font-size: 1.02rem; color: var(--ivory);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 1.5rem; color: rgba(245,242,234,0.72); font-size: 0.95rem; }
.faq__item p a { color: var(--gold); border-bottom: 1px solid var(--line); }

/* ============================================================
   CLOSER
   ============================================================ */
.closer {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(201,169,98,0.13), transparent 70%),
    var(--obsidian);
}
.closer__title { margin-bottom: 2.4rem; }
.closer__note { margin-top: 1.6rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid rgba(201,169,98,0.12); padding: 3.5rem clamp(1.25rem, 4vw, 3.5rem) 2.5rem; }
.footer__inner {
  max-width: var(--w-max); margin: 0 auto 2.8rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer__brand p { margin-top: 0.9rem; font-size: 0.85rem; color: var(--slate); }
.footer__links { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.footer__links a {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate); transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold-pale); }
.footer__legal { max-width: var(--w-max); margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; }
.footer__legal p { font-size: 0.72rem; line-height: 1.8; color: rgba(138,138,150,0.75); margin-bottom: 0.9rem; }

/* ============================================================
   LEGAL PAGES (privacy.html / terms.html)
   ============================================================ */
.legal { padding: 9rem clamp(1.25rem, 4vw, 3.5rem) 5rem; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__updated {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate); margin: 1rem 0 3rem;
}
.legal h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.45rem;
  color: var(--gold-pale); margin: 2.6rem 0 0.8rem;
}
.legal p { color: rgba(245,242,234,0.78); font-size: 0.95rem; margin-bottom: 1rem; }
.legal a { color: var(--gold); border-bottom: 1px solid var(--line); }
.legal__note { margin-top: 2.5rem; font-size: 0.82rem; color: var(--slate); }
.nav__links--legal { display: flex !important; position: static !important; opacity: 1 !important; pointer-events: auto !important; background: none !important; flex-direction: row !important; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .cards3, .tiers { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .divide__grid, .founder__grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .layer { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .cfm__inner { flex-direction: column; align-items: flex-start; }
  .founder__portrait { max-width: 300px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .nav__toggle {
    display: flex; flex-direction: column; gap: 7px;
    background: none; border: none; cursor: pointer; padding: 6px; z-index: 55;
  }
  .nav__toggle span {
    width: 26px; height: 1px; background: var(--gold);
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }
  .nav--open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav--open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 2.4rem;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav--open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { font-size: 0.95rem; }
}

@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  .marquee__track { animation: none; }
  .pas__line-fill { transform: scaleY(1); }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
