/* ============================================================
   THE OLD HOUSE PLAYBOOK · Visual System
   Light European × Wyoming Ranch — "Heritage Ranch Editorial"
   Ivory linen, pine, terracotta, brass, leather.
   Fraunces (display) + Inter (body) + Space Mono (labels).
   ============================================================ */

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400;1,6..96,500&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Paper & ink */
  --paper:        #F6F1E7;   /* ivory linen        */
  --paper-2:      #EFE8DA;   /* deeper cream        */
  --card:         #FCF9F1;   /* card surface        */
  --ink:          #22262B;   /* warm ink            */
  --ink-soft:     rgba(34,38,43,.78);
  --ink-mute:     rgba(34,38,43,.55);
  --ink-faint:    rgba(34,38,43,.36);

  /* Ranch × European accents */
  --pine:         #3E5C4B;   /* sage pine           */
  --pine-deep:    #2F4A3C;
  --pine-glow:    rgba(62,92,75,.16);
  --terracotta:   #C4703F;
  --terracotta-lt:#D98A52;
  --brass:        #B08D57;
  --brass-lt:     #C6A76F;
  --leather:      #6B4A32;
  --cream:        #F1E7D3;

  /* Rules */
  --rule:         rgba(34,38,43,.16);
  --rule-soft:    rgba(34,38,43,.08);
  --rule-brass:   rgba(176,141,87,.4);

  /* Text on photography stays white */
  --text-white:   #FDFBF5;
  --text-wh-2:    rgba(253,251,245,.78);
  --text-wh-3:    rgba(253,251,245,.45);

  /* Type */
  --f-display:    'Bodoni Moda', Georgia, serif;
  --f-body:       'Geist', 'Segoe UI', -apple-system, sans-serif;
  --f-mono:       'Geist Mono', 'SF Mono', monospace;

  --pad:          clamp(1.4rem, 5vw, 5rem);
  --r-sm:         2px;
  --r-md:         8px;
  --r-lg:         14px;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:      cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s; }
button { font-family: inherit; }

/* Subtle linen grain over everything — kills the flat AI look */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: .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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

::selection { background: var(--brass); color: #fff; }

/* ─── Utility container ─────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

/* Editorial details */
.eyebrow, .section-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before, .section-label::before {
  content: '';
  width: 2.2rem; height: 2px;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ─── HEADER: marketing pages (.frame) ──────────────────── */
.frame {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.2rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(246,241,231,.94) 0%, rgba(246,241,231,.65) 55%, transparent 100%);
  border-bottom: 1px solid var(--rule-soft);
  pointer-events: none;
}
.frame a, .frame button { pointer-events: auto; position: relative; }

.frame__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.frame__mark {
  width: 9px; height: 9px;
  background: var(--terracotta);
  transform: rotate(45deg);
}
.frame__nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.frame__nav a:hover { color: var(--terracotta); }
.frame__cta {
  background: var(--terracotta);
  color: #fff !important;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  letter-spacing: 0.12em;
  transition: background .2s, transform .2s;
}
.frame__cta:hover { background: var(--terracotta-lt); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--ink); font-size: 1.4rem; cursor: pointer;
  pointer-events: auto; position: relative;
}

/* ─── HEADER: member/unlock pages (.site-header) ────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246,241,231,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(34,38,43,.06); }
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { display: inline-flex; color: var(--terracotta); }
.brand-name {
  display: block;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; }
.main-nav a {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--terracotta); }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(4rem,8vh,7rem);
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-exterior.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22,24,22,.92) 0%,
    rgba(22,24,22,.5) 42%,
    rgba(22,24,22,.12) 68%,
    rgba(22,24,22,.28) 100%
  );
}
.hero__content { position: relative; z-index: 2; max-width: 1400px; }
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__eyebrow::before { content: ''; width: 3rem; height: 1px; background: var(--brass); display: inline-block; }
.hero__headline {
  font-family: var(--f-display);
  font-size: clamp(3.6rem, 9vw, 9.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 2rem;
  max-width: 14ch;
}
.hero__headline em { font-style: italic; color: var(--brass-lt); }
.hero__sub {
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  color: var(--text-wh-2);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.8rem;
  font-weight: 300;
}
.hero__actions { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 2.6rem;
  right: var(--pad);
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-wh-3);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 3.5rem;
  background: linear-gradient(to bottom, var(--text-wh-3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:.3} 50%{opacity:1} }

/* Rotating ranch badge — sits top-right inside hero */
.rotate-badge {
  position: absolute;
  top: clamp(5.5rem, 12vh, 8rem);
  right: var(--pad);
  z-index: 3;
  width: clamp(112px, 12vw, 150px);
  height: clamp(112px, 12vw, 150px);
}
.rotate-badge svg { width: 100%; height: 100%; overflow: visible; }
.rotate-badge .badge-ring {
  fill: rgba(246,241,231,.08);
  stroke: var(--brass);
  stroke-width: 1;
}
.rotate-badge .badge-text {
  font-family: var(--f-mono);
  font-size: 8.4px;
  letter-spacing: 0.34em;
  fill: var(--cream);
  text-transform: uppercase;
}
.rotate-badge .badge-center {
  font-family: var(--f-display);
  font-size: 15px;
  fill: var(--brass-lt);
}
@media (max-width: 760px) { .rotate-badge { display: none; } }

