/* Persephone Reborn LLC — one stylesheet. Self-hosted fonts only; nothing from other servers. */

/* Fraunces, SIL Open Font License 1.1 — see /assets/fonts/OFL.txt */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format("woff2");
  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: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin.woff2) format("woff2");
  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;
}

/* ── Theme tokens ─────────────────────────────────────
   Light is the default; dark follows the device unless the visitor picked one
   with the theme button (which sets data-theme on <html>). */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --sunk: #f3efe8;
  --ink: #1b1820;
  --muted: #57515e;
  --faint: #6a6471;
  --line: #e4ddd3;
  --accent: #8e1f3c;
  --accent-ink: #ffffff;
  --accent-soft: #f5e9ec;
  --ok: #1d6b45;
  --warn: #8a4b00;
  --focus: #1f5fbf;
  --night: #15111a;
  --night-2: #221a28;
  --night-ink: #f4efe8;
  --night-muted: #c9c0cd;
  --night-accent: #ec95aa;
  --shadow: 0 1px 2px rgba(27, 24, 32, 0.04), 0 8px 24px -12px rgba(27, 24, 32, 0.12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121015; --surface: #1a171e; --sunk: #16131a; --ink: #f1ede7; --muted: #bdb5c2; --faint: #9a93a0;
    --line: #2f2a35; --accent: #ec95aa; --accent-ink: #1a0c11; --accent-soft: #2a1b21; --ok: #6fd3a0; --warn: #f0b46a;
    --focus: #8ab4ff; --night: #0c0a0f; --night-2: #1a1420; --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px -14px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121015; --surface: #1a171e; --sunk: #16131a; --ink: #f1ede7; --muted: #bdb5c2; --faint: #9a93a0;
  --line: #2f2a35; --accent: #ec95aa; --accent-ink: #1a0c11; --accent-soft: #2a1b21; --ok: #6fd3a0; --warn: #f0b46a;
  --focus: #8ab4ff; --night: #0c0a0f; --night-2: #1a1420; --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 10px 30px -14px rgba(0,0,0,0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.0625rem/1.7 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
::selection { background: #ec95aa; color: #1a0c11; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -3rem; z-index: 60; background: var(--surface); color: var(--ink); padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 6px; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }
.narrow { max-width: 48rem; }

/* ── The night sky ──────────────────────────────────────
   Every .cinema section is a scene: two drifting star fields and a film grain over a nebula wash. The stars and the
   grain are files on this site (img-src 'self'), not data: URIs, which the CSP would refuse. */
.cinema {
  position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink);
  background:
    radial-gradient(52rem 30rem at 82% -8%, rgba(236, 149, 170, 0.20), transparent 62%),
    radial-gradient(46rem 30rem at 6% 108%, rgba(124, 92, 214, 0.24), transparent 62%),
    radial-gradient(30rem 18rem at 50% 50%, rgba(80, 60, 140, 0.10), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.cinema::before, .cinema::after { content: ""; position: absolute; inset: -40% 0 0; z-index: -1; pointer-events: none; }
.cinema::before { background: url(/assets/stars-a.svg) 0 0 / 720px 720px repeat; opacity: 0.85; }
.cinema::after { background: url(/assets/stars-b.svg) 0 0 / 460px 460px repeat, url(/assets/grain.svg) 0 0 / 220px 220px repeat; opacity: 0.55; }
.cinema h1, .cinema h2, .cinema h3 { color: var(--night-ink); }
.cinema .eyebrow { color: var(--night-accent); }
.cinema .lede, .cinema p { color: var(--night-muted); }
.cinema a:not(.button) { color: var(--night-accent); }
.cinema .button { background: var(--night-accent); border-color: var(--night-accent); color: #1a0c11; }
.cinema .button.ghost { background: rgba(255, 255, 255, 0.04); color: var(--night-ink); border-color: rgba(244, 239, 232, 0.36); }
.cinema .button.ghost:hover { border-color: rgba(244, 239, 232, 0.7); background: rgba(255, 255, 255, 0.08); }

/* ── Header: night glass, always ──────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; color: var(--night-ink);
  background: rgba(16, 13, 20, 0.92); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* On a wide screen the header floats: a clear strip, and inside it a rounded glass bar over the night scene. The first
   section of every page is a night scene, pulled up beneath the bar (the negative margin), with room made for it. */
@media (min-width: 52rem) {
  .site-header { background: transparent; border-bottom: 0; padding: 0.8rem 1rem 0; margin-bottom: -6rem; pointer-events: none; }
  .site-header .wrap {
    pointer-events: auto; max-width: 74rem; border-radius: 999px; padding: 0.55rem 0.7rem 0.55rem 1rem !important;
    background: rgba(18, 14, 24, 0.88); border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  main > section:first-child { padding-top: 6rem; }
}
/* On a phone the menu wraps to several rows, so the header scrolls away instead of covering a quarter of the screen. */
@media (max-width: 52rem) { .site-header { position: relative; } .nav ul { gap: 0.1rem 1rem; } .nav a { font-size: 0.92rem; padding: 0.3rem 0; } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 1.22rem; letter-spacing: 0; line-height: 1; margin-right: auto; }
.site-header .brand, .site-footer .brand { color: var(--night-ink); }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 22px -8px rgba(236, 149, 170, 0.55); }
.brand small { font-family: var(--sans); font-weight: 600; font-size: 0.66rem; color: var(--night-muted); letter-spacing: 0.16em; text-transform: uppercase; margin-left: 0.3rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; }
.nav a { color: var(--night-muted); text-decoration: none; font-size: 0.95rem; padding: 0.45rem 0; display: inline-block; }
.nav a:hover { color: var(--night-ink); }
.nav a[aria-current="page"] { color: var(--night-ink); box-shadow: inset 0 -2px 0 var(--night-accent); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  font: 600 0.82rem/1 var(--sans); color: var(--night-muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 0.5rem 0.8rem; min-height: 2.25rem;
}
.theme-toggle:hover { color: var(--night-ink); border-color: rgba(255, 255, 255, 0.4); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle[hidden] { display: none; }

/* ── Type ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.45rem; }
em, i { font-style: italic; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; }
p { margin: 0 0 1.05rem; text-wrap: pretty; }
.lede { font-size: clamp(1.12rem, 2.2vw, 1.32rem); color: var(--muted); max-width: 44rem; line-height: 1.6; }
.eyebrow { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: "→"; display: inline-block; margin-left: 0.35em; transition: transform 0.2s; }
.more:hover::after { transform: translateX(3px); }

/* ── Hero ───────────────────────────────────────────── */
.hero .wrap { display: grid; gap: 1.5rem 3rem; align-items: center; padding-top: 2rem; padding-bottom: 3.5rem; }
@media (min-width: 56rem) { .hero .wrap { min-height: min(86vh, 52rem); } }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.15fr 1fr; padding-top: 4rem; padding-bottom: 6rem; } }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.0; letter-spacing: -0.028em; margin-bottom: 1.4rem; }
.hero h1 em, .page-head h1 em, .statement em { background: linear-gradient(95deg, #f6b8c6 10%, #ec95aa 45%, #c9b6ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.hero .lede { font-size: clamp(1.12rem, 2vw, 1.3rem); max-width: 36rem; }
.hero .art { width: 100%; max-width: 20rem; justify-self: center; order: -1; position: relative; }
@media (min-width: 56rem) { .hero .art { max-width: 34rem; justify-self: end; order: 0; } }
.hero .art::before { content: ""; position: absolute; inset: 8% 12% 18%; border-radius: 50%; background: radial-gradient(circle, rgba(236, 149, 170, 0.28), transparent 65%); filter: blur(30px); z-index: -1; }
.hero .art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }

/* The company at a glance, under the hero */
.ribbon { background: var(--surface); border-bottom: 1px solid var(--line); }
.ribbon dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.ribbon dl div { padding: 1.5rem 1rem 1.4rem; border-left: 1px solid var(--line); }
.ribbon dl div:first-child { border-left: 0; padding-left: 0; }
.ribbon dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ribbon dd { margin: 0.25rem 0 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
@media (max-width: 40rem) { .ribbon dl div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .ribbon dl div:first-child { border-top: 0; } }

/* Page heads: the same night as the hero, shorter */
.page-head .wrap { padding-top: 4rem; padding-bottom: 3.5rem; }
@media (min-width: 40rem) { .page-head .wrap { padding-top: 6rem; padding-bottom: 5rem; } }
.page-head h1 { margin-bottom: 0.9rem; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.024em; }
.page-head .lede { margin-bottom: 0; }

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta.center { justify-content: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem;
  padding: 0.75rem 1.45rem; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 0.98rem/1.3 var(--sans);
  border: 1px solid var(--accent); box-shadow: 0 10px 30px -14px rgba(236, 149, 170, 0.7);
}
.button:hover { filter: brightness(1.08); box-shadow: 0 14px 36px -12px rgba(236, 149, 170, 0.85); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button.ghost:hover { border-color: var(--faint); filter: none; }
.band .button { background: var(--night-accent); border-color: var(--night-accent); color: #1a0c11; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 4rem 0; }
@media (min-width: 40rem) { .section { padding: 6.5rem 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section.cinema + .section, .section + .section.cinema { border-top: 0; }
.section.tint { background: var(--surface); }
.split { display: grid; gap: 1.25rem 3.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 19rem 1fr; } }
.grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .grid.two, .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* Chapter numerals: I, II, III… a quiet mark at the head of each part of the story */
.chapter-no { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.5rem); line-height: 0.9; margin: 0 0 0.6rem; font-weight: 400; background: linear-gradient(180deg, var(--accent), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.55; }
.cinema .chapter-no { background-image: linear-gradient(180deg, var(--night-accent), transparent 92%); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem 1.6rem 0.8rem; box-shadow: var(--shadow); }
.section.tint .card { background: var(--bg); }
.card p { color: var(--muted); }
.card h3 { margin-top: 0; }
/* A card whose title is the first heading under the page's h1 (the 404's) is an h2 for the outline, sized like an h3. */
.card h2 { font-size: 1.25rem; margin: 0 0 0.45rem; }
.feature h3, .value h3 { display: flex; align-items: center; gap: 0.6rem; }
.feature h3::before, .value h3::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.link-card { display: block; text-decoration: none; color: var(--ink); padding-bottom: 1.4rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.link-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.link-card .more { color: var(--accent); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 48rem) { .principles { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.principles li { padding: 1.5rem 0 0.4rem; border-top: 1px solid var(--line); }
.principles .num { display: block; font-family: var(--serif); color: var(--accent); font-size: 1rem; letter-spacing: 0.14em; margin-bottom: 0.35rem; }
.principles p { color: var(--muted); }

.facts { margin: 0; }
.facts div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.facts dd { margin: 0.15rem 0 0; }
@media (min-width: 36rem) { .facts div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; align-items: baseline; } .facts dd { margin: 0; } }
address { font-style: normal; }

ul.plain { padding-left: 1.2rem; margin: 0 0 1.05rem; }
ul.plain li { margin: 0.4rem 0; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
ul.ticks li { position: relative; padding-left: 1.9rem; margin: 0.6rem 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.42em; width: 0.42rem; height: 0.78rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cinema ul.ticks li::before { border-color: var(--night-accent); }
ol.steps { padding-left: 1.4rem; margin: 0 0 1.05rem; }
ol.steps li { margin: 0.45rem 0; padding-left: 0.2rem; }
ul.links { list-style: none; padding: 0; margin: 0; }
ul.links li { border-top: 1px solid var(--line); }
ul.links li:last-child { border-bottom: 1px solid var(--line); }
ul.links a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 1rem 0.1rem; color: var(--ink); text-decoration: none; }
ul.links a span { color: var(--faint); font-size: 0.92rem; }
ul.links a:hover { color: var(--accent); }

.prose h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2.75rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.note { font-size: 0.92rem; color: var(--faint); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: 12px; padding: 1rem 1.2rem 0.2rem; margin: 1.5rem 0; }

/* ── Interlude: one sentence, given the whole screen ── */
/* Night at both edges, so it meets a neighbouring night scene without a seam. */
.interlude { background-image: radial-gradient(46rem 26rem at 50% 50%, rgba(124, 92, 214, 0.18), transparent 65%), linear-gradient(180deg, var(--night), var(--night-2) 50%, var(--night)); }
.interlude .wrap { padding-top: 6rem; padding-bottom: 6rem; text-align: center; }
@media (min-width: 40rem) { .interlude .wrap { padding-top: 9rem; padding-bottom: 9rem; } }
.statement { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--night-ink) !important; margin: 0 auto 1.4rem; max-width: 40rem; text-wrap: balance; }
.statement-note { max-width: 36rem; margin: 0 auto; }

/* ── Spotlight: Andromeda, among the stars ──────────── */
.spotlight .spotlight-head { text-align: center; max-width: 46rem; margin: 0 auto 3.5rem; }
.spotlight .lede { margin-left: auto; margin-right: auto; }
.app-mark { width: 6rem; height: 6rem; border-radius: 24%; background: #000; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 50px -14px rgba(59, 155, 255, 0.65); }
.app-mark.big { width: 6.5rem; height: 6.5rem; margin: 0 auto 1.8rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 80px -6px rgba(59, 155, 255, 0.55), 0 24px 60px -20px rgba(59, 155, 255, 0.9); }
@media (min-width: 52rem) { .app-mark.big { width: 8rem; height: 8rem; } }
.app-mark svg { width: 62%; height: 62%; }
.panels { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .panels { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .panels { grid-template-columns: 1fr 1fr 1fr; } }
.panel {
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), border-color 0.35s, box-shadow 0.35s;
}
.panel:hover { transform: translateY(-5px); border-color: rgba(236, 149, 170, 0.45); box-shadow: 0 30px 60px -30px rgba(236, 149, 170, 0.45); }
.panel-art { aspect-ratio: 16 / 10; background: radial-gradient(70% 80% at 50% 45%, rgba(159, 123, 255, 0.22), transparent 70%), rgba(0, 0, 0, 0.22); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.panel-art svg, .feature-art svg { width: 100%; height: 100%; display: block; }
.panel-art img, .feature-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.panel:hover .panel-art img { transform: scale(1.045); }
.panel-art { overflow: hidden; }
.panel-body { padding: 1.3rem 1.4rem 0.6rem; }
.panel-body h3 { font-size: 1.22rem; }
.panel-body p { font-size: 0.98rem; }

/* ── Feature rows on the Andromeda page ─────────────── */
.product-hero .wrap { padding-top: 5rem; padding-bottom: 5.5rem; text-align: center; }
@media (min-width: 40rem) { .product-hero .wrap { padding-top: 7rem; padding-bottom: 7.5rem; } }
.product-hero h1 { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.035em; line-height: 1; }
.product-hero .lede { margin-left: auto; margin-right: auto; }
.feature-row { padding: 4rem 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .feature-row { padding: 6rem 0; } }
.feature-row .wrap { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 56rem) { .feature-row .wrap { grid-template-columns: 1fr 1fr; } .feature-row.flip .feature-art { order: 2; } }
.feature-row.tint, .feature-row.flip { background: var(--surface); }
.feature-art {
  aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(70% 80% at 50% 45%, rgba(159, 123, 255, 0.28), transparent 70%), linear-gradient(160deg, var(--night-2), var(--night));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(60, 30, 90, 0.75);
}
.feature-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/stars-b.svg) 0 0 / 460px 460px repeat; opacity: 0.5; }
.feature-copy h2 { margin-bottom: 0.8rem; }

/* ── Milestones ──────────────────────────────────────── */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 1.8rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2.2rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.8rem - 7px); top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .when { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.3rem; }
.timeline p:last-child { color: var(--muted); }

/* Citations: every claim about Andromeda points at the page it comes from */
.src { font-size: 0.78em; vertical-align: super; line-height: 0; margin-left: 0.1em; text-decoration: none; }
.sources { font-size: 0.9rem; color: var(--muted); padding-left: 1.2rem; }
.sources li { margin: 0.3rem 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: var(--sunk); }
td small { color: var(--faint); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.yes { color: var(--ok); border-color: currentColor; }
.tag.no { color: var(--muted); }

/* A grid item's default min-width is its content's, so a select's longest option held the contact form's column wider than a 320 px screen. */
.split > * { min-width: 0; }
input, select, textarea { max-width: 100%; }

/* Press kit */
.swatches { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.swatch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.swatch .chip { height: 4.5rem; }
.swatch p { margin: 0; padding: 0.6rem 0.8rem; font-size: 0.85rem; line-height: 1.4; }
.swatch code { font-size: 0.85rem; }
.logo-tile { display: grid; place-items: center; min-height: 10rem; border-radius: 14px; border: 1px solid var(--line); padding: 1.5rem; }
.logo-tile.dark { background: #15111a; }
.logo-tile.light { background: #faf8f4; }
.logo-tile img { max-height: 5.5rem; width: auto; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--faint); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--faint); border-radius: 12px; padding: 0.7rem 0.85rem; width: 100%; min-height: 2.9rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-closed { border: 1px dashed var(--faint); border-radius: 14px; padding: 1rem 1.2rem 0.2rem; background: var(--sunk); }

/* Closing band: a last scene before the footer */
.band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink);
  background: radial-gradient(40rem 20rem at 85% 120%, rgba(236, 149, 170, 0.22), transparent 65%), radial-gradient(36rem 20rem at 0% -20%, rgba(124, 92, 214, 0.24), transparent 65%), var(--night);
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/stars-b.svg) 0 0 / 460px 460px repeat; opacity: 0.6; }
.band .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .band .wrap { grid-template-columns: 1fr auto; } }
.band h2 { color: var(--night-ink); margin: 0 0 0.4rem; }
.band p { color: var(--night-muted); margin: 0; }

/* ── Footer: back into the night ──────────────────────── */
.site-footer { color: var(--night-muted); font-size: 0.92rem; background: var(--night); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .cols { display: grid; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2rem; }
@media (min-width: 40rem) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-muted); font-weight: 700; margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.15rem 0; }
.site-footer li a { display: inline-block; padding: 0.2rem 0; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: var(--night-accent); text-decoration: underline; }
.site-footer address { color: var(--night-muted); }
.site-footer address a { color: var(--night-muted); }
.site-footer .brand { font-size: 1.1rem; margin-bottom: 0.9rem; }
.site-footer .legal-line { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1.25rem; padding-bottom: 2rem; font-size: 0.85rem; color: var(--night-muted); }

/* ── Motion ─────────────────────────────────────────────
   Everything here is decoration. With reduced motion requested, nothing moves,
   and where scroll-driven animation is unsupported, content is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .button, .nav a, ul.links a, .theme-toggle { transition: color 0.15s, filter 0.15s, border-color 0.15s, opacity 0.15s, box-shadow 0.2s, background-color 0.2s; }
  .cinema::before { animation: drift-a 160s linear infinite alternate; }
  .cinema::after { animation: drift-b 110s linear infinite alternate; }
  .hero-copy > * { animation: enter 0.7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.36s; }
  .hero .art { animation: enter-art 1.2s cubic-bezier(.2, .7, .2, 1) 0.15s both; }
  .page-head .wrap > *, .product-hero .wrap > * { animation: enter 0.7s cubic-bezier(.2, .7, .2, 1) both; }
  .page-head .wrap > :nth-child(2), .product-hero .wrap > :nth-child(2) { animation-delay: 0.1s; }
  .page-head .wrap > :nth-child(3), .product-hero .wrap > :nth-child(3) { animation-delay: 0.2s; }
  .product-hero .wrap > :nth-child(4) { animation-delay: 0.3s; }
  .product-hero .wrap > :nth-child(5) { animation-delay: 0.4s; }

  @supports (animation-timeline: view()) {
    .reveal { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  .hero-art .galaxy-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 360s linear infinite; }
  .hero-art .fruit { animation: rise 9s ease-in-out infinite alternate; }
  .hero-art .halo { animation: breathe 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 50%; }
  .hero-art .twinkle { animation: twinkle 5s ease-in-out infinite; }
  .hero-art .twinkle:nth-of-type(3n) { animation-delay: -1.7s; animation-duration: 6.5s; }
  .hero-art .twinkle:nth-of-type(3n+1) { animation-delay: -3.1s; animation-duration: 4.2s; }
}
@keyframes settle { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
/* Text is never hidden while it arrives: a slow or throttled browser (or a screenshot taken at load) still shows every word. */
@keyframes enter { from { transform: translateY(0.6rem); } to { transform: none; } }
@keyframes enter-art { from { transform: scale(0.94) translateY(1rem); } to { transform: none; } }
@keyframes drift-a { from { transform: translateY(0); } to { transform: translateY(18%); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4%, 24%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(5px); } to { transform: translateY(-7px); } }
@keyframes breathe { from { opacity: 0.55; transform: scale(0.96); } to { opacity: 0.9; transform: scale(1.04); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }

@media print {
  .site-header nav, .theme-toggle, .skip, .cta, .band, .hero .art, .panel-art, .feature-art { display: none; }
  .cinema, .site-header, .site-footer { background: none !important; color: #000; }
  .cinema::before, .cinema::after { display: none; }
  .cinema h1, .cinema h2, .cinema p, .cinema .lede, .site-footer, .site-footer a { color: #000 !important; }
  body { background: #fff; color: #000; }
}

/* Press swatches (classes, not inline styles: the CSP forbids style attributes) */
.chip-pomegranate { background: #8e1f3c; }
.chip-blossom { background: #ec95aa; }
.chip-night { background: #15111a; }
.chip-parchment { background: #faf8f4; border-bottom: 1px solid var(--line); }
.chip-comet { background: #3b9bff; }

/* DRAFT marker: text waiting on Dom. A release build refuses to run while any remain. */
.draft { background: repeating-linear-gradient(135deg, rgba(240, 180, 106, 0.22) 0 8px, rgba(240, 180, 106, 0.08) 8px 16px); outline: 1px dashed var(--warn); border-radius: 4px; padding: 0 0.2em; }
.draft::before { content: "DRAFT · "; font: 700 0.72em/1 var(--sans); letter-spacing: 0.1em; color: var(--warn); }

/* ── Centred section heads ── */
.center-head { text-align: center; max-width: 46rem; margin: 0 auto; }
.center-head .lede { margin-left: auto; margin-right: auto; }

/* ── Our commitments: three pillars ── */
.pillars { display: grid; gap: 1.1rem; }
@media (min-width: 52rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 2rem 1.7rem 1.6rem; box-shadow: var(--shadow); }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #ec95aa, #c9b6ff); }
.pillar-no { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); opacity: 0.35; margin-bottom: 1rem; }
.pillar p { color: var(--muted); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.chips a { display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; background: var(--surface); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Newsroom cards ── */
.news-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.news-head h2 { margin: 0; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.6rem 1.2rem; box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.news-meta { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.9rem; }
.news-card h3 { font-size: 1.35rem; }
.news-card p:last-child { color: var(--muted); margin-bottom: 0; }

/* ── Milestones: an alternating story on a wide screen ── */
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem 0.4rem; box-shadow: var(--shadow); }
.section.tint .tl-card { background: var(--bg); }
@media (min-width: 52rem) {
  .timeline { border-left: 0; padding: 0; position: relative; max-width: 60rem; margin-left: auto; margin-right: auto; }
  .timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--accent), var(--line) 85%); opacity: 0.6; }
  .timeline li { width: 50%; padding: 0 2.8rem 2.4rem 0; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 2.8rem; }
  .timeline li::before { left: auto; right: -7px; top: 1.5rem; }
  .timeline li:nth-child(even)::before { left: -7px; right: auto; }
}
