/* ============================================================================
   crown.css -- The Midnight Garden crown-jewel layer
   Loads AFTER garden.css and reuses its tokens (--purple, --evidence-bright,
   --bloom, fonts, spacing, --radius, --ease-out). This file adds the corridor
   "world", the sticky-stage scene system, and the custom-fabricated component
   primitives (panels with perimeter-light, route console, proof rooms).

   Architecture: /home/marcu/todash/tmg/website-redesign-2026-06/CC-ARCHITECTURE-2026-06-14.md
   Mechanic: vertical scroll is the source of truth; scroll drives depth.
   Performance rule: only transform + opacity animate. No backdrop-filter on
   moving elements, no per-frame z-index churn, no per-particle shadowBlur.
   ============================================================================ */

:root {
  /* local aliases so the engine + components read cleanly */
  --cy:  var(--evidence-bright);     /* #00d4ff -- evidence light */
  --mag: var(--bloom);               /* #E91E8C -- bloom accent */
  --line:      rgba(159, 143, 255, .26);
  --line-soft: rgba(159, 143, 255, .12);
  --glass:     rgba(13, 11, 21, .94);
  --glass-blur: rgba(18, 16, 27, .72);

  /* engine values, written by crown-engine.js */
  --p: 0;          /* global scroll progress 0..1 */
  --vel: 0;        /* smoothed scroll velocity 0..1 */
  --px: .5; --py: .5;   /* pointer 0..1 */
  --grid-in: 0;    /* corridor grid assembly 0..1 */
}

