/* =============================================================================
   BRAND BOOK v3.0 — THE KIT
   Canonical render source for world.leematulis.com (the Ancient Future world map
   + venture rooms). This file IS canon for visual rendering.

   THE RULE (see vault CLAUDE.md §31):
     - Every world page links THIS file: <link rel="stylesheet" href="brand.css">.
     - No page inlines :root tokens or component CSS. A page that does is a bug;
       the drift guard (deploy/_kit/check.sh) fails it.
     - Do NOT author visual style from prose canon or from memory. Start here.
     - VISUAL TRUTH = this file. The prose brand docs (MASTER, Visual Foundations,
       Color Philosophy) describe INTENT and are NON-BINDING for rendering.
       If a render disagrees with this file, THIS FILE WINS.

   Values below are extracted VERBATIM from the live site (the quantum leap).
   Page-type layout is namespaced by a <body> class so every page stays exact:
     body.world-home     -> the venture map (index.html)
     body.world-venture  -> a venture room (bodysatva, source-method, ...)
     body.world-about    -> the about page (embeds the slot machine)
   Documented exceptions (self-contained by design, NOT governed here):
     slot.html  -> bespoke slot-machine trustmark (own CSS + JS)
     og-*.html  -> render-to-PNG link-preview cards (throwaway build inputs)
   ============================================================================= */

/* ---- TOKENS — the palette / type / spectrum (the heart) -------------------- */
:root{
  --obsidian:#0E0D09; --bg:#141310; --panel:#16140F; --linen:#F5F0E8; --shell:#D9D2C5; --stone:#7A7570; --muted:#9C9893;
  --bronze:#B08030; --line:rgba(245,240,232,.09); --line2:rgba(245,240,232,.05);
  --spectrum:linear-gradient(100deg,#C8342B,#E2631F,#E8A81E,#E8D21A,#8FC53A,#46B14E,#1F9E9A,#2E78C4,#2649A0,#5E3A9E,#6A2EA8,#A02E9E,#C0379B,#C8342B);
}

/* ---- PRIMITIVES — identical on every page --------------------------------- */
*{box-sizing:border-box}
html,body{margin:0}
body{color:var(--linen);font-family:"Cormorant Garamond",Georgia,serif;-webkit-font-smoothing:antialiased;
  background:radial-gradient(120% 70% at 50% -8%, #1B1913 0%, #141310 46%, #0E0D09 100%) fixed;min-height:100vh}

.wrap{max-width:1040px;margin:0 auto}

.nav{display:flex;align-items:center;justify-content:space-between;padding:26px 40px;border-bottom:1px solid var(--line2)}
.brandmark{font-family:"Inter",sans-serif;font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:var(--bronze);font-weight:600;text-decoration:none}
.navlinks{font-family:"Inter",sans-serif;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);display:flex;gap:22px}
.navlinks .deb{color:#6A6560}
.navlinks .here{color:var(--linen)}
.navlinks a{color:inherit;text-decoration:none;transition:color .2s}
.navlinks a:hover{color:var(--linen)}
.menubtn{display:none;font-family:"Inter",sans-serif;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);font-weight:500;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .2s}
.menubtn:hover,.nav.open .menubtn{color:var(--linen)}

/* eyebrow is shared (home + venture); about overrides margin below */
.eyebrow{font-family:"Inter",sans-serif;font-size:10.5px;letter-spacing:.3em;text-transform:uppercase;color:var(--stone);margin:0 0 26px}

/* footer chrome — base bits shared; container + sigil sizing scoped per page-type */
.foot .lm{font-family:"Inter",sans-serif;font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--bronze);font-weight:600}
.foot .tag{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:16px;color:var(--muted);margin-top:10px}
.foot .fine{font-family:"Inter",sans-serif;font-size:9.5px;letter-spacing:.08em;color:var(--stone);margin-top:18px}
.sigil{font-family:"Noto Sans Symbols 2","Apple Symbols","Segoe UI Symbol",serif;line-height:1;display:inline-block;
  background-image:var(--spectrum);background-size:300% auto;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:drift-af 20s linear infinite}

/* seamless loop = shift exactly one tile (100·S/(S−100)% for background-size S);
   gradients are edge-matched (first==last) so the jump is invisible */
@keyframes drift-af{from{background-position:0% center}to{background-position:150% center}}
@keyframes drift-ven{from{background-position:0% center}to{background-position:176.923% center}}

/* =============================================================================
   HOME — body.world-home (the venture map)
   ============================================================================= */
.world-home .hero{text-align:center;padding:96px 30px 64px}
.world-home .af{font-family:"DM Serif Display",serif;font-style:italic;font-weight:400;font-size:clamp(34px,9vw,104px);line-height:.98;margin:0;
    background-image:var(--spectrum);background-size:300% auto;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:drift-af 20s linear infinite;letter-spacing:.004em}
.world-home .subline{font-family:"Inter",sans-serif;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--shell);margin:30px 0 0}
.world-home .subline .sep{color:var(--bronze);margin:0 11px}
.world-home .herodesc{font-family:"Cormorant Garamond",serif;font-size:21px;color:var(--shell);line-height:1.6;max-width:46ch;margin:26px auto 0;font-style:italic;text-wrap:balance}
.world-home .herodesc br{display:block}
@media(max-width:560px){.world-home .herodesc{font-size:19px}}