/* Rotating media pair */
.rotate-media { position: relative; }
.rotate-media .rm-a, .rotate-media .rm-b {
  position: absolute;
  border: 6px solid var(--card);
  box-shadow: 0 24px 60px rgba(22,24,22,.35);
  will-change: transform;
}
.rotate-media .rm-a { inset: 4% 6% auto auto; width: 62%; }
.rotate-media .rm-b { inset: auto auto 6% 6%; width: 50%; }
.rotate-media .rm-plate {
  position: absolute;
  inset: -4%;
  border: 1px solid var(--rule-brass);
  background:
    linear-gradient(45deg, transparent 46%, rgba(176,141,87,.35) 47%, rgba(176,141,87,.35) 53%, transparent 54%);
  pointer-events: none;
}
@media (max-width: 860px) { .rotate-media { display: none; } }

/* Rotating pull-quote */
.rotate-quote {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--pine-deep);
  will-change: transform;
}

/* ─── Scroll-driven rotation (Codrops technique, U7) ────── */
@supports (animation-timeline: view()) {
  .js-motion .rotate-badge { animation: rotBadge 1.4s ease-out both; animation-timeline: view(); }
  .js-motion .rotate-quote { animation: rotQuote 1s ease-out both; animation-timeline: view(); }
  .js-motion .rotate-media .rm-a { animation: rotMediaA 1.2s ease-out both; animation-timeline: view(); }
  .js-motion .rotate-media .rm-b { animation: rotMediaB 1.2s ease-out both; animation-timeline: view(); }
}
@keyframes rotBadge { 0% { transform: rotate(0deg); } 100% { transform: rotate(120deg); } }
@keyframes rotQuote  { 0% { transform: rotate(-4deg); } 100% { transform: rotate(4deg); } }
@keyframes rotMediaA { 0% { transform: rotate(0deg); } 100% { transform: rotate(-9deg); } }
@keyframes rotMediaB { 0% { transform: rotate(0deg); } 100% { transform: rotate(7deg); } }
@media (prefers-reduced-motion: reduce) {
  .rotate-badge, .rotate-quote, .rotate-media .rm-a, .rotate-media .rm-b { animation: none !important; transform: none !important; }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.95rem 1.9rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .3s var(--ease-out);
  white-space: nowrap;
  text-align: center;
}
.btn--gold, .btn--primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  box-shadow: 0 8px 22px rgba(196,112,63,.28);
}
.btn--gold:hover, .btn--primary:hover {
  background: var(--terracotta-lt);
  border-color: var(--terracotta-lt);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--dark:hover { background: var(--pine-deep); border-color: var(--pine-deep); transform: translateY(-2px); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--ghost-light:hover { border-color: #fff; }

/* ─── Scroll stage (GSAP overlay, dark island) ──────────── */
.stage { height: 550vh; position: relative; }
.layers {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #141613;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer image { width: 100%; height: 100%; filter: brightness(0.8) saturate(1.02); }
.layer-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(14,16,14,.6) 100%),
    linear-gradient(to top, rgba(14,16,14,.95) 0%, rgba(14,16,14,.3) 38%, transparent 62%);
  pointer-events: none;
  z-index: 2;
}
.stage-progress {
  position: absolute;
  bottom: 2.5rem; left: var(--pad); right: var(--pad);
  z-index: 20;
  display: flex; gap: 0.8rem; align-items: center;
}
.seg { flex: 1; height: 1px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.seg-fill { position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--brass-lt); }
.stage-num { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-wh-3); min-width: 2.4rem; text-align: right; }
.stage-texts { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.stage-txt {
  position: absolute;
  bottom: 8vh; left: var(--pad); right: 40%;
  clip-path: inset(100% 0 0 0);
  transform: translateY(28px);
  will-change: clip-path, transform;
}
.stage-txt .s-label {
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--brass-lt); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.stage-txt .s-label::before { content: ''; width: 2rem; height: 1px; background: var(--brass-lt); flex-shrink: 0; }
.stage-txt .s-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 400; line-height: 0.92;
  color: var(--text-white); margin-bottom: 1.4rem;
}
.stage-txt .s-title em { font-style: italic; color: var(--brass-lt); }
.stage-txt .s-desc {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  color: var(--text-wh-2); max-width: 38ch; line-height: 1.7; font-weight: 300;
}

/* ─── Sections ──────────────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vh, 8rem) var(--pad); position: relative; z-index: 2; }
.section--dark { background: var(--paper); }
.section--mid  { background: var(--paper-2); }
.section--ruled { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }

.section-headline {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ink);
}
.section-headline em { font-style: italic; color: var(--pine); }
.section-body {
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.75;
  margin-top: 1.2rem;
  font-weight: 300;
}

/* Mountain divider — Wyoming silhouette */
.mountain-divider {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 2.6rem auto 0;
  opacity: .8;
}

/* ─── Before / After slider ─────────────────────────────── */
.ba-wrap { max-width: 1200px; margin: 4rem auto 0; }
.ba-slider, .ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px rgba(34,38,43,.18);
  cursor: ew-resize;
  user-select: none;
}
.ba-layer, .ba-after-layer { position: absolute; inset: 0; }
.ba-layer img, .ba-after-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba-divider, .ba-handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 14px rgba(176,141,87,.6);
  transform: translateX(-50%);
  z-index: 5;
  will-change: left;
}
.ba-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  color: var(--terracotta); font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(34,38,43,.35);
}
.ba-tag {
  position: absolute;
  bottom: 1.3rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  z-index: 4;
}
.ba-tag--before {
  right: 1.3rem;
  background: rgba(20,22,19,.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.ba-tag--after {
  left: 1.3rem;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
}

/* ─── Rotating 3D gallery (Codrops RotatingOnScrollAnimations, U7) ─── */
.gallery-rot {
  position: relative;
  max-width: 1500px;
  margin: 5rem auto 0;
  height: clamp(320px, 42vw, 620px);
  overflow: hidden;
}
.gallery-rot .gallery__item-wrap {
  position: absolute;
  width: clamp(220px, 24vw, 380px);
}
.gallery-rot .gallery__item {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 8px solid var(--card);
  box-shadow: 0 30px 70px rgba(34,38,43,.28);
  background: var(--paper-2);
  will-change: transform;
}
.gallery-rot .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-rot .gallery__item .g-cap {
  position: absolute;
  inset: auto 0 0 0;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(20,22,19,.85), transparent);
  padding: 1.6rem 1.2rem 0.8rem;
}

/* ─── Marquee strip (Codrops marquee pattern) ─── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--pine);
  padding: 1.1rem 0;
}
.marquee__inner {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee span {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.marquee span em { font-style: normal; color: var(--terracotta-lt); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation: none; flex-wrap: wrap; justify-content: center; }
  .gallery-rot .gallery__item { transform: none !important; }
}

/* ─── Quiz ──────────────────────────────────────────────── */
.quiz-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 26px 60px rgba(34,38,43,.08);
  padding: clamp(2.2rem, 5vw, 3.6rem);
}
.quiz-head { text-align: center; margin-bottom: 2.6rem; }
.quiz-head .section-label { justify-content: center; }
.quiz-head .section-label::before { display: none; }
.q-prompt {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  margin-top: 0.5rem;
  line-height: 1.25;
}
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.85rem; }
.opt {
  padding: 1.1rem 1.3rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
}
.opt:hover { background: var(--cream); border-color: var(--brass); color: var(--ink); }
.opt.selected, .opt.is-selected { background: var(--pine); border-color: var(--pine); color: #fff; }
.quiz-result {
  display: none;
  margin-top: 2.2rem;
  padding: 2.2rem;
  background: var(--cream);
  border: 1px solid var(--rule-brass);
  border-radius: var(--r-md);
  text-align: center;
}
.quiz-result.is-show { display: block; }
.quiz-result h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin: 0.5rem 0; }
.quiz-result p { color: var(--ink-soft); font-size: 0.92rem; max-width: 38ch; margin: 0 auto 1.6rem; }

