/* Layout concept: a night temple — deep basalt ground, antique-gold hairlines drawn like
   Egyptian wall registers, sacred geometry receding behind content, one doorway frame
   holding the portrait. Each division borrows one mineral pigment from the ancient palette.
   Deliberately single-theme (dark). All spacing uses logical properties for future RTL. */
:root {
  color-scheme: dark;
  /* ground & text */
  --ink: #0a0908;
  --basalt: #12100d;
  --stone: #1b1813;
  --stone-2: #24201a;
  --parchment: #ece3d1;
  --sand: #b9ad97;
  --muted: #8f8573;
  /* metal */
  --gold: #c7a565;
  --gold-soft: #d9bf8a;
  --bronze: #8a6a3e;
  --line: rgba(199, 165, 101, 0.2);
  --line-strong: rgba(199, 165, 101, 0.42);
  /* mineral pigments, one per division */
  --lapis: #6d8fd6;
  --malachite: #5aa883;
  --carnelian: #cf6c52;
  --turquoise: #5fb6b1;
  --dawn: #d59a8c;
  --platinum: #a9c0cf;
  --accent: var(--gold);
  /* semantic */
  --ok: #7cc49a;
  --warn: #e2b86b;
  --error: #e58a78;
  /* type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-caps: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  --step-5: clamp(2.8rem, 1.8rem + 4.6vw, 5.6rem);
  /* rhythm */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
::selection { background: rgba(199, 165, 101, 0.35); color: #fff; }

h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h3, h4 { font-family: var(--font-caps); letter-spacing: 0.04em; }
p { margin: 0; max-width: 66ch; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.narrow { max-width: calc(760px + 32px); }

/* ——— labels ——— */
.eyebrow {
  font-family: var(--font-caps);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.motto {
  font-family: var(--font-caps);
  letter-spacing: 0.22em;
  font-size: var(--step--1);
  color: var(--gold);
  text-transform: uppercase;
}
.lede { font-size: var(--step-1); color: var(--sand); line-height: 1.6; font-family: var(--font-display); }
.muted { color: var(--muted); }
.pill {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border: 1px solid currentColor;
  border-radius: 99px;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.active { color: var(--ok); }
.pill.future { color: var(--muted); }
.pill.dev { color: var(--warn); }

/* ——— register divider (Egyptian wall band) ——— */
.register { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-block: 0; }
.register::before, .register::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 3px; }
.register svg { width: 14px; height: 14px; flex: none; }

/* ——— header ——— */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: rgba(10, 9, 8, 0.92);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--parchment); }
.wordmark .sun { width: 30px; height: 30px; flex: none; }
.wordmark span { font-family: var(--font-caps); letter-spacing: 0.24em; font-size: 0.86rem; white-space: nowrap; }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 26px); }
.nav-desktop a, .lang a, .lang span {
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--sand); text-decoration: none;
  padding-block: 6px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--parchment); border-bottom-color: var(--gold); }
.lang { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.lang .sep { color: var(--bronze); }
.lang [aria-current="true"] { color: var(--gold-soft); }
.header-end { display: flex; align-items: center; gap: 18px; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-family: var(--font-caps); letter-spacing: 0.2em; font-size: 0.78rem;
  color: var(--parchment); padding: 8px 12px; border: 1px solid var(--line-strong);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--gold); }
.menu-panel {
  position: fixed; inset-inline: 0; top: calc(68px + env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - 68px - env(safe-area-inset-top, 0px)); overflow-y: auto;
  background: var(--basalt); border-bottom: 1px solid var(--line);
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--parchment); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.menu-panel li.sub a { font-size: 1.05rem; padding-inline-start: 18px; color: var(--sand); }
.menu-panel .lang { margin-top: 18px; font-size: 0.95rem; }
@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}
@media (max-width: 1079px) { .header-end .lang { display: none; } }

/* ——— backgrounds ——— */
.sky {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 70% at 70% 110%, rgba(199, 165, 101, 0.14), transparent 60%),
    radial-gradient(80% 60% at 15% -10%, rgba(109, 143, 214, 0.08), transparent 60%),
    var(--ink);
}
.sky::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/stars.svg") center / 900px auto repeat; opacity: 0.55;
}
.sky::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/stone-noise.svg"); opacity: 0.05; mix-blend-mode: screen;
}
.geometry {
  position: absolute; z-index: -1; pointer-events: none; color: var(--accent);
  opacity: 0.13; width: min(860px, 120vw); aspect-ratio: 1; max-width: none;
}

