/* =========================================================================
   Passive Self-Publishing · funnel design system (system B)
   Sam's own world, elevated: cream paper, his gold (#BC9C21), the slate of his
   logo plate, Inter for text and a gold italic serif for display words (his
   "Then vs Now" slide style). Light, calm, British-understated, gold-premium.
   Background: clean minimal paper with a faint ruled-page texture and soft
   gold/slate blooms (gradients.md "clean minimal" + low light wash).
   ========================================================================= */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-italic-var.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  --bg: #faf6ec;
  --bg-2: #f4eddc;
  --surface: #fffdf8;
  --surface-2: #f6f0e1;
  --line: rgba(27, 24, 16, 0.12);
  --line-soft: rgba(27, 24, 16, 0.07);
  --text: #1b1810;
  --text-2: #554d3b;
  --text-3: #6b6350;
  --gold: #bc9c21;
  --gold-2: #e0c766;
  --gold-deep: #7a6312;
  --slate: #4f6b78;
  --slate-deep: #33505c;
  --cta: #c9a227;
  --cta-2: #dcbb4a;
  --cta-ink: #1b1810;
  --gold-soft: rgba(188, 156, 33, 0.12);
  --gold-glow: rgba(188, 156, 33, 0.34);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(70% 45% at 50% -8%, rgba(188, 156, 33, 0.13), transparent 70%),
    radial-gradient(40% 30% at 0% 38%, rgba(79, 107, 120, 0.08), transparent 70%),
    radial-gradient(40% 30% at 100% 70%, rgba(188, 156, 33, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
  background-attachment: fixed;
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(0deg, rgba(79, 107, 120, 0.035) 0 1px, transparent 1px 34px); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-2); color: var(--text); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }
.section { padding: clamp(72px, 10vh, 112px) 0; position: relative; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 18px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
h1 em, h2 em, h3 em, .gold { font-style: italic; color: var(--gold-deep); font-weight: 600; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); line-height: 1.6; margin: 20px auto 0; max-width: 60ch; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 7vh, 72px); }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 17px 36px; border-radius: 999px; border: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn-primary { background: linear-gradient(120deg, var(--cta), var(--cta-2)); color: var(--cta-ink);
  box-shadow: 0 16px 36px -14px var(--gold-glow), inset 0 1px 0 rgba(255, 253, 248, .5); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(110deg, transparent, rgba(255, 253, 248, .55), transparent); animation: sheen 4.5s var(--ease) infinite; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px var(--gold-glow); }
.btn .ar { transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn-lg { font-size: 17px; padding: 19px 42px; }

/* reveal (funnel.js-free, IO-driven) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 253, 248, .8) inset, 0 18px 44px -30px rgba(27, 24, 16, .35); }

/* faux video */
.vid { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #14130f;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(27, 24, 16, .55); }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 45%, rgba(20, 19, 15, 0.05), rgba(20, 19, 15, 0.45)); }
.vid .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cta); color: var(--cta-ink); box-shadow: 0 0 0 0 var(--gold-glow); animation: pulse 2.4s ease-out infinite; }
.vid .play svg { width: 30px; height: 30px; margin-left: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); } 100% { box-shadow: 0 0 0 22px rgba(201, 162, 39, 0); } }

/* proof grid: 8 equal tiles (symmetry rule) */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof-grid figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -24px rgba(27, 24, 16, .4); transition: transform .3s var(--ease); }
.proof-grid figure:hover { transform: translateY(-4px); }
.proof-grid img { width: 100%; aspect-ratio: 1500/844; object-fit: cover; }

/* student quotes (2-up) */
.qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 940px; margin: 0 auto; }
.q { padding: 34px 32px; text-align: center; }
.q p { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.45; margin: 0; color: var(--text); }
.q .who { display: block; margin-top: 18px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text-2); }
.q .who small { display: block; font-weight: 500; color: var(--text-3); margin-top: 2px; }

/* footer: branding-only banner, 1.5x the lockup height, centred */
.foot { display: flex; align-items: center; justify-content: center; height: 39px; margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(188, 156, 33, .08)); border-top: 1px solid var(--line); }
.lockup { display: inline-flex; align-items: center; gap: 9px; height: 26px; font-family: var(--sans); font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.lockup svg { width: 26px; height: 26px; }

@media (max-width: 900px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } .qgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .btn-primary::after, .vid .play { animation: none; }
  html { scroll-behavior: auto; }
}
/* mobile hardening (mobile.md) */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption, h1, h2, h3 { overflow-wrap: anywhere; }