/* ─── Data table ────────────────────────────────────────── */
.tbl-wrap {
  max-width: 1100px;
  margin: 3rem auto 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; text-align: left; }
thead th {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
  padding: 1.1rem 1.5rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
}
tbody td, tbody th {
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.9rem;
  vertical-align: top;
}
tbody th { color: var(--ink); font-weight: 600; min-width: 180px; }
tbody td { color: var(--ink-soft); font-weight: 300; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
.savings { color: var(--terracotta) !important; font-weight: 700 !important; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.04em; }

/* ─── Kit modules (curriculum) ──────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  max-width: 1400px;
  margin: 3.5rem auto 0;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.mod-card { background: var(--card); padding: 2.1rem 2.2rem; transition: background .25s; }
.mod-card:hover { background: var(--cream); }
.mod-num {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
  display: block;
}
.mod-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); line-height: 1.25; margin-bottom: 0.8rem; }
.mod-body { font-size: 0.88rem; color: var(--ink-mute); line-height: 1.7; font-weight: 300; }

/* ─── Email capture ─────────────────────────────────────── */
.capture-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.capture-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--rule); }
.capture-img img { width: 100%; height: 100%; object-fit: cover; }
.capture-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.form-input {
  flex: 1; min-width: 200px;
  padding: 0.95rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  outline: none;
  transition: border-color .2s;
}
.form-input::placeholder { color: var(--ink-faint); }
.form-input:focus { border-color: var(--pine); }
.form-status { font-family: var(--f-mono); font-size: 0.72rem; color: var(--pine); min-height: 1.2rem; }
.form-status.is-error { color: #a33; }
.form-status.is-success { color: var(--pine); }
.form-status.is-muted { color: var(--ink-mute); }

/* ─── Pricing ───────────────────────────────────────────── */
.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  max-width: 1200px;
  margin: 3.5rem auto 0;
  align-items: start;
}
.pricing-meta { padding-top: 1rem; }
.pricing-meta .section-headline { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.price-list { list-style: none; margin: 2.2rem 0 3rem; display: flex; flex-direction: column; gap: 1rem; }
.price-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; line-height: 1.55; }
.price-list li::before { content: '✦'; color: var(--terracotta); flex-shrink: 0; margin-top: 0.05em; font-size: 0.7rem; }