/* ——— buttons ——— */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-caps); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  border: 1px solid var(--b); color: var(--ink); background: linear-gradient(180deg, #d4b679, #b48f4f);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(199, 165, 101, 0.55); }
.btn.ghost { background: transparent; color: var(--parchment); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-soft); box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ——— sections ——— */
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section.tight { padding-block: clamp(44px, 6vw, 80px); }
.section.alt { background: var(--basalt); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--sand); }
.prose { display: grid; gap: 1.2em; }
.prose p { color: #ddd3c0; }
.prose h2 { font-size: var(--step-3); margin-top: 0.8em; }
.prose h3 { font-size: var(--step-1); color: var(--gold-soft); margin-top: 0.6em; }
.prose ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 0.4em; color: #ddd3c0; max-width: 66ch; }
.prose blockquote { margin: 0; padding-inline-start: 1.2em; border-inline-start: 1px solid var(--gold); font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--parchment); line-height: 1.35; }
.prose li::marker { color: var(--gold); }

/* ——— home hero ——— */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero .wrap { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.3fr 0.7fr; } }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.6rem); font-weight: 300; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero h1 .line { display: block; }
.nameplate { display: grid; gap: 8px; padding-top: 6px; }
.nameplate .name { font-family: var(--font-caps); letter-spacing: 0.34em; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem); color: var(--parchment); }
.hero .geometry { inset-inline-end: -18%; top: -14%; }

/* portrait doorway (stepped pylon frame) */
.doorway { position: relative; width: 100%; max-width: 460px; margin-inline: auto; justify-self: center; }
.doorway .frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  clip-path: polygon(0 12%, 6% 12%, 6% 6%, 12% 6%, 12% 0, 88% 0, 88% 6%, 94% 6%, 94% 12%, 100% 12%, 100% 100%, 0 100%);
  background: linear-gradient(160deg, #2a251d, #0f0d0a 70%);
}
.doorway img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.doorway.color img { filter: none; }
.doorway svg.outline { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); color: var(--gold); pointer-events: none; overflow: visible; }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; }
.monogram span { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 300; color: rgba(199, 165, 101, 0.5); letter-spacing: 0.06em; }
.doorway figcaption { margin-top: 22px; text-align: center; font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.26em; color: var(--muted); text-transform: uppercase; }

/* cinematic opening — visible at rest, short, skippable by nature */
@keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: 0; } to { opacity: 0.13; } }
.reveal { animation: rise 1s var(--ease) both; }
.reveal.d1 { animation-delay: 0.08s; } .reveal.d2 { animation-delay: 0.18s; } .reveal.d3 { animation-delay: 0.3s; } .reveal.d4 { animation-delay: 0.44s; }
.hero .geometry { animation: glow 2.4s ease-out both; }

/* ——— pathways ——— */
.pathways { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .pathways { grid-template-columns: repeat(3, 1fr); } }
.pathway {
  background: var(--ink); padding: clamp(28px, 3vw, 40px); display: grid; gap: 14px; align-content: start;
  text-decoration: none; color: var(--parchment); transition: background 0.4s var(--ease);
}
.pathway:hover { background: var(--stone); color: var(--parchment); }
.pathway .num { font-family: var(--font-caps); color: var(--gold); letter-spacing: 0.2em; font-size: 0.76rem; }
.pathway h3 { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: 0; font-weight: 400; }
.pathway p { color: var(--sand); font-size: 0.96rem; }
.pathway .go { font-family: var(--font-caps); font-size: 0.74rem; letter-spacing: 0.22em; color: var(--gold-soft); text-transform: uppercase; margin-top: 8px; }

/* ——— principle band ——— */
.creed { text-align: center; display: grid; gap: 26px; justify-items: center; }
.creed blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-4); font-weight: 300; line-height: 1.12; max-width: 18ch; }
.creed blockquote em { color: var(--gold-soft); }
.creed p { color: var(--sand); max-width: 58ch; }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.values li { font-family: var(--font-caps); letter-spacing: 0.22em; font-size: 0.74rem; color: var(--sand); text-transform: uppercase; }
.values li + li::before { content: "◇"; color: var(--bronze); margin-inline-end: 22px; font-size: 0.6rem; vertical-align: 2px; }

