/* Bela Khan — Books landing
   Design system: design-system/bela-khan/MASTER.md (+ pages/books.md override)
   Ivory / ink / antique gold · Cormorant Garamond + Inter */

:root {
  --ivory: #FAF7F2;
  --ivory-2: #F3EDE3;
  --sand: #E7DCCB;
  --ink: #1C1917;
  --ink-2: #44403C;
  --muted: #6B6259;
  --gold: #A16207;
  --gold-2: #C08A2E;
  --gold-soft: #F4E7CC;
  --night: #16130F;
  --kyv: #8E1418;
  --dm: #26206B;
  --line: rgba(28, 25, 23, .12);
  --card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06), 0 2px 8px rgba(28, 25, 23, .05);
  --shadow-md: 0 10px 30px -12px rgba(28, 25, 23, .25);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body.bk-landing {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- type ---------- */
.display, .h2, .h3, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
.display { font-size: clamp(42px, 5.4vw, 80px); line-height: 1; font-weight: 500; }
.display em { color: var(--gold); font-style: italic; }
.display--sm { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; margin-bottom: 18px; }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
h3 { font-size: 26px; line-height: 1.15; }
p { margin: 0 0 16px; max-width: 62ch; }
.center p, p.center { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); margin-bottom: 22px; }
.eyebrow { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin: 0 0 18px; }
.eyebrow.center { text-align: center; }
cite { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn--gold { --bg: var(--gold); --fg: #fff; }
.btn--gold:hover { --bg: #8a5306; }
.btn--ink { --bg: var(--ink); --fg: var(--ivory); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(28,25,23,.35); }
.btn--ghost:hover { --bg: rgba(28,25,23,.06); }
.btn--ghost-light { --bg: transparent; --fg: var(--ivory); border-color: rgba(250,247,242,.4); }
.btn--ghost-light:hover { --bg: rgba(250,247,242,.08); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- book photography ---------- */
.book-photo { margin: 0; position: relative; overflow: hidden; border-radius: 22px; background: var(--ivory-2); box-shadow: 0 30px 60px -34px rgba(28,25,23,.45), 0 2px 6px rgba(28,25,23,.06); isolation: isolate; }
.book-photo picture, .book-photo img { display: block; width: 100%; height: auto; }
.book-photo img { transform: scale(1.06); }
.book-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); pointer-events: none; }
.book-photo--hero { border-radius: 28px; }
.book-photo--single { width: min(100%, 480px); }
.book-photo--dark { background: #120f0b; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.book-photo--dark::after { box-shadow: inset 0 0 0 1px rgba(192,138,46,.28); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav.is-solid { background: rgba(250,247,242,.97); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; color: var(--gold); }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); position: relative; padding: 10px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(250,247,242,.94) 0%, rgba(250,247,242,.82) 38%, rgba(250,247,242,.25) 70%, rgba(250,247,242,.1) 100%),
  linear-gradient(0deg, var(--ivory) 0%, rgba(250,247,242,0) 22%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__copy .lead { margin: 22px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta--center { justify-content: center; margin-top: 36px; }
.hero__meta { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-2); }
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid rgba(28,25,23,.35); border-radius: 20px; transform: translateX(-50%); z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- journey ---------- */
.journey { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.journey .h2 { font-style: italic; font-weight: 400; max-width: 20ch; margin: 0 auto 14px; }
.journey__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__num { font-family: var(--serif); font-size: 18px; color: var(--gold); display: block; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.card:last-child { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.card:last-child p { color: rgba(250,247,242,.78); }

/* ---------- book sections ---------- */
.book { padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.book--kyv { background: linear-gradient(180deg, var(--ivory) 0%, #F6EEE6 100%); }
.book--kyv::before, .book--dm::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 20% 30%, rgba(142,20,24,.08), transparent 45%); }
.book--dm { background: linear-gradient(180deg, #F1EFF6 0%, var(--ivory) 100%); }
.book--dm::before { background-image: radial-gradient(circle at 80% 20%, rgba(38,32,107,.1), transparent 45%); }
.book__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.book__grid--flip .book__visual { order: 2; }
.book__visual { display: flex; justify-content: center; align-self: start; position: sticky; top: calc(50vh - 230px); }
.book--kyv .eyebrow { color: var(--kyv); }
.book--dm .eyebrow { color: var(--dm); }

.chapters { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; counter-reset: c; }
.chapters li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.chapters span { font-family: var(--serif); font-size: 20px; color: var(--kyv); min-width: 14px; }
.outcomes { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 8px 0 30px; }
.outcomes ul { margin: 0; padding: 0; list-style: none; }
.outcomes li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 15.5px; }
.outcomes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; transform: rotate(45deg) scale(.7); border: 1.5px solid var(--gold); }

.buy__price { display: flex; flex-direction: column; }
.price { font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 600; }
.price--lg { font-size: 46px; }
.format { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }

/* framework */
.framework { margin-top: clamp(80px, 10vw, 130px); }
.framework .h3 { margin-bottom: 56px; }
.framework__track { position: relative; }
.framework__line { position: absolute; left: 12.5%; right: 12.5%; top: 43px; width: 75%; height: 2px; overflow: visible; }
.framework__line path { stroke: var(--dm); stroke-width: 2; fill: none; stroke-dasharray: 1000; stroke-dashoffset: var(--draw, 1000); vector-effect: non-scaling-stroke; }
.framework__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step { text-align: center; padding: 0 8px; }
.step__ar { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--dm); color: var(--dm); font-family: var(--arabic); font-size: 26px; line-height: 1; box-shadow: 0 0 0 8px var(--ivory); transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.step.is-on .step__ar { background: var(--dm); color: #fff; transform: scale(1.06); }
.step__n { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.step h4 { font-size: 23px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0 auto; }

/* ---------- bundle ---------- */
.bundle { padding: clamp(100px, 12vw, 160px) 0; background: var(--night); color: var(--ivory); position: relative; overflow: hidden; }
.bundle::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 50% at 30% 50%, rgba(192,138,46,.22), transparent 70%); pointer-events: none; }
.bundle__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.bundle__card { background: rgba(250,247,242,.05); border: 1px solid rgba(250,247,242,.14); border-radius: 24px; padding: clamp(28px, 4vw, 48px); }
.bundle__card .eyebrow { color: var(--gold-2); }
.bundle__card p { color: rgba(250,247,242,.78); }
.bundle__list { list-style: none; margin: 26px 0 0; padding: 0; }
.bundle__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(250,247,242,.12); font-size: 15.5px; }
.bundle__list li span:last-child { font-family: var(--serif); font-size: 20px; color: rgba(250,247,242,.7); }
.bundle__total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 26px; font-weight: 600; }
.fine { font-size: 13px; text-align: center; margin: 16px auto 0; color: rgba(250,247,242,.6) !important; }

/* ---------- testimonials ---------- */
.voices { padding: clamp(90px, 11vw, 150px) 0; }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; position: relative; }
.quote::before { content: "“"; position: absolute; top: 4px; right: 22px; font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--gold-soft); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; font-style: italic; color: var(--ink); position: relative; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; }
.quote__name { font-weight: 600; }
.quote__role { color: var(--muted); }
.sample-notice { max-width: 760px; margin: 0 auto 40px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--gold); background: var(--gold-soft); font-size: 14px; color: var(--ink); text-align: center; }

/* ---------- author ---------- */
.author { padding: clamp(90px, 11vw, 150px) 0; background: var(--ivory-2); }
.author__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.author__monogram { aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px; background: linear-gradient(160deg, #2A241D, var(--night)); color: var(--gold-2); display: grid; place-items: center; box-shadow: var(--shadow-md); overflow: hidden; position: relative; }
.author__monogram svg { width: 62%; }
.author__facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.author__facts li { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; }
.author__facts strong { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; color: var(--gold); }
.author__facts span { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 11vw, 140px) 0; }
.faq__list { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-family: var(--serif); font-size: 24px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; }
.faq a { color: var(--gold); }

/* ---------- final + footer ---------- */
.final { padding: clamp(100px, 13vw, 170px) 0; background: var(--night); color: var(--ivory); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: url("../img/hero.webp") center / cover; opacity: .12; filter: grayscale(.3); }
.final .display { max-width: 18ch; margin: 0 auto; }

/* sections sit above the fixed canvas background layers but books render on top of section bg */
main > section { isolation: auto; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .journey__cards, .voices__grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .framework__steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .framework__line { display: none; }
}
@media (max-width: 820px) {
  body.bk-landing { font-size: 16px; }
  .hero { padding-top: 100px; align-items: flex-start; }
  .hero__grid, .book__grid, .bundle__grid, .author__grid { grid-template-columns: 1fr; }
  .hero__veil { background: linear-gradient(180deg, rgba(250,247,242,.92) 0%, rgba(250,247,242,.78) 55%, var(--ivory) 100%); }
  .book__grid--flip .book__visual { order: 0; }
  .book__visual { position: static; }
  .book-photo--single { width: min(100%, 420px); }
  .chapters { grid-template-columns: 1fr; }
  .author__portrait { max-width: 300px; }
  .author__facts strong { font-size: 32px; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .framework__steps { grid-template-columns: 1fr; }
  .buy { flex-direction: column; align-items: stretch; }
  .buy .btn { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
  .hero__media { background: url("../img/hero.webp") 20% 50% / cover; }
}

.salawat { font-family: var(--arabic); font-size: 1.15em; line-height: 0; white-space: nowrap; }
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* =====================================================================
   Portfolio site components
   ===================================================================== */

/* nav: current page, mobile menu */
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__mobile-cta { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 10px; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
.brand--light { color: var(--ivory); }

/* shared bits */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--gold); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.ticks { list-style: none; padding: 0; margin: 18px 0 28px; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.display--page { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }

/* pattern background (8-point star lattice) */
.page-hero__pattern { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23A16207' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M48 14 58 38 82 48 58 58 48 82 38 58 14 48 38 38Z'/%3E%3Cpath d='M48 26 64 32 70 48 64 64 48 70 32 64 26 48 32 32Z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }

/* home hero */
.hero--home .hero__veil { background:
  linear-gradient(90deg, rgba(250,247,242,.95) 0%, rgba(250,247,242,.85) 42%, rgba(250,247,242,.35) 72%, rgba(250,247,242,.2) 100%),
  linear-gradient(0deg, var(--ivory) 0%, rgba(250,247,242,0) 22%); }
.hero__star { position: relative; height: min(64vh, 560px); }
.hero__star canvas { width: 100%; height: 100%; display: block; }
.hero--books { background: radial-gradient(80% 70% at 75% 45%, #F3E6D2 0%, var(--ivory) 70%); }

/* inner page hero */
.page-hero { position: relative; padding: clamp(140px, 16vw, 200px) 0 clamp(64px, 8vw, 100px); background: radial-gradient(70% 90% at 80% 20%, #F2E7D6 0%, var(--ivory) 70%); overflow: hidden; }
.page-hero--short { padding-bottom: 40px; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.page-hero .lead { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; background: rgba(255,255,255,.6); transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.chips a:hover { border-color: var(--gold); background: #fff; }

/* credentials strip */
.creds { background: var(--night); color: var(--ivory); padding: 34px 0; position: relative; z-index: 2; }
.creds__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.creds__list li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid rgba(192,138,46,.45); }
.creds__list strong { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.15; }
.creds__list span { font-size: 13.5px; color: rgba(250,247,242,.66); }

/* intro */
.intro { padding: clamp(90px, 11vw, 150px) 0; }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro__img { margin: 0; border-radius: 220px 220px 24px 24px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }

/* service tiles */
.offer { padding: 0 0 clamp(90px, 11vw, 150px); }
.offer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--ivory); display: flex; align-items: flex-end; isolation: isolate; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile:first-child { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,19,15,0) 30%, rgba(22,19,15,.85) 100%); }
.tile--dark { background: linear-gradient(150deg, #2A241D, var(--night)); grid-column: span 2; }
.tile__star { position: absolute; right: -30px; top: -30px; width: 260px; fill: none; stroke: var(--gold-2); stroke-width: .6; opacity: .6; z-index: -1; transition: transform 1.2s var(--ease); }
.tile--dark:hover .tile__star { transform: rotate(45deg); }
.tile__body { padding: 28px; display: block; }
.tile__k { font-family: var(--serif); color: var(--gold-2); font-size: 18px; }
.tile h3 { font-size: 30px; margin: 6px 0 8px; color: #fff; }
.tile p { margin: 0; font-size: 15px; color: rgba(250,247,242,.82); max-width: 40ch; }

/* stats */
.stats { background: var(--ivory-2); padding: 64px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; }
.stat strong { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 58px); font-weight: 500; color: var(--gold); line-height: 1; font-variant-numeric: lining-nums; }
.stat span { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* media cards */
.media { padding: clamp(90px, 11vw, 150px) 0; }
.media__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(161,98,7,.35); }
.media-card__type { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.media-card h3 { font-size: 26px; }
.media-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.media-card .link-arrow { margin-top: auto; }

/* books teaser: dark section reuses .bundle */
.bundle--teaser .bundle__card .btn { margin-top: 10px; }

/* about */
.story { padding: clamp(80px, 10vw, 140px) 0; }
.story__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.story__aside { position: sticky; top: 120px; }
.prose p { font-size: 18px; }
.pull { margin: 28px 0 0; font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.25; color: var(--ink); }
.pull cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.mission { padding: clamp(90px, 11vw, 150px) 0; background: var(--night); color: var(--ivory); position: relative; overflow: hidden; }
.mission::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 50%, rgba(192,138,46,.18), transparent 70%); }
.mission .display em { color: var(--gold-2); }
.quals { padding: clamp(90px, 11vw, 150px) 0; }
.quals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qual { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.qual::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border: 1px solid rgba(161,98,7,.25); transform: rotate(45deg); }
.qual h3 { font-size: 24px; margin-bottom: 10px; max-width: 16ch; }
.qual p { font-size: 15px; color: var(--ink-2); margin: 0; }
.timeline { padding: clamp(80px, 10vw, 140px) 0; background: var(--ivory-2); }
.tl { list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(161,98,7,.15)); }
.tl__item { display: grid; grid-template-columns: 88px 1fr; gap: 40px; padding: 18px 0; position: relative; }
.tl__item::before { content: ""; position: absolute; left: 83px; top: 30px; width: 11px; height: 11px; background: var(--ivory-2); border: 1.5px solid var(--gold); transform: rotate(45deg); }
.tl__year { font-family: var(--serif); font-size: 26px; color: var(--gold); line-height: 1.2; padding-top: 6px; }
.tl__item h3 { font-size: 24px; margin-bottom: 6px; }
.tl__item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.interests { padding: clamp(80px, 10vw, 130px) 0; }
.interests__list { list-style: none; padding: 0; margin: 34px 0 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(16px, 4vw, 56px); }
.interests__list li { font-family: var(--serif); font-size: clamp(34px, 5vw, 64px); font-style: italic; color: var(--ink); }
.interests__list li:nth-child(even) { color: var(--gold); }

/* services */
.svc { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.svc + .svc:not(.svc--dark):not(.svc--image) { border-top: 1px solid var(--line); }
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.svc__grid--flip .svc__feature { order: 2; }
.svc__img { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__n { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold); margin-bottom: 10px; }
.svc__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.svc--dark { background: var(--night); color: var(--ivory); }
.svc--dark p, .svc--dark li { color: rgba(250,247,242,.8); }
.svc--dark .svc__n { color: var(--gold-2); }
.svc__feature { color: var(--gold-2); display: grid; place-items: center; }
.svc__feature svg { width: min(100%, 420px); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.course__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course__tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.course h3 { font-size: 26px; }
.course p { font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }
.course .link-arrow { margin-top: auto; }
.svc--image { color: var(--ivory); overflow: hidden; min-height: 620px; display: flex; align-items: center; background: var(--night); }
.svc__bg { position: absolute; inset: 0; }
.svc__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.svc__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,19,15,.2) 0%, rgba(22,19,15,.75) 55%, rgba(22,19,15,.9) 100%); }
.svc__panel { margin-left: auto; max-width: 540px; }
.svc__panel p, .svc__panel li { color: rgba(250,247,242,.82); }
.process { padding: clamp(80px, 10vw, 130px) 0; background: var(--ivory-2); }
.process__steps { list-style: none; margin: 48px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.process__steps li { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.process__steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--serif); font-size: 22px; margin-bottom: 18px; }
.process__steps h3 { margin-bottom: 8px; }
.process__steps p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* talks & writing */
.listen { padding: clamp(70px, 9vw, 120px) 0; }
.listen__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.listen__feature { background: linear-gradient(150deg, #2A241D, var(--night)); color: var(--ivory); border-radius: 24px; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.listen__feature p { color: rgba(250,247,242,.78); }
.wave { display: flex; align-items: flex-end; gap: 5px; height: 60px; margin-top: 36px; }
.wave span { flex: 1; background: var(--gold-2); border-radius: 3px; opacity: .8; height: 100%; transform-origin: bottom; transform: scaleY(.3); animation: wave 1.6s ease-in-out infinite; }
.wave span:nth-child(3n) { animation-delay: -.4s; } .wave span:nth-child(3n+1) { animation-delay: -.9s; } .wave span:nth-child(4n) { animation-delay: -1.2s; }
@keyframes wave { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.episodes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.episodes a { display: flex; gap: 18px; align-items: center; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.episodes a:hover { border-color: var(--gold); transform: translateX(4px); }
.ep__play { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; }
.ep__play svg { width: 18px; fill: var(--gold); margin-left: 3px; }
.episodes strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; }
.episodes em { font-style: normal; font-size: 14px; color: var(--muted); }
.research { padding: clamp(80px, 10vw, 130px) 0; background: var(--ivory-2); }
.research__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }

/* contact */
.contact { padding: 30px 0 clamp(90px, 11vw, 140px); }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact__form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--ivory); border: 1px solid rgba(28,25,23,.2); border-radius: 12px; padding: 13px 14px; min-height: 48px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(161,98,7,.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.field__help { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: #B42318; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13.5px; color: var(--muted); }
.form-status { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 15px; }
.form-status--ok { background: #ECF6EE; border: 1px solid #9CCBA5; color: #1E5B2B; }
.form-status--err { background: #FDECEC; border: 1px solid #F0A9A4; color: #8A1C14; }
.contact__aside { display: flex; flex-direction: column; gap: 16px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: rgba(255,255,255,.55); }
.info-card p { margin: 0 0 6px; font-size: 15.5px; color: var(--ink-2); }
.follow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.follow a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.follow a:hover { border-color: var(--gold); color: var(--gold); }

/* footer */
.foot { background: var(--night); color: rgba(250,247,242,.66); padding: 72px 0 0; font-size: 15px; position: relative; z-index: 2; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot__brand p { max-width: 36ch; margin: 18px 0 22px; }
.foot__col { display: flex; flex-direction: column; gap: 4px; }
.foot__col h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 10px; font-weight: 600; }
.foot a { color: rgba(250,247,242,.8); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(250,247,242,.18); border-radius: 50%; padding: 0; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.social a:hover { border-color: var(--gold-2); background: rgba(192,138,46,.12); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--gutter); border-top: 1px solid rgba(250,247,242,.08); font-size: 13.5px; }

/* responsive (portfolio) */
@media (max-width: 1024px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links { display: flex; position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px; background: rgba(250,247,242,.98); box-shadow: 0 20px 40px -20px rgba(28,25,23,.3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav.is-open { background: rgba(250,247,242,.98); }
  .nav__links a { font-family: var(--serif); font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__links a::after { display: none; }
  .nav__mobile-cta { display: block; }
  .creds__list { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .offer__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 280px 280px; }
  .tile:first-child { grid-row: span 1; }
  .tile--dark { grid-column: span 1; }
  .media__grid, .course__grid, .quals__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 820px) {
  .hero__star { height: 320px; order: 2; margin-top: -20px; }
  .page-hero__grid, .intro__grid, .story__grid, .svc__grid, .listen__grid, .research__grid, .contact__grid { grid-template-columns: 1fr; }
  .svc__grid--flip .svc__feature { order: 0; }
  .svc__feature svg { width: 220px; }
  .story__aside { position: static; max-width: 320px; }
  .intro__img { max-width: 420px; }
  .creds__list { grid-template-columns: 1fr 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .svc--image { min-height: 0; padding: 0; flex-direction: column; }
  .svc__bg { position: relative; height: 280px; }
  .svc__bg::after { background: linear-gradient(180deg, rgba(22,19,15,0) 40%, var(--night) 100%); }
  .svc--image .container { padding-top: 10px; padding-bottom: 80px; }
  .tl::before { left: 60px; } .tl__item { grid-template-columns: 60px 1fr; gap: 28px; } .tl__item::before { left: 55px; } .tl__year { font-size: 20px; }
}
@media (max-width: 560px) {
  .offer__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 280px; }
  .media__grid, .course__grid, .quals__grid, .form__row { grid-template-columns: 1fr; }
  .creds__list { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc__feature svg, .wave span { animation: none; }
}
.tl__year, .price, .stat strong, .author__facts strong, .svc__n, .tile__k, .card__num, .process__steps span, .chapters span { font-variant-numeric: lining-nums; }

/* legal / privacy */
.legal { padding: 40px 0 clamp(90px, 11vw, 140px); }
.legal__body { font-size: 17px; }
.legal__body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal__body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal__body h3 { font-size: 22px; margin: 28px 0 10px; }
.legal__body p, .legal__body li { color: var(--ink-2); max-width: 70ch; }
.legal__body ul { padding-left: 22px; margin: 0 0 18px; }
.legal__body li { margin: 6px 0; }
.legal__body a, .form__note a { color: var(--gold); }
.legal__body table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.legal__body th, .legal__body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__body th { font-weight: 600; color: var(--ink); background: var(--ivory-2); }
.legal__body figure { margin: 0; overflow-x: auto; }

/* ---------- buy box + upsell ---------- */
.buy { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: 460px; padding: 22px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.buy__head { display: flex; align-items: baseline; justify-content: space-between; }
.upsell { position: relative; display: grid; grid-template-columns: 22px 40px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border: 1px dashed rgba(161,98,7,.45); border-radius: 12px; background: var(--ivory); cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.upsell:hover { border-color: var(--gold); }
.upsell__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upsell__box { width: 22px; height: 22px; border: 1.5px solid rgba(28,25,23,.35); border-radius: 6px; background: #fff; display: grid; place-items: center; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.upsell__box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .2s var(--ease); }
.upsell__check:checked ~ .upsell__box { background: var(--gold); border-color: var(--gold); }
.upsell__check:checked ~ .upsell__box::after { opacity: 1; }
.upsell__check:focus-visible ~ .upsell__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.upsell:has(.upsell__check:checked) { border-style: solid; border-color: var(--gold); background: var(--gold-soft); }
.upsell__thumb { width: 40px; height: 60px; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 6px 12px -6px rgba(28,25,23,.5); }
.upsell__text { display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.35; }
.upsell__text strong { font-weight: 600; }
.upsell__text em { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.upsell__text span { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
@media (max-width: 480px) { .buy { max-width: none; } }



/* ---------- nav cart ---------- */
.nav__cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: background-color .25s var(--ease); }
.nav__cart[hidden] { display: none; }
.nav__cart:hover { background: rgba(28,25,23,.06); }
.nav__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.nav__cart-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ivory); }

/* =====================================================================
   Cart & checkout — WooCommerce blocks in the site's design
   ===================================================================== */
.shop-hero { position: relative; overflow: hidden; padding: clamp(130px, 14vw, 170px) 0 clamp(36px, 5vw, 56px); background: radial-gradient(70% 90% at 80% 20%, #F2E7D6 0%, var(--ivory) 70%); }
.shop-hero__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.shop-hero .lead { margin: 12px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.steps__item { display: flex; align-items: center; gap: 10px; }
.steps__item + .steps__item::before { content: ""; width: 44px; height: 1px; background: var(--line); margin: 0 14px; }
.steps__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(28,25,23,.3); background: transparent; }
.steps__item.is-done { color: var(--ink-2); }
.steps__item.is-done .steps__dot { background: var(--gold); border-color: var(--gold); }
.steps__item.is-current { color: var(--ink); }
.steps__item.is-current .steps__dot { background: var(--ivory); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(161,98,7,.18); }
.shop-body { padding: 8px 0 clamp(70px, 9vw, 110px); }
.assure { background: var(--ivory-2); padding: 34px 0; border-top: 1px solid var(--line); }
.assure__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.assure__item { display: flex; gap: 14px; align-items: flex-start; }
.assure__item svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.assure__item strong { display: block; font-size: 15px; }
.assure__item span { font-size: 14px; color: var(--muted); }
.assure__item a { color: var(--gold); }
@media (max-width: 820px) { .assure__grid { grid-template-columns: 1fr; } .steps__item + .steps__item::before { width: 24px; margin: 0 8px; } }

/* type & colour reset inside WooCommerce blocks */
.bk-page-cart .shop, .bk-page-checkout .shop { font-family: var(--sans); color: var(--ink); }
.shop :where(button, input, select, textarea) { font-family: var(--sans); }
.shop .wp-block-woocommerce-cart, .shop .wp-block-woocommerce-checkout { margin: 0; max-width: none; }
.shop a { color: var(--ink); text-decoration-color: rgba(161,98,7,.45); text-underline-offset: 3px; }
.shop a:hover { color: var(--gold); }
.shop h2, .shop h3, .shop .wp-block-heading, .shop .wc-block-components-checkout-step__title, .shop .wc-block-components-title { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.01em; color: var(--ink); }
.shop .wp-block-heading { font-size: clamp(28px, 3vw, 36px) !important; margin: 48px 0 20px; }

/* layout: main column + summary card */
.shop .wc-block-components-sidebar-layout { margin: 0; }
.shop .wc-block-components-sidebar-layout.is-large { flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; }
.shop .wc-block-components-sidebar-layout.is-large .wc-block-components-main { width: 62%; }
.shop .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar { width: 34%; }
.shop .wc-block-components-main { padding-right: 0 !important; }
.shop .wc-block-components-sidebar { position: sticky; top: 100px; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 24px 24px 20px !important; }
.shop .wc-block-cart__totals-title, .shop .wc-block-components-checkout-order-summary__title-text { font-family: var(--sans) !important; font-size: 12.5px !important; letter-spacing: .18em; text-transform: uppercase; font-weight: 600 !important; color: var(--gold) !important; }
.shop .wc-block-components-totals-wrapper { border-color: var(--line) !important; }
.shop .wc-block-components-totals-item__label, .shop .wc-block-components-totals-item__value { font-size: 15px; }
.shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 600; }
.shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--serif); font-size: 30px; font-weight: 600; }

/* cart line items */
.shop table.wc-block-cart-items { border-collapse: separate; border-spacing: 0; }
.shop .wc-block-cart-items__header { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.shop .wc-block-cart-items__header th { border-bottom: 1px solid var(--line) !important; padding-bottom: 12px !important; }
.shop .wc-block-cart-items__row td { border-top: 0 !important; border-bottom: 1px solid var(--line) !important; padding-top: 22px !important; padding-bottom: 22px !important; }
.shop .wc-block-cart-item__image img { border-radius: 8px; box-shadow: 0 10px 22px -12px rgba(28,25,23,.45); aspect-ratio: 4 / 5; object-fit: cover; }
.shop .price { font: inherit; line-height: inherit; }   /* WooCommerce's .price, not the Books page price */
.shop .wc-block-cart-items .wc-block-components-product-name { font-family: var(--serif) !important; font-size: 22px !important; font-weight: 600; line-height: 1.2; text-decoration: none; }
.shop .wc-block-cart-item__prices .wc-block-components-product-price { font-size: 15px; color: var(--muted); }
.shop .wc-block-components-product-metadata { font-size: 14px; color: var(--muted); }
.shop .wc-block-cart-item__total .wc-block-components-product-price { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.shop .wc-block-cart-item__remove-link { color: var(--muted) !important; }
.shop .wc-block-cart-item__remove-link:hover { color: #B42318 !important; }
.shop .wc-block-components-quantity-selector { display: none; } /* books are sold individually */

/* buttons */
.shop .wc-block-components-button:not(.is-link), .shop .wp-block-button__link, .shop .wc-block-components-product-button__button, .shop .wc-block-cart__submit-button, .shop .wc-block-components-checkout-place-order-button {
  background: var(--gold) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; min-height: 52px; padding: 0 28px !important;
  font: 600 15px/1 var(--sans) !important; letter-spacing: .02em; text-decoration: none !important; box-shadow: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease) !important; }
.shop .wc-block-components-button:not(.is-link):hover, .shop .wp-block-button__link:hover, .shop .wc-block-components-product-button__button:hover { background: #8a5306 !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shop .wc-block-components-button:not(.is-link):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shop .wc-block-components-button.is-link { color: var(--gold) !important; }

/* form fields */
.shop .wc-block-components-text-input input, .shop .wc-block-components-combobox .components-combobox-control input, .shop .wc-blocks-components-select__select, .shop .wc-block-components-textarea, .shop .wc-block-components-address-form select {
  background: var(--ivory) !important; border: 1px solid rgba(28,25,23,.22) !important; border-radius: 12px !important; color: var(--ink) !important; font-size: 16px !important; box-shadow: none !important; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.shop .wc-block-components-text-input input:focus, .shop .wc-block-components-combobox .components-combobox-control input:focus, .shop .wc-blocks-components-select__select:focus, .shop .wc-block-components-textarea:focus {
  border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(161,98,7,.18) !important; outline: none; }
.shop .wc-block-components-text-input label, .shop .wc-blocks-components-select__label, .shop .wc-block-components-combobox label { color: var(--muted) !important; }
.shop .wc-block-components-text-input.has-error input { border-color: #B42318 !important; }
.shop .wc-block-components-validation-error { color: #B42318; }
.shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-color: rgba(28,25,23,.35); border-radius: 5px; }
.shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--gold); border-color: var(--gold); }
.shop .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }

/* checkout steps & payment */
.shop .wc-block-components-checkout-step { padding-bottom: 8px; }
.shop .wc-block-components-checkout-step__title { font-size: 26px !important; }
.shop .wc-block-components-checkout-step__container::after { background: var(--line) !important; }
.shop .wc-block-components-checkout-step__heading-content, .shop .wc-block-components-checkout-step__description { color: var(--muted); }
.shop .wc-block-components-radio-control-accordion-option, .shop .wc-block-components-radio-control__option { border-color: var(--line) !important; }
.shop .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.shop .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--gold) !important; border-radius: 12px; }
.shop .wc-block-components-radio-control__input:checked { border-color: var(--gold) !important; }
.shop .wc-block-components-radio-control__input:checked::before { background: var(--gold) !important; }
.shop .wc-block-components-express-payment__title-container::before, .shop .wc-block-components-express-payment__title-container::after { border-color: var(--line) !important; }
.shop .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content { border-color: var(--line) !important; border-radius: 0 0 14px 14px; }
.shop .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container { border-color: var(--line) !important; }
.shop .wc-block-checkout__terms, .shop .wc-block-components-checkout-return-to-cart-button { font-size: 14px; color: var(--muted); }
.shop .wc-block-components-order-summary-item__image img { border-radius: 6px; }
.shop .wc-block-components-order-summary-item__quantity { background: var(--gold); color: #fff; border-color: var(--card); }
.shop .wc-block-components-product-name, .shop .wc-block-components-order-summary-item__description .wc-block-components-product-name { color: var(--ink); }

/* notices */
.shop .wc-block-components-notice-banner { border-radius: 12px; font-size: 15px; }
.shop .wc-block-components-notice-banner.is-success { background: #ECF6EE; border-color: #9CCBA5; }
.shop .wc-block-components-notice-banner.is-error { background: #FDECEC; border-color: #F0A9A4; }
.shop .wc-block-components-notice-banner.is-info { background: var(--gold-soft); border-color: rgba(161,98,7,.4); }

/* cross-sells / "you may be interested in" (product collection) */
.shop .wp-block-woocommerce-product-collection { margin-top: 12px; }
.shop .wc-block-product-template, .shop .wp-block-woocommerce-product-template { gap: 20px !important; }
.shop .wc-block-product, .shop .wc-block-product-template > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 20px; text-align: left !important; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.shop .wc-block-product:hover, .shop .wc-block-product-template > li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shop .wc-block-components-product-image img, .shop .wp-block-woocommerce-product-image img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; }
.shop .wc-block-product .wp-block-post-title, .shop .wc-block-product-template .wp-block-post-title { font-family: var(--serif); font-size: 21px !important; font-weight: 600; line-height: 1.2; margin: 14px 0 6px !important; text-align: left !important; }
.shop .wc-block-product .wp-block-post-title a { text-decoration: none; }
.shop .wc-block-product .wc-block-components-product-price, .shop .wp-block-woocommerce-product-price { font-family: var(--serif); font-size: 19px; text-align: left !important; justify-content: flex-start !important; }
.shop .wc-block-product .wp-block-woocommerce-product-button, .shop .wc-block-components-product-button { justify-content: flex-start !important; align-items: flex-start !important; text-align: left !important; }

/* empty cart */
.shop .wp-block-woocommerce-empty-cart-block { text-align: center; }
.shop .wc-block-cart__empty-cart__title { font-family: var(--serif) !important; font-size: 34px !important; }
.shop .wp-block-woocommerce-empty-cart-block .wp-block-separator { border-color: var(--line); opacity: 1; width: 120px; margin: 32px auto; }

/* order received */
.shop .wc-block-order-confirmation-status { font-family: var(--serif); }
.shop .wc-block-order-confirmation-summary-list { border-color: var(--line); border-radius: var(--radius); background: var(--card); }
.shop .wc-block-order-confirmation-downloads table, .shop .woocommerce-table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.shop .wc-block-order-confirmation-downloads th, .shop .wc-block-order-confirmation-downloads td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.shop .wc-block-order-confirmation-downloads .button, .shop .woocommerce-MyAccount-downloads-file { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--gold); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; }
@media (max-width: 820px) { .shop .wc-block-components-sidebar { position: static; } .shop-hero__inner { align-items: flex-start; } }
.shop, .shop * { font-variant-numeric: lining-nums tabular-nums; }
.shop .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; border-radius: 0; }
.shop .wc-block-components-order-summary-item .wc-block-components-product-name { font-family: var(--serif) !important; font-size: 18px !important; font-weight: 600; line-height: 1.25; }
.shop .wc-block-components-order-summary-item .wc-block-components-product-metadata { font-size: 13px; }