.world-home .world{padding:18px 40px 30px}
.world-home .sect{display:flex;align-items:center;gap:16px;margin:40px 0 26px}
.world-home .sect .verb{font-family:"DM Serif Display",serif;font-style:italic;font-size:26px;color:var(--linen);white-space:nowrap}
.world-home .sect .ln{height:1px;flex:1;background:var(--line)}
.world-home .sect .terr{font-family:"Inter",sans-serif;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--bronze)}

/* ── CANON: dotted compounds — "standard of performance" ─────────────
   Any "A · B" label breaks ONLY at the "·", never mid-phrase, never
   orphaning a word. Wrap each phrase in <span class="nb">; keep " · "
   as normal whitespace so the separator is the sole break point.
   Applies to .subline + .terr (home) and .eyebrow + .vstatus (venture).
   The hero .terr goes further on phones: stacks clean, drops the dot. */
.nb{white-space:nowrap}
@media(max-width:560px){
  .world-home .hero{padding-left:18px;padding-right:18px}
  .world-home .sect{flex-wrap:wrap}
  .world-home .sect .terr{flex-basis:100%;display:flex;flex-direction:column;gap:2px;line-height:1.45}
  .world-home .sect .terr-dot{display:none}
}

/* each row is its own flex line — one card fills, two cards split */
.world-home .ventures{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:14px}
.world-home .ven{flex:1 1 0;min-width:230px;border:1px solid var(--line);border-radius:13px;padding:22px 22px;background:var(--panel);display:flex;gap:16px;align-items:flex-start}
.world-home .ven .body{flex:1;min-width:0}
.world-home .ven .vn{font-family:"DM Serif Display",serif;font-style:italic;font-weight:400;font-size:26px;line-height:1.05;margin:0;
    background-image:var(--grad);background-size:230% auto;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:drift-ven 14s linear infinite}
.world-home .ven .vd{font-family:"Inter",sans-serif;font-size:11.5px;color:var(--shell);line-height:1.5;margin:9px 0 0}
.world-home .ven .sub{font-family:"Inter",sans-serif;font-size:10px;color:var(--muted);margin:7px 0 0;letter-spacing:.02em}
.world-home .ven .sub b{color:var(--bronze);font-weight:600}
.world-home a.ven{text-decoration:none;color:inherit;cursor:pointer;transition:border-color .2s ease,transform .2s ease}
.world-home a.ven:hover{border-color:var(--bronze);transform:translateY(-2px)}

.world-home .ven.feature{padding:28px 26px}
.world-home .ven.feature .swatch,.world-home .ven.feature .rough{width:62px;height:62px}
.world-home .ven.feature .vn{font-size:32px}
.world-home .ven.feature .vd{font-size:12.5px;margin-top:11px}

/* flat iridescent swatch — the resting-state venture mark */
.world-home .swatch{position:relative;border-radius:28%;flex:none;width:50px;height:50px;
  background:linear-gradient(135deg, var(--a), var(--b));
  border:1px solid rgba(255,255,255,.14);box-shadow:0 1px 2px rgba(0,0,0,.3)}
