/* ==========================================================================
   ABOUT — Halo (2026-11 redesign, atlas harmonisation 2026-11-07)
   Homepage atlas system: walnut ground, Cormorant display, JetBrains Mono
   eyebrows, brass/gold accents and an ember primary. Tokens use the same
   oklch values as home-reference.css / faq-page.css; the original Halo
   aliases (--onyx/--gold/…) are kept so every rule below still works.
   Materials (frost, rings, sheen) live in luxury-glass.css, which the
   shell loads after this sheet.
   ========================================================================== */

/* Longhand only: the background shorthand would also !important-kill the
   ambient radial background-image luxury-glass layers onto this body. */
body.public-reference-shell:has(.about-reference-main) { background-color: oklch(0.17 0.015 50) !important; }
body.public-reference-shell main.about-reference-main {
  width: 100%; max-width: none; margin: 0; padding: 0;
}

.halo {
  --onyx: oklch(0.17 0.015 50);        /* walnut ground                */
  --onyx-2: oklch(0.13 0.012 50);      /* deeper band ground           */
  --panel: oklch(0.21 0.018 50);       /* card surface                 */
  --line: oklch(0.8 0.11 82 / 0.22);   /* brass hairline               */
  --gold: oklch(0.8 0.11 82);          /* brass                        */
  --gold-hi: oklch(0.92 0.09 90);      /* champagne highlight          */
  --ember: oklch(0.68 0.17 48);        /* atlas primary                */
  --ember-hi: oklch(0.76 0.16 48);
  --text: oklch(0.95 0.02 85);         /* cream                        */
  --muted: oklch(0.72 0.03 75);        /* sand                         */
  --ha-serif: 'Cormorant Garamond', Georgia, 'Nirmala UI', serif;
  --ha-mono: 'JetBrains Mono', 'Courier New', monospace;
  --ha-ui: Jost, 'Nirmala UI', Arial, sans-serif;
  /* homepage signature: 120deg gold gradient carried by italic ems */
  --ha-gradient-gold: linear-gradient(120deg, oklch(0.7 0.1 70), oklch(0.92 0.09 90), oklch(0.7 0.11 68));
  position: relative;
  margin: 0;
  background: var(--onyx);
  color: var(--text);
  overflow: clip;
  font-family: Manrope, Arial, sans-serif;
}
.halo * { box-sizing: border-box; }
.halo h1, .halo h2, .halo h3, .halo p, .halo ul, .halo ol { margin: 0; padding: 0; }
.halo ul { list-style: none; }
.halo a { color: inherit; text-decoration: none; }
.halo img { display: block; max-width: 100%; }
.halo em { font-style: italic; }
.halo ::selection { background: oklch(0.8 0.11 82 / 0.3); }
.halo a:focus-visible, .halo button:focus-visible {
  outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px;
}
html:has(.halo) { scroll-behavior: smooth; }

/* Type */
.ha-eyebrow {
  font-family: var(--ha-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.ha-eyebrow-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; font-size: 10px; color: var(--gold-hi);
}
.ha-center { justify-content: center; }
/* body prefix out-specifies the global body:not(.admin-page) h1-h3 Instrument
   Serif rule (0,2,1 vs 0,1,2) so Halo stays in Cormorant. */
body.public-reference-shell .halo h1,
body.public-reference-shell .halo h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px); line-height: 1.04; letter-spacing: -.01em;
}
body.public-reference-shell .halo h1 em,
body.public-reference-shell .halo h2 em {
  font-family: var(--ha-serif);
  font-style: italic;
  background: var(--ha-gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------------------------------------- Hero -------- */
.ha-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.ha-hero-media { position: absolute; inset: -8% 0; z-index: 0; }
.ha-hero-media img, .ha-hero-media picture { width: 100%; height: 100%; }
.ha-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ha-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.17 0.015 50 / .72) 0%, oklch(0.17 0.015 50 / .28) 38%, oklch(0.17 0.015 50 / .92) 88%, var(--onyx) 100%),
    linear-gradient(90deg, oklch(0.17 0.015 50 / .78), oklch(0.17 0.015 50 / .12) 55%);
}
.ha-hero-inner {
  position: relative; z-index: 2;
  width: min(1180px, 100%); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(80px, 12vh, 140px);
}
/* SV-HOUSEKEEPING (2026-11-13): .ha-h1 branch removed — class exists only in
   unserved design mockups; about-reference.js emits plain h1 inside
   .ha-hero-inner, which keeps this rule. */
