/* 508 Ministry standalone site. Palette = the 508 dashboard menu: parchment light menu (#ede3cc / #e5d7b8 / #dccaa3,
   ivory cards, gold hairlines, navy ink) and the navy glass dark menu (#071226 / #17304f, gold captions).
   Fonts: self-hosted Cormorant (display) + Figtree (text). No external requests. */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #f4ecda; --bg2: #ebdfc3; --paper: #fbf7ee; --card: #fffdf8; --ink: #0f213d; --ink-soft: #4d4434; --cap: #2b1a06;
  --gold: #d4a84b; --gold-s: #f0cd78; --gold-t: #8a5f12; --line: rgba(168, 120, 28, .45); --line-soft: rgba(168, 120, 28, .22);
  --crimson: #8e1b2b; --navy: #1e3a5f; --navy-dd: #0c1a2e;
  --side: linear-gradient(180deg, #ede3cc 0%, #e5d7b8 55%, #dccaa3 100%);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(250, 245, 233, .98));
  --card-sh: 0 10px 24px -10px rgba(42, 26, 8, .32), inset 0 1px 0 #fff;
  --hero: radial-gradient(ellipse 70% 80% at 66% 46%, #fffaf0 0%, #f6efdf 38%, #ecdfc2 78%, #e3d3ae 100%);
  --grain-op: .32; --grain-blend: multiply;
  --head-bg: rgba(250, 245, 233, .82);
  --shadow-lg: 0 30px 60px -30px rgba(42, 26, 8, .45);
  --radius: 18px; --max: 1240px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #071226; --bg2: #0a1830; --paper: #0d1c35; --card: #17304f; --ink: #f3ead6; --ink-soft: #c9d4e3; --cap: #f0cd78;
  --gold-t: #f0cd78; --line: rgba(212, 168, 75, .36); --line-soft: rgba(212, 168, 75, .18);
  --side: linear-gradient(180deg, #071226 0%, #061022 50%, #040b18 100%);
  --card-bg: linear-gradient(180deg, rgba(23, 48, 79, .92), rgba(12, 30, 58, .94));
  --card-sh: inset 0 1px 0 rgba(120, 170, 255, .10), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 14px 28px -14px rgba(0, 0, 0, .95);
  --hero: radial-gradient(ellipse 70% 80% at 66% 46%, #1a3360 0%, #10244a 34%, #0a1834 68%, #060f22 100%);
  --grain-op: .07; --grain-blend: screen;
  --head-bg: rgba(7, 18, 38, .78);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.075rem/1.65 'Figtree', system-ui, sans-serif; overflow-x: hidden; transition: background-color .35s ease, color .35s ease; }
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .16 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Cormorant', Georgia, serif; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; margin: 0; color: var(--ink); }
em.acc { font-style: italic; font-weight: 500; color: var(--gold-t); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy-dd); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--gold-s); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 .74rem/1.2 'Figtree', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 'Figtree', sans-serif; text-decoration: none; cursor: pointer; border: 0; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn-gold { background: linear-gradient(180deg, var(--gold-s), var(--gold)); color: var(--navy-dd); box-shadow: 0 10px 22px -10px rgba(168, 120, 28, .8), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(168, 120, 28, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: rgba(212, 168, 75, .12); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn .arr { font-size: 1.05em; transition: transform .2s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }
.ext::after { content: " \2197"; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--head-bg); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid var(--line-soft); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(42, 26, 8, .25)); }
.brand b { display: block; font: 600 1.55rem/1 'Cormorant', serif; color: var(--ink); }
.brand small { display: block; margin-top: 3px; font: 700 .66rem/1 'Figtree', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-t); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink); }
.nav a:hover { background: rgba(212, 168, 75, .14); }
.tools { display: flex; align-items: center; gap: 8px; }
.ibtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card-bg); color: var(--ink); font: 700 .86rem/1 'Figtree', sans-serif; cursor: pointer; text-decoration: none; }
.ibtn:hover { border-color: var(--gold); }
.ibtn svg { width: 20px; height: 20px; }
.lang a { padding: 6px 4px; text-decoration: none; opacity: .6; }
.lang a[aria-current="true"] { opacity: 1; color: var(--gold-t); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }
@media (max-width: 1080px) { .nav { display: none; } }
@media (max-width: 560px) { .brand small { display: none; } .brand b { font-size: 1.3rem; } .top .btn-dash { display: none; } .brand img { width: 38px; height: 38px; } .top .wrap { gap: 8px; } }