.pricing-card {
  background: var(--card);
  border: 1px solid var(--rule-brass);
  border-radius: var(--r-lg);
  padding: 2.8rem 2.4rem;
  position: relative;
  box-shadow: 0 26px 60px rgba(34,38,43,.1);
}
.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--pine);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  white-space: nowrap;
}
.price-display { display: flex; align-items: baseline; gap: 0.8rem; margin: 1.6rem 0; }
.price-main { font-family: var(--f-display); font-size: 4.6rem; font-weight: 500; color: var(--ink); line-height: 1; }
.price-was { font-family: var(--f-mono); font-size: 1.1rem; color: var(--ink-faint); text-decoration: line-through; }
.price-off {
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  color: var(--terracotta); text-transform: uppercase;
  border: 1px solid var(--rule-brass); padding: 0.25rem 0.55rem;
}
.price-divider { height: 1px; background: var(--rule); margin: 1.6rem 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.8rem; }
.price-features li { font-size: 0.85rem; color: var(--ink-soft); display: flex; gap: 0.8rem; }
.price-features li::before { content: '—'; color: var(--terracotta); flex-shrink: 0; }
.price-note { text-align: center; font-family: var(--f-mono); font-size: 0.64rem; color: var(--ink-mute); margin-top: 1.1rem; letter-spacing: 0.08em; }
.price-note a { color: var(--terracotta); text-decoration: underline; }