.ha-hero-inner h1 { margin-bottom: 28px; text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.ha-lede {
  max-width: 560px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.85;
  color: oklch(0.85 0.022 82); margin-bottom: 38px;
}
.ha-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.ha-btn-primary, .ha-btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--ha-ui); font-size: 12px; font-weight: 400; letter-spacing: .25em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s, border-color .3s;
}
/* .halo prefix out-specifies the sheet's own `.halo a { color: inherit }`
   (0,2,0 vs 0,1,1) so the ember pill keeps its walnut-ink label. */
.halo .ha-btn-primary {
  background: var(--ember); color: var(--onyx);
  box-shadow: 0 16px 36px -18px oklch(0.5 0.12 50 / .6);
}
.halo .ha-btn-primary:hover { background: var(--ember-hi); color: var(--onyx); transform: translateY(-2px); box-shadow: 0 20px 44px -18px oklch(0.5 0.12 50 / .7); }
.halo .ha-btn-ghost { background: oklch(0.95 0.02 85 / .04); border: 1px solid var(--line); color: var(--text); }
.ha-btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.ha-scrollcue {
  position: absolute; z-index: 2; right: clamp(20px, 4vw, 56px); bottom: 42px;
  writing-mode: vertical-rl; font-family: var(--ha-mono); font-size: 10px;
  letter-spacing: .34em; color: var(--muted); display: flex; align-items: center; gap: 14px;
}
.ha-scrollcue span { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: ha-cue 2.2s ease-in-out infinite; }
@keyframes ha-cue { 0%,100% { transform: scaleY(.3); transform-origin: top; opacity:.5 } 50% { transform: scaleY(1); opacity:1 } }

/* -------------------------------------------------------- Worlds -------- */
.ha-worlds { padding: clamp(90px, 12vw, 170px) clamp(20px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.ha-worlds-head h2 { margin: 0 0 clamp(48px, 6vw, 84px); }
.ha-world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.ha-world {
  position: relative; padding: clamp(34px, 4vw, 54px);
  border: 1px solid oklch(0.8 0.11 82 / .16); border-radius: 4px;
  background:
    radial-gradient(120% 90% at 0% 0%, oklch(0.8 0.11 82 / .09), transparent 55%),
    var(--panel);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s ease, box-shadow .4s ease, transform .15s ease-out;
}
.ha-world:hover { border-color: oklch(0.8 0.11 82 / .5); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px oklch(0.8 0.11 82 / .18); }
.ha-world-no {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 54px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px oklch(0.8 0.11 82 / .65); display: flex; align-items: center; gap: 18px; margin-bottom: 26px;
}
.ha-world-no span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
body.public-reference-shell .halo .ha-world h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 400; margin-bottom: 14px; color: var(--gold-hi); }
.ha-world > p { color: var(--muted); line-height: 1.85; font-size: 15px; }
.ha-world ul { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.ha-world li {
  font-family: var(--ha-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: oklch(0.82 0.028 78); padding-left: 22px; position: relative;
}
.ha-world li::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* -------------------------------------------------------- Values -------- */
.ha-values {
  padding: clamp(90px, 11vw, 150px) clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, var(--onyx), var(--onyx-2) 30%, var(--onyx));
  border-top: 1px solid oklch(0.8 0.11 82 / .1); border-bottom: 1px solid oklch(0.8 0.11 82 / .1);
}
.ha-values-row { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.ha-value { text-align: center; }
.ha-value-glyph {
  display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: 26px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 44px; color: var(--gold);
  border: 1px solid var(--line); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, oklch(0.8 0.11 82 / .16), transparent 70%);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s;
}
.ha-value:hover .ha-value-glyph { transform: translateY(-6px) rotate(-4deg); box-shadow: 0 16px 40px -14px oklch(0.8 0.11 82 / .5); }
.ha-value-heart svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.3; }
body.public-reference-shell .halo .ha-value h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 29px; font-weight: 400; margin-bottom: 12px; color: var(--gold-hi); }
.ha-value p { color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 300px; margin: 0 auto; }

/* ------------------------------------------- Owner-edited custom blocks -- */
.about-reference-custom {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 56px);
  display: grid; gap: clamp(36px, 5vw, 64px);
}
.about-reference-custom > section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px;
  align-items: start; padding-top: 36px; border-top: 1px solid oklch(0.8 0.11 82 / .18);
}
.about-reference-custom > section > img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.about-reference-custom h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3vw, 40px); font-weight: 400; color: var(--gold-hi); margin-bottom: 12px; }
.about-reference-custom p, .about-reference-custom .pb-text { color: var(--muted); line-height: 1.85; }