.world-home .swatch.solo{background:linear-gradient(135deg, var(--a), var(--glow))}
.world-home .swatch.afterglow{background:linear-gradient(135deg, #D81E92, #8A2EC0, #2A1FA8)}

.world-home .ven.placeholder{border-style:dashed;opacity:.72}
.world-home .ven.placeholder .vn{animation:none;background:none;-webkit-text-fill-color:var(--stone);color:var(--stone)}
.world-home .rough{width:50px;height:50px;flex:none;border-radius:28%;background:linear-gradient(135deg,#3A352E,#23201B);border:1px dashed rgba(176,128,48,.4)}

/* AS ABOVE, SO BELOW — three core ventures as nesting containers */
.world-home .core{display:flex;gap:18px;align-items:stretch;
  border:1px solid var(--line);border-radius:16px;background:var(--obsidian);
  padding:14px 18px;margin-bottom:14px}
.world-home .core-parent{flex:1 1 44%;background:transparent;border:1px solid transparent;align-items:center;padding:6px 4px}
.world-home .core-parent:hover{transform:none;border:1px solid transparent}
.world-home .core-parent:hover .vn{filter:brightness(1.08)}
.world-home .terr-eyebrow{font-family:"Inter",sans-serif;font-size:10px;letter-spacing:.3em;
  text-transform:uppercase;color:var(--bronze);display:block;margin:0}
.world-home .terr-promise{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:13.5px;
  color:var(--stone);display:block;margin:3px 0 9px}
.world-home .core-parent .enter{font-family:"Inter",sans-serif;font-size:10px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);margin:9px 0 0;transition:color .2s}
.world-home .core-parent:hover .enter{color:var(--linen)}
.world-home .core-kids{flex:1 1 56%;display:flex;flex-direction:column;gap:8px}
.world-home .core-kids .ven{flex:1 1 0;padding:10px 15px;border-radius:11px;background:var(--panel);align-items:center;gap:13px;min-width:0}
.world-home .core-kids .swatch,.world-home .core-kids .rough{width:40px;height:40px}
.world-home .core-kids .vn{font-size:19px}
.world-home .core-kids .vd{font-size:11px;margin-top:4px}
@media(max-width:700px){
  .world-home .core{flex-direction:column;align-items:stretch}
  .world-home .core-parent{flex:none}
  .world-home .core-kids{flex:none}
}
/* small phones: reclaim the nested padding so feature names fit and wrap
   cleanly instead of clipping (.world + .core + swatch were starving .body) */
@media(max-width:480px){
  .world-home .world{padding-left:16px;padding-right:16px}
  .world-home .core{padding-left:12px;padding-right:12px;gap:12px}
  .world-home .ven.feature{padding:20px 14px}
  .world-home .ven.feature .swatch,.world-home .ven.feature .rough{width:46px;height:46px}
  .world-home .ven.feature .vn{font-size:26px}
}

.world-home .foot{text-align:center;padding:56px 30px 40px;border-top:1px solid var(--line2);margin-top:30px}
.world-home .sigil{font-size:36px;margin-top:28px}

/* =============================================================================
   VENTURE — body.world-venture (a single venture room)
   ============================================================================= */
.world-venture .vhero{text-align:center;padding:84px 30px 14px}
.world-venture .gem{width:58px;height:58px;border-radius:28%;margin:0 auto 26px;background:linear-gradient(135deg,var(--a),var(--b));border:1px solid rgba(255,255,255,.14);box-shadow:0 1px 2px rgba(0,0,0,.3)}
.world-venture .gem.afterglow{background:linear-gradient(135deg,#D81E92,#8A2EC0,#2A1FA8)}
.world-venture .vname{font-family:"DM Serif Display",serif;font-style:italic;font-weight:400;font-size:clamp(44px,9vw,90px);line-height:1.0;margin:0;background-image:var(--grad);background-size:230% auto;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:drift-ven 14s linear infinite}
.world-venture .vteaser{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:22px;color:var(--shell);max-width:46ch;margin:24px auto 0;line-height:1.55;text-wrap:balance}
.world-venture .vsub{font-family:"Inter",sans-serif;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:20px 0 0}
.world-venture .vsub b{color:var(--bronze);font-weight:600}
.world-venture .vbody{max-width:52ch;margin:0 auto;padding:14px 30px 6px}
.world-venture .vbody p{font-family:"Cormorant Garamond",serif;font-size:19px;line-height:1.66;color:var(--shell);margin:18px 0 0;text-wrap:pretty}
.world-venture .vstatus{font-family:"Inter",sans-serif;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--bronze);text-align:center;margin:34px 0 0}
.world-venture .vlinks{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:34px 0 0}
.world-venture .vlinks a{font-family:"Inter",sans-serif;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--shell);text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:11px 19px;transition:border-color .2s,color .2s,transform .2s}
.world-venture .vlinks a:hover{border-color:var(--bronze);color:var(--linen);transform:translateY(-1px)}

.world-venture .foot{text-align:center;padding:60px 30px 40px;border-top:1px solid var(--line2);margin-top:54px}
.world-venture .sigil{font-size:34px;margin-top:26px}

/* =============================================================================
   ABOUT — body.world-about (embeds the slot-machine trustmark via iframe)
   ============================================================================= */
.world-about .eyebrow{margin:0}
.world-about .head{text-align:center;padding:54px 30px 10px}
.world-about .slotwrap{padding:8px 24px 4px}
.world-about .slotframe{width:100%;border:0;display:block;background:var(--obsidian);border-radius:14px;
  height:clamp(440px,64vh,600px)}
.world-about .arc{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:20px;line-height:1.62;color:var(--shell);
  max-width:54ch;margin:6px auto 0;text-align:center;padding:0 34px;text-wrap:balance}

.world-about .foot{text-align:center;padding:56px 30px 40px;border-top:1px solid var(--line2);margin-top:44px}
.world-about .sigil{font-size:36px;margin-top:28px}

/* =============================================================================
   RESPONSIVE — mobile nav menu (shared) + per-type padding
   ============================================================================= */
@media(max-width:820px){
  .nav{padding-left:22px;padding-right:22px;position:relative}
  .menubtn{display:inline-block}
  .navlinks{position:absolute;top:100%;right:22px;z-index:60;flex-direction:column;align-items:flex-end;gap:18px;background:var(--obsidian);border:1px solid var(--line);border-radius:11px;padding:22px 26px;margin-top:12px;opacity:0;pointer-events:none;transform:translateY(-6px);transition:opacity .25s ease,transform .25s ease}
  .nav.open .navlinks{opacity:1;pointer-events:auto;transform:none}
  .world-home .world{padding-left:22px;padding-right:22px}
  .world-about .slotwrap{padding-left:8px;padding-right:8px}
}
@media (prefers-reduced-motion:reduce){.world-home .af,.world-home .ven .vn,.world-venture .vname,.sigil{animation:none}}

/* =============================================================================
   APEX — body.world-apex (leematulis.com, the PERSON front door)
   Shares the world docroot's kit (copied to deploy/root/brand.css at deploy;
   the drift guard enforces the two copies stay byte-identical). Components are
   the apex's own, verbatim; the three colliding shared selectors (eyebrow/foot/
   sigil) are re-scoped here to the apex's exact values.
   ============================================================================= */
.world-apex .hero{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center;padding:84px 40px 60px}
.world-apex .eyebrow{margin:0 0 24px}
.world-apex .name{font-family:"DM Serif Display",serif;font-style:italic;font-weight:400;font-size:clamp(46px,8vw,92px);line-height:.96;margin:0;
    background-image:var(--spectrum);background-size:300% auto;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:drift-af 20s linear infinite;letter-spacing:.004em}
.world-apex .herodesc{font-family:"Cormorant Garamond",serif;font-size:21px;color:var(--shell);line-height:1.6;max-width:42ch;margin:28px 0 0;font-style:italic;text-wrap:balance}
.world-apex .ctas{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap}
.world-apex .btn{font-family:"Inter",sans-serif;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;text-decoration:none;
     padding:14px 22px;border-radius:11px;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.world-apex .btn.primary{color:var(--obsidian);background:var(--bronze)}
.world-apex .btn.primary:hover{transform:translateY(-2px)}
.world-apex .btn.ghost{color:var(--shell);border:1px solid var(--line)}
.world-apex .btn.ghost:hover{border-color:var(--bronze);transform:translateY(-2px)}

.world-apex .portrait{position:relative;aspect-ratio:4/5;border-radius:16px;border:1px solid var(--line);
  background:radial-gradient(120% 90% at 50% 0%, #211E17 0%, #16140F 60%, #100F0B 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;overflow:hidden}
.world-apex .portrait::after{content:"";position:absolute;inset:0;border-radius:16px;border:1px solid rgba(176,128,48,.22);pointer-events:none}
.world-apex .portrait img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}

.world-apex .combo{display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:center;padding:8px 40px 46px;
  font-family:"Inter",sans-serif;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.world-apex .combo .dot{color:var(--bronze)}

.world-apex .paths{display:flex;flex-wrap:wrap;gap:14px;padding:6px 40px 30px}
.world-apex .path{flex:1 1 0;min-width:230px;text-decoration:none;border:1px solid var(--line);border-radius:13px;padding:24px 22px;background:var(--panel);
  transition:border-color .2s ease,transform .2s ease}
.world-apex .path:hover{border-color:var(--bronze);transform:translateY(-2px)}
.world-apex .path .pn{font-family:"DM Serif Display",serif;font-style:italic;font-size:25px;color:var(--linen);margin:0}
.world-apex .path .pd{font-family:"Inter",sans-serif;font-size:11.5px;color:var(--shell);line-height:1.5;margin:9px 0 0}

.world-apex .foot{text-align:center;padding:54px 30px 40px;border-top:1px solid var(--line2);margin-top:24px}
.world-apex .sigil{font-size:34px;margin-top:26px}

/* ---- the TITLE ORACLE — apex hero identity line ("The Creative ⟨slot⟩") ---- */
.world-apex .oracle{display:flex;align-items:baseline;flex-wrap:wrap;gap:.34em;margin:22px 0 0;
  font-family:"DM Serif Display",serif;font-style:italic;font-size:clamp(26px,4.4vw,40px);line-height:1.12;color:var(--linen)}
.world-apex .oracle .lead{color:var(--shell)}
.world-apex .oracle .slot-window{display:inline-block;position:relative;height:1.12em;overflow:hidden;vertical-align:baseline;text-align:left}
.world-apex .oracle .slot-reel{display:flex;flex-direction:column;align-items:flex-start;will-change:transform}
.world-apex .oracle .slot-word{position:relative;height:1.12em;line-height:1.12em;white-space:nowrap;color:var(--shell)}
.world-apex .oracle .slot-word.locked{color:var(--linen)}
.world-apex .oracle .slot-word.locked.iridescent{
  background-image:var(--spectrum);background-size:300% auto;-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;animation:drift-af 20s linear infinite}
.world-apex .oracle .slot-word.locked::after{content:"";position:absolute;left:0;right:0;bottom:.1em;height:1px;background:var(--bronze);
  transform:scaleX(0);transform-origin:left center;animation:draw-underline .55s cubic-bezier(.2,.7,.2,1) .08s forwards}
.world-apex .respin{margin:18px 0 0;background:none;border:0;padding:0;cursor:pointer;
  font-family:"Inter",sans-serif;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--stone);transition:color .2s}
.world-apex .respin:hover{color:var(--bronze)}
@media(hover:none){.world-apex .respin{display:none}}
@keyframes draw-underline{to{transform:scaleX(1)}}

@media(max-width:780px){
  .world-apex .nav,.world-apex .hero,.world-apex .paths,.world-apex .combo{padding-left:22px;padding-right:22px}
  .world-apex .hero{grid-template-columns:1fr;gap:34px;padding-top:60px}
  .world-apex .portrait{max-width:340px;margin:0 auto;width:100%}
}
@media (prefers-reduced-motion:reduce){.world-apex .name,.world-apex .sigil,.world-apex .oracle .slot-word.locked.iridescent{animation:none}}