/* ——— division grid (tablets) ——— */
.tablets { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tablet {
  --accent: var(--gold);
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 28px 26px 26px; text-decoration: none; color: var(--parchment);
  background: linear-gradient(180deg, var(--stone), var(--basalt));
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.tablet::before { content: ""; position: absolute; inset-inline: 26px; top: -1px; height: 2px; background: var(--accent); opacity: 0.85; }
a.tablet:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); color: var(--parchment); }
.tablet .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tablet .glyph { width: 34px; height: 34px; color: var(--accent); }
.tablet h3 { font-size: 1.12rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tablet p { color: var(--sand); font-size: 0.95rem; }
.tablet .go { font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }

/* division accents */
.d-spirituality { --accent: var(--lapis); }
.d-academy { --accent: var(--gold); }
.d-living { --accent: var(--malachite); }
.d-impact { --accent: var(--dawn); }
.d-community { --accent: var(--turquoise); }
.d-aidev { --accent: var(--platinum); }
.d-fr { --accent: var(--carnelian); }
.d-gs { --accent: #b04a5a; }

/* ——— split feature ——— */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split > * { min-width: 0; }

/* ——— lists of offerings ——— */
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.offer-list li { padding: 18px 4px 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; color: #ddd3c0; }
.offer-list li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg) translateY(-2px); border: 1px solid var(--accent); flex: none; }

/* ——— concept cards (packages / programs) ——— */
.concepts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.concept { background: var(--basalt); padding: 28px; display: grid; gap: 10px; align-content: start; }
.concept h3 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: 0; }
.concept p { color: var(--sand); font-size: 0.95rem; }
.note {
  border: 1px solid var(--line); border-inline-start: 2px solid var(--accent);
  padding: 16px 20px; color: var(--sand); font-size: 0.92rem; background: rgba(255,255,255,0.015); max-width: 76ch;
}
.note strong { color: var(--parchment); font-weight: 600; }

/* ——— inner page hero ——— */
.page-hero { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero h1 { font-size: var(--step-5); font-weight: 300; max-width: 16ch; }
.page-hero .lede { max-width: 54ch; }
.page-hero .geometry { inset-inline-end: -22%; top: -40%; }
.crumbs { font-size: 0.78rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; letter-spacing: 0.06em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }

.subnav { border-bottom: 1px solid var(--line); background: var(--basalt); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 24px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 14px 0; white-space: nowrap; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--sand); text-decoration: none; border-bottom: 1px solid transparent; }
.subnav a[aria-current="page"], .subnav a:hover { color: var(--parchment); border-bottom-color: var(--accent); }

/* ——— media showcase ——— */
.channels { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.channel { border: 1px solid var(--line); background: var(--basalt); display: grid; grid-template-rows: auto 1fr; }
.channel .screen {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--stone);
  border-bottom: 1px solid var(--line);
}
.channel .screen .platform { width: 56px; height: 56px; color: var(--parchment); opacity: 0.9; }
.channel .screen .tag { position: absolute; top: 14px; inset-inline-start: 14px; }
.channel .body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.channel h3 { font-size: 1.05rem; letter-spacing: 0.1em; }
.channel p { color: var(--sand); font-size: 0.94rem; }
.channel .handle { font-family: var(--font-caps); letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); }
.stat { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* ——— forms ——— */
.form { display: grid; gap: 20px; }
.form .row { display: grid; gap: 20px; }
@media (min-width: 720px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-family: var(--font-caps); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }
.field .opt { color: var(--muted); letter-spacing: 0.06em; text-transform: none; font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--parchment);
  background: var(--stone); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 165, 101, 0.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: 0.86rem; min-height: 0; }