/* ---------------------------------------------------------- What -------- */
.ha-what { padding: clamp(90px, 12vw, 170px) clamp(20px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.ha-what-head h2 { margin-bottom: 22px; }
.ha-what-note { color: var(--muted); max-width: 520px; line-height: 1.85; margin-bottom: clamp(44px, 6vw, 72px); font-size: 15px; }
.ha-index { list-style: none; border-top: 1px solid oklch(0.8 0.11 82 / .18); }
.ha-index li { border-bottom: 1px solid oklch(0.8 0.11 82 / .18); }
.ha-index a {
  display: grid; grid-template-columns: 70px 1.1fr 2fr 40px; align-items: baseline; gap: 24px;
  padding: clamp(24px, 3vw, 38px) 8px; color: var(--text);
  transition: padding-left .45s cubic-bezier(.22,.61,.36,1), background .45s;
}
.ha-index a:hover { padding-left: 26px; background: linear-gradient(90deg, oklch(0.8 0.11 82 / .08), transparent 70%); }
.ha-index-no { font-family: var(--ha-mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.ha-index-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(26px, 3vw, 40px); transition: color .3s; }
.ha-index a:hover .ha-index-name { color: var(--gold-hi); }
.ha-index-desc { color: var(--muted); font-size: 14px; line-height: 1.7; }
.ha-index-arrow { font-size: 20px; color: var(--gold); opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s; justify-self: end; }
.ha-index a:hover .ha-index-arrow { opacity: 1; transform: none; }

/* ----------------------------------------------------- Manifesto -------- */
.ha-manifesto {
  padding: clamp(100px, 14vw, 200px) clamp(20px, 4vw, 56px); text-align: center;
  background:
    radial-gradient(80% 120% at 50% 120%, oklch(0.8 0.11 82 / .12), transparent 60%),
    var(--onyx-2);
  border-top: 1px solid oklch(0.8 0.11 82 / .1);
}
.ha-manifesto-line {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(40px, 7vw, 104px); line-height: 1.12; font-weight: 400;
}
.ha-manifesto-accent { margin-top: 6px; }
.ha-manifesto-accent em {
  font-family: var(--ha-serif);
  font-style: italic;
  background: var(--ha-gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------- Closing -------- */
/* The luxury-glass family treats .about-reference-closing as a frosted panel;
   Halo's closing is a plain onyx section. luxury-glass loads after this sheet,
   so equal specificity would lose — :has(main.halo) adds the needed class. */
body.public-reference-shell:has(main.halo) .about-reference-closing {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ha-closing {
  padding: clamp(90px, 12vw, 160px) clamp(20px, 4vw, 56px) clamp(110px, 14vw, 180px);
  text-align: center; max-width: 820px; margin: 0 auto;
}
.ha-closing-mark img { margin: 0 auto 34px; opacity: .92; filter: drop-shadow(0 18px 50px oklch(0.8 0.11 82 / .25)); }
.ha-closing h2 { margin-bottom: 22px; }
.ha-closing > p:not(.ha-eyebrow) { color: var(--muted); line-height: 1.85; margin-bottom: 40px; font-size: 15.5px; }
.ha-closing .ha-eyebrow { justify-content: center; }

/* --------------------------------------------------------- Reveals ------ */
/* Hidden-start exists only under .ha-reveal, which about.js adds when motion
   is allowed, so no-JS / reduced-motion / motion-disabled paint immediately. */
.halo.ha-reveal [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--ha-d, 0s);
}
.halo.ha-reveal [data-reveal].ha-in { opacity: 1; transform: none; }
.halo.ha-reveal [data-reveal].ha-done { transition: none; transition-delay: 0s; }
.halo.ha-reveal .ha-world.ha-in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.halo.ha-reveal .ha-world.ha-done { transition: border-color .4s ease, box-shadow .4s ease, transform .15s ease-out; }

/* -------------------------------------------------------- Responsive ---- */
@media (max-width: 860px) {
  .ha-world-grid { grid-template-columns: 1fr; }
  .ha-values-row { grid-template-columns: 1fr; gap: 52px; }
  .ha-index a { grid-template-columns: 44px 1fr 30px; gap: 8px 16px; }
  .ha-index-desc { grid-column: 2 / 3; }
  .ha-index-arrow { display: none; }
  .ha-scrollcue { display: none; }
  .about-reference-custom > section { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .ha-hero-actions .ha-btn-primary, .ha-hero-actions .ha-btn-ghost { flex: 1; justify-content: center; }
  .ha-index a { grid-template-columns: 36px 1fr; }
  .ha-index-no { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.halo) { scroll-behavior: auto; }
  .halo *, .halo *::before, .halo *::after { animation: none !important; transition: none !important; }
  .halo [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ha-world { --rx: 0deg !important; --ry: 0deg !important; }
}
