/* fancyland.net · Option D, Foundry Descent.
   Every value below is D's own (design/study-1/D-foundry-descent.dc.html), moved out of inline
   styles into named rules. D uses the default content-box sizing, so this sheet does too. */

/* ---------- Fonts: self-hosted variable woff2, latin subset ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Code";
  src: url("/fonts/fira-code-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks: local system faces scaled to the web fonts' average width, ascent and
   descent (measured with fontTools from the woff2 files above and the Windows system fonts), so the
   swap barely moves a line. Where the local face is missing (Android), the stack continues. */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT");
  font-weight: 300 600;
  font-style: normal;
  size-adjust: 97.62%;
  ascent-override: 94.65%;
  descent-override: 29.40%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  font-weight: 700 900;
  font-style: normal;
  size-adjust: 92.45%;
  ascent-override: 99.95%;
  descent-override: 31.04%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT");
  font-weight: 300 700;
  font-style: italic;
  size-adjust: 88.29%;
  ascent-override: 104.66%;
  descent-override: 32.51%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 100 500;
  font-style: normal;
  size-adjust: 107.35%;
  ascent-override: 90.25%;
  descent-override: 22.47%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 900;
  font-style: normal;
  size-adjust: 101.11%;
  ascent-override: 95.81%;
  descent-override: 23.86%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fira Code Fallback";
  src: local("Consolas");
  font-weight: 300 700;
  font-style: normal;
  size-adjust: 109.13%;
  ascent-override: 90.72%;
  descent-override: 29.51%;
  line-gap-override: 0%;
}