@property --edge-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- body shell ---------- */
body.crown {
  background: var(--midnight-980, #06050a);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.crown h1, .crown h2, .crown h3 { font-family: var(--font-display); margin: 0; }

/* ============================================================================
   THE WORLD -- fixed, decorative, aria-hidden. Ambient corridor environment.
   ============================================================================ */
.crown-world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.crown-world__plate {
  position: absolute; inset: -2%;
  background:
    radial-gradient(circle at 18% 80%, rgba(233,30,140,.05), transparent 34rem),
    radial-gradient(circle at 84% 14%, rgba(0,212,255,.05), transparent 36rem),
    var(--midnight-980, #06050a);
  opacity: .9;
  transform: translate(calc((var(--px) - .5) * -10px), calc((var(--py) - .5) * -10px));
}
/* blueprint drafting grid -- the dominant background texture (engineering, not galaxy).
   Brightens slightly toward the pointer so it feels alive under the mouse. */
.crown-world__plate::after {
  content: ""; position: absolute; inset: -10%;
  background:
    linear-gradient(rgba(159,143,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,143,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(159,143,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,143,255,.03) 1px, transparent 1px);
  background-size: 104px 104px, 104px 104px, 26px 26px, 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 30%, rgba(0,0,0,.35) 100%);
          mask-image: radial-gradient(ellipse at 50% 42%, #000 30%, rgba(0,0,0,.35) 100%);
}

/* corridor floor + ceiling grid */
.crown-grid {
  position: absolute; left: 50%; width: 320%; height: 150%;
  background-image:
    linear-gradient(rgba(0,212,255,.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(159,143,255,.16) 1.5px, transparent 1.5px);
  background-size: 120px 96px;
  opacity: calc(.12 + var(--grid-in) * .5);
  will-change: background-position, opacity;
}
.crown-grid--floor {
  bottom: -8%; transform: translateX(-50%) rotateX(79deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 78%);
          mask-image: linear-gradient(to top, #000 8%, transparent 78%);
}
.crown-grid--ceil {
  top: -8%; transform: translateX(-50%) rotateX(-79deg); transform-origin: top center;
  opacity: calc((.12 + var(--grid-in) * .5) * .7);
  -webkit-mask-image: linear-gradient(to bottom, #000 8%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 8%, transparent 78%);
}

/* vanishing-point spec lines */
.crown-vp { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  opacity: calc(.18 + var(--grid-in) * .55); }
.crown-vp line, .crown-vp path, .crown-vp circle { vector-effect: non-scaling-stroke; }
.crown-vp .l { stroke: rgba(159,143,255,.3); stroke-width: 1; fill: none; }
.crown-vp .c { stroke: rgba(0,212,255,.5); stroke-width: 1; fill: none; }
.crown-vp text { fill: rgba(159,143,255,.5); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; }

/* particle glow canvas */
.crown-glow { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }

/* ============================================================================
   SCENE SYSTEM -- semantic vertical document; sticky stages create depth.
   ============================================================================ */
.crown-content { position: relative; z-index: 2; }
.scene { position: relative; }
.scene__inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* a scene whose visual pins while its tall body scrolls past */
.scene--pin { min-height: 100vh; }
.scene--tall { min-height: 220vh; }
.stage {
  position: sticky; top: 0; min-height: 100vh;
  display: grid; align-items: center;
  padding: clamp(96px, 12vh, 140px) clamp(20px, 5vw, 64px) clamp(48px, 8vh, 96px);
}

/* generous breathing room between scenes so the background drawing is visible */
.scene + .scene { margin-top: clamp(120px, 24vh, 320px); }

/* reveal-on-enter (driven by IntersectionObserver in crown-engine.js) */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================================
   GLASS COPY BLOCK -- floats over the corridor, lets it show through.
   backdrop-filter is OK here because copy blocks do not move every frame.
   ============================================================================ */
.glass {
  position: relative; max-width: 560px; padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(150deg, var(--glass-blur), rgba(7,5,13,.6));
  border: 1px solid var(--line);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--purple-pale);
}
.display { font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: .92; letter-spacing: -.04em; }
.display em { font-style: normal; color: var(--cy); }
.lede { margin-top: 18px; color: var(--muted); font-size: 1.06rem; max-width: 48ch; }
.eyebrow-line { /* a thin cyan rule that grows with the scene */
  height: 1px; width: min(360px, 70%); margin-bottom: 18px;
  background: linear-gradient(90deg, var(--cy), transparent);
  box-shadow: 0 0 18px rgba(0,212,255,.4);
}

/* ============================================================================
   PANEL -- the custom-fabricated card. Stepped silhouette + perimeter-light.
   Use for proof, services, tools, governance. Reusable everywhere.
   ============================================================================ */
.panel { position: relative; }
.panel__face {
  position: relative; padding: clamp(16px, 2vw, 22px);
  background: var(--glass);
  border: 1px solid var(--line);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  height: 100%;
}
/* perimeter light trace -- runs on hover + keyboard focus (same language) */
.panel__edge {
  position: absolute; inset: -1px; z-index: -1;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  background: conic-gradient(from var(--edge-a),
    transparent 0deg, transparent 60deg,
    var(--cy) 96deg, #fff 110deg, var(--mag) 130deg,
    transparent 170deg, transparent 360deg);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.panel.is-active > .panel__edge,
.panel:hover > .panel__edge,
.panel:focus-within > .panel__edge { opacity: .9; animation: edge-run 4.2s linear infinite; }
@keyframes edge-run { to { --edge-a: 360deg; } }

/* corner registration marks */
.reg { position: absolute; width: 9px; height: 9px; border: 1px solid var(--cy); opacity: .45; }
.reg--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.reg--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }

/* receipt chip (reuses garden .chip but a corridor-native variant) */
.receipt {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  padding: 5px 10px; border: 1px solid rgba(0,212,255,.32); border-radius: 999px;
  background: rgba(0,212,255,.08);
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple-pale);
}
.receipt::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 8px var(--cy); }

/* ============================================================================
   BUTTONS -- manufactured, edge-lit. Extends garden .btn.
   ============================================================================ */
.btn-crown {
  position: relative; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(159,143,255,.5);
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 16px 36px rgba(43,32,80,.45), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
}
.btn-crown:hover { transform: translateY(-2px); border-color: rgba(0,212,255,.6);
  box-shadow: 0 22px 44px rgba(43,32,80,.5), 0 0 22px rgba(0,212,255,.3); }
.btn-crown:active { transform: translateY(0); }
.btn-crown--ghost { background: rgba(18,16,27,.5); color: var(--muted); box-shadow: none; }
.btn-crown--ghost:hover { color: var(--ink); }

/* ============================================================================
   ROUTE CONSOLE -- triage. Selecting a route lights the matching room.
   ============================================================================ */
.console { margin-top: 28px; }
.console__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.routes { display: flex; flex-wrap: wrap; gap: 8px; }
.route {
  min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); background: rgba(18,16,27,.6); border: 1px solid var(--line-soft);
  border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.route::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2);
  transition: background .2s, box-shadow .2s; }
.route:hover { color: var(--ink); border-color: rgba(0,212,255,.4); }
.route.is-on { color: var(--ink); border-color: var(--cy); background: rgba(0,212,255,.1); }
.route.is-on::before { background: var(--cy); box-shadow: 0 0 10px var(--cy); }

/* ============================================================================
   PROOF CORRIDOR -- sticky 3D stage, real semantic room articles inside.
   The engine positions .room children in depth from scene progress.
   ============================================================================ */
.corridor-stage { position: sticky; top: 0; height: 100vh; perspective: 1400px;
  perspective-origin: 50% 44%; display: grid; place-items: center; }
.corridor-3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.room {
  position: absolute; top: 50%; left: 50%; width: min(400px, 84vw);
  transform: translate(-50%, -50%) scale(0.6);
  transform-origin: center center; will-change: transform, opacity; opacity: 0;
}
.room__node {
  position: absolute; left: 50%; top: -54px; width: 64px; height: 64px; margin-left: -32px;
  background: url("/img/crown/flower-mark.webp") center / contain no-repeat;
  transform: scale(var(--bloom-amt, .6)); opacity: var(--bloom-amt, .2);
  filter: drop-shadow(0 0 calc(8px + var(--bloom-amt, 0) * 30px) rgba(0,212,255,.7));
}
.room__img { width: 100%; height: 150px; object-fit: cover;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.room__lane { margin: 12px 0 6px; font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cy); }
.room__title { font-size: 1.2rem; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 6px; }
.room__line { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.room__link { display: inline-block; margin-top: 10px; color: var(--purple-pale);
  text-decoration: none; font-size: .82rem; font-weight: 600; }
.room__link:hover { color: var(--cy); }

/* ============================================================================
   AUDIT INSTRUMENT + SERVICE LOCK -- working tools inside the world.
   ============================================================================ */
.instrument { max-width: 720px; margin: 0 auto; }
.instrument__field { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.instrument__field input[type="url"] {
  flex: 1 1 260px; min-height: 48px; padding: 0 16px; border-radius: var(--radius);
  background: rgba(7,5,13,.6); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: .95rem;
}
.instrument__field input:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }

.lock { max-width: 760px; margin: 0 auto; }
.lock__rec { border: 1px solid rgba(0,212,255,.32); }

/* siren: on the free-tool panel, the edge light floods the background on hover/focus */
.panel--siren { position: relative; isolation: isolate; }
.panel--siren::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(0,212,255,.45), rgba(233,30,140,.18) 40%, transparent 65%);
  opacity: 0; transform: scale(.7);
  transition: opacity .5s var(--ease-out), transform .9s var(--ease-out);
}
.panel--siren:hover::after, .panel--siren:focus-within::after { opacity: .55; transform: scale(2.6); }
@media (prefers-reduced-motion: reduce) { .panel--siren::after { display: none; } }

/* calmer particle field (blueprint, not starfield) */
.crown-glow { opacity: .7; }

/* ============================================================================
   FOOTER + NAV enhancements (garden.css owns the base .nav / .footer-map)
   ============================================================================ */
.crown .nav { background: linear-gradient(180deg, rgba(5,3,8,.92), rgba(5,3,8,.0)); backdrop-filter: blur(14px); }
.crown .nav.is-scrolled { background: rgba(7,5,13,.92); }

/* scroll cue */
.scroll-cue { position: fixed; left: 50%; bottom: 22px; z-index: 20; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); opacity: calc(1 - var(--p) * 8); pointer-events: none; }