.field .hint { color: var(--muted); font-size: 0.84rem; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--sand); font-size: 0.92rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--gold); flex: none; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-panel { border: 1px solid var(--line); background: var(--basalt); padding: clamp(22px, 3vw, 40px); }
.status { border: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 12px; }
.status.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.status.compose { border-color: var(--line-strong); background: rgba(199,165,101,0.04); }
.status.error { border-color: color-mix(in srgb, var(--error) 60%, transparent); }
.status h3 { font-size: 1rem; letter-spacing: 0.1em; }
.status pre { white-space: pre-wrap; word-break: break-word; font: 0.88rem/1.6 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--sand); background: var(--ink); border: 1px solid var(--line); padding: 14px; margin: 0; max-height: 260px; overflow: auto; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-line code { font: 1rem ui-monospace, Menlo, monospace; color: var(--gold-soft); user-select: all; }
.spinner { width: 18px; height: 18px; color: var(--ink); animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* newsletter band */
.newsletter { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { font-size: var(--step-3); }
.inline-form { display: grid; gap: 14px; }
.inline-form .line { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .line .field { flex: 1 1 240px; }

/* ——— articles ——— */
.articles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.article-card { background: var(--ink); padding: 26px; display: grid; gap: 10px; text-decoration: none; color: var(--parchment); }
.article-card:hover { background: var(--stone); color: var(--parchment); }
.article-card h3 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.topics li { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--sand); border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; }
.empty { border: 1px dashed var(--line-strong); padding: clamp(28px, 4vw, 48px); display: grid; gap: 12px; justify-items: start; }
.empty h3 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: 0; }
article.post { font-size: 1.1rem; }
article.post .prose p { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.65; color: #e5dccb; }

/* ——— footer ——— */
.site-footer { background: var(--basalt); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .name { font-family: var(--font-caps); letter-spacing: 0.3em; font-size: 1rem; }
.footer-logo { max-width: 180px; }
.chosen-text { font-family: var(--font-caps); letter-spacing: 0.4em; color: var(--gold); font-size: 1.1rem; }
.site-footer h4 { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--sand); text-decoration: none; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--parchment); }
.closing { margin-block: clamp(48px, 6vw, 80px) 28px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--parchment); max-width: 30ch; margin-inline: auto; line-height: 1.35; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--parchment); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--sand); }
.socials a:hover { border-color: var(--gold); color: var(--gold-soft); }
.socials svg { width: 18px; height: 18px; }
.toggle { background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 0.8rem; padding: 6px 12px; cursor: pointer; border-radius: 99px; }
.toggle[aria-pressed="true"] { color: var(--gold-soft); border-color: var(--gold); }

/* ——— site guide ——— */
.guide-btn {
  position: fixed; z-index: 40; inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; min-height: 48px;
  background: rgba(18, 16, 13, 0.92); color: var(--parchment); border: 1px solid var(--line-strong); border-radius: 99px;
  font-family: var(--font-caps); letter-spacing: 0.16em; font-size: 0.72rem; text-transform: uppercase; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.guide-btn svg { width: 18px; height: 18px; color: var(--gold); }
.guide-btn:hover { border-color: var(--gold); }
.guide {
  position: fixed; z-index: 45; inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto;
  background: var(--basalt); border: 1px solid var(--line-strong); padding: 22px; display: grid; gap: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.guide h2 { font-family: var(--font-caps); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; }
.guide p { font-size: 0.9rem; color: var(--sand); }
.guide .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide .chips button { background: none; border: 1px solid var(--line); color: var(--parchment); font: inherit; font-size: 0.84rem; padding: 8px 12px; border-radius: 99px; cursor: pointer; }
.guide .chips button:hover { border-color: var(--gold); }
.guide .answer { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 0.92rem; }
.guide .close { justify-self: end; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.8rem; letter-spacing: 0.1em; padding: 4px; }

/* golden cursor (desktop, fine pointer only — enabled by script) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 280px; height: 280px; margin: -140px 0 0 -140px; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(199, 165, 101, 0.08), transparent 65%); border-radius: 50%;
  will-change: transform; transition: opacity 0.6s; opacity: 0;
}

.grid-2 { display: grid; gap: 24px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 18px; align-content: start; }
.spaced { display: grid; gap: clamp(40px, 5vw, 72px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cursor-glow { display: none; }
}
.creed > svg.glyph { width: 40px; height: 40px; color: var(--gold); }
.creed .footer-logo, .creed picture img { margin-inline: auto; }
@media (max-width: 600px) {
  .guide-btn { padding: 0; width: 48px; justify-content: center; }
  .guide-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