:root {
  --serif: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, "Times New Roman", serif;
  --sans: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fira Code", "Fira Code Fallback", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
  /* The night, the brass and the cream: world's ramp. In CSS use the token; in SVG attributes, the hex. */
  --fl-night: #02040a; --fl-text: #f2f3f7; --fl-gold: #d4af37; --fl-signal: #f0c35c; --fl-ice: #a3b9dc;
  --fl-brass-dark: #6e5f45; --fl-brass-mid: #a8946c; --fl-brass: #c7b18a; --fl-bone: #eeeae2;
  --fl-star: #f2e4c4; --fl-glint: #fff6d6; --fl-whitegold: #ffe6a8; --fl-whitegold-hi: #fff8e6; --fl-label: #d9c9a1;
  --fl-rivet: radial-gradient(circle at 35% 30%, #f6e3a0 0, #d4af37 35%, #9a7722 70%, #6e5016 100%);
}

/* ---------- Page basics (D's helmet) ---------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #02040a; color: #f2f3f7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--fl-star); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
/* Hover only where there is a hovering pointer: on touch, a tapped link or button would keep its hover look. */
@media (hover: hover) { a:hover { color: var(--fl-glint) !important; } }
a:focus-visible, :focus-visible { outline: 2px solid #f0c35c; outline-offset: 3px; }
::selection { background: #d4af37; color: #02040a; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { max-width: 100%; height: auto; }

.page { position: relative; overflow: hidden; background: #02040a; color: #f2f3f7; font-family: var(--sans); font-size: 1rem; line-height: 1.6; }

.skip-link {
  position: absolute; z-index: 10; top: -10rem; left: 1rem;
  padding: 0.75rem 1.1rem; font-weight: 600; color: #f0c35c; text-decoration: none;
  background: #02040a; border: 1px solid #c7b18a; box-shadow: inset 0 0 0 3px #02040a, inset 0 0 0 4px rgba(199,177,138,0.45);
}
.skip-link:focus { top: 1rem; }

.svg-defs { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }
.bg-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* Line breaking: global typesetting rules. They may name section classes, and set only white-space or text-wrap
   (and a statement phrase's display, which only decides where its lines break). */
.nw { white-space: nowrap; }
@media (min-width: 48rem) { .phrase { white-space: nowrap; } }
/* Phones: each phrase of a statement takes its own line, so no line ends mid-phrase */
@media (max-width: 47.99rem) { .statement .phrase { display: block; } }
.hero__lede, .steps__text, .division__reason, .land-lede, .region__line, .region__modules,
.verdict__setup, .studio__text, .support__note, .legal-lede { text-wrap: pretty; }
.eyebrow, .badge, .note { text-wrap: balance; }

/* Motion: every animation and transition stops under reduced motion. New animations go inside
   (prefers-reduced-motion: no-preference), animate only transform or opacity, and rest on a composed frame. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Off screen, ambient animations rest where they are (js/site.js marks the block data-idle) */
[data-idle], [data-idle] *, [data-idle]::before, [data-idle]::after, [data-idle] *::before, [data-idle] *::after {
  animation-play-state: paused !important;
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0; font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: #c7b18a;
  font-variant-numeric: lining-nums; /* Cormorant's default figures are old-style: "404" would read "4o4" */
}
.eyebrow--ruled { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.eyebrow__rule { display: inline-block; width: 2.5rem; height: 1px; background: #c7b18a; }
@media (max-width: 30rem) {
  .eyebrow { font-size: 0.875rem; letter-spacing: 0.16em; }
  .eyebrow--ruled { flex-wrap: nowrap; align-items: flex-start; }
  .eyebrow__rule { flex: none; margin-top: 0.75em; }
}

.note { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; }
p.note { margin: 0; }
.note--scale { color: #d9c9a1; }

.flourish { display: block; width: 10rem; height: auto; }

.realm-title {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1; color: #f2f3f7;
}
.realm-subtitle {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2;
}

.statement { margin: 0; font-family: var(--serif); font-weight: 500; color: #f2f3f7; text-wrap: balance; }
.statement em { font-style: italic; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.85rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.badge__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }

/* Kickers: "A · B" in an eyebrow, badge or note. Each part keeps its words together, and the no-break space
   keeps the dot with A, so a line can break only after it; on phones the parts stack and the separator goes,
   so no line starts or ends with "·". The markup (assistive tech hears a space either side):
   <span class="kick">A</span><span class="kick__sep">&nbsp;<span aria-hidden="true">·</span> </span><span class="kick">B</span> */
.kick { white-space: nowrap; }
@media (max-width: 30rem) {
  .kick__sep { display: none; }
  .eyebrow .kick, .badge .kick, .note .kick { display: block; }
  /* The dot sits on the first line's centre: exactly where align-items: center put it on one line */
  .badge { align-items: flex-start; }
  .badge__dot { margin-top: 0.45em; margin-top: calc(0.5lh - 3px); }
}

/* Visible placeholders for facts not yet known */
.placeholder-chip { color: #f0c35c; background: rgba(240,195,92,0.08); border: 1px dashed rgba(240,195,92,0.55); padding: 0.1rem 0.4rem; white-space: nowrap; }
.placeholder-chip--date { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.18em; }

/* Buttons: brass double-rule frames. Hover looks apply only where a pointer can hover (a tap would leave them on);
   the same looks on :focus-visible apply everywhere. */
.btn { display: inline-flex; align-items: center; text-decoration: none; transition: background-color 0.25s, box-shadow 0.25s; }
.btn--descend {
  gap: 0.85rem; min-height: 54px; padding: 0 1.6rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #f0c35c; border: 1px solid #c7b18a; background: rgba(212,175,55,0.07);
  box-shadow: inset 0 0 0 3px #03060f, inset 0 0 0 4px rgba(199,177,138,0.45);
}
.btn--play {
  gap: 0.75rem; min-height: 54px; padding: 0 1.4rem; font-size: 1rem; font-weight: 600; letter-spacing: 0.02em;
  color: #ddd3ff; border: 1px solid #a78bfa; background: rgba(167,139,250,0.1);
  box-shadow: inset 0 0 0 3px #070a1c, inset 0 0 0 4px rgba(111,224,210,0.55);
}
.btn--foundry {
  position: relative;
  gap: 0.8rem; min-height: 56px; padding: 0 1.7rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #f0c35c; border: 1px solid #d4af37; background: rgba(212,175,55,0.09);
  box-shadow: inset 0 0 0 3px #070b14, inset 0 0 0 4px rgba(61,123,255,0.6);
}
.btn--foundry::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  transform: rotate(45deg); background: linear-gradient(135deg, #fff6d6, #ffd36a 40%, #b8821e); box-shadow: 0 0 8px rgba(255,211,106,0.5);
}
.link-out {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-size: 1rem; font-weight: 500;
  color: #8fe9de; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: rgba(143,233,222,0.45);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; }
.btn:focus-visible { outline-offset: 5px; }
.btn--descend { --btn-lit: inset 0 0 0 3px #03060f, inset 0 0 0 4px rgba(240,195,92,0.85), 0 0 24px -6px rgba(240,195,92,0.35); }
.btn--foundry { --btn-lit: inset 0 0 0 3px #070b14, inset 0 0 0 4px rgba(240,195,92,0.85), 0 0 24px -6px rgba(240,195,92,0.35); }
.btn--play { --btn-lit: inset 0 0 0 3px #070a1c, inset 0 0 0 4px rgba(111,224,210,0.9), 0 0 24px -6px rgba(111,224,210,0.35); }
.btn:focus-visible { box-shadow: var(--btn-lit); }
@media (hover: hover) { .btn:hover { box-shadow: var(--btn-lit); } }
@media (prefers-reduced-motion: no-preference) {
  .btn svg { transition: transform 0.25s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn--descend:hover svg { transform: translateY(2px); }
  .btn--foundry:hover svg { transform: translateX(3px); }
}

/* Engraved bands and rules */
.band { display: block; }
.band--header { position: relative; opacity: 0.55; }
.band--footer { opacity: 0.5; }

.corner {
  --corner-inset: 9px;
  position: absolute; width: 28px; height: 28px;
}
.corner--tl { top: var(--corner-inset); left: var(--corner-inset); }
.corner--tr { top: var(--corner-inset); right: var(--corner-inset); transform: scaleX(-1); }
.corner--bl { bottom: var(--corner-inset); left: var(--corner-inset); transform: scaleY(-1); }
.corner--br { bottom: var(--corner-inset); right: var(--corner-inset); transform: scale(-1, -1); }

.scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; }
.scale__bar { display: block; flex: none; }

.wrap { margin: 0 auto; padding: 0 1.5rem; }
.wrap--plate { max-width: 70rem; }
.wrap--survey { max-width: 82rem; }

/* Phones: the plates' gutters and the CTAs' padding, so every CTA sets on one line at 360 */
@media (max-width: 30rem) {
  .wrap { padding: 0 1rem; }
  .btn--descend, .btn--foundry { padding: 0 1.1rem; letter-spacing: 0.05em; }
  .btn--play { padding: 0 1.1rem; }
}

/* Product art in D's frames. D's placeholders drew a dashed inner outline; over finished art it
   becomes a solid keyline at the same inset and colour, like the plates' own double rules. */
.art { margin: 0; position: relative; overflow: hidden; }
.art picture, .art img { display: block; width: 100%; height: 100%; }
.art img { object-fit: cover; }
.art--icon { flex: 0 0 8.5rem; aspect-ratio: 1 / 1; border-radius: 22%; }

/* ---------- Dividers: horizon, waterline, seabed ---------- */

.divider { position: relative; line-height: 0; }
.divider svg { display: block; width: 100%; }

/* A feature graphic (1024×500): the responsive still, with its animated SVG laid over it while it is on
   screen (js/site.js). The plates frame it; this only stacks the two layers exactly. */
.feature-art {
  position: relative;
  display: block;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  contain: paint; /* the animation's repaints stay inside the frame */
}
.feature-art picture,
.feature-art img {
  display: block;
  width: 100%;
  height: 100%;
}
.feature-art__live {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s cubic-bezier(.2, .6, .2, 1);
  will-change: opacity; /* its own GPU layer: each SMIL frame re-rasters only the drawing, never the plate */
}
.feature-art__live.is-on {
  opacity: 1;
}
.feature-art__live[hidden] {
  display: none; /* asleep off screen: it costs nothing, and wakes on the same timeline */
}
@media (prefers-reduced-motion: reduce) {
  .feature-art__live {
    display: none;
  }
}

/* ---------- Header ---------- */

.site-header { position: relative; background: #02040a; }
.site-header__bar {
  position: relative; max-width: 76rem; margin: 0 auto; padding: 0.75rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 2rem;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.85rem; min-height: 44px; text-decoration: none; }
.brand__seal { flex: none; align-self: center; width: 1.75rem; height: 1.75rem; margin-right: -0.2rem; }
/* The name's line box fills the 44 px target, so the lockup stays centred in the bar while "LLC" sits on its baseline */
.brand__name { font-family: var(--serif); font-size: 1.76rem; font-weight: 600; line-height: 44px; letter-spacing: 0.01em; color: var(--fl-brass); }
.brand__llc {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; line-height: 1;
  letter-spacing: 0.02em; color: #a3a9b5; padding: 0; border: 0;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.25rem; margin-left: -0.6rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none;
}

/* Phones: the five links fold into a disclosure menu, so the header stays one bar tall. Only one
   "Primary" navigation is ever rendered: the bar's on wide screens, the menu's on phones. */
.nav-menu { display: none; }
.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu__button { display: flex; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
.nav-menu__button svg { display: block; }
details[open] .nav-menu__button svg { transform: rotate(45deg); }
.site-nav--menu {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 0; padding: 0.25rem 1rem 0.75rem;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
  background: var(--fl-night); border-bottom: 1px solid rgba(199,177,138,0.45);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.9);
}
.nav-menu:not([open]) .site-nav--menu { display: none; }
.site-nav--menu a { display: flex; min-height: 44px; padding: 0 0.5rem; border-top: 1px solid rgba(199,177,138,0.18); }
@media (max-width: 40rem) {
  .site-header__bar { flex-wrap: nowrap; column-gap: 1rem; }
  .site-nav:not(.site-nav--menu) { display: none; }
  .nav-menu { display: block; margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-menu__button svg { transition: transform 0.25s; }
}

/* ---------- I. The firmament: hero ---------- */

.firmament { position: relative; background: linear-gradient(180deg, #02040a 0%, #03060f 38%, #081029 100%); }

/* The grain: one 128 px tile across the whole firmament, fading out before the horizon (no live filter) */
.bg-art--grain {
  background: url("/grain.svg") repeat; background-size: 128px; opacity: 0.06;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* Six stars that twinkle, each in open sky at every width (SVG geometry properties, from the firmament's
   top-left): the gutters beside the copy and the seal, the band above the eyebrow, the sky plate's margins */
.tw { opacity: 0.6; }
.tw-1 { cx: 98%; cy: 120px; }
.tw-2 { cx: 4%; cy: 14px; }
.tw-3 { cx: 97%; cy: 360px; }
.tw-4 { cx: 3%; cy: 560px; }
.tw-5 { cx: max(10px, calc(25% - 280px)); cy: 1180px; }
.tw-6 { cx: min(calc(100% - 10px), calc(75% + 280px)); cy: 1440px; }
@media (min-width: 64rem) {
  .tw-1 { cx: 4%; cy: 30px; }
  .tw-2 { cx: 50%; cy: 26px; }
  .tw-3 { cx: 98%; cy: 620px; }
  .tw-4 { cx: 50.5%; cy: 690px; }
}

.hero { position: relative; min-height: 44rem; }
.hero__inner {
  position: relative; max-width: 76rem; margin: 0 auto; padding: 3.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr)); gap: 2.5rem 3rem; align-items: center;
}
@media (min-width: 64rem) { .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
@media (max-width: 30rem) { .hero__inner { padding-top: 2.25rem; } }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; min-width: 0; }
.hero__copy > .eyebrow + .hero__title { margin-top: -0.7rem; }
.hero__title + .flourish { margin-top: -0.5rem; }
.hero__lede + .btn { margin-top: 0.4rem; }
.hero__title {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.018em; color: var(--fl-bone); text-wrap: balance;
}
.hero__title em { font-style: italic; }
/* At 360-385 the h1 scales with the screen, so it sets as "Where the absurd and / the brilliant dance / in perfect harmony." */
@media (max-width: 24.1rem) { .hero__title { font-size: calc((100vw - 3rem) * 0.116); } }

/* The owner's two words: absurd in gold, brilliant in sapphire, the brightest things on screen */
.em-absurd { color: #f0b432; }
.em-brilliant { color: #9cc8ff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .em-absurd, .em-brilliant {
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: 0.08em; margin-right: -0.08em;
  }
  .em-absurd {
    background-image: linear-gradient(180deg, #fff6d6 8%, #ffd36a 40%, #f0b432 72%, #b8821e 100%);
    filter: drop-shadow(0 0 14px rgba(255,211,106,0.35));
  }
  .em-brilliant {
    background-image: linear-gradient(180deg, #eef6ff 8%, #9cc8ff 45%, #5b93ff 100%);
    filter: drop-shadow(0 0 14px rgba(61,123,255,0.45));
  }
}

.hero__lede { margin: 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: #c3cad8; }
.hero__seal-wrap { display: flex; justify-content: center; min-width: 0; }
.hero__seal { display: block; width: 100%; max-width: 38rem; height: auto; }
@media (max-width: 26rem) { .seal-motto { font-size: 15.5px; } }

/* The rose engine turns about the dial's centre */
.seal-band, .seal-rosette { transform-box: fill-box; transform-origin: center; }

/* ---------- Motion: one family, light on metal and stars (GL-07) ----------
   The glint sweeps the seal once every 40 s; six stars breathe on 5.5 s; the rose engine turns
   once in 4 minutes, the rosette against it in 6. Each rests on a composed frame. */

@keyframes flGlint { 0% { transform: translateX(0); } 6.5% { transform: translateX(480px); } 100% { transform: translateX(480px); } }
@keyframes hTwinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
@keyframes hTurn { to { transform: rotate(360deg); } }
@keyframes hTurnBack { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .fl-glint { animation: flGlint 40s cubic-bezier(0.5,0,0.3,1) 1.5s infinite; }
  /* One glint at a time: while Haikuverse's drawing is live (its own glint sweeps once per 10 s loop), the seal holds its glint */
  .firmament:has(.feature-art__live:not([hidden])) .fl-glint { animation: none; }
  .tw { animation: hTwinkle 5.5s ease-in-out infinite alternate; }
  .tw-2 { animation-delay: 0.9s; }
  .tw-3 { animation-delay: 1.8s; }
  .tw-4 { animation-delay: 2.7s; }
  .tw-5 { animation-delay: 3.6s; }
  .tw-6 { animation-delay: 4.5s; }
  .seal-band { animation: hTurn 240s linear infinite; }
  .seal-rosette { animation: hTurnBack 360s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .fl-glint { animation: none !important; visibility: hidden; } }

/* ---------- The sky plate: Haikuverse ---------- */

.note--zenith { color: #a3b9dc; }
.realm-subtitle--sky { color: #cdbdff; }
.statement--sky { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.3rem); line-height: 1.18; }
.statement--sky em { color: #cdbdff; }
.badge--sky { margin: 0.35rem 0 0; flex-wrap: nowrap; justify-content: center; color: #9eeee4; border: 1px solid rgba(111,224,210,0.5); }
/* The sky badge never stacks on phones, so its dot stays centred on its one line */
@media (max-width: 30rem) { .badge--sky { align-items: center; } .badge--sky .badge__dot { margin-top: 0; } }
.badge__dot--ember { background: #ff9f5a; }
.band--ra { opacity: 0.8; }

.realm-sky { position: relative; padding: 1rem 0 4.5rem; }
.realm-sky .wrap { position: relative; }
.plate-sky {
  position: relative; overflow: hidden; background: #070a1c; border: 1px solid rgba(199,177,138,0.6);
  border-radius: 50% 50% 0 0 / 10rem 10rem 0 0;
  box-shadow: inset 0 0 0 7px #070a1c, inset 0 0 0 8px rgba(199,177,138,0.28), 0 50px 100px -60px rgba(0,0,0,0.95),
    0 0 160px -60px rgba(163,185,220,0.26);
}
/* A pool of light under the arch, the keystone on its apex, and two domed rivets at the foot */
.plate-sky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 35% at 50% 0%, rgba(163,185,220,0.08), transparent 70%);
}
.plate-sky .corner { --corner-inset: 15px; }
.plate-sky__keystone { position: absolute; top: -11px; left: 50%; margin-left: -11px; z-index: 1; display: block; }
.plate-sky__rivet {
  position: absolute; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--fl-rivet);
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.6);
}
.plate-sky__rivet--l { left: 4px; }
.plate-sky__rivet--r { right: 4px; }
.plate-sky__chart { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.plate-sky__body { position: relative; z-index: 1; padding: 2.25rem clamp(1.25rem, 0.5rem + 3.4vw, 3.5rem) 2.25rem; }
@media (max-width: 30rem) { .plate-sky__body { padding-bottom: 3.25rem; } } /* the foot clears the corner brackets */

.sky-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.25rem; }
@media (min-width: 64rem) { .sky-head::after { content: ""; flex: none; width: 10.5rem; } }
.sky-head__dial { display: block; flex: none; width: 10.5rem; height: 10.5rem; }
.sky-head__titles { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; min-width: 0; }
.sky-head__titles .eyebrow { margin-bottom: 0.15rem; }
.sky-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(25rem, 100%), 1fr));
  gap: 2.5rem 3.5rem; align-items: center; padding: 2.5rem 0 2.25rem;
}
.sky-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; min-width: 0; }

/* The three steps; on phones the text sits under its verb */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; width: 100%; border-top: 1px solid rgba(167,139,250,0.3); }
.steps li { display: flex; align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(167,139,250,0.3); }
.steps__num { flex: none; width: 1.75rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: 0; color: #9eeee4; }
.steps__verb { flex: none; width: 5.25rem; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: #f2f3f7; }
.steps__text { font-size: 1rem; line-height: 1.5; color: #bcc3d3; }
@media (max-width: 30rem) {
  .steps li { display: grid; grid-template-columns: 1.75rem 1fr; column-gap: 1rem; row-gap: 0.15rem; align-items: baseline; }
  .steps__verb { width: auto; }
  .steps__text { grid-column: 2; }
}

/* The drawn feature graphic in a calm mat, one material: a brass border, a mat a step lighter than the plate, a brass
   keyline, then the art, so the bezel's brass beads read as the frame's jewel. The drawing carries the brand alone:
   the app's icon tile is off the plate (the lead, round 1). */
.sky-art { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.art--hv-feature { padding: 9px; background: #0b0e22; border: 1px solid rgba(199,177,138,0.55); }
.art--hv-feature::after {
  content: ""; position: absolute; inset: 4px; pointer-events: none;
  border: 1px solid rgba(199,177,138,0.3);
}

/* The three platforms, parallel: glyph, name, platform, reason, link */
.divisions {
  list-style: none; margin: 0; padding: 0.5rem 0 2.25rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1.75rem 2.25rem;
}
.division { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 1rem; border-top: 1px dashed rgba(167,139,250,0.35); }
.division__glyph { display: block; flex: none; width: 2rem; height: 2rem; margin-bottom: 0.25rem; }
.division__name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: #f2f3f7; }
.division__platform { margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9eeee4; text-wrap: balance; }
.division__reason { margin: 0; font-size: 1rem; line-height: 1.5; color: #bcc3d3; }
.division > .btn, .division > .link-out { margin-top: auto; }
.division > .link-out { min-height: 56px; } /* centred on the Play button's line */

.sky-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding: 0.9rem 0 0.25rem; }
.sky-foot .scale__bar { overflow: visible; }

.divider--horizon { background: #120d0a; }
/* Above 1440 the horizon grows with the page instead of cropping the sun; below, it keeps 240 px and crops the sides */
.divider--horizon svg { height: auto; aspect-ratio: 1440 / 240; min-height: 240px; }

/* The sun breathes: its bloom swells and settles on a 7 s breath (GL-07) */
@keyframes dSunBreath { from { opacity: 0.45; } to { opacity: 0.6; } }
@media (prefers-reduced-motion: no-preference) {
  .sun-bloom { animation: dSunBreath 7s ease-in-out infinite alternate; }
}

/* ---------- III. The land: Fancyland, the world, on a survey sheet in world's night ---------- */

.eyebrow--bright { color: var(--fl-star); }
.legend-bar .eyebrow { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; }
.note--preview { color: #c3cbff; }
.note--sheet, .note--alt { color: #a3a9b5; }
.statement--land { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.6rem); line-height: 1.14; }
.statement--land em { color: #f0c35c; }
.badge--land { margin: 0.4rem 0 0; color: #c3cbff; border: 1px solid rgba(143,155,255,0.55); }
.badge__dot--blue { background: #8f9bff; }
.cta-row--land { gap: 0.75rem 1.1rem; padding-top: 0.35rem; }
.band--plate { opacity: 0.8; margin: 2rem 0 0; }
.plate-land .corner { --corner-inset: 30px; }

.realm-land { position: relative; background: #120d0a; padding: 1.5rem 0 4rem; }
.plate-land {
  position: relative; overflow: hidden; background: #070b14; border: 1px solid rgba(199,177,138,0.8);
  box-shadow: inset 0 0 0 5px #070b14, inset 0 0 0 6px rgba(199,177,138,0.35), 0 60px 120px -60px rgba(0,0,0,0.95),
    0 0 160px -60px rgba(240,195,92,0.12);
}
/* A lamp over the sheet: a pool of warm light falling from the top edge */
.plate-land::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 35% at 50% 0%, rgba(240,195,92,0.06), transparent 70%);
}
.plate-land__survey { position: absolute; top: 22px; left: 22px; width: calc(100% - 44px); height: calc(100% - 44px); pointer-events: none; }

/* The neatline: two hairlines with brass dashes between. `round` fits a whole number of dashes and the tiles start flush
   at the bar's end (not centred, which shifts them half a dash when the count is even), so every corner meets a quarter-gap. */
.neat { position: absolute; box-sizing: border-box; }
.neat--top, .neat--bottom {
  left: 12px; width: calc(100% - 24px); height: 10px;
  border-top: 1px solid rgba(199,177,138,0.8); border-bottom: 1px solid rgba(199,177,138,0.8);
  background: linear-gradient(90deg, transparent 25%, rgba(199,177,138,0.72) 25% 75%, transparent 75%) 0 50% / 56px 6px;
  background-repeat: round no-repeat;
}
.neat--left, .neat--right {
  top: 12px; width: 10px; height: calc(100% - 24px);
  border-left: 1px solid rgba(199,177,138,0.8); border-right: 1px solid rgba(199,177,138,0.8);
  background: linear-gradient(180deg, transparent 25%, rgba(199,177,138,0.72) 25% 75%, transparent 75%) 50% 0 / 6px 56px;
  background-repeat: no-repeat round;
}
.neat--top { top: 12px; }
.neat--bottom { bottom: 12px; }
.neat--left { left: 12px; }
.neat--right { right: 12px; }
/* Domed rivets where the neatlines cross */
.neat-corner { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--fl-rivet); box-shadow: 0 0 0 1px #17130c; }
.neat-corner--tl { top: 12px; left: 12px; }
.neat-corner--tr { top: 12px; right: 12px; }
.neat-corner--bl { bottom: 12px; left: 12px; }
.neat-corner--br { bottom: 12px; right: 12px; }

.plate-land__body {
  position: relative; z-index: 1;
  /* the sides never come closer than 38px: the text sits 7px inside the corner brackets (30px inset), as in the sky
     plate (the owner: the land text looked outside the corner art on the phone) */
  padding: clamp(3.75rem, 2.5rem + 2.6vw, 4.75rem) clamp(2.375rem, 0.75rem + 4vw, 4.75rem) clamp(3.5rem, 2.5rem + 2.4vw, 4.5rem);
}
.land-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.land-head__bezel { flex: none; width: 9rem; height: 9rem; }
.land-head__titles { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.land-title {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 1.8rem + 4.2vw, 5.75rem);
  line-height: 0.95; letter-spacing: 0.005em; color: var(--fl-bone);
}
.land-subtitle { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.15rem); line-height: 1.15; color: #f0c35c; }
.land-head__compass { flex: none; width: 6.5rem; height: 6.5rem; }

/* Application I: The Reality Foundry. The article only groups; a later application follows it. */
.land-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: 2.5rem 4rem; align-items: center; padding: 2.5rem 0 2.5rem;
}
.land-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; min-width: 0; }
.land-lede { margin: 0; max-width: 34rem; font-size: 1.125rem; color: #c3cbd6; }
.invite-note { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.6; letter-spacing: 0; color: #aeb7c5; }
.invite-note a { white-space: nowrap; padding-block: 0.75rem; } /* the owner: invitations go through support@; the padding is the tap target, invisible */
.land-art { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
/* The application's eyebrow is its heading (h3): it names The Reality Foundry to assistive tech, the sheet unchanged */
.land-app__name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; text-transform: none; }

/* The Foundry's emblem (the Fancyland feature graphic) behind world's glass: a night mat, an ice keyline in the mat */
.art--fl-feature::after { content: ""; position: absolute; pointer-events: none; inset: 4px; border: 1px solid rgba(163,185,220,0.35); }
.art--fl-feature { padding: 9px; background: #070b14; border: 1px solid rgba(199,177,138,0.6); }

.legend-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(199,177,138,0.35);
}
.regions {
  list-style: none; margin: 0; padding: 1.75rem 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.75rem 2.25rem;
}
.region { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 1px dashed rgba(199,177,138,0.45); }
/* The owner: the regions read as a table. Wherever they sit side by side, the four cards share their rows (mark, title,
   description, modules), so each row lines up across the cards below the longest description. One column stays in flow. */
.land-app { container: land-app / inline-size; }
@supports (grid-template-rows: subgrid) {
  @container land-app (min-width: 30.25rem) { /* 2 x 14rem + the 2.25rem gap: the width at which a second column fits */
    .region { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.5rem; align-items: start; }
  }
}
.region__mark { display: flex; align-items: center; gap: 0.75rem; }
.region__glyph { display: block; flex: none; }
.region__glyph--ice { color: #a3b9dc; }
.region__glyph--brass { color: #c7b18a; }
/* World's brass nameplate, scaled down: a cast plate with a rivet at each end */
.region__label {
  position: relative; display: inline-block; padding: 0.22rem 1.25rem 0.2rem 1.45rem; border-radius: 2px;
  font-family: var(--sans); font-size: 0.792rem; font-weight: 600; letter-spacing: 0.24em; line-height: 1.2; text-transform: uppercase; color: #2a2216;
  text-shadow: 0 1px 0 #f6ebcc5c;
  background:
    radial-gradient(circle at 50% 50%, #f6ebcc 0 0.5px, #b9a47c 1px, #4a4233 1.9px, #0f0c08 2.3px, transparent 2.7px) 0.45rem 50% / 6px 6px no-repeat,
    radial-gradient(circle at 50% 50%, #f6ebcc 0 0.5px, #b9a47c 1px, #4a4233 1.9px, #0f0c08 2.3px, transparent 2.7px) calc(100% - 0.45rem) 50% / 6px 6px no-repeat,
    repeating-linear-gradient(180deg, #fff6d612 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #ddcba2 0%, #c2ad83 38%, #a08b63 62%, #b9a47c 100%);
  box-shadow: inset 0 1px 0 #fbf1d6aa, inset 0 -1px 0 #4a4233, inset 0 0 0 1px #6e5f4566, 0 0 0 1px #17130c, 0 2px 4px #000000c0;
}
.region__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; color: var(--fl-bone); }
.region__line { margin: 0; font-size: 1rem; line-height: 1.55; color: #b5c0ce; }
.region__modules { margin: 0.6rem 0 0; overflow: hidden; padding-right: 0.1em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; line-height: 1.45; color: #aeb7c5; }
/* The separators hang in a clipped gutter, so no line ever starts (or ends) with one. Each module carries its own dot
   in a box one dot and one space wide; with the space between the items, that is the old "no-break space, dot, space". */
.mods { display: block; margin-left: -0.438em; }
.mods > span { white-space: nowrap; }
.mods > span::before { content: "\b7"; display: inline-block; width: 0.438em; text-align: left; }
.doorstep {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(199,177,138,0.3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
.doorstep__icon { flex: none; }
.doorstep__text { margin: 0; flex: 1 1 18rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.doorstep__motto { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: #f2f3f7; text-wrap: balance; }
.doorstep__detail { font-size: 1rem; color: #b5c0ce; text-wrap: pretty; }

/* Phones and small tablets: the compass shares the bezel's row instead of falling to a row of its own */
@media (max-width: 46.25rem) {
  .land-head { position: relative; }
  .land-head__compass { position: absolute; top: 0.75rem; right: 0; width: 5.5rem; height: 5.5rem; }
}
@media (max-width: 40rem) {
  .land-head__bezel { width: 7.5rem; height: 7.5rem; }
}
/* Where the titles can share the bezel's row, they keep clear of the compass */
@media (min-width: 30.0625rem) and (max-width: 46.25rem) {
  .land-head__titles { padding-right: 6rem; }
}
@media (max-width: 30rem) {
  .plate-land__body { padding-left: 2.375rem; padding-right: 2.375rem; padding-bottom: 4.25rem; } /* inside the corner brackets; the foot clears them */
  .doorstep__text { flex-basis: 10rem; }
}

/* ---------- IV. The waterline ---------- */

.divider--waterline { background: #05110f; }
.divider--waterline svg { height: auto; aspect-ratio: 1440 / 160; min-height: 160px; }

/* The water moves: the swell drifts one 120-unit period per loop, linear, so the loop is seamless */
@media (prefers-reduced-motion: no-preference) {
  .wl-wave { animation: wlDrift 18s linear infinite; }
  @keyframes wlDrift { to { transform: translateX(-120px); } }
}

/* ---------- V. The sea: Chthonic Counselor, the sounding chart ---------- */

.note--legend { line-height: 1.6; color: #c5d6c2; }
.note--verbatim { color: #c7b18a; }
.realm-subtitle--sea { color: #9be15d; }
.statement--sea { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.15; }
.statement--sea em { color: #9be15d; }
.badge--sea { margin: 0; padding: 0.55rem 0.75rem; color: #c4f29a; border: 1px solid rgba(155,225,93,0.5); }
.badge__dot--radium { background: #9be15d; box-shadow: 0 0 8px #9be15d; }
.band--sea { opacity: 0.85; }
.plate-sea .corner { --corner-inset: 15px; }

/* The Counselor's feature graphic on a mat of the plate's own night, its keyline in the mat, clear of the art */
.art--cc-feature::after { content: ""; position: absolute; pointer-events: none; }
.art--cc-feature { aspect-ratio: 1024 / 500; padding: 9px; background: #030a09; border: 1px solid rgba(155,225,93,0.5); }
.art--cc-feature::after { inset: 4px; border: 1px solid rgba(199,177,138,0.4); }

.realm-sea {
  position: relative; overflow: hidden; padding: 2.5rem 0 4.5rem;
  background: linear-gradient(180deg, #05110f 0%, #030a08 45%, #010403 100%);
}
.realm-sea__chart {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: max(100%, 90rem); height: auto; aspect-ratio: 1440 / 1300; pointer-events: none;
}
/* The abyss settles into the seabed's black, so the glow never stops in a line */
.realm-sea::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14rem; pointer-events: none;
  background: linear-gradient(to bottom, rgba(1,4,3,0), #010403);
}
.realm-sea > .wrap { position: relative; z-index: 1; }
/* Below the plate, the last of its shadow settles to the same black too, so the sea's last row is the seabed's colour */
.realm-sea > .wrap::after {
  content: ""; position: absolute; top: 100%; left: 50%; width: 100vw; margin-left: -50vw; height: 4.5rem; pointer-events: none;
  background: linear-gradient(to bottom, rgba(1,4,3,0), #010403 calc(100% - 0.5rem));
}
.plate-sea {
  position: relative; background: #030a09; border: 1px solid rgba(199,177,138,0.6);
  box-shadow: inset 0 0 0 7px #030a09, inset 0 0 0 8px rgba(155,225,93,0.24), 0 50px 100px -60px rgba(0,0,0,0.95),
    0 0 160px -60px rgba(155,225,93,0.14);
}
/* Lit from below by the abyss */
.plate-sea::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 35% at 50% 100%, rgba(155,225,93,0.06), transparent 70%);
}
/* Domed rivets, centred on the outer border at the corners */
.plate-sea__rivet { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--fl-rivet); box-shadow: 0 0 0 1px #17130c; }
.plate-sea__rivet--tl { top: -0.5px; left: -0.5px; }
.plate-sea__rivet--tr { top: -0.5px; right: -0.5px; }
.plate-sea__rivet--bl { bottom: -0.5px; left: -0.5px; }
.plate-sea__rivet--br { bottom: -0.5px; right: -0.5px; }
/* The sounding line hangs clear of both brackets (they sit at the 15 px inset): 10 px below the top one, its lead 21 px above the bottom one */
.fathom-line { position: absolute; top: 52px; left: 15px; width: 16px; height: calc(100% - 138px); }
.fathom-lead { position: absolute; bottom: 64px; left: 8px; width: 16px; height: 22px; }
.plate-sea__body {
  position: relative; z-index: 1;
  padding: clamp(1.5rem, 1rem + 2.2vw, 3rem) clamp(1.25rem, 0.5rem + 3.4vw, 3.5rem) clamp(2rem, 1.25rem + 2.4vw, 3.25rem) clamp(2.75rem, 1.75rem + 3vw, 4.5rem);
}
.sea-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; padding-top: 1.75rem; }
.sea-head__bezel { flex: none; width: 6.75rem; height: 6.75rem; }
.sea-head__titles { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.sea-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(25rem, 100%), 1fr));
  gap: 2.5rem 3.5rem; align-items: start; padding: 2.5rem 0 2rem;
}
.sea-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; min-width: 0; }
.soundings { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; }
.soundings__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.soundings__list li { display: flex; align-items: baseline; gap: 1rem; padding: 0.55rem 0; border-top: 1px dashed rgba(155,225,93,0.32); }
.soundings__list li:last-child { flex-wrap: wrap; gap: 0.4rem 1rem; border-bottom: 1px dashed rgba(155,225,93,0.32); }
.soundings__num {
  flex: none; min-width: 2.75rem; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.4rem; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: #9be15d;
}
.soundings__label { font-size: 1rem; line-height: 1.4; color: #dfe9da; }
.consult-chip {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; color: #9be15d;
  border: 1px solid rgba(155,225,93,0.7); padding: 0.1rem 0.45rem; white-space: nowrap;
}
.verdict { display: flex; flex-direction: column; gap: 0.35rem; }
.verdict__setup { margin: 0; max-width: 32rem; font-size: 1.0625rem; line-height: 1.6; color: #c3cad8; }
.verdict__word {
  margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 2.2rem + 2.6vw, 4.5rem);
  line-height: 1; letter-spacing: -0.01em; color: #9be15d; text-shadow: 0 0 28px rgba(155,225,93,0.4);
}
.sea-art { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
/* The Counselor's drawing carries the brand alone; the gauge hangs on its axis below it */
.gauge { display: block; align-self: center; width: 100%; max-width: 15rem; height: auto; }
.c-glow { opacity: 0.6; }
.c-needle { transform-origin: 120px 116px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 0 0; border-top: 1px solid rgba(199,177,138,0.35); }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.25; color: #f2f3f7; text-wrap: pretty;
}
/* The Counselor's beat: the aeons, then Thursday, each on its own line */
.quote blockquote .phrase { display: block; }

/* The foot: the promises and the status on the left, the pill centred on both at the right */
.sea-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "promises pill" "status pill";
  align-items: center; gap: 1.25rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(199,177,138,0.3);
}
.sea-foot__status { display: contents; }
.promises { grid-area: promises; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.promises li {
  padding: 0.4rem 0.75rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--fl-label); border: 1px solid rgba(199,177,138,0.45);
}
.status-line { grid-area: status; margin: 0; font-size: 1rem; line-height: 1.6; color: #c3cad8; text-wrap: pretty; }
.soon-pill {
  grid-area: pill; justify-self: end;
  margin: 0; display: inline-flex; align-items: center; gap: 0.75rem; min-height: 54px; padding: 0 1.4rem;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; color: #c4f29a;
  border: 1px dashed rgba(155,225,93,0.7); background: rgba(155,225,93,0.06);
}
@media (max-width: 48rem) {
  .sea-foot { grid-template-columns: 1fr; grid-template-areas: "promises" "status" "pill"; }
  .soon-pill { justify-self: start; }
}
@media (max-width: 30rem) {
  .soon-pill { padding: 0 1.1rem; }
  .plate-sea__body { padding-bottom: 3.25rem; } /* the foot clears the brackets */
}

/* The oracle hums: the heptagram's glow swells and the gauge needle trembles on its hub. Their periods (8 s and 7 s)
   share no beat with the Counselor graphic's 5 s breath, so the three never pulse together for long. */
@media (prefers-reduced-motion: no-preference) {
  .c-glow { animation: cHum 4s ease-in-out infinite alternate; }
  .c-needle { animation: cNeedle 3.5s ease-in-out infinite alternate; }
  @keyframes cHum { from { opacity: 0.45; } to { opacity: 0.75; } }
  @keyframes cNeedle { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
}

/* ---------- VI. The seabed: the studio ---------- */

.note--coords { color: #a99f8c; }
.flourish--studio { margin-top: 0.35rem; }
.realm-subtitle--gold { color: #f0c35c; }

.divider--seabed { background: #070907; }
.divider--seabed svg { height: auto; aspect-ratio: 1440 / 220; min-height: 220px; }
.b-sonar circle { opacity: 0; }

.studio { position: relative; background: #070907; }
.studio__inner {
  max-width: 76rem; margin: 0 auto; padding: 2.25rem 1.5rem 4.5rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); gap: 2rem 4rem; align-items: start;
}
.studio__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; min-width: 0; }
.studio__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); line-height: 1.05; color: #f2f3f7; }
.studio__copy { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.studio__text { margin: 0; font-size: 1.125rem; line-height: 1.75; color: #c9cfdb; }
.studio__text em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.14em; line-height: 1; letter-spacing: 0; color: #f2f3f7; } /* the larger italic no longer opens its line */

/* A sonar ping from the creature on the seabed: the nine rings light in turn, outward, each fading as the next lights, so
   a hairline ripple runs from the dot to r 40 and dies away (the rings' own stroke-opacity dims it with distance). Their
   starts ease out like a wave front; the ripple takes about 5 s, then the seabed rests: a 7 s cycle, off the Counselor
   graphic's 5 s breath. Opacity only, so it runs on the compositor. */
@media (prefers-reduced-motion: no-preference) {
  .b-sonar circle { animation: bPing 7s linear infinite; }
  .b-sonar circle:nth-child(2) { animation-delay: 0.32s; }
  .b-sonar circle:nth-child(3) { animation-delay: 0.66s; }
  .b-sonar circle:nth-child(4) { animation-delay: 1.02s; }
  .b-sonar circle:nth-child(5) { animation-delay: 1.43s; }
  .b-sonar circle:nth-child(6) { animation-delay: 1.9s; }
  .b-sonar circle:nth-child(7) { animation-delay: 2.45s; }
  .b-sonar circle:nth-child(8) { animation-delay: 3.1s; }
  .b-sonar circle:nth-child(9) { animation-delay: 3.9s; }
  @keyframes bPing {
    0% { opacity: 0; animation-timing-function: ease-out; }
    2% { opacity: 1; animation-timing-function: ease-in-out; }
    15% { opacity: 0; }
    100% { opacity: 0; }
  }
}

/* The abyssal floor (the owner's pick, variant C). A hydrothermal vent beyond the right edge: its amber light rakes across
   the floor and the studio and reveals their engraved cross-hatch; the footer, unlit and unhatched, stays the night.
   - The hatch reveal is anchored to the seam between the seabed and the studio (100% of the divider, 0% of the studio),
     with the same 90% by 336 px ellipse on both sides, so the two halves meet exactly at every width.
   - The light is one layer over both (.abyss::after), centred on that seam (the seabed is max(220px, 1440:220) tall), so
     it has no seam to match. It sits under the text. */
.abyss { position: relative; --abyss-seam: max(220px, 15.2778vw); }
.divider--seabed .abyss__hatch {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; pointer-events: none;
  -webkit-mask-image: radial-gradient(90% 336px at 108% 100%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%); mask-image: radial-gradient(90% 336px at 108% 100%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}
/* The studio's hatch continues the floor's: the same viewBox scale as the seabed (1440 wide, never below 1:1) and the
   floor's own coordinates past the seam (y from 220), so the lines run straight through at every width. */
.studio > .abyss__hatch-studio {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(90% 336px at 108% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%); mask-image: radial-gradient(90% 336px at 108% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}
.abyss__hatch-studio > svg { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 400; min-height: 400px; }
.abyss::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* (Chrome drops a gradient whose size mixes % and px in calc(), so the height is a plain share of floor + studio:
     375 px at 1440, about 600 on a phone, reaching the footer's line on the lit side.) */
  background: radial-gradient(70% 75% at 108% var(--abyss-seam),
    rgba(232,160,80,.10) 0%, rgba(232,160,80,.035) 45%, rgba(232,160,80,0) 100%);
  /* the vent lights the floor, and the water only just above it */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--abyss-seam) * .55), #000 calc(var(--abyss-seam) * .85));
  mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--abyss-seam) * .55), #000 calc(var(--abyss-seam) * .85));
}
.studio__inner { position: relative; z-index: 1; }
/* Phones stack the studio three times taller, so the vent sits lower and spreads wider: its light still reaches the
   footer's line on the lit side, as it does on a desktop. */
@media (max-width: 47.99rem) {
  .abyss::after {
    background: radial-gradient(110% 75% at 108% 70%,
      rgba(232,160,80,.10) 0%, rgba(232,160,80,.035) 45%, rgba(232,160,80,0) 100%);
  }
}

/* The ping on the floor: each soft ring lights as the wavefront reaches it (the drawn rings' timing to r 40, then
   20 px/s), peaks, and fades; its brightness is set in its gradient, falling as 1/r^2. Opacity only. */
.b-floorping > g { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .b-floorping > g { animation: bFloorPing 7s linear infinite; }
  .b-floorping > g:nth-child(1) { animation-delay: 2.88s; }
  .b-floorping > g:nth-child(2) { animation-delay: 3.54s; }
  .b-floorping > g:nth-child(3) { animation-delay: 4.05s; }
  .b-floorping > g:nth-child(4) { animation-delay: 4.35s; }
  .b-floorping > g:nth-child(5) { animation-delay: 4.65s; animation-name: bFloorPingFar; }
  .b-floorping > g:nth-child(6) { animation-delay: 5.00s; animation-name: bFloorPingFar; }
  .b-floorping > g:nth-child(7) { animation-delay: 5.40s; animation-name: bFloorPingFar; }
  .b-floorping > g:nth-child(8) { animation-delay: 5.85s; animation-name: bFloorPingFar; }
  .b-floorping > g:nth-child(9) { animation-delay: 6.35s; animation-name: bFloorPingFar; }
  @keyframes bFloorPing {
    0% { opacity: 0; animation-timing-function: ease-out; }
    3% { opacity: 1; animation-timing-function: ease-in-out; }
    17% { opacity: 0; }
    100% { opacity: 0; }
  }
  @keyframes bFloorPingFar {
    0% { opacity: 0; animation-timing-function: ease-out; }
    5% { opacity: 1; animation-timing-function: ease-in-out; }
    24% { opacity: 0; }
    100% { opacity: 0; }
  }
}

/* ---------- Footer ---------- */

.site-footer { position: relative; background: #040605; border-top: 1px solid rgba(199,177,138,0.35); }
.site-footer__inner { max-width: 76rem; margin: 0 auto; padding: 3.25rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 2.5rem 4rem; align-items: start; }
.support { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; min-width: 0; }
.support__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.1; color: #f2f3f7; }
.support__note { margin: 0; font-size: 1rem; color: #aab3c4; }
.support__email {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.2;
  color: #f0c35c; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: rgba(240,195,92,0.55);
}
.legal-nav { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
/* Two columns, each one kind of document: privacy on the left, license agreements on the right, apps in the same
   order down both (the owner). */
.legal-nav__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0 1.5rem; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-decoration: none; overflow-wrap: anywhere; }
.legal-nav a[aria-current="page"] {
  color: #f0c35c; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: rgba(240,195,92,0.55);
}
.finial { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.finial__rule { flex: none; width: 64px; height: 1px; background: #c7b18a; opacity: 0.5; }
.finial__seal { flex: none; display: block; }
.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(199,177,138,0.25);
}
.copyright { margin: 0; display: flex; align-items: center; gap: 0.7rem; font-size: 0.9375rem; color: #9aa3b5; }
.copyright__seal { flex: none; }
.to-top {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
}

/* ---------- Legal pages: a calm reading layout on the noir ground ---------- */

.legal-doc {
  box-sizing: border-box; max-width: 40rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem;
  font-size: 1.0625rem; line-height: 1.7; color: #c9cfdb; overflow-wrap: break-word;
}
.legal-doc h1 {
  margin: 1rem 0 0.75rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.8rem + 2.2vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.005em; color: #f2f3f7; text-wrap: balance;
}
.legal-doc h2 {
  margin: 3rem 0 0.75rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 1.45rem + 1.1vw, 2.3rem);
  line-height: 1.12; color: #f2f3f7; text-wrap: balance;
}
.legal-doc h3 { margin: 2.25rem 0 0.5rem; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--fl-star); }
.legal-doc h4 { margin: 1.75rem 0 0.5rem; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--fl-star); }
.legal-doc :is(h1, h2, h3, h4) { font-variant-numeric: lining-nums; }
.legal-doc h1 + p, .legal-doc h2 + p, .legal-doc h3 + p, .legal-doc h4 + p { margin-top: 0; }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul, .legal-doc ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.legal-doc li { margin: 0 0 0.55rem; padding-left: 0.25rem; }
.legal-doc li::marker { color: #c7b18a; }
.legal-doc strong { font-weight: 600; color: #f2f3f7; }
.legal-doc em { font-style: italic; }
.legal-doc code { font-family: var(--mono); font-size: 0.875em; color: var(--fl-star); background: rgba(199,177,138,0.1); padding: 0.05em 0.35em; }
.legal-doc .eyebrow { margin: 0; }
.legal-date { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: #c7b18a; }
.legal-facts { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.legal-facts div { display: flex; gap: 0.4rem; }
.legal-facts dt { font-weight: 600; color: #f2f3f7; }
.legal-facts dd { margin: 0; }
.legal-head { padding-bottom: 0.5rem; }
.legal-lede { font-size: 1.125rem; color: #c3cad8; }
.legal-toc { margin: 1.75rem 0 0; padding: 1.1rem 1.25rem 0.4rem; border: 1px solid rgba(199,177,138,0.45); box-shadow: inset 0 0 0 3px #02040a, inset 0 0 0 4px rgba(199,177,138,0.2); }
.legal-toc ol { margin: 0 0 0.75rem; }
.legal-toc li { margin: 0; }
.legal-toc a { display: inline-block; padding: 0.5rem 0; }
.legal-toc { scroll-margin-top: 1.5rem; }
.legal-section { scroll-margin-top: 1.5rem; }
.legal-section + .legal-section { margin-top: 4rem; border-top: 1px solid rgba(199,177,138,0.35); }
.legal-subsection { margin-top: 3rem; padding-top: 0.25rem; border-top: 1px dashed rgba(199,177,138,0.35); scroll-margin-top: 1.5rem; }
.legal-subsection > h3:first-child { margin-top: 2rem; font-size: clamp(1.6rem, 1.35rem + 0.8vw, 1.95rem); color: #f2f3f7; }
.legal-doc .legal-related { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(199,177,138,0.3); font-size: 1rem; color: #aab3c4; }
.legal-doc .legal-related--lead { margin: 0 0 2.25rem; padding: 0 0 1.25rem; border-top: 0; border-bottom: 1px solid rgba(199,177,138,0.3); } /* the deletion guide, at the head of Haikuverse's statement */

/* ---------- 404 ---------- */

.lost { max-width: 42rem; margin: 0 auto; padding: 6rem 1.5rem 7rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.lost__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.012em; color: #f2f3f7; text-wrap: balance; }
.lost__text { margin: 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: #c3cad8; }
.lost__text--small { font-size: 1rem; color: #aab3c4; }
/* The 404's arrow points up, so it nudges up */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .lost .btn--descend:hover svg { transform: translateY(-2px); }
}