/* ============================================================================
   RESPONSIVE -- mobile is a calmer vertical deck, not a crushed corridor.
   ============================================================================ */
@media (max-width: 860px) {
  .scene--tall { min-height: auto; }
  .corridor-stage { position: relative; height: auto; perspective: none; padding: 24px 0; }
  .corridor-3d { transform-style: flat; display: grid; gap: 20px; }
  .room { position: relative; top: auto; left: auto; margin: 0; width: 100%;
    transform: none !important; opacity: 1 !important; }
  .room__node { position: relative; top: auto; margin: 0 auto 10px; transform: scale(1); opacity: 1; }
  .glass { max-width: 100%; }
  .display { font-size: clamp(2.1rem, 9vw, 3.4rem); }
}

/* ============================================================================
   REDUCED MOTION -- strong static drafting plate, no animation. Full content.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .crown-world__plate, .crown-grid, .crown-vp { animation: none !important; }
  .panel__edge { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
body.crown.reduced .crown-glow { display: none; }
body.crown.reduced .corridor-stage { position: relative; height: auto; perspective: none; }
body.crown.reduced .corridor-3d { transform-style: flat; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
body.crown.reduced .room { position: relative !important; top: auto; left: auto; margin: 0;
  width: auto; transform: none !important; opacity: 1 !important; }
body.crown.reduced .room__node { position: relative; top: auto; margin: 0 auto 10px; transform: scale(1); opacity: 1; }

/* ============================================================================
   SHARED NAV CHROME -- skip link, link styling, mobile toggle + menu, btn--small.
   These live here (not page-inline) so every crown page shares them.
   ============================================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 12px; top: 12px; }

.crown .nav__home img { width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,212,255,.4)); }
.crown .nav__link { color: var(--muted); text-decoration: none; font-size: .95rem;
  transition: color var(--t-fast); }
.crown .nav__link:hover, .crown .nav__link.is-active { color: var(--purple-pale); }

.btn--small { padding: .55rem 1rem; font-size: .9rem; min-height: 0; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px; }
.nav__toggle-bar { display: block; width: 24px; height: 2px; background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast); }
.nav__mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  flex-direction: column; gap: 4px; padding: var(--s6) var(--s8);
  background: rgba(7,5,13,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav__mobile.is-open { display: flex; }
.nav__mobile a { color: var(--muted); text-decoration: none; padding: 10px 0; font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft); }
.nav__mobile a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .crown .nav nav[aria-label="Primary"] { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- generic scene-layout utilities reused across crown pages ---------- */
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s6); }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.identity-lockup { position: relative; text-align: center; }
.identity-lockup .flower { width: clamp(110px, 16vw, 200px); margin: 0 auto 8px;
  filter: drop-shadow(0 0 38px rgba(0,212,255,.5)); }
