/* ============================================================
   Stone Haven Capital Group — ColdIQ-skinned design system
   Warm cream · editorial serif display · clean grotesk body
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&family=Hanken+Grotesk:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* warm cream surfaces */
  --cream-bg:     #F7F2E7;
  --cream-2:      #F2ECDD;   /* recessed bands */
  --cream-raised: #FCFAF3;   /* cards */
  --paper:        #FFFDF8;

  /* warm ink */
  --ink:        #1D1A14;
  --ink-soft:   #2C271F;
  --muted:      #6A6155;
  --muted-2:    #938A7B;

  /* hairlines */
  --line:        #E6DFCF;
  --line-strong: #D9D0BC;

  /* near-black controls */
  --btn:       #1C1913;
  --btn-hover: #322c22;
  --btn-text:  #FBF8F0;

  /* accent (tweakable) — deep emerald, Stone Haven signature */
  --accent:      #1F7A57;
  --accent-deep: #13573D;
  --accent-soft: #E3F0EA;

  /* diagram chip palette */
  --chip-teal:   #2BA8A0;
  --chip-green:  #3E9C6B;
  --chip-purple: #7C5AD6;
  --chip-blue:   #2F6BD8;

  /* type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'Spline Sans Mono', ui-monospace, Menlo, monospace;

  /* rhythm (tweakable via --pad-scale) */
  --pad-scale: 1;
  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 22px;

  /* champagne accent — reserved for the premium tier */
  --gold:      #B89968;
  --gold-2:    #D8BD8C;
  --gold-soft: rgba(184,153,104,0.14);

  /* premium elevation — warm, layered, never pure black */
  --ring-top:     inset 0 1px 0 rgba(255,255,255,0.72);
  --shadow-soft:  0 2px 4px -2px rgba(40,34,20,0.06), 0 16px 34px -22px rgba(40,34,20,0.22);
  --shadow-lift:  0 8px 16px -8px rgba(40,34,20,0.12), 0 32px 62px -28px rgba(40,34,20,0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--cream-bg); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: calc(96px * var(--pad-scale)) 0; }
.section--tight { padding: calc(64px * var(--pad-scale)) 0; }
.band { background: var(--cream-2); }

/* ---------- display type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display:has(.em) {      /* two-part title: roman line flips to italic */
  font-style: italic;
}
.display .em {           /* first line: grotesque, upright */
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
}
/* stacked editorial titles (italic line + roman line): flex column makes
   the bare roman text its own item, so lines can never overlap at any width. */
.hero .display,
.section-head .display,
.guar__title,
.final__title { display: flex; flex-direction: column; }
.section-head .display,
.guar__title,
.final__title { align-items: center; text-align: center; }
.h1 { font-size: clamp(44px, 6.1vw, 84px); }
.h2 { font-size: clamp(34px, 4.4vw, 60px); }
.h3 { font-size: clamp(22px, 2.3vw, 30px); }
.section-head { text-align: center; }
.section-head .display { font-size: clamp(34px, 4.4vw, 58px); }
.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
  text-wrap: pretty;
}
.section-head .lead { margin: 18px auto 0; }
.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  margin: 0 0 14px;
}
.section-head .kicker { text-align: center; }

/* serif card titles */
.s-title { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  border: none; border-radius: 999px;
  padding: 14px 24px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--dark { background: var(--btn); color: var(--btn-text); }
.btn--dark:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.02); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- email capture ---------- */
.capture {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  max-width: 470px;
  box-shadow: 0 12px 30px -22px rgba(40,34,20,0.5);
}
.capture input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  min-width: 0;
}
.capture input::placeholder { color: var(--muted-2); }
.capture .btn { padding: 12px 22px; }
.form-note { font-size: 13px; color: var(--muted-2); margin: 12px 2px 0; }
.form-note.err { color: #b4452f; }
.form-note.ok { color: var(--chip-green); }

/* ---------- generic card ---------- */
.card {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--ring-top), var(--shadow-soft);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--ring-top), var(--shadow-lift);
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 23px;
  color: var(--muted-2); letter-spacing: -0.01em; white-space: nowrap;
  opacity: 0.72; transition: opacity .2s, color .2s;
}
.wordmark:hover { opacity: 1; color: var(--ink); }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.logomark {
  height: 34px; width: auto; flex: none; align-self: center;
  filter: grayscale(100%); opacity: 0.62;
  transition: filter .25s ease, opacity .25s ease;
}
.logomark:hover { filter: none; opacity: 1; }

/* ---------- divider grid (where we shine) ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 34px;
}
.feature-cell .ic { width: 26px; height: 26px; color: var(--ink); margin-bottom: 26px; }
.feature-cell h4 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 10px; }
.feature-cell p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.01em; white-space: nowrap;
}
.chip--line { border: 1px solid var(--line-strong); color: var(--muted); background: var(--paper); }
.chip--teal { background: rgba(43,168,160,.13); color: #1d7872; }
.chip--green { background: rgba(62,156,107,.14); color: #2c724e; }
.chip--purple { background: rgba(124,90,214,.13); color: #5a3eb0; }
.chip--blue { background: var(--accent-soft); color: var(--accent-deep); }
.chip--dark { background: var(--btn); color: var(--btn-text); }

/* reveal-on-scroll: content is ALWAYS fully opaque; reveal only adds a subtle rise.
   Bulletproof under any JS/observer/capture timing — nothing is ever hidden. */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s cubic-bezier(.16,.84,.44,1), transform .9s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* section headings — bolder, soft cascade: the title lifts further, the subtext follows */
.section-head.reveal { opacity: 1; transform: none; transition: none; }
.section-head.reveal > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.section-head.reveal.in > * { opacity: 1; transform: none; }
.section-head.reveal.in > *:nth-child(2) { transition-delay: .08s; }
.section-head.reveal.in > *:nth-child(3) { transition-delay: .16s; }
/* staggered children — cards/cells cascade in one after another */
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .72s cubic-bezier(.16,.84,.44,1), transform .72s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .30s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .36s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .42s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: .48s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .section-head.reveal > * { transform: none; transition: none; opacity: 1; }
  .marquee__track { animation: none; }
}

/* media placeholder (video thumbs / images) */
.ph {
  position: relative; background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 9px, transparent 9px 18px), var(--cream-2);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.ph__play {
  width: 60px; height: 60px; border-radius: 999px; background: rgba(28,25,19,.86);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .2s, background .2s;
}
.ph:hover .ph__play { transform: scale(1.06); background: var(--accent); }

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: calc(66px * var(--pad-scale)) 0; }
}