/* ─── Placeholder guard ─────────────────────────────────── */
a[data-buy].is-placeholder { opacity: .85; }
a[data-buy].is-placeholder::after { content: ' · waitlist'; }
#buy-placeholder-msg {
  background: var(--cream);
  border: 1px solid var(--rule-brass);
  padding: 1rem 1.4rem;
  margin: 1.2rem auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 3.8rem var(--pad) 2.4rem;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper-2);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.footer-links { display: flex; gap: 2.2rem; list-style: none; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.footer-links a:hover { color: var(--terracotta); }

/* Member footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.2rem;
}
.footer-grid h4 {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.footer-grid p { font-size: 0.9rem; color: var(--ink-mute); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-grid a { font-size: 0.88rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--terracotta); }
.footer-bottom { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ink-faint); border-top: 1px solid var(--rule-soft); padding-top: 1.4rem; }

/* ─── Subpages: page hero ───────────────────────────────── */
.page-hero {
  padding: clamp(9rem, 16vh, 12rem) var(--pad) clamp(3.6rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-soft);
  background:
    radial-gradient(ellipse 90% 120% at 85% -10%, rgba(196,112,63,.14), transparent 55%),
    radial-gradient(ellipse 70% 110% at 8% 110%, rgba(62,92,75,.18), transparent 60%),
    var(--paper);
}
.page-hero .section-label { color: var(--terracotta); }
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 1.6rem;
}
.page-hero h1 em { font-style: italic; color: var(--pine); }
.page-hero p { font-size: clamp(0.92rem, 1.1vw, 1.06rem); color: var(--ink-soft); max-width: 54ch; line-height: 1.75; font-weight: 300; }

/* ─── Article layout ────────────────────────────────────── */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3.6rem, 7vw, 6rem) var(--pad);
}
.article-wrap h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; color: var(--ink); margin-bottom: 1.4rem; }
.article-wrap h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-soft);
}
.article-wrap h2:first-of-type { border-top: none; }
.article-wrap p {
  font-size: clamp(0.95rem, 1.05vw, 1.06rem);
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.article-wrap p:first-of-type:first-letter {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--terracotta);
}
.article-wrap strong { color: var(--ink); font-weight: 600; }
.article-wrap em { color: var(--pine); font-style: italic; }
.article-wrap ul, .article-wrap ol { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.article-wrap li { color: var(--ink-soft); font-size: clamp(0.92rem, 1vw, 1.02rem); line-height: 1.75; margin-bottom: 0.5rem; }
.article-wrap table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.87rem; }
.article-wrap th, .article-wrap td { padding: 0.85rem 1rem; border: 1px solid var(--rule); text-align: left; }
.article-wrap thead th { background: var(--paper-2); color: var(--pine); font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; }
.article-wrap tbody tr:hover { background: var(--paper-2); }
.article-wrap tbody td.savings { color: var(--terracotta); font-weight: 700; }
.article-figure { margin: 2.2rem 0; }
.article-figure img { border-radius: var(--r-md); border: 1px solid var(--rule); }
.article-figure figcaption { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.7rem; }

/* ─── Audit checklist page ──────────────────────────────── */
.audit-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 14px 40px rgba(34,38,43,.05);
}
.audit-card-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.audit-time { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); flex-shrink: 0; }
.audit-card > .audit-desc { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 1rem; }
.check-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--rule);
  cursor: pointer;
}
.check-row input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--pine); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.check-row .cr-body strong { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.check-row .cr-body span { color: var(--ink-mute); font-size: 0.88rem; line-height: 1.55; }
.check-flag {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-brass);
  color: var(--terracotta);
  padding: 0.1rem 0.35rem;
}

/* ─── Member: unlock box + kit legacy sections ──────────── */
.unlock-box {
  max-width: 460px;
  margin: 2.5rem auto 3rem;
  background: var(--card);
  border: 1px solid var(--rule-brass);
  border-radius: var(--r-lg);
  padding: 3rem 2.4rem;
  text-align: center;
  box-shadow: 0 26px 60px rgba(34,38,43,.1);
}
.unlock-box h1 { font-family: var(--f-display); font-size: 2rem; font-weight: 500; color: var(--ink); margin-bottom: 0.7rem; }
.unlock-box p { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 1.8rem; font-weight: 300; }
.unlock-box input[type="password"] {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color .2s;
}
.unlock-box input[type="password"]:focus { border-color: var(--pine); }
.unlock-msg { font-family: var(--f-mono); font-size: 0.72rem; color: var(--pine); margin-top: 0.8rem; min-height: 1.2rem; }
.unlock-msg.is-error { color: #a33; }
.unlock-msg.is-success { color: var(--pine); }
.unlock-hint { font-size: 0.85rem !important; color: var(--ink-mute) !important; margin-top: 1.1rem !important; }
.unlock-hint a { color: var(--terracotta); text-decoration: underline; }
.unlock-note { text-align: center; font-size: 0.88rem; color: var(--ink-mute); }
.unlock-note a { color: var(--terracotta); text-decoration: underline; }

.member-hero {
  padding: 4.5rem var(--pad) 3rem;
  background:
    radial-gradient(ellipse 80% 100% at 90% 0%, rgba(196,112,63,.16), transparent 55%),
    var(--paper-2);
  border-bottom: 1px solid var(--rule-soft);
}
.member-hero h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; color: var(--ink); }
.member-hero p { color: var(--ink-soft); max-width: 52ch; margin-top: 0.9rem; font-weight: 300; }

