:root {
  --cream: #fffaf0;
  --cream-2: #fdf1d8;
  --gold: #c8891a;
  --gold-deep: #8f5e0a;
  --indigo: #1c1740;
  --indigo-2: #2b2461;
  --ink: #2a2540;
  --muted: #6b6585;
  --line: #ecdcb8;
  --radius: 14px;
  --max: 1400px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--indigo); margin: 0 0 .5em; }
/* Type system — headings: serif 600; page title, section title, card title. Everything else: sans 400. */
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.35rem; }
.hero-text h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: .04em; }
p, li, dd, td { font-weight: 400; }
strong { font-weight: 600; }
main p { font-size: 1rem; line-height: 1.7; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

/* preview banner */
.preview-bar { background: var(--indigo); color: #f3e6bd; font-size: 13px; text-align: center; padding: 6px 12px; }

/* header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); font-family: var(--serif); font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream-2); color: var(--gold-deep); }
.subnav { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.subnav a { text-decoration: none; color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: 14px; border: 1px solid transparent; }
.subnav a[aria-current="page"] { background: var(--indigo); color: #fff3cf; }
.subnav a:not([aria-current]):hover { border-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--indigo); }

@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding: 8px 0 12px; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--cream-2); }
section.block.dark { background: var(--indigo); color: #f3ecd6; }
section.block.dark h1, section.block.dark h2, section.block.dark h3 { color: #fff3cf; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.dark .eyebrow { color: #e8c471; }

/* hero */
.hero img { display: block; width: 100%; height: auto; }
.hero-text { background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-2) 100%); color: #fdf3d8; text-align: center; padding: 48px 0 56px; }
.hero-text h1 { color: #fff3cf; margin-bottom: .2em; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2rem); color: #f2d68a; margin-bottom: .3em; }
.hero-tag { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: #fdf3d8; max-width: 720px; margin: 0 auto 1em; }
.hero-line { letter-spacing: .08em; font-size: 14px; text-transform: uppercase; color: #e8c471; margin-bottom: 1.6em; }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btns, .hero-text .btns { justify-content: center; }
.btn { display: inline-block; text-decoration: none; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid var(--gold); background: var(--gold); color: #fff; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn.ghost { background: transparent; color: var(--gold-deep); }
.dark .btn.ghost, .hero-text .btn.ghost { color: #fff3cf; border-color: #e8c471; }
.btn.ghost:hover { background: var(--gold); color: #fff; }

/* components */
.lead { font-size: 1.2rem; font-weight: 500; line-height: 1.6; color: var(--indigo); }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4;  margin: 1.2em 0; color: var(--indigo); }
.lightcode { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); background: #fff; border: 1px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 1.4em 0; }
.dark .lightcode { background: rgba(255,255,255,.06); color: #f2d68a; }
.visual-note { font-size: 13px; color: var(--muted); font-style: italic; }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(28,23,64,.18); margin: 1.5em 0; }
.figure img { width: 100%; }
.emblem { width: 160px; margin: 0 auto 1em; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .3em; }
.card .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.card .code { font-size: 12px; letter-spacing: .06em; font-weight: 600; color: var(--indigo); margin-top: .8em; }
.card.slot { border-style: solid; background: transparent; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 20px; } }

.placeholder { border: 2px solid var(--gold); background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 12px, #fdf1d8 12px, #fdf1d8 24px); color: var(--gold-deep); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 14px; font-weight: 600; min-height: 220px; }
.grid > *, .two-col > * { min-width: 0; }
.placeholder.wide { min-height: 0; }
.cover-fig { margin: 0 auto; max-width: 380px; width: 100%; }
.cover-fig img { width: 100%; border-radius: 6px; box-shadow: 0 14px 34px rgba(28,23,64,.28); }
.placeholder.mini { min-height: 0; padding: 14px 10px; font-size: 12px; margin-bottom: 12px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 6px; margin: 1.4em 0; }
.flow span { background: #fff; border: 1px solid var(--gold); border-radius: 999px; padding: 8px 16px; font-family: var(--serif); font-size: 1.1rem; color: var(--indigo); }
.flow i { font-style: normal; color: var(--gold-deep); font-weight: 700; }
.placeholder.portrait { aspect-ratio: 3 / 4; }
.placeholder.cover { aspect-ratio: 2 / 3; }
.placeholder.wide { aspect-ratio: 16 / 9; }
.placeholder small { display: block; font-weight: 400; margin-top: 4px; }
.pending { color: var(--muted); font-style: italic; }

.movements { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 12px; }
.movements li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.movements strong { font-family: var(--serif); font-size: 1.2rem; color: var(--indigo); }
.movements span { color: var(--gold-deep); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }

table.t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.2em 0; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--cream-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
@media (max-width: 560px) { table.t { font-size: 14px; } table.t th, table.t td { padding: 8px 10px; } }

.caps { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1rem; color: var(--indigo); }

.notice { background: #fff; border-left: 4px solid var(--gold); border-radius: 8px; padding: 14px 18px; font-size: 15px; color: var(--muted); margin: 1.4em 0; }

form.stack { display: grid; gap: 14px; max-width: 520px; }
label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
input, textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, .btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-msg { font-size: 14px; color: var(--gold-deep); min-height: 1.4em; }


/* detail lists with blank values, filled in later */
.spec { margin: 1.2em 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.spec dd { margin: 0; min-height: 1.6em; font-family: var(--serif); font-size: 1.2rem; color: var(--indigo); }
.spec dd.blank { border-bottom: 1px solid var(--line); }
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* Five Living Movements as a connected flow */
.mflow { list-style: none; padding: 0; margin: 1.8em 0; display: flex; align-items: stretch; justify-content: center; gap: 0; }
.mflow li { flex: 1 1 0; min-width: 0; position: relative; background: #fff; border: 1px solid var(--gold); border-radius: var(--radius); padding: 18px 12px; text-align: center; margin-right: 34px; }
.mflow li:last-child { margin-right: 0; }
.mflow li:not(:last-child)::after { content: "→"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 26px; text-align: center; color: var(--gold-deep); font-size: 22px; font-weight: 700; }
.mflow strong { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; color: var(--indigo); }
.mflow span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }
@media (max-width: 860px) {
  .mflow { flex-direction: column; align-items: center; }
  .mflow li { flex: none; width: 100%; max-width: 380px; margin: 0 0 34px; }
  .mflow li:last-child { margin-bottom: 0; }
  .mflow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -32px; transform: translateX(-50%); }
}

.mnote { max-width: 760px; margin: 1.6em auto 0; text-align: center; }
.mnote .lightcode { margin: 0 0 1.2em; }
.mnote .caps { margin: 0 0 .6em; }
.mnote p:last-child { margin-bottom: 0; }

/* Book page: one centred column */
.bookcovers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 640px; margin: 2em auto; }
.bookcovers .cover-fig { max-width: none; }
.booktext { margin: 0 auto; text-align: center; }
.booktext .spec { text-align: left; }
.booktext .btns { justify-content: center; }
@media (max-width: 480px) { .bookcovers { gap: 12px; } }

/* Vision page: text and cards share one width so their edges line up */
/* vision: same wide container as the navbar; text blocks keep a readable line length */
.vision main .wrap { max-width: var(--max); }
.vision main .narrow { max-width: none; }
.vision main .narrow > * { max-width: none; }
.vision main .narrow > .lightcode, .vision main .wrap.narrow > .lightcode { max-width: 100%; }

/* Header: keep the menu on one line on desktop */
.site-header .wrap, .subnav .wrap { max-width: var(--max); }
.brand { white-space: nowrap; font-size: 1rem; letter-spacing: .06em; }
.nav { flex-wrap: nowrap; gap: 2px; }
.nav a { padding: 6px 8px; font-size: 12.5px; letter-spacing: .05em; white-space: nowrap; }
@media (max-width: 960px) { .nav { flex-wrap: wrap; } }
.vision main .wrap.narrow { max-width: var(--max); }
.vision main .wrap.narrow:not(.center) > * { max-width: none; }
.vision main .wrap.narrow:not(.center) > .lightcode { max-width: 100%; }
.vision main .wrap.narrow.center > * { max-width: 900px; margin-left: auto; margin-right: auto; }

/* HU + MAN = HUMAN */
.human-eq { display: flex; align-items: stretch; justify-content: center; gap: 14px; margin: 1.4em 0; }
.human-eq .part { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.human-eq .part.result { border-color: var(--gold); background: #fffdf6; }
.human-eq strong { display: block; font-family: var(--serif); font-size: 1.8rem; letter-spacing: .1em; color: var(--indigo); margin-bottom: 6px; }
.human-eq span { display: block; color: var(--ink); }
.human-eq i { align-self: center; font-style: normal; font-size: 1.8rem; font-weight: 600; color: var(--gold-deep); }
@media (max-width: 640px) { .human-eq { flex-direction: column; } .human-eq i { align-self: center; line-height: 1; } }

/* Six expression icons */
.ico-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--gold-deep); }
.ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Śiva · Śakti · Mahāviṣṇu: one joined horizontal strip */
.strip { display: flex; background: #fff; border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; margin: 1em 0; }
.strip > div { flex: 1 1 0; min-width: 0; padding: 18px 16px; text-align: center; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip .tag { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 6px; }
.strip p { margin: 0; }
@media (max-width: 640px) { .strip { flex-direction: column; } .strip > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Constellation of guides: equal stars joined by a faint web, held in a soft glow; no hub, no order */
.constellation { position: relative; height: 560px; margin: 1.6em 0; border-radius: var(--radius); background: radial-gradient(ellipse 38% 46% at 50% 48%, rgba(255, 224, 140, .30) 0, rgba(255, 224, 140, 0) 100%), radial-gradient(ellipse at 50% 50%, #2e2870 0, var(--indigo) 72%); overflow: hidden; }
.constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-bg circle { fill: #fff3cf; }
.sky-web line { stroke: rgba(255, 226, 140, .30); stroke-width: 1; vector-effect: non-scaling-stroke; }
.constellation ul { list-style: none; margin: 0; padding: 0; }
.constellation li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -7px); width: 190px; text-align: center; color: #fdf3d8; font-size: .95rem; line-height: 1.35; padding-top: 18px; }
.constellation li::before { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff7dc; box-shadow: 0 0 10px 4px rgba(255, 220, 120, .75), 0 0 26px 10px rgba(255, 200, 80, .3); animation: twinkle 4s ease-in-out infinite; animation-delay: var(--d); }
.constellation .presence { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #f2d68a; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .constellation li::before { animation: none; } }
@media (max-width: 760px) {
  .constellation { height: auto; padding: 24px 12px 20px; }
  .constellation .sky-web { display: none; }
  .constellation ul { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .constellation li { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .constellation .presence { position: static; margin-top: 26px; font-size: 1.05rem; letter-spacing: .2em; }
}

/* Home hero: text on the left, whole picture on the right */
.hero-split { color: var(--ink, #2a2540); }
@media (min-width: 901px) { .hero-split { min-height: calc(100vh - 100px); display: flex; align-items: center; } .hero-split .hero-grid { width: 100%; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; padding-left: 16px; padding-right: 16px; align-items: center; max-width: var(--max); padding-top: 36px; padding-bottom: 36px; }
.hero-copy { text-align: left; }
.hero-copy h1 { color: #fff3cf; font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: .03em; margin-bottom: .15em; }
.hero-copy .hero-sub { margin-bottom: .45em; }
.hero-copy .hero-tag { margin: 0 0 1em; max-width: none; }
.hero-copy .btns { justify-content: flex-start; flex-wrap: nowrap; gap: 10px; }
.hero-copy .btn { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
.hero-copy .btn.ghost { color: #fff3cf; border-color: #e8c471; }
.hero-copy .btn.ghost:hover { background: var(--gold); color: #fff; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 0; padding-bottom: 28px; padding-left: 16px; padding-right: 16px; }
  .hero-art { order: -1; margin: 0; }
  .hero-art img { border-radius: var(--radius); box-shadow: 0 10px 28px rgba(28,23,64,.18); }
  .hero-copy { text-align: center; }
  .hero-copy .btns { justify-content: center; flex-wrap: wrap; }
  .hero-copy .hero-tag { margin: 0 auto 1em; }
}

/* Seven Doors in one row on wide screens */
.doors7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.doors7 .card { padding: 14px 10px; text-align: center; }
.doors7 .card h3 { font-size: 1.05rem; letter-spacing: .04em; }
.doors7 .card p { font-size: .85rem; line-height: 1.4; }
.doors7 .card .code { font-size: 10.5px; letter-spacing: .03em; }
.doors7 .placeholder.mini { padding: 10px 4px; font-size: 10px; }
@media (max-width: 1000px) { .doors7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .doors7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Centred intro blocks (Home, Explore, Inner Sun) */
.narrow.center { margin-left: auto; margin-right: auto; text-align: center; }
.narrow.center .btns { justify-content: center; }

/* Connect page: equal-height cards, buttons on one line, no empty strip at the bottom */
#updates, #contact { display: flex; flex-direction: column; }
#updates form.stack, #contact form.stack { flex: 1; display: flex; flex-direction: column; max-width: none; }
#updates form.stack .btn, #contact form.stack .btn { margin-top: auto; }
.form-msg:empty { display: none; }

/* Home Book One: overlapping covers, click the one behind to bring it forward */
.cover-stack{position:relative;width:100%;max-width:460px;margin:0 auto;aspect-ratio:1/1.25}
.cover-stack .cv{position:absolute;width:62%;padding:0;border:0;background:none;cursor:pointer;transition:all .6s cubic-bezier(.4,.1,.2,1);filter:drop-shadow(0 18px 28px rgba(28,23,64,.3))}
.cover-stack .cv img{display:block;width:100%;border-radius:4px}
.cover-stack[data-front="front"] .cv-front,.cover-stack[data-front="back"] .cv-back{left:0;top:0;z-index:2;transform:rotate(-3deg)}
.cover-stack[data-front="front"] .cv-back,.cover-stack[data-front="back"] .cv-front{left:38%;top:30%;z-index:1;transform:rotate(5deg);opacity:.92}
.cover-stack .cv:hover{opacity:1}
.cover-stack .cv:focus-visible{outline:2px solid var(--gold,#c8891a);outline-offset:4px}
@media (prefers-reduced-motion:reduce){.cover-stack .cv{transition:none}}

.bookhero .booktext{text-align:left}
.bookhero .btns{justify-content:flex-start}
.bk-title{white-space:nowrap}
.bk-title .bk-sub{display:block;margin-top:.35em;font-size:.55em;letter-spacing:.06em}
@media (max-width:480px){.bk-title{white-space:normal}}
.bk-title{font-size:clamp(1.5rem,2.9vw,2.4rem)}
@media (max-width:760px){.bk-title{font-size:clamp(1.5rem,7vw,2.2rem)}}
/* Book page: fit in one screen on desktop */
@media (min-width:901px){
  .bookhero{padding:20px 0 24px;min-height:calc(100vh - 100px);display:flex;align-items:center}
  .bookhero .wrap{width:100%}
  .bookhero .two-col{grid-template-columns:1.05fr 1fr;gap:20px}
  .bookhero h2{font-size:1.4rem;margin:.6em 0 .2em}
  .bookhero p{margin-bottom:.7em}
  .bookhero .spec{grid-template-columns:1fr 1fr;margin:.5em 0 .9em}
  .bookhero .spec>div{grid-template-columns:1fr;gap:2px;padding:8px 14px;border-right:1px solid var(--line)}
  .bookhero .spec>div:nth-child(2n){border-right:0}
  .bookhero .spec>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .bookhero .spec dd{min-height:1.2em;font-size:1.05rem}
  .bookhero .cover-stack{max-width:min(440px,calc((100vh - 140px)*.85));margin:0 0 0 auto}
}
@media (min-width:901px){
  .block.bookhero{padding:16px 0;min-height:calc(100vh - 102px)}
  .bookhero .cover-stack{max-width:min(440px,calc((100vh - 190px)/1.25))}
  .bookhero .booktext .eyebrow{margin-bottom:4px}
  .bookhero .spec>div{padding:6px 14px}
}
/* Home hero: cream with emblem watermark strictly behind the hero copy */
.hero-split {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-2);
  color: var(--ink, #2a2540);
}
.hero-grid {
  position: relative;
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 120%);
  aspect-ratio: 1 / 1;
  background-image: url("https://cdn.storymirror.com/raghuveera-website/site/v12/img-02-emblem-transparent.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 900px) {
  .hero-copy::before {
    width: min(420px, 95vw);
    opacity: 0.13;
  }
}
.hero-split .hero-copy h1 { color: var(--indigo); }
.hero-split .hero-sub { color: var(--gold-deep); }
.hero-split .hero-tag { color: var(--indigo); }
.hero-split .hero-line { color: var(--gold-deep); }
.hero-split .hero-copy .btn.ghost { color: var(--indigo); border-color: var(--gold); }
.hero-split .hero-copy .btn.ghost:hover { background: var(--gold); color: #fff; }
.hero-split .hero-art img { box-shadow: 0 14px 34px rgba(28,23,64,.22); }
/* Mobile header: brand and Menu on one line, Menu on the right */
@media (max-width:1240px){
  .site-header .wrap{flex-wrap:wrap;justify-content:space-between;align-items:center}
  .brand{white-space:nowrap;min-width:0}
  .menu-btn{margin-left:auto;flex-shrink:0;white-space:nowrap}
  .nav{flex-basis:100%}
}
@media (max-width:480px){
  .brand{font-size:.9rem;letter-spacing:.04em;gap:8px}
  .brand img{width:32px;height:32px}
  .menu-btn{padding:6px 12px}
}
/* Book page on phones/tablets: covers first, then text */
@media (max-width:900px){
  .block.bookhero{padding:28px 0 40px}
  .bookhero .two-col{gap:32px}
  .bookhero .cover-stack{order:-1;max-width:340px;margin:0 auto;transform:none}
  .bookhero .booktext{text-align:left}
}
@media (max-width:900px){.bookhero .cover-stack{max-width:310px}}
@media (max-width:900px){.block.bookhero{padding-top:52px}}
.spec dd a{color:var(--indigo);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.spec dd a:hover{color:var(--gold-deep)}

/* About pages: Mission, Great Transition, Master Light */
.aboutpage{align-items:start}
.aboutpage .booktext{text-align:left}
.figure.fullimg{background:#0c0a1e}
.figure.fullimg img{display:block;width:100%;height:auto}
.figure.fullimg.opener{max-width:520px;margin:0 auto 2em}
.figure.fullimg.wide{margin:1.5em auto 2em}
.timeline{list-style:none;margin:2em 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.timeline .tcard{display:flex;flex-direction:column;text-align:left}
.timeline .tcard .tag{margin:0 0 6px;font-weight:600}
.timeline .tcard h3{font-size:1.35rem;color:var(--indigo)}
.timeline .tcard .tq{font-family:var(--serif);font-style:italic;font-size:1.1rem;color:var(--indigo)}
.timeline .tcard .code{margin-top:auto;padding-top:.8em;border-top:1px solid var(--gold)}
.sailist{list-style:none;margin:0 0 1.2em;padding:0;display:grid;gap:8px}
.sailist li{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px}
.mflow.shift li{display:flex;align-items:center;justify-content:center}
.mflow.shift strong{font-weight:600}
.timeline{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.timeline .tcard{flex:0 1 calc(25% - 12px);min-width:230px}
@media (max-width:700px){.timeline .tcard{flex:1 1 100%;min-width:0}}
.figure.fullimg figcaption{background:#fff;color:var(--muted);font-size:.9rem;line-height:1.5;padding:12px 16px;text-align:center}
h1 .bk-sub{display:block;margin-top:.3em;font-size:.55em;letter-spacing:.06em}
/* Great Transition: vertical timeline, cards alternate either side of a central line */
.timeline{display:block;position:relative;max-width:920px;margin:2.4em auto 0;padding:0}
.timeline::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:2px;transform:translateX(-1px);background:linear-gradient(var(--gold),var(--gold-deep))}
.timeline .tcard{position:relative;display:block;flex:none;min-width:0;width:calc(50% - 36px);margin:0 0 28px}
.timeline .tcard:last-child{margin-bottom:0}
.timeline .tcard:nth-child(odd){margin-right:auto}
.timeline .tcard:nth-child(even){margin-left:auto}
.timeline .tcard::after{content:"";position:absolute;top:22px;width:14px;height:14px;border-radius:50%;background:var(--gold);border:3px solid var(--cream-2);box-shadow:0 0 0 2px var(--gold)}
.timeline .tcard:nth-child(odd)::after{right:-43px}
.timeline .tcard:nth-child(even)::after{left:-43px}
.timeline .tcard .tag{font-size:13px;letter-spacing:.14em}
.timeline .tcard .code{margin-top:.8em}
@media (max-width:700px){
  .timeline::before{left:11px;transform:none}
  .timeline .tcard,.timeline .tcard:nth-child(odd),.timeline .tcard:nth-child(even){width:auto;margin:0 0 22px 36px}
  .timeline .tcard:nth-child(odd)::after,.timeline .tcard:nth-child(even)::after{left:-32px;right:auto}
}
/* Timeline polish: dots centred exactly on the line, plus scroll animation */
.timeline::before{background:var(--line)}
.timeline::after{content:"";position:absolute;left:50%;top:6px;width:2px;height:calc((100% - 12px) * var(--p,1));transform:translateX(-1px);background:linear-gradient(var(--gold),var(--gold-deep));transition:height .25s ease-out;pointer-events:none}
.timeline .tcard::after{box-sizing:border-box;width:16px;height:16px;border:3px solid var(--cream-2);transition:transform .5s cubic-bezier(.3,1.6,.5,1) .15s,background .3s}
.timeline .tcard:nth-child(odd)::after{right:-36px;left:auto;transform:translateX(50%)}
.timeline .tcard:nth-child(even)::after{left:-36px;right:auto;transform:translateX(-50%)}
.timeline .tcard{transition:box-shadow .3s ease,transform .3s ease}
.timeline .tcard:hover{box-shadow:0 12px 28px rgba(28,23,64,.14)}
.timeline.anim .tcard{opacity:0;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1),box-shadow .3s ease}
.timeline.anim .tcard:nth-child(odd){transform:translateX(-28px)}
.timeline.anim .tcard:nth-child(even){transform:translateX(28px)}
.timeline.anim .tcard::after{transform:translateX(50%) scale(0)}
.timeline.anim .tcard:nth-child(even)::after{transform:translateX(-50%) scale(0)}
.timeline.anim .tcard.in{opacity:1;transform:none}
.timeline.anim .tcard.in::after{transform:translateX(50%) scale(1)}
.timeline.anim .tcard:nth-child(even).in::after{transform:translateX(-50%) scale(1)}
@media (max-width:700px){
  .timeline::after{left:11px;transform:none}
  .timeline .tcard:nth-child(odd)::after,.timeline .tcard:nth-child(even)::after{left:-24px;right:auto;transform:translateX(-50%)}
  .timeline.anim .tcard:nth-child(odd),.timeline.anim .tcard:nth-child(even){transform:translateY(22px)}
  .timeline.anim .tcard:nth-child(odd)::after,.timeline.anim .tcard:nth-child(even)::after{transform:translateX(-50%) scale(0)}
  .timeline.anim .tcard.in:nth-child(odd),.timeline.anim .tcard.in:nth-child(even){transform:none}
  .timeline.anim .tcard.in:nth-child(odd)::after,.timeline.anim .tcard.in:nth-child(even)::after{transform:translateX(-50%) scale(1)}
}
@media (prefers-reduced-motion:reduce){.timeline.anim .tcard,.timeline .tcard::after,.timeline::after{transition:none}}

/* Footer */
.site-footer{background:var(--cream-2);border-top:1px solid var(--line);color:var(--ink);padding:48px 0 28px}
.site-footer .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
.site-footer .foot-brand{display:flex;align-items:center;gap:10px;color:var(--indigo);font-family:var(--serif);font-weight:700;letter-spacing:.08em;font-size:1.05rem;text-decoration:none}
.site-footer .foot-brand img{width:38px;height:38px}
.site-footer .foot-line{font-family:var(--serif);font-style:italic;font-size:1.15rem;line-height:1.4;color:var(--indigo);margin-top:14px;max-width:300px}
.site-footer h4{font-family:var(--sans);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep);margin:0 0 12px}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.site-footer li a{color:var(--ink);text-decoration:none;font-size:.95rem}
.site-footer li a:hover{color:var(--gold-deep);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.site-footer .foot-base{margin-top:36px;padding-top:18px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);text-align:center}
@media (max-width:860px){.site-footer .foot-grid{grid-template-columns:1fr 1fr}.site-footer .foot-grid>div:first-child{grid-column:1/-1}}
@media (max-width:480px){.site-footer .foot-grid{grid-template-columns:1fr}}
.brand-ico{width:22px;height:22px;flex:none}
.soc{display:inline-flex;align-items:center;gap:10px}
.spec dd .soc span{font-family:var(--serif)}

/* Seven Doorways table */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.doortable-wrap{max-width:900px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.doortable{width:100%;border-collapse:collapse;text-align:left}
.doortable thead th{background:var(--cream-2);color:var(--gold-deep);font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;padding:14px 20px;border-bottom:1px solid var(--line)}
.doortable tbody th,.doortable tbody td{padding:16px 20px;border-bottom:1px solid var(--line);vertical-align:middle}
.doortable tbody tr:last-child th,.doortable tbody tr:last-child td{border-bottom:0}
.doortable tbody th{font-family:var(--serif);font-size:1.25rem;font-weight:600;letter-spacing:.06em;color:var(--indigo);white-space:nowrap}
.doortable tbody td{color:var(--ink)}
.doortable td.lc{font-size:12px;letter-spacing:.08em;font-weight:600;color:var(--gold-deep)}
.doortable tbody tr{transition:background .2s}
.doortable tbody tr:hover{background:var(--cream)}
@media (max-width:640px){
  .doortable thead{display:none}
  .doortable,.doortable tbody,.doortable tr,.doortable th,.doortable td{display:block}
  .doortable tbody tr{padding:14px 18px;border-bottom:1px solid var(--line)}
  .doortable tbody tr:last-child{border-bottom:0}
  .doortable tbody th,.doortable tbody td{padding:2px 0;border:0}
  .doortable tbody td[data-label]::before{content:attr(data-label) ": ";font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600}
}
#doorways .doorway-copy{max-width:1048px;margin:2.25rem auto 0;display:grid;gap:1.2rem}
#doorways .doorway-heading{margin:0;font-size:1.35rem;letter-spacing:.08em;text-transform:uppercase;color:var(--indigo);text-align:center}
#doorways .doorway-intro{font-family:var(--serif);font-size:1.4rem;color:var(--indigo);text-align:center;margin:0}
#doorways .doorway-sequence{margin:0;font-size:0.82rem;letter-spacing:.14em;text-transform:uppercase}
#doorways .doorway-steps{display:grid;gap:1.25rem}
#doorways .doorway-step{background:rgba(255,255,255,.7);border:1px solid var(--line);border-radius:var(--radius);padding:1.15rem 1.25rem}
#doorways .doorway-step h3{margin:0 0 .55rem;font-size:1.02rem;letter-spacing:.04em;text-transform:uppercase;color:var(--gold-deep)}
#doorways .doorway-step p{margin:0;line-height:1.8}
#doorways .doorway-practice{margin-top:0;padding-top:1.25rem;border-top:1px solid var(--line);display:grid;gap:.6rem}
#doorways .doorway-practice h3{margin:0;font-size:1.2rem;color:var(--indigo);font-family:var(--serif)}
#doorways .doorway-closing{margin:0;text-align:center;font-family:var(--serif);font-size:1.2rem;color:var(--indigo)}
/* Light Codes: centred everywhere */
.lightcode,.card .code,.timeline .tcard .code,.mnote .lightcode{text-align:center}
.doortable thead th:last-child,.doortable td.lc{text-align:center}
@media (max-width:640px){.doortable td.lc{text-align:left}}
.editions{margin:2em 0 1em;align-items:stretch}
.edition{display:flex;flex-direction:column;text-align:center}
.edition .tag{font-weight:600;font-size:12px}
.edition h3{font-size:1.5rem;color:var(--indigo)}
.edition .lightcode{margin:1.2em 0}
.edition .btns{margin-top:auto;justify-content:center}
.edition-note{font-size:13px;color:var(--muted);margin:-.4em 0 1em}
.site-footer{background:#f6e6c0;border-top-color:#e6cf99}
.site-footer .foot-base,.site-footer .foot-grid{border-color:#e6cf99}
.site-footer .foot-base{border-top-color:#e6cf99;color:#7a6f55}

/* My Writing */
.writings{max-width:980px;margin:2em auto 0;display:grid;gap:28px}
.writing{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.writing h2{text-align:left;margin-bottom:.6em}
.writing p{text-align:left}
.writing .figure.opener{margin:0 auto 1.6em}
@media (max-width:640px){.writing{padding:18px}}
h2 .bk-sub{display:block;margin-top:.3em;font-size:.65em;letter-spacing:.04em;font-weight:500}

/* My Writing entry: image beside the text on wide screens, image first when stacked */
@media (min-width:860px){
  .writings{max-width:1040px}
  .writing{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:32px;align-items:start;padding:24px}
  .writing .figure.opener{margin:0;max-width:none}
}
/* My Writing: break out of the page column so only a small margin remains at each side */
@media (min-width:860px){
  .writings{max-width:none;width:90vw;margin-left:calc(50% - 45vw);margin-right:0}
  .writing{grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:48px}
}
.bookhero .booktext .btns{margin-top:1.6em}

/* FAQs: side-by-side card grid */
.faq-list {
  max-width: none; /* same edges as the navbar and footer */
  margin: 2.2em 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.faq-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  scroll-margin-top: 100px;
}
.faq-card.full-width {
  grid-column: 1 / -1;
}
.faq-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(28, 23, 64, .10);
}
.faq-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.faq-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
  background: var(--cream-2);
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.faq-head h2 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.3;
  color: var(--indigo);
  text-align: left;
}
.faq-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.faq-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.9em;
  text-align: left;
}
.faq-body p:last-child {
  margin-bottom: 0;
}
.faq-body .move-list {
  list-style: none;
  padding: 0;
  margin: 0.8em 0 1.2em;
  display: grid;
  gap: 8px;
}
.faq-body .move-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  text-align: left;
}
.faq-body .move-list strong {
  color: var(--indigo);
}
.faq-quote {
  margin: 1em 0;
  padding: 14px 18px;
  background: var(--cream-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--indigo);
  text-align: left;
}
.faq-figure {
  margin: 1.4em 0 0.8em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(28, 23, 64, .14);
}
.faq-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.faq-body .lightcode {
  margin: 1em 0;
  padding: 10px 14px;
  font-size: 12px;
}
@media (max-width: 860px) {
  .faq-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .faq-card.full-width {
    grid-column: auto;
  }
  .faq-card {
    padding: 22px 18px;
  }
}
.lc-fig{max-width:620px;margin:1.6em auto}

/* Header with nine items: a wider header row and slightly tighter links on laptops */
.site-header .wrap{max-width:1400px}
@media (min-width:1241px) and (max-width:1440px){
  .nav a{padding:6px 7px;font-size:12px;letter-spacing:.04em}
  .brand{font-size:.95rem;letter-spacing:.05em}
}
.as-h1{font-size:clamp(2rem,5vw,3rem);letter-spacing:.03em}
.as-h1 .bk-sub{font-size:.55em;letter-spacing:.06em;font-weight:inherit}
.mlw{align-items:center;gap:36px}
.mlw .figure{margin:0}
.mlw-text .btns{margin-top:1em}
@media (max-width:760px){.mlw .figure{order:2}}
.hero-caption{font-family:var(--serif);font-size:clamp(1.3rem,2.4vw,1.9rem);font-style:italic;color:var(--indigo);text-align:center;margin:.9em 0 0}
.hero-copy h1{margin-bottom:.6em}
.hero-copy h1{margin-bottom:.25em}
.hero-split .hero-sub{font-size:clamp(1.3rem,2.2vw,1.7rem);color:var(--gold-deep);margin-bottom:.3em}
.hero-split .hero-sub2{font-size:1.05rem;font-family:var(--sans);font-weight:500;letter-spacing:.02em;color:var(--indigo)}
.hero-split .hero-tag{font-size:1.2rem;line-height:1.5;color:var(--ink);margin:0 0 .9em}
.hero-split .hero-line{font-size:12.5px;letter-spacing:.1em;color:var(--gold-deep);font-weight:600;margin-bottom:1.4em}
.future-writings{margin-top:8px;text-align:center}
.future-writings h2{margin-bottom:.2em}
.future-sub{font-family:var(--serif);font-size:1.2rem;letter-spacing:.04em;color:var(--indigo);margin:0 0 1.2em}
.worktable{text-align:left}
.worktable tbody th{white-space:normal;font-size:1.1rem;letter-spacing:.02em;width:30%}
.worktable tbody td{width:35%}
.worktable tbody th{font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1}
.invite{font-family:var(--serif);font-style:italic;font-size:1.2rem;color:var(--indigo);margin:1.2em 0}

/* Content protection */
html,body{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable="true"]{-webkit-user-select:text;-moz-user-select:text;user-select:text}
img{-webkit-user-drag:none;user-drag:none}
.copy-toast{position:fixed;left:0;top:0;display:flex;align-items:center;gap:6px;background:#b3261e;color:#fff;padding:5px 10px;border-radius:4px;border:1px solid #8c1d18;font-family:Arial,Helvetica,sans-serif;font-size:12.5px;line-height:1.2;white-space:nowrap;box-shadow:0 4px 12px rgba(0,0,0,.3);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .2s,transform .2s;z-index:1000;max-width:94vw}
.copy-toast.show{opacity:1;transform:none}
.copy-toast .copy-toast-ico{width:16px;height:16px;flex:none}
.copy-toast strong{letter-spacing:.08em;font-size:12px}
@media (max-width:420px){.copy-toast{white-space:normal}}
.allow-copy{-webkit-user-select:text;-moz-user-select:text;user-select:text;word-break:break-all}
#contact .spec dd a{font-family:var(--sans);font-size:1rem}
#contact .spec>div{grid-template-columns:1fr;gap:4px}
.allow-copy{word-break:normal;overflow-wrap:anywhere}

/* Contact the Author card */
.card:is(#updates,#contact) .contact-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:8px 0 20px}
.card:is(#updates,#contact) .contact-ico{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--cream-2);border:1px solid var(--line);color:var(--gold-deep);margin-bottom:6px}
.card:is(#updates,#contact) .contact-ico svg{width:30px;height:30px}
.card:is(#updates,#contact) .contact-label{margin:0;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-deep);font-weight:600}
.card:is(#updates,#contact) .contact-mail{font-family:var(--serif);font-size:1.35rem;font-weight:600;color:var(--indigo);text-decoration:none;border-bottom:1px solid var(--gold);padding-bottom:2px}
.card:is(#updates,#contact) .contact-mail:hover{color:var(--gold-deep)}
.card:is(#updates,#contact) > .btn{align-self:stretch;text-align:center;margin-top:auto}

/* Hamburger menu button */
.menu-btn{width:44px;height:44px;padding:0;display:none;align-items:center;justify-content:center;border-radius:10px;background:transparent}
@media (max-width:1240px){.menu-btn{display:inline-flex}}
.menu-btn .bars{position:relative;display:block;width:22px;height:16px}
.menu-btn .bars i{position:absolute;left:0;width:100%;height:2px;border-radius:2px;background:var(--indigo);transition:transform .25s ease,opacity .2s ease,top .25s ease}
.menu-btn .bars i:nth-child(1){top:0}
.menu-btn .bars i:nth-child(2){top:7px}
.menu-btn .bars i:nth-child(3){top:14px}
.menu-btn[aria-expanded="true"] .bars i:nth-child(1){top:7px;transform:rotate(45deg)}
.menu-btn[aria-expanded="true"] .bars i:nth-child(2){opacity:0}
.menu-btn[aria-expanded="true"] .bars i:nth-child(3){top:7px;transform:rotate(-45deg)}
.menu-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.menu-btn{border:0}
.nav a{font-weight:600}
/* Connect: identical buttons in the two top cards so their tops and bottoms line up */
.card:is(#updates,#contact) .btn{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:50px;padding:0 24px;margin-top:auto;font-size:15px;line-height:1;font-family:var(--sans);text-align:center}

/* Top announcement banner (home page, managed from the admin) */
.top-banner{display:flex;align-items:center;gap:14px;background:var(--indigo);color:#fff3cf;padding:7px 0 7px 0;overflow:hidden;font-size:14px}
.tb-marquee{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap}
.tb-track{display:inline-flex;animation:tb-scroll 30s linear infinite;will-change:transform}
/* Pause only while the pointer is over the bar (mouse devices) or a link is keyboard-focused.
   Plain :focus-within / touch :hover would leave it stuck after clicking a link and coming back. */
@media (hover:hover){.tb-marquee:hover .tb-track{animation-play-state:paused}}
.top-banner:has(.tb-link:focus-visible) .tb-track{animation-play-state:paused}
.tb-group{display:inline-flex;flex:none}
.tb-item{padding:0 48px;letter-spacing:.02em}
.tb-link{flex:none;margin-right:14px;background:var(--gold);color:#fff;text-decoration:none;font-weight:600;font-size:13px;padding:5px 14px;border-radius:999px;white-space:nowrap}
.tb-link:hover{background:#fff3cf;color:var(--indigo)}
@keyframes tb-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.tb-track{animation:none}.tb-marquee{white-space:normal;padding-left:14px}.tb-group:nth-child(2){display:none}.tb-item:nth-child(n+2){display:none}}
/* Honeypot field for the sign-up form: invisible to people, tempting to bots */
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* My Writings: blocks edited from the admin */
.wr-stack{max-width:980px;margin:2em auto 0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.wr-stack>*+*{margin-top:1.1em}
.wr-stack h2{margin:1.1em 0 .1em;text-align:left}
.wr-stack>h2:first-child{margin-top:0}
.wr-stack p{text-align:left;white-space:pre-line}
.wr-stack>*{margin-bottom:0}
.wr-stack>p+p{margin-top:.8em}
.wr-sub{font-family:var(--serif);font-size:1.2rem;letter-spacing:.03em;color:var(--indigo)}
.wr-fig{margin:0;text-align:center}
.wr-fig img{display:block;margin:0 auto;max-width:100%;height:auto;border-radius:var(--radius);box-shadow:0 10px 30px rgba(28,23,64,.18)}
.wr-fig.s-small img{max-width:min(100%,280px)}.wr-fig.s-medium img{max-width:min(100%,460px)}.wr-fig.s-large img{max-width:min(100%,760px)}
.wr-fig figcaption{margin-top:.6em;color:var(--muted);font-size:.9rem}
.wr-stack .doortable-wrap{max-width:none}
@media (max-width:640px){.wr-stack{padding:18px}}

/* Banner: each message can carry its own button, inline in the scrolling line */
.tb-item{display:inline-flex;align-items:center;gap:12px;padding:0 28px 0 0;margin-right:28px;position:relative}
.tb-item::after{content:"•";position:absolute;right:-4px;opacity:.55}
.tb-link{margin-right:0}
/* Navbar: more breathing room between links */
.nav{gap:8px;align-items:center}
.nav a{padding:9px 13px;font-size:13px;letter-spacing:.07em;line-height:1.2;border-radius:10px}
@media (min-width:1241px) and (max-width:1500px){
  .nav{gap:4px}
  .nav a{padding:9px 9px;font-size:12.5px;letter-spacing:.05em}
}
@media (min-width:1501px){
  .nav{gap:4px}
  .nav a{padding:9px 11px}
}
/* My Writings (editable blocks): nearly full width, only a small margin at each side */
@media (min-width:860px){
  .wr-stack{max-width:none;width:min(95vw,1600px);margin-left:calc(50% - min(95vw,1600px) / 2);margin-right:0}
}

/* Footer: use the same wide row as the header so there is little empty space at the sides */
.site-footer .wrap{max-width:1400px}
.site-footer .foot-grid{grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px}
@media (max-width:860px){.site-footer .foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.site-footer .foot-grid{grid-template-columns:1fr}}
@media (max-width:900px){.hero-grid{padding-top:18px}}
/* Footer columns span the same edges as the navbar: first column flush left, last column flush right */
@media (min-width:861px){
  .site-footer .foot-grid{grid-template-columns:repeat(4,auto);justify-content:space-between;gap:24px}
  .site-footer .foot-line{max-width:220px}
}

/* ---- Consistent page width: every page uses the navbar/footer container (1400px). Images are NOT enlarged:
   they keep their previous maximum size and sit centred inside the wider container. ---- */
.figure{max-width:1048px;margin-left:auto;margin-right:auto}
.figure.fullimg.wide{max-width:1048px}
.figure.fullimg.opener{max-width:520px}
.wr-stack{max-width:none;width:100%;margin-left:0;margin-right:0}
@media (min-width:860px){
  .wr-stack{width:100%;margin-left:0;margin-right:0}
  .writings{max-width:none;width:100%;margin-left:0;margin-right:0}
}
.timeline{overflow-x:clip}

/* Light Codes are always centred (the box itself, not just the words) */
.lightcode{display:block;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;text-align:center}

/* Footer: the last column ends exactly where the navbar's last word ends (the links/icon have inner padding) */
:root{--navpad:11px}
@media (min-width:1241px) and (max-width:1500px){:root{--navpad:9px}}
@media (min-width:1501px){:root{--navpad:11px}}
@media (min-width:861px){.site-footer .wrap{padding-right:calc(16px + var(--navpad))}}

/* Three Divine Expressions cards: headings, paragraphs and the last line sit on the same rows in every card */
.divine-grid .card{display:flex;flex-direction:column;text-align:left}
.divine-grid .card p{margin:0 0 .9em}
.divine-grid .card .code{margin-top:auto;padding-top:14px;margin-bottom:0;border-top:1px solid var(--line);text-align:center;font-size:12.5px;line-height:1.5}
@supports (grid-template-rows: subgrid){
  @media (min-width:561px){
    .divine-grid{grid-template-rows:auto auto auto auto}
    .divine-grid .card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-items:start}
    .divine-grid .card .code{margin-top:0;align-self:start}
  }
}
.bookhero{overflow-x:clip}
main section > .wrap > .narrow:not(.center){max-width:none}

/* Titles vs subtitles: titles stay deep indigo serif; subtitles are gold italic serif so the two read differently */
.subtitle{font-family:var(--serif);font-style:italic;font-weight:500;color:var(--gold-deep);font-size:clamp(1.2rem,2vw,1.5rem);line-height:1.4;letter-spacing:.01em;margin:0 0 1em}
h1 .bk-sub,h2 .bk-sub{color:var(--gold-deep);font-style:italic;font-weight:500;letter-spacing:.02em}
.bk-title .bk-sub{font-style:normal;letter-spacing:.1em;font-weight:600}

/* About sub-menu: left aligned, first word starts exactly under the logo */
@media (min-width:861px){
  .subnav .wrap{justify-content:flex-start}
  .subnav a:first-child{margin-left:-14px}
}
/* Every lead / subtitle line uses the same gold italic serif, so it always reads differently from the title above it */
.lead{font-family:var(--serif);font-style:italic;font-weight:500;color:var(--gold-deep);font-size:clamp(1.2rem,2vw,1.5rem);line-height:1.45;letter-spacing:.01em}

/* Page content: twice the side spacing (32px). The navbar, sub-menu and footer keep their own 16px. */
/* Content side space = 2 x the navbar's side space, at every screen size.
   Navbar space = (screen - 1400px)/2 + 16px on wide screens, 16px otherwise; content gets double that,
   but the content column never gets narrower than 800px on very large monitors. */
main .wrap{--side:min(300px,max(32px,calc((100% - 1400px)/2 + 32px)));padding-left:var(--side);padding-right:var(--side)}
/* Home hero: the title block starts at the same height as the image */
@media (min-width:901px){
  .hero-split .hero-grid{align-items:start}
  .hero-copy h1{margin-top:-0.2em;line-height:1.08}
}

/* Text next to an image always starts at the same height as the image (About, Mission, Book One, Home book, Master Light) */
@media (min-width:761px){
  .two-col,.mlw{align-items:start}
  .two-col > div > :first-child,.mlw > .mlw-text > :first-child{margin-top:0}
}

/* Mission (and any text-beside-figure layout): the figure's default top margin must not push it below the text */
.two-col > .figure{margin-top:0}

/* Centred text blocks, notes, tables and timelines now use the full content width (images keep their own limits) */
.narrow.center,.mnote,.doortable-wrap,.timeline{max-width:none}
.vision main .wrap.narrow.center > *{max-width:none}

/* Seven Doorways table: exactly as wide as the overview image above it, and centred under it */
#doorways .doortable-wrap{max-width:1048px;margin-left:auto;margin-right:auto}

/* Paragraph size follows the --fit value set by the script so text and image end together */
[data-fit-text] p:not(.lead):not(.subtitle):not(.eyebrow):not(.btns):not(.lightcode){font-size:calc(1rem * var(--fit,1))}
.two-col > .figure{margin-bottom:0}

/* Every Light Code box is centred, whatever container it sits in (overrides earlier margin shorthands) */
main .lightcode,.mnote .lightcode,.edition .lightcode,.faq-body .lightcode{margin-left:auto!important;margin-right:auto!important;width:fit-content;max-width:100%;text-align:center}

/* Sai list: three equal-width, compact cards centred on the page */
.sailist{width:min(640px,100%);margin-left:auto;margin-right:auto;justify-items:stretch}
.sailist li{text-align:center}

/* Home hero: caption sits above the picture */
.hero-art .hero-caption{margin:0 0 .6em;text-align:center}
@media (min-width:761px){
  .hero-grid{align-items:start}
  .hero-art .hero-caption{line-height:1.2;margin:0 0 .7em}
  .hero-copy h1{margin-top:0}
}
@media (min-width:761px){
  .hero-grid{align-items:stretch}
  .hero-art{display:flex;flex-direction:column;min-height:0}
  .hero-art img{flex:1 1 auto;min-height:0;height:100%;object-fit:cover}
}
@media (min-width:901px){ .hero-split .hero-grid{align-items:stretch} }
@media (min-width:901px){
  /* picture fills the space under the caption and ends exactly where the left text ends */
  .hero-split .hero-art{position:relative;display:block}
  .hero-split .hero-art .hero-caption{margin:0;height:3rem;display:flex;align-items:flex-start;justify-content:center}
  .hero-split .hero-art img{position:absolute;left:0;right:0;top:3.6rem;bottom:0;width:100%;height:calc(100% - 3.6rem);object-fit:cover}
}
@media (min-width:901px){
  /* picture top lines up with the title; caption floats just above it; picture is not cropped */
  .hero-split .hero-grid{align-items:start;padding-top:72px}
  .hero-split .hero-art{position:relative;display:block}
  .hero-split .hero-art .hero-caption{position:absolute;left:0;right:0;bottom:100%;height:auto;display:block;margin:0 0 .5em;line-height:1.2}
  .hero-split .hero-art img{position:static;width:100%;height:auto;object-fit:fill}
}

/* About the Author: a plain framed card around the cut-out portrait, centred with the paragraph beside it. */
@media (min-width:761px){ .about-hero.two-col{align-items:center} }
.about-hero .author-portrait{
  position:relative;overflow:visible;
  margin:0 auto;max-width:560px;width:100%;
  padding:18px;border-radius:22px;
  background:linear-gradient(180deg,#fffefb,#fdf6e6);
  border:1px solid var(--line);
  box-shadow:0 18px 40px rgba(28,23,64,.14);
}
.about-hero .author-portrait img{width:100%;height:auto;display:block}

/* Free Sample Books table: a wide title column and a narrow, right-aligned sample-link column
   (plain auto table layout was giving the link column most of the width, leaving the button
   stranded far from its header). */
.sampletable{table-layout:fixed}
.sampletable th:first-child,.sampletable td:first-child{width:72%;white-space:normal}
.sampletable th:last-child,.sampletable td:last-child{width:28%;text-align:center}
@media (max-width:640px){
  .sampletable,.sampletable th,.sampletable td{width:auto!important}
  .sampletable td:last-child{text-align:left}
}