.identity-lockup .word { width: 100%; max-width: 420px; margin: 0 auto; opacity: .96; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* decorative lockup in the world that flies through on first scroll */
.crown-world__lockup { position: absolute; left: 50%; top: 42%; width: min(520px, 80vw);
  margin-left: calc(min(520px, 80vw) / -2); text-align: center;
  transform: scale(calc(1 + var(--p) * 6)); opacity: calc(1 - var(--p) * 9); }
.crown-world__lockup .flower { width: 38%; margin: 0 auto 6px; filter: drop-shadow(0 0 40px rgba(0,212,255,.5)); }
.crown-world__lockup .word { width: 100%; opacity: .95; }
@media (prefers-reduced-motion: reduce) { .crown-world__lockup { display: none; } }

/* ---------- readable article column for content pages (resources, research, learn) ---------- */
.article-hero { padding: clamp(110px, 16vh, 180px) clamp(20px, 5vw, 64px) clamp(24px, 5vh, 56px); max-width: 880px; margin: 0 auto; }
.prose { max-width: 740px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px) clamp(60px, 10vh, 120px);
  color: var(--ink); font-size: 1.06rem; line-height: 1.75; }
.prose > * { margin-left: auto; margin-right: auto; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 2.2em 0 .6em; line-height: 1.1; }
.prose h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose a { color: var(--cy); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; color: var(--muted); }
.prose blockquote { border-left: 2px solid var(--bloom); padding-left: var(--s6); color: var(--ink); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: rgba(7,5,13,.6);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: .12em .4em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line-soft); margin: 1.4em auto; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em auto; }

/* ============================================================================
   COMMAND-CENTER FOOTER -- a designed, functional surface, not an afterthought.
   ============================================================================ */
.command-center { position: relative; z-index: 2;
  /* solid so that at the bottom of the page only the command center shows,
     not the blueprint bleeding through behind it */
  background: var(--midnight-980); border-top: 1px solid var(--line);
  padding: clamp(40px,7vh,72px) clamp(20px,5vw,64px) 40px; }