.kit-wrap { max-width: 900px; margin: 3rem auto; padding: 0 var(--pad); }
.kit-section {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 2.4rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 14px 40px rgba(34,38,43,.05);
}
.kit-section h2 {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1.3rem;
}
.sec-num { font-family: var(--f-mono); font-size: 0.7rem; color: var(--terracotta); letter-spacing: 0.15em; }
.kit-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.kit-stat {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  background: rgba(62,92,75,.08);
  border: 1px solid var(--rule-brass);
  padding: 0.2rem 0.55rem;
}
.kit-section ol, .kit-section ul { padding-left: 1.2rem; margin: 1rem 0; color: var(--ink-soft); }
.kit-section li { margin-bottom: 0.65rem; line-height: 1.65; font-size: 0.9rem; font-weight: 300; }
.kit-section li strong { color: var(--ink); font-weight: 600; }
.note {
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  padding: 0.8rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--rule-soft); }

/* ─── Calculator page ───────────────────────────────────── */
.calc-section { padding: 4.5rem var(--pad); background: var(--paper); }
.calc-form { max-width: 720px; margin: 2.6rem auto 0; display: grid; gap: 1.4rem; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.45rem;
}
.field input, .field select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--pine); }
.field select option { background: var(--card); }
#calc-output {
  background: var(--card);
  border: 1px solid var(--rule-brass);
  border-radius: var(--r-md);
  padding: 2.2rem;
  display: none;
  margin-top: 1.4rem;
  box-shadow: 0 18px 50px rgba(34,38,43,.08);
}

/* ─── Reveal on scroll ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ─── Evidence note (shared proof box, used on blog/compare pages) ─── */
.evidence-note {
  margin: 2.2rem 0;
  padding: 1.1rem 1.3rem;
  background: #fffdf7;
  border: 1px solid #ece5d8;
  border-left: 3px solid var(--terracotta);
  font-family: var(--f-body);
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
}
.evidence-note .en-meta {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8f80;
  display: block;
  margin-bottom: 0.35rem;
}
.evidence-note strong { color: #141414; font-weight: 600; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pricing-layout { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .pricing-layout .pricing-card { max-width: 520px; }
  .capture-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .capture-img { aspect-ratio: 16/7; }
}
@media (max-width: 860px) {
  .frame__nav, .main-nav { display: none; }
  .frame__nav.is-open, .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(246,241,231,.98);
    z-index: 300;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    font-size: 1rem;
  }
  .nav-toggle { display: block; }
  .stage-txt { right: 5%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .modules { grid-template-columns: 1fr; }
  .pricing-layout .pricing-card { padding: 2.2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr 1fr; }
  .hero__headline { min-width: 0; }
  .btn { white-space: normal; }
  .section-headline { overflow-wrap: break-word; }
}

/* ─── Print ─────────────────────────────────────────────── */
@media print {
  body::after, .frame, .site-header, .site-footer, #webgpu-overlay, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .article-wrap { padding: 1rem; }
  .page-hero { padding: 1.5rem 1rem; }
  .audit-card, .kit-section, .quiz-wrap, .pricing-card { border-color: #999; background: #fff; color: #000; box-shadow: none; break-inside: avoid; }
  .section-headline, .article-wrap h1, .article-wrap h2, .audit-card-title, .kit-section h2, .price-main { color: #000; }
  .article-wrap p, .article-wrap li, .section-body, .mod-body, .price-list li, .price-features li, .audit-card > .audit-desc, .check-row .cr-body span { color: #333; }
  a { color: #000; }
}