/* ---------- main menu drawer (the dashboard menu) ---------- */
.menu-bd { position: fixed; inset: 0; z-index: 60; background: rgba(12, 26, 46, .45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.menu { position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--side); border-right: 1px solid var(--line); transform: translateX(-104%); visibility: hidden; transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s; display: flex; flex-direction: column; box-shadow: 20px 0 50px -20px rgba(0, 0, 0, .5); }
body.menu-open .menu { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.4, 0, .2, 1); }
body.menu-open .menu-bd { opacity: 1; pointer-events: auto; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: var(--card-bg); border-bottom: 1px solid var(--line-soft); }
.menu-head img { width: 40px; height: 40px; object-fit: contain; }
.menu-head b { font: 600 1.35rem/1 'Cormorant', serif; margin-right: auto; }
.menu-scroll { overflow-y: auto; padding: 16px 12px 28px; scrollbar-color: #b0832b transparent; scrollbar-width: thin; }
.mcard { margin: 0 0 16px; padding: 12px 6px 6px; border-radius: 16px; background: var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh); }
.mcap { display: flex; align-items: center; gap: 10px; margin: 0 10px 8px; font: 800 .74rem/1.2 'Figtree', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cap); }
.mcap::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 168, 75, .6), rgba(212, 168, 75, 0)); }
.mitem { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px; text-decoration: none; font: 600 1.02rem/1.25 'Figtree', sans-serif; color: var(--ink); }
.mitem:hover { background: rgba(212, 168, 75, .14); box-shadow: inset 0 0 0 1px rgba(212, 168, 75, .35); }
.mitem .mi { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #f6dc92, #c9962b); color: #2b1a06; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(42, 26, 8, .25); }
.mitem .mi svg { width: 17px; height: 17px; }
.mitem .lock { margin-left: auto; white-space: nowrap; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-t); opacity: .85; }
.mitem.is-on { background: linear-gradient(180deg, var(--gold-s), var(--gold)); color: var(--navy-dd); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - 72px), 960px); background: var(--hero); overflow: hidden; isolation: isolate; }
.hero::before { /* gold compass rings behind the property */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 1300px; height: 1300px; transform: translate(-50%, -50%); border-radius: 50%; opacity: .45;
  background: repeating-radial-gradient(circle, transparent 0 96px, rgba(212, 168, 75, .16) 97px 98px);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%);
}
:root[data-theme="dark"] .hero::after { /* stars */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 72%, #ffe9b0 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 82%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 10%, #ffe9b0 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 68%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 40%, #ffe9b0 50%, transparent 51%), radial-gradient(1px 1px at 80% 90%, #fff 50%, transparent 51%);
  background-size: 640px 520px;
}
.stage { position: absolute; inset: 0; z-index: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.scene-ready .stage canvas { opacity: 1; }
.poster { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; transition: opacity .6s ease; }
.poster img { width: min(66%, 1100px); height: auto; margin-top: 2%; }
.poster .pd { display: none; }
:root[data-theme="dark"] .poster .pl { display: none; }
:root[data-theme="dark"] .poster .pd { display: block; }
.scene-ready .poster { opacity: 0; }
.hero-copy { position: relative; z-index: 2; min-height: inherit; width: min(100% - 40px, 1500px); margin-inline: auto; display: grid; grid-template-columns: minmax(280px, 360px) 1fr minmax(280px, 340px); padding: 48px 0 44px; pointer-events: none; }
.hero-copy > * > * { pointer-events: auto; }
.col-l { grid-column: 1; align-self: start; }
.col-r { grid-column: 3; align-self: end; }
.hero h1 { font-size: clamp(2.6rem, 3.9vw, 4.2rem); margin: 16px 0 18px; }
.hero h1 .l2 { display: block; font-style: italic; font-weight: 500; color: var(--gold-t); }
.lead { font-size: clamp(1.02rem, 1.15vw, 1.14rem); color: var(--ink-soft); margin: 0; }
.col-l, .col-r { padding: 22px 22px 20px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.col-r .cta .btn { width: 100%; }
.legend { margin-top: 20px; }
.legend p { margin: 0 0 10px; font: 700 .72rem/1.2 'Figtree', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-t); }
.legend .hint { margin: 14px 0 0; font: 500 .9rem/1.45 'Figtree', sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.hint .h-touch { display: none; }
@media (hover: none) { .hint .h-hover { display: none; } .hint .h-touch { display: inline; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card-bg); color: var(--ink); font: 600 .88rem/1 'Figtree', sans-serif; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--gold); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(212, 168, 75, .25); }
.boot3d { position: absolute; z-index: 3; left: 50%; bottom: 7%; transform: translateX(-50%); display: none; white-space: nowrap; }
.boot3d svg { width: 20px; height: 20px; }
.hero.is-poster .boot3d { display: inline-flex; }
.tip { position: fixed; z-index: 50; pointer-events: none; padding: 10px 14px; border-radius: 12px; background: var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh); font: 600 .92rem/1.3 'Figtree', sans-serif; color: var(--ink); opacity: 0; transform: translate(-50%, calc(-100% - 16px)) scale(.96); transition: opacity .15s ease, transform .15s ease; max-width: 280px; }
.tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }
.tip b { display: block; font: 600 1.18rem/1.1 'Cormorant', serif; }
.tip small { display: block; margin-top: 3px; color: var(--gold-t); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.tip em { display: block; margin-top: 6px; font-style: normal; font-size: .8rem; color: var(--ink-soft); }
.reveal { position: fixed; z-index: 49; pointer-events: none; padding: 12px 20px; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #f3e3b8); border: 2px solid #c9962b; box-shadow: 0 14px 30px -12px rgba(42, 26, 8, .55), inset 0 1px 0 #fff; font: italic 500 1.7rem/1.1 'Cormorant', serif; color: #1E3A5F; white-space: nowrap; opacity: 0; transform: translate(-50%, -100%) scale(.9); transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1.2); }
.reveal.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.sound { position: fixed; z-index: 55; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1.5px solid #c9962b; background: linear-gradient(180deg, #f0cd78, #d4a84b); color: #0c1a2e; font: 700 .92rem/1 'Figtree', sans-serif; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(42, 26, 8, .7); }
.sound svg { width: 22px; height: 22px; }
.sound[aria-pressed="true"] { background: var(--card-bg); color: var(--ink); }
.sound[hidden] { display: none; }
@media (max-width: 1180px) and (min-width: 900px) { .hero-copy { grid-template-columns: minmax(260px, 320px) 1fr minmax(260px, 300px); } }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { display: contents; }
  .col-l { order: 0; margin: 28px 16px 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stage { order: 1; position: relative; inset: auto; height: min(92vw, 560px); margin-top: 6px; }
  .col-r { order: 2; margin: 0 16px 36px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .col-r .cta .btn { width: auto; }
  .poster img { width: 93%; max-width: 620px; margin: 0; }
  .boot3d { bottom: 12px; }
  .hero::before { top: 58%; }
}


/* ---------- moving earth map behind the property (the 508 dashboard Outreach Scripts map: /world-map/world-map.svg + pins) ---------- */
.hero-map { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-map::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 58% at 50% 50%, transparent 40%, color-mix(in srgb, var(--bg) 70%, transparent) 100%); }
.hero-map-stage { position: absolute; top: 50%; left: 50%; width: max(118%, 1100px); max-width: 2100px; transform: translate3d(-50%, -50%, 0) scale(1.03); opacity: 0; transition: opacity 1.4s ease; will-change: transform; animation: hmDrift 70s ease-in-out infinite; }
.hero-map.on .hero-map-stage { opacity: 1; }
.hero-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-map .wm-c { fill: rgba(176, 131, 43, .12); stroke: rgba(168, 120, 28, .34); stroke-width: .8; vector-effect: non-scaling-stroke; }
.hero-map .wm-c.hm-served { fill: rgba(190, 140, 50, .2); stroke: rgba(168, 120, 28, .5); }
.hero-map .hm-halo { fill: rgba(212, 168, 75, .22); stroke: rgba(176, 131, 43, .65); stroke-width: .9; transform-box: fill-box; transform-origin: center; animation: hmPulse 4.6s ease-out infinite; }
.hero-map .hm-core { fill: #c9962b; stroke: #fffaf0; stroke-width: .7; }
:root[data-theme="dark"] .hero-map .wm-c { fill: rgba(212, 168, 75, .2); stroke: rgba(240, 205, 120, .46); }
:root[data-theme="dark"] .hero-map .wm-c.hm-served { fill: rgba(226, 180, 82, .32); stroke: rgba(250, 222, 146, .72); }
:root[data-theme="dark"] .hero-map .hm-halo { fill: rgba(240, 205, 120, .24); stroke: rgba(250, 222, 146, .8); }
:root[data-theme="dark"] .hero-map .hm-core { fill: #ffe7a6; stroke: #0a172d; }
.hero-map.paused .hero-map-stage, .hero-map.paused .hm-halo { animation-play-state: paused; }
@keyframes hmDrift { 0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1.03); } 25% { transform: translate3d(calc(-50% + 16px), calc(-50% - 9px), 0) scale(1.06); } 50% { transform: translate3d(calc(-50% - 12px), calc(-50% + 8px), 0) scale(1.075); } 75% { transform: translate3d(calc(-50% - 16px), calc(-50% - 7px), 0) scale(1.05); } }
@keyframes hmPulse { 0% { transform: scale(.75); opacity: .85; } 65%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-map-stage, .hero-map .hm-halo { animation: none; } }
@media (max-width: 899px) { .hero-map-stage { width: 230%; animation: none; top: 55%; } .hero-map .hm-halo { animation: none; opacity: .5; } }
.hero::before { opacity: .22; }

/* ---------- sections ---------- */
section.band { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.band.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.shead { max-width: 760px; margin-bottom: 44px; }
.shead h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin: 14px 0 16px; }
.shead p { margin: 0; color: var(--ink-soft); font-size: 1.14rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.card { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh); }
.card h3 { font-size: 1.85rem; margin: 18px 0 10px; }
.card p { margin: 0 0 18px; color: var(--ink-soft); }
.card .more { font-weight: 700; color: var(--gold-t); text-decoration: none; }
.card .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.seal { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #f6dc92, #c9962b); color: #2b1a06; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 16px -8px rgba(42, 26, 8, .6); }
.seal svg { width: 30px; height: 30px; }
.num { position: absolute; top: 22px; right: 26px; font: italic 500 2.6rem/1 'Cormorant', serif; color: var(--gold); opacity: .55; }

/* library */
.shelf-wrap { border-radius: 24px; padding: clamp(10px, 2vw, 22px); background: var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh), var(--shadow-lg); min-height: 420px; }
.shelf-wrap .loading { display: grid; place-items: center; min-height: 380px; color: var(--ink-soft); font-style: italic; }

/* trust */
.trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
.trust-card { padding: clamp(28px, 4vw, 48px); border-radius: 24px; color: #f3ead6; background: radial-gradient(ellipse at 80% 0%, rgba(240, 205, 120, .22), transparent 55%), linear-gradient(160deg, #17304f, #0c1a2e); border: 1.5px solid rgba(212, 168, 75, .5); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.trust-card h2 { color: #fbf7ee; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 14px 0 16px; }
.trust-card p { color: #d5dcea; margin: 0 0 26px; max-width: 34em; }
.trust-card .eyebrow { color: var(--gold-s); }
.trust-card .ring { position: absolute; right: -170px; top: -170px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(240, 205, 120, .22); box-shadow: 0 0 0 26px rgba(240, 205, 120, .04), 0 0 0 52px rgba(240, 205, 120, .025); pointer-events: none; }
.note { font-size: .88rem; color: #c9d4e3; margin-top: 14px; }
.facts { padding: 30px 28px; border-radius: 24px; background: var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh); }
.facts h3 { font-size: 1.7rem; margin: 0 0 16px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; }
.facts dt { font: 700 .74rem/1.6 'Figtree', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-t); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 480px) { .facts dl { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

/* dashboard teaser */
.dteaser { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .dteaser { grid-template-columns: 1fr; } }
.mock { display: grid; grid-template-columns: 210px 1fr; min-height: 340px; border-radius: 22px; overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow-lg); background: var(--paper); }
.mock aside { background: var(--side); padding: 14px 10px; border-right: 1px solid var(--line-soft); }
.mock .mcard { padding: 8px 4px 4px; margin-bottom: 10px; }
.mock .mitem { min-height: 34px; font-size: .84rem; padding: 4px 8px; gap: 8px; }
.mock .mitem .mi { flex-basis: 22px; height: 22px; border-radius: 7px; }
.mock .mitem .mi svg { width: 13px; height: 13px; }
.mock .mcap { font-size: .6rem; margin: 0 8px 4px; }
.mock .pane { padding: 22px; display: grid; gap: 14px; align-content: start; }
.mock .bar { height: 12px; border-radius: 6px; background: var(--line-soft); }
.mock .tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mock .tile { height: 86px; border-radius: 14px; background: var(--card-bg); border: 1.5px solid var(--line-soft); }
@media (max-width: 560px) { .mock { grid-template-columns: 150px 1fr; } .mock .tiles { grid-template-columns: 1fr; } }

/* footer */
footer.foot { padding: 56px 0 40px; border-top: 1px solid var(--line-soft); background: var(--bg2); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h4 { margin: 0 0 12px; font: 700 .74rem/1.2 'Figtree', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-t); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .small { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot .brand { margin-bottom: 14px; }
.foot p { color: var(--ink-soft); margin: 0; max-width: 30em; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- dashboard page ---------- */
.dash { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100svh - 72px); }
.dash .side { position: sticky; top: 72px; height: calc(100svh - 72px); background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px 12px 28px; scrollbar-color: #b0832b transparent; scrollbar-width: thin; }
.dash .pane { padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; align-content: start; max-width: 1100px; }
.dash .welcome { padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: radial-gradient(ellipse at 90% 0%, rgba(240, 205, 120, .3), transparent 55%), var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.dash .welcome h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 12px 0 10px; }
.dash .welcome p { margin: 0; color: var(--ink-soft); max-width: 40em; }
.dash .welcome img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(42, 26, 8, .3)); }
.dash .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash .tile { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card-bg); border: 1.5px solid var(--line); box-shadow: var(--card-sh); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.dash .tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.dash .tile b { font: 600 1.45rem/1.1 'Cormorant', serif; }
.dash .tile > span:not(.seal) { color: var(--ink-soft); font-size: .95rem; }
.dash .tile small { color: var(--gold-t); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.dash .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash .h2s { font-size: 1.9rem; margin: 8px 0 0; }
.menu-btn-dash { display: none; }
@media (max-width: 1100px) { .dash .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash .side { display: none; }
  .dash .row2 { grid-template-columns: 1fr; }
  .dash .welcome { grid-template-columns: 1fr; }
  .dash .welcome img { display: none; }
}
@media (max-width: 560px) { .dash .tiles { grid-template-columns: 1fr; } }