.command-center__inner { max-width: 1180px; margin: 0 auto; }
.command-center__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.command-center__title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--purple-pale); }
.status-row { display: flex; flex-wrap: wrap; gap: 16px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.command-center__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(20px,3vw,40px); }
.cc-col h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple-pale); margin: 0 0 12px; }
.cc-col a { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; padding: 3px 0; }
.cc-col a:hover { color: var(--ink); }
.cc-actions { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.cc-actions .btn-crown { min-height: 42px; }
.cc-social { display: flex; gap: 10px; margin-top: 14px; }
.cc-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 8px; color: var(--muted); text-decoration: none; font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .04em; }
.cc-social a:hover { color: var(--cy); border-color: var(--cy); }
.cc-egg { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; color: var(--muted-2); }
.cc-egg b { color: var(--purple-pale); }
@media (max-width: 860px) { .command-center__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- easter-egg seed (hidden in the world) + reward toast ---------- */
.crown-seed { position: absolute; right: 7%; top: 24%; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--cy) 40%, transparent 72%); border: 0; padding: 0;
  cursor: pointer; pointer-events: auto; opacity: .2; box-shadow: 0 0 10px var(--cy);
  animation: seed-pulse 4.5s ease-in-out infinite; }
.crown-seed:hover, .crown-seed:focus-visible { opacity: .85; outline: none; }
@keyframes seed-pulse { 0%,100% { opacity: .14; } 50% { opacity: .32; } }
.egg-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 300; max-width: 380px; padding: 18px 22px; background: rgba(7,5,13,.96);
  border: 1px solid var(--cy); border-radius: 12px; box-shadow: 0 0 44px rgba(0,212,255,.4);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.egg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.egg-toast h4 { font-family: var(--font-display); margin: 0 0 6px; color: var(--ink); }
.egg-toast p { margin: 0; color: var(--muted); font-size: .92rem; }
.egg-toast button { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .crown-seed { animation: none; } }

/* ============================================================================
   BLUEPRINT BACKGROUND -- injected + driven by crown-engine.js. The word block
   "THE MIDNIGHT GARDEN" drafts itself in on scroll; the real flower logo blooms.
   Engineering blueprint, not galaxy. Subtle enough to sit behind content.
   ============================================================================ */
.crown-bp { position: absolute; inset: 0; }
.crown-bp::before {
  content: ""; position: absolute; inset: -4%;
  background:
    linear-gradient(rgba(159,143,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,143,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(159,143,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,143,255,.025) 1px, transparent 1px);
  background-size: 110px 110px, 110px 110px, 22px 22px, 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 35%, rgba(0,0,0,.3) 100%);
          mask-image: radial-gradient(ellipse at 50% 42%, #000 35%, rgba(0,0,0,.3) 100%);
  transform: translate(calc((var(--px) - .5) * -8px), calc((var(--py) - .5) * -8px));
}
.crown-bp__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crown-bp__svg * { vector-effect: non-scaling-stroke; }
.bp-l { fill: none; stroke: #9f8fff; stroke-width: 1.1; opacity: .62; }
.bp-cy { stroke: var(--cy); opacity: .85; }
.bp-dim { opacity: .36; }
.bp-lbl { fill: #cdbdff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; opacity: 0; }
.bp-word { font-family: var(--font-display); font-weight: 800; font-size: 128px; letter-spacing: -2px; }
.bp-outline { fill: none; stroke: #cdbdff; stroke-width: 1.2; stroke-dasharray: 2400; stroke-dashoffset: 2400; opacity: .66; }
.bp-fill { fill: var(--ink); opacity: 0; }
.bp-cal line { stroke: var(--cy); stroke-width: 1; opacity: .38; }
.bp-cal circle { fill: none; stroke: var(--cy); stroke-width: 1; opacity: .7; }
.bp-cal text { fill: var(--cy); font-family: var(--font-mono); font-size: 10px; }
/* full-screen flower that starts small + centered, then zooms toward the viewer
   and fades until you pass through it (driven by crown-engine.js) */
.crown-bp__zoom {
  position: absolute; left: 50%; top: 44%; width: min(58vh, 58vw); height: auto;
  transform: translate(-50%, -50%) scale(0.35); transform-origin: center;
  opacity: 0; will-change: transform, opacity;
  filter: drop-shadow(0 0 60px rgba(0,212,255,.45));
}
@media (max-width: 860px) { .crown-bp__svg { opacity: .5; } .bp-cal { display: none; } }
@media (prefers-reduced-motion: reduce) { .crown-bp::before { transform: none; } }
