/* Zora Constellation: site styles. A night sky, a sheet of paper and a single clear voice.
   Dark navy is the default theme; light is opt-in (theme button). Teal is action and "keep", amber is "flag", violet is "listed". */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07101e;
  --bg-2: #0a1628;
  --surface: #0d1a2e;
  --surface-2: #12233a;
  --text: #f2f1eb;
  --text-2: #a9b4c4;
  --text-3: #8592a5;
  --line: rgba(242, 241, 235, 0.09);
  --line-2: rgba(242, 241, 235, 0.2);
  --accent: #9fe3de;
  --accent-2: #c2efeb;
  --on-accent: #07101e;
  --accent-soft: rgba(159, 227, 222, 0.1);
  --flag: #fe9a00;
  --flag-soft: rgba(254, 154, 0, 0.1);
  --listed: #b48cff;
  --listed-soft: rgba(180, 140, 255, 0.12);
  --danger: #ff9b8f;
  --focus: #9fe3de;
  --sky-star: 242, 241, 235;
  --sky-line: 159, 227, 222;
  --sky-alpha: 1;
  --glow-a: rgba(142, 81, 255, 0.16);
  --glow-b: rgba(159, 227, 222, 0.07);
  --glow-c: rgba(142, 81, 255, 0.07);
  --lift: 0 32px 64px -32px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.25);
  --control: rgba(242, 241, 235, 0.38);
  --dim: 0.55;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius: 10px;

  /* Display type follows the brief's clamp and also the screen's height, so a short laptop still sees the whole point at once. */
  --display: clamp(2.8rem, min(1.6rem + 5.2vw, 9.3vh), 6.4rem);
  --display-home: clamp(2.8rem, min(1.6rem + 5.2vw, 12.5vh), 6.4rem);
  --h2: clamp(1.8rem, 1.2rem + 2.2vw, 3rem);
  --figure: clamp(2.2rem, min(1.4rem + 3vw, 7vh), 4rem);
  --lead: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f1eb;
  --bg-2: #e9e7df;
  --surface: #faf9f5;
  --surface-2: #ffffff;
  --text: #07101e;
  --text-2: #3f4a5a;
  --text-3: #566173;
  --line: rgba(7, 16, 30, 0.1);
  --line-2: rgba(7, 16, 30, 0.22);
  --accent: #0b6e69;
  --accent-2: #095a56;
  --on-accent: #ffffff;
  --accent-soft: rgba(11, 110, 105, 0.09);
  --flag: #8a4f00;
  --flag-soft: rgba(138, 79, 0, 0.08);
  --listed: #5b21c9;
  --listed-soft: rgba(91, 33, 201, 0.08);
  --danger: #b3261e;
  --focus: #0b6e69;
  --sky-star: 7, 16, 30;
  --sky-line: 11, 110, 105;
  --sky-alpha: 0.6;
  --glow-a: rgba(91, 33, 201, 0.07);
  --glow-b: rgba(11, 110, 105, 0.04);
  --glow-c: rgba(91, 33, 201, 0.035);
  --lift: 0 32px 64px -36px rgba(7, 16, 30, 0.34), 0 2px 8px rgba(7, 16, 30, 0.06);
  --control: rgba(7, 16, 30, 0.46);
  --dim: 0.6; /* Faded text stays above 4.5:1 on cream. */
}

@media (min-width: 1000px) {
  :root { --header-h: 80px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 64px);
  scroll-padding-bottom: 96px;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 58% at 92% 8%, var(--glow-c), transparent 72%);
}
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--accent); }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1 {
  font-size: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.lead {
  margin-top: clamp(16px, 2.6vh, 26px);
  max-width: 30em;
  font-size: var(--lead);
  font-weight: 500;
  line-height: 1.42;
  color: var(--text-2);
}
.fine { font-size: 0.85rem; line-height: 1.55; color: var(--text-3); }
.br-wide { display: none; }
.head-split br { display: inline; }

/* The eyebrow and the page mark: the constellation's one star. */
.eyebrow {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: clamp(14px, 2.2vh, 22px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 1px; background: var(--line-2);
}
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: -2.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-soft), 0 0 3px var(--accent);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 0.97rem; font-weight: 700; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.02rem; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--accent-2); }

.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(20px, 3.4vh, 36px); }

.icon-btn {
  display: inline-grid; place-items: center;
  flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--text); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: var(--text); border-radius: 4px; }
.logo { width: 92px; height: auto; fill: currentColor; color: var(--text); }
.header-cta { min-height: 44px; padding: 0 14px; font-size: 0.84rem; white-space: nowrap; }
.header-cta[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.header-theme { display: none; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-grid; }

/* Without JavaScript the links simply wrap under the header. */
.site-nav { order: 5; width: 100%; padding-bottom: 8px; }
.header-inner { flex-wrap: wrap; }
.nav-top, .nav-extra { display: none; }
.nav-list { display: flex; flex-wrap: wrap; gap: 0 18px; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-2); font-weight: 600; font-size: 0.93rem; text-decoration: none;
  transition: color 0.15s ease;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.15s ease;
}
.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--text); }

/* With JavaScript the links live in a full-screen overlay until the desktop width. */
.js .site-nav { display: none; }
.js .site-nav.is-open {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  width: auto; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--bg-2);
  overflow-y: auto;
  animation: menu-in 0.16s ease both;
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.js .site-nav.is-open .nav-top {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  min-height: var(--header-h);
}
.js .site-nav.is-open .nav-list { flex-direction: column; gap: 20px; flex: none; margin-top: clamp(16px, 5vh, 44px); }
.js .site-nav.is-open .nav-list a {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text); min-height: 44px; align-self: flex-start;
}
.js .site-nav.is-open .nav-list a::after { bottom: 0; }
.js .site-nav.is-open .nav-extra {
  display: grid; gap: 14px; flex: none;
  margin-top: auto; padding-top: 32px;
}
.nav-extra .btn { width: 100%; }
.nav-theme {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start;
  min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; font-size: 0.97rem; cursor: pointer;
}
.nav-theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-theme:hover { color: var(--accent); }
.nav-mail {
  display: inline-flex; align-items: center; justify-self: start; min-height: 44px;
  color: var(--text-2); text-decoration: none; font-weight: 500; overflow-wrap: anywhere;
}
.nav-mail:hover { color: var(--text); }

/* Phones: a long header button (a door's own action) breaks onto two lines rather than pushing the menu button down. */
@media (max-width: 639px) {
  .header-cta { white-space: normal; text-align: center; line-height: 1.15; max-width: calc(100vw - 2 * var(--gutter) - 92px - 44px - 20px); }
}
@media (max-width: 345px) {
  .logo { width: 80px; }
  .header-cta { white-space: normal; max-width: 112px; padding: 0 10px; font-size: 0.78rem; }
}
@media (min-width: 640px) {
  .logo { width: 112px; }
  .header-inner { gap: 10px; }
  .header-theme { display: inline-grid; }
}
@media (min-width: 1000px) {
  .logo { width: 140px; }
  .header-inner { flex-wrap: nowrap; gap: 12px; }
  .site-nav, .js .site-nav { display: block; order: 0; width: auto; padding: 0; margin-right: 18px; }
  .nav-list { flex-wrap: nowrap; gap: 28px; }
  .js .nav-toggle { display: none; }
  .header-cta { min-height: 48px; padding: 0 20px; font-size: 0.93rem; }
}

/* The main menu: Home, then every door by its short name, then Company and Contact (built from arms.json).
   A door's underline is drawn in its own color; the door a page belongs to stays underlined. */
.nav-list a[aria-current]::after { transform: scaleX(1); }
.nav-list a[aria-current] { color: var(--text); }
.nav-arm::after { background: var(--hue, var(--accent)); }
/* In the phone menu each door carries its colored star, as on the home. */
.js .site-nav.is-open .nav-list { gap: 10px; }
.js .site-nav.is-open .nav-list a { font-size: 1.75rem; }
.js .site-nav.is-open .nav-arm::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, var(--hue) 50%, transparent 72%); box-shadow: 0 0 12px 2px rgba(var(--hue-rgb), 0.7);
}
/* On a door's pages the header button is that door's own action, in the door's own color. */
.btn-primary.btn-arm { background: var(--hue); color: #03060f; }
.btn-primary.btn-arm:hover { background: var(--hue); filter: brightness(1.1); }
/* A laptop narrower than 1200px still fits the whole menu on one line. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .logo { width: 112px; }
  .header-inner { gap: 10px; }
  .site-nav, .js .site-nav { margin-right: 6px; }
  .nav-list { gap: 15px; }
  .nav-list a { font-size: 0.85rem; white-space: nowrap; }
  .header-cta { padding: 0 14px; font-size: 0.85rem; }
}
@media (min-width: 1200px) {
  .nav-list { gap: 24px; }
  .nav-list a { white-space: nowrap; }
}

/* ---------- The arm bar: under the header on every page of a door ----------
   The plain way back to all the doors, the door's name in its color, and that door's own pages.
   Always dark, like the door's sky beneath it. */
.armbar {
  --hue: #9fe3de; --hue-rgb: 159,227,222;
  position: relative; z-index: 40;
  background: linear-gradient(90deg, rgba(var(--hue-rgb), 0.2), rgba(var(--hue-rgb), 0.07) 45%, rgba(var(--hue-rgb), 0.03)), #050b18;
  border-bottom: 1px solid rgba(var(--hue-rgb), 0.42);
  color: #f2f1eb;
}
.armbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; min-height: 48px; }
.armbar-home {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding-right: 18px;
  border-right: 1px solid rgba(242, 241, 235, 0.18);
  color: #f2f1eb; font-size: 0.88rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.armbar-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.armbar-home:hover { color: var(--hue); }
.armbar-home:hover svg { transform: translateX(-3px); }
.armbar-name { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hue); white-space: nowrap; }
.armbar-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 10px 1px rgba(var(--hue-rgb), 0.85); }
.armbar-pages { display: flex; gap: 0 22px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.armbar-pages a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: rgba(242, 241, 235, 0.74); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color 0.15s ease;
}
.armbar-pages a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px; background: var(--hue);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.15s ease;
}
.armbar-pages a:hover { color: #f2f1eb; }
.armbar-pages a:hover::after, .armbar-pages a[aria-current]::after { transform: scaleX(1); }
.armbar-pages a[aria-current] { color: #fff; }
.armbar a:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; }
/* Phones: the way back and the name on one line; the door's pages on the next, sliding sideways when there are many. */
@media (max-width: 699px) {
  .armbar-inner { gap: 0 14px; padding-inline: 0; }
  .armbar-home { padding-left: var(--gutter); padding-right: 14px; }
  .armbar-name { flex: 1 1 0; min-width: 0; padding-right: var(--gutter); font-size: 0.68rem; letter-spacing: 0.12em; line-height: 1.25; white-space: normal; }
  .armbar-pages {
    flex: 1 1 100%; gap: 0 20px; margin: 0; padding: 0 var(--gutter);
    border-top: 1px solid rgba(242, 241, 235, 0.08);
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .armbar-pages::-webkit-scrollbar { display: none; }
  .armbar-pages a { min-height: 40px; font-size: 0.86rem; }
  .armbar-pages a::after { bottom: 6px; }
}
/* Pages under an arm bar still fit the screen they fit before. */
.armbar + main { --armbar-h: 49px; }
@media (max-width: 699px) { .armbar + main { --armbar-h: 86px; } }
.armbar + .stage { min-height: calc(100vh - var(--header-h) - var(--armbar-h)); min-height: calc(100svh - var(--header-h) - var(--armbar-h)); }

/* ---------- Stage ---------- */

.stage {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(24px, 4.4vh, 56px);
}
.stage > .wrap { width: 100%; }
.h1-wide { max-width: 100%; }
@media (min-width: 1000px) {
  .stage h1 { max-width: 84%; }
  .stage .h1-wide { max-width: 100%; }
}

/* ---------- Home ---------- */

.hero {
  --peek: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h) - var(--peek));
  min-height: calc(100svh - var(--header-h) - var(--peek));
  justify-content: flex-start;
  padding-block: clamp(28px, 6vh, 72px) 24px;
  background:
    radial-gradient(60% 72% at 90% 14%, var(--glow-a), transparent 70%),
    radial-gradient(52% 60% at 4% 92%, var(--glow-b), transparent 70%),
    var(--bg);
}
.sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 96px; background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero h1 { font-size: var(--display-home); }
.hero .lead { max-width: 27em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.6vh, 36px); }
.actions .btn { flex: 1 1 100%; }
.tagline { margin-top: clamp(14px, 2.2vh, 22px); font-size: 0.85rem; font-weight: 500; color: var(--text-2); }

.doors-screen { padding-block: clamp(20px, 3vh, 28px) clamp(56px, 10vh, 112px); }
.doors { display: grid; gap: 14px; margin-top: clamp(24px, 5vh, 56px); }
.doors > li { display: flex; }
.door {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  padding: 28px 22px 22px 0;
  border-top: 1px solid var(--line-2);
  color: inherit; text-decoration: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, padding-left 0.18s ease;
}
.door::before {
  content: ""; position: absolute; left: 0; top: -3.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px var(--accent);
}
.door-title { font-size: var(--h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.door-line { margin: 14px 0 18px; color: var(--text-2); max-width: 26em; }
.door-plate { display: none; }
.door-arrow {
  margin-top: auto; align-self: flex-end; flex: none;
  width: 28px; height: 28px;
  fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.door:hover .door-arrow, .door:focus-visible .door-arrow { transform: translateX(4px); }

@media (min-width: 640px) {
  .actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1000px) {
  .door-plate { display: block; }
  .hero { --peek: 92px; padding-top: clamp(32px, 7vh, 88px); }
  .br-wide { display: inline; }
  .doors-screen { display: flex; flex-direction: column; min-height: max(560px, calc(100vh - var(--header-h) - 204px)); min-height: max(560px, calc(100svh - var(--header-h) - 204px)); padding-bottom: 40px; }
  .doors-screen > .wrap { flex: 1; display: flex; flex-direction: column; }
  .doors { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  /* The three doors step down, as the constellation does. */
  .doors > li:nth-child(2) { margin-top: 44px; }
  .doors > li:nth-child(3) { margin-top: 88px; }
  .doors > li:not(:last-child) .door::after {
    content: ""; position: absolute; left: 100%; top: -1px;
    width: 54.34px; height: 1px; background: var(--line-2);
    transform-origin: left center; transform: rotate(53.97deg);
  }
  .door { padding: 32px 0 0; min-height: 300px; isolation: isolate; }
  .door-plate {
    position: absolute; z-index: -1; left: -16px; right: -16px; top: 0; bottom: -16px;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface); box-shadow: var(--lift);
    opacity: 0; transition: opacity 0.18s ease;
  }
  .door:hover, .door:focus-visible { transform: translateY(-2px); }
  .door:hover .door-plate, .door:focus-visible .door-plate { opacity: 1; }
}

/* ---------- Free check ---------- */

.head-split { display: grid; gap: clamp(14px, 2.4vh, 24px); }
.head-split .lead { margin-top: 0; }
@media (min-width: 1000px) {
  .head-split { grid-template-columns: auto minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .head-split h1 { max-width: none; }
  .head-split .lead { padding-bottom: 0.45em; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); }
}

.panels { display: grid; gap: 18px; margin-top: clamp(20px, 3.6vh, 36px); }
.panel { padding-top: 16px; border-top: 1px solid var(--line-2); }
.panel-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.012em; line-height: 1.2; }
.rows { margin-top: 10px; }
.rows li { padding-block: 8px; border-top: 1px solid var(--line); font-size: 0.97rem; line-height: 1.42; }
.rows li:first-child { border-top: 0; }
.panel-foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sheet-panel {
  padding: clamp(16px, 2.4vh, 22px) 22px clamp(14px, 2.2vh, 20px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}
@media (min-width: 1000px) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
  .panel-plain { padding-top: clamp(16px, 2.4vh, 22px); }
}

/* ---------- Pricing ---------- */

.ladder { position: relative; display: grid; gap: 0; margin-top: clamp(24px, 4.6vh, 48px); }
.rung { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 2px 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.rung-node { display: none; }
.rung-title { grid-column: 2; grid-row: 1; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
.price {
  grid-column: 1; grid-row: 1 / span 2;
  font-size: var(--figure); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-pre { display: block; margin-bottom: 4px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; color: var(--text-2); }
.price-text { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.65rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
.rung-text { grid-column: 2; color: var(--text-2); font-size: 0.97rem; line-height: 1.45; }

.terms { display: grid; gap: 0; margin-top: clamp(14px, 2.6vh, 28px); }
.terms li { padding-block: 10px; border-top: 1px solid var(--line); font-weight: 700; line-height: 1.4; font-size: 0.97rem; }
.price-foot { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 14px; }
.price-foot .fine { max-width: 44em; }

@media (min-width: 1000px) {
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; }
  .ladder::before {
    content: ""; position: absolute; top: 3px; left: 3px;
    right: calc((100% - 96px) / 4 - 3px);
    height: 1px; background: var(--accent);
    transform-origin: left center;
    animation: ladder-draw 0.8s var(--ease) both;
  }
  .rung { display: block; position: relative; padding: 0; border: 0; }
  .rung-node {
    display: block; position: absolute; left: 0; top: -32px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--bg), 0 0 8px 5px var(--accent-soft);
  }
  .rung-title { font-size: 1rem; color: var(--text-2); }
  .price { display: flex; flex-direction: column; justify-content: flex-end; min-height: 5.3rem; margin-top: 8px; }
  .rung-text { margin-top: 12px; }
  .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .terms li { padding-block: 12px 0; }
  .price-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; margin-top: clamp(14px, 2.6vh, 28px); }
}
@keyframes ladder-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Trust ---------- */

.promises { display: grid; gap: 0; margin-top: clamp(22px, 4.2vh, 48px); }
.promise { padding-block: 16px 18px; border-top: 1px solid var(--line-2); }
.promise-title { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); font-weight: 800; letter-spacing: -0.012em; line-height: 1.2; }
.promise p { margin-top: 8px; color: var(--text-2); font-size: 0.97rem; line-height: 1.5; }
@media (max-width: 639px) {
  /* The longest headline holds three lines on a small screen by sizing down: its words are fixed. */
  .h1-long { font-size: clamp(2rem, 10.1vw, 2.8rem); }
  .h1-mid { font-size: clamp(2.3rem, 12.4vw, 2.8rem); }
}
@media (min-width: 640px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1000px) {
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .promise { padding-block: 18px clamp(16px, 3.2vh, 34px); }
}

/* ---------- Company ---------- */

.company { display: grid; gap: 28px; margin-top: clamp(20px, 4.4vh, 52px); }
.statement { font-size: clamp(1.28rem, 1.1rem + 0.9vw, 1.85rem); font-weight: 500; line-height: 1.32; letter-spacing: -0.012em; max-width: 26em; }
.company-notes { display: grid; gap: 0; }
.note { padding-block: 16px 18px; border-top: 1px solid var(--line-2); }
.note-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; line-height: 1.4; text-transform: uppercase; color: var(--accent); }
.note p { margin-top: 8px; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
@media (max-width: 999px) {
  /* Every page ends with one next step: in one column the button follows the notes. */
  .company > div:first-child { display: contents; }
  .company-notes { order: 1; }
  .company .page-actions { order: 2; margin-top: 0; }
}
@media (min-width: 1000px) {
  .company { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .company .page-actions { margin-top: clamp(24px, 4vh, 44px); }
}

/* ---------- Contact ---------- */

.contact { display: grid; gap: 28px; margin-top: clamp(16px, 3vh, 32px); }
.contact-side .lead { margin-top: 0; }
.next-title { margin-top: clamp(18px, 3vh, 30px); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.next { counter-reset: next; margin-top: 10px; }
.next li { counter-increment: next; display: flex; gap: 14px; align-items: baseline; padding-block: 9px; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.42; }
.next li::before { content: counter(next); flex: none; width: 1.2em; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.direct { margin-top: clamp(16px, 2.6vh, 26px); color: var(--text-2); }
.mail { display: inline-block; font-size: 1.05rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; padding-block: 10px; }
.mail:hover { color: var(--accent-2); }

.form {
  position: relative;
  display: grid; gap: clamp(12px, 1.8vh, 16px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--control); border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { min-height: clamp(84px, 13vh, 124px); resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid, .field [aria-invalid="true"] { border-color: var(--danger); }
::placeholder { color: var(--text-3); opacity: 1; }
.form-foot { display: grid; gap: 10px; justify-items: stretch; }
.form-status { font-weight: 700; color: var(--accent); }
.form-status:empty { display: none; }
.form-status[data-kind="error"] { color: var(--danger); }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form-foot .fine a { color: var(--accent); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.form-fallback a, .link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 700; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.form-fallback a:hover, .link-btn:hover { color: var(--accent-2); }
@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .form-foot { justify-items: start; }
}
@media (min-width: 1000px) {
  .contact { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
}

/* ---------- Privacy ---------- */

.prose-head { padding-block: clamp(32px, 7vh, 72px) 8px; }
.prose-head h1 { max-width: 100%; }
.prose-head .lead { max-width: 34em; }
.prose { max-width: 760px; padding-block: 12px clamp(56px, 9vh, 96px); }
.prose h2 { margin-top: 44px; font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem); letter-spacing: -0.012em; }
.prose p, .prose ul { margin-top: 14px; color: var(--text-2); }
.prose ul { padding-left: 22px; display: grid; gap: 10px; list-style: disc; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose .fine { margin-top: 44px; color: var(--text-3); }
.prose .page-actions { margin-top: 28px; }

/* ---------- 404 ---------- */

.notfound p { margin-top: 18px; font-size: var(--lead); color: var(--text-2); }

/* ---------- Footer ---------- */

.site-footer { flex: none; border-top: 1px solid var(--line); padding-block: 32px 22px; }
.footer-top { display: grid; gap: 22px; }
.logo-footer { width: 140px; }
.footer-brand p { margin-top: 10px; color: var(--text-2); font-size: 0.93rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a, .footer-mail a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.93rem;
  overflow-wrap: anywhere; transition: color 0.15s ease;
}
.footer-nav a:hover, .footer-mail a:hover { color: var(--text); }
.footer-mail { margin-top: 2px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.85rem; line-height: 1.5;
}
@media (min-width: 1000px) {
  .footer-top { grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: start; }
  .footer-links { display: flex; flex-direction: column; align-items: flex-end; }
  .footer-nav { justify-content: flex-end; flex-wrap: nowrap; gap: 0 24px; }
}

/* The footer links in two groups: the doors, then the company's own pages (built from arms.json). */
.footer-nav.footer-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.fgroup-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.footer-nav a[aria-current] { color: var(--text); }
@media (min-width: 1000px) {
  .site-footer:not(.footer-compact) .footer-nav.footer-groups { justify-content: flex-end; }
}

/* A short laptop screen: the compact footer tightens so a one-screen page keeps its footer in view. */
@media (min-width: 900px) and (max-height: 820px) {
  html:root { --footer-h: 59px; }
  main.arm-page { --footer-h: 59px; }
  footer.site-footer.footer-compact { min-height: 58px; padding-block: 5px; }
  footer.site-footer.footer-compact .footer-nav a { min-height: 28px; }
  footer.site-footer.footer-compact p { line-height: 1.35; }
}

/* ---------- The walkthrough ---------- */

.wt button, .wt a { scroll-margin-top: 112px; scroll-margin-bottom: 96px; }
main { --banner-h: 52px; }
.wt-banner {
  position: sticky; top: var(--header-h); z-index: 45;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  font-size: 0.8rem; font-weight: 700; line-height: 1.35;
  color: var(--text);
}
.wt-banner .wrap { padding-block: 8px; }
.wt-banner p::before {
  content: ""; display: inline-block; vertical-align: 0.14em;
  width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--accent);
}

.stage-wt {
  justify-content: flex-start;
  min-height: 0;
  padding-block: clamp(14px, 2.4vh, 28px) clamp(28px, 5vh, 56px);
}
.wt-head h1 { max-width: 100%; }
.wt-head .lead { margin-top: clamp(8px, 1.3vh, 16px); max-width: none; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.2rem); }
.stage-wt .eyebrow { margin-bottom: clamp(10px, 1.6vh, 18px); }

.wt { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(14px, 2.2vh, 24px); }
.wt-right { display: contents; }
.stepbar { order: 1; }
.wt-narr { order: 2; }
.bill { order: 3; min-width: 0; }

.stepbar {
  position: sticky; top: calc(var(--header-h) + var(--banner-h, 48px)); z-index: 30;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.stepbar button {
  min-height: 46px; padding: 0 6px;
  border: 0; border-left: 1px solid var(--line-2);
  background: transparent; color: var(--text-2);
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.stepbar button:first-child { border-left: 0; }
.stepbar button:hover { color: var(--text); background: var(--accent-soft); }
.stepbar button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.stepbar button:focus-visible { outline-offset: -5px; }
.stepbar button[aria-pressed="true"]:focus-visible { outline-color: var(--on-accent); }

.step-text { font-size: 1.02rem; line-height: 1.45; min-height: 4.4em; }
.wt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.wt-controls .btn { min-height: 44px; padding: 0 20px; font-size: 0.93rem; }
.wt-controls [data-act="next"] { border-color: var(--accent); color: var(--accent); }
.wt-controls [data-act="next"]:hover { background: var(--accent-soft); }
.wt-controls .btn[aria-disabled="true"] { opacity: 0.4; cursor: default; pointer-events: none; }
.wt-reset {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0;
  border: 0; background: none; color: var(--text-2); cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.wt-reset:hover { color: var(--text); }
@media (min-width: 640px) and (max-width: 999px) {
  .step-text { min-height: 3em; }
}

/* The bill */
.bill-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.bill-figure {
  font-size: clamp(2.2rem, min(1.4rem + 3vw, 6.2vh), 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.bill-cap { font-size: 0.85rem; color: var(--text-3); }

.bill-table-wrap { margin-top: 10px; }
.bill-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.35; }
.bill-table thead th {
  padding: 4px 8px 6px; text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
}
.bill-table thead th.c-month { text-align: right; }
.bill-table tbody th, .bill-table tbody td {
  padding: 6px 8px; vertical-align: top; text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.bill-table tbody th { font-weight: 700; }
.bill-table .c-line { width: 33%; }
.bill-table .c-month { width: 10%; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.bill-table .c-see { color: var(--text-2); text-wrap: pretty; }
.bill-table .c-flag { width: 9%; white-space: nowrap; }
.bill-row > * { transition: background-color 0.18s ease, opacity 0.2s ease; }
.bill-row, .detail-row { transition: opacity 0.2s ease; }

.flag-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem;
  opacity: 0; visibility: hidden;
}
.mark { flex: none; width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }
.mark-listed { display: none; }
.has-flag .flag-tag { color: var(--flag); }
.is-kept .flag-tag { color: var(--accent); }

.wt[data-step="2"] .flag-tag, .wt[data-step="3"] .flag-tag {
  opacity: 1; visibility: visible;
  transition: opacity 0.18s ease calc(var(--i, 0) * 70ms), visibility 0s linear calc(var(--i, 0) * 70ms);
}
.wt[data-step="2"] .bill-row.has-flag > *, .wt[data-step="3"] .bill-row.has-flag > * {
  background-color: var(--flag-soft);
}
/* The row-by-row stagger belongs to step 2. In step 3 a row answers the press at once. */
.wt[data-step="2"] .bill-row.has-flag > * { transition: background-color 0.18s ease calc(var(--i, 0) * 70ms); }

/* Step 3 */
.detail-row td { padding: 0 !important; border: 0 !important; }
.detail-wrap { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.22s var(--ease), visibility 0.22s; }
.detail-inner { min-height: 0; overflow: hidden; }
.wt[data-step="3"] .detail-wrap { grid-template-rows: 1fr; visibility: visible; }
.wt[data-step="3"] .detail-row td { background-color: var(--flag-soft); border-bottom: 1px solid var(--line) !important; }
.wt[data-step="3"] .bill-row.has-flag > * { border-bottom-color: transparent; }
.decide {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  padding: 2px 8px 8px;
}
.decide-change { flex: 1 1 240px; font-size: 0.875rem; line-height: 1.4; color: var(--text); }
.decide-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 3px; }
.mini {
  min-height: 34px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: transparent; color: var(--text);
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.mini:active { transform: translateY(1px); }
.mini:hover { border-color: var(--accent); color: var(--accent); }
.mini-list { border-color: var(--accent); color: var(--accent); }
.mini-list:hover { background: var(--accent-soft); }
.mini-later[aria-pressed="true"] { background: var(--line); }
.listed-label { display: none; align-items: center; gap: 6px; color: var(--listed); font-weight: 700; font-size: 0.875rem; line-height: 1.3; }

/* Listed */
.wt[data-step="3"] .bill-row.is-listed > *, .wt[data-step="3"] .detail-row.is-listed td { background-color: var(--listed-soft); }
.is-listed .flag-tag { color: var(--listed); }
.is-listed .mark-flag { display: none; }
.is-listed .mark-listed { display: inline-block; color: var(--listed); }
.is-listed .listed-label { display: inline-flex; animation: slide-in 0.2s var(--ease) both; }
.is-listed .mini-later { display: none; }
.is-listed .mini-list { border-color: var(--line-2); color: var(--text); }
.is-listed .mini-list:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
@keyframes slide-in { from { transform: translateX(-4px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Kept and "not now" rows step back */
.wt[data-step="3"] .bill-row.is-kept, .wt[data-step="3"] .bill-row.is-later { opacity: var(--dim); }
.wt[data-step="3"] .bill-row.is-later > *, .wt[data-step="3"] .detail-row.is-later td { background-color: transparent; }
.wt[data-step="3"] .bill-row.is-kept .c-see, .wt[data-step="3"] .bill-row.is-later .c-see,
.wt[data-step="3"] .bl-row.is-kept .bl-see, .wt[data-step="3"] .bl-row.is-later .bl-see { color: var(--text); }
.detail-row.is-later .decide-change { opacity: var(--dim); }
.is-later .flag-tag { color: var(--text); }
/* Teal at this strength can't be read on cream. */
:root[data-theme="light"] .wt[data-step="3"] .is-kept .flag-tag,
:root[data-theme="light"] .wt[data-step="3"] .is-kept > .bl-head .bl-mark { color: var(--text); }

.nb { white-space: nowrap; }
.bill-note { margin-top: 10px; }
.closing { margin-top: 10px; font-weight: 700; color: var(--listed); line-height: 1.45; }

/* The list (small screens) */
.bill-list { display: none; margin-top: 10px; border-top: 1px solid var(--line-2); }
.bl-row { border-bottom: 1px solid var(--line); transition: opacity 0.2s ease; }
.bl-head {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 12px; align-items: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 7px 8px 7px 6px;
  border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: inherit; font-size: 0.97rem; line-height: 1.25;
}
.bl-head:focus-visible { outline-offset: -3px; }
.bl-head::after {
  content: ""; width: 7px; height: 7px; justify-self: end;
  border-right: 1.75px solid var(--text-3); border-bottom: 1.75px solid var(--text-3);
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
}
.is-open > .bl-head::after { transform: translateY(1px) rotate(-135deg); }
.bl-line { font-weight: 700; }
.bl-month { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-mark { display: inline-flex; opacity: 0; visibility: hidden; }
.bl-mark .mark { width: 14px; height: 14px; }
.has-flag > .bl-head .bl-mark { color: var(--flag); }
.is-kept > .bl-head .bl-mark { color: var(--accent); }
.is-listed > .bl-head .bl-mark { color: var(--listed); }
.wt[data-step="2"] .bl-mark, .wt[data-step="3"] .bl-mark {
  opacity: 1; visibility: visible;
  transition: opacity 0.18s ease calc(var(--i, 0) * 70ms), visibility 0s linear calc(var(--i, 0) * 70ms);
}
.wt[data-step="2"] .bl-row.has-flag, .wt[data-step="3"] .bl-row.has-flag { background-color: var(--flag-soft); }
.wt[data-step="2"] .bl-row.has-flag { transition: background-color 0.18s ease calc(var(--i, 0) * 70ms), opacity 0.2s ease; }
.wt[data-step="3"] .bl-row.is-listed { background-color: var(--listed-soft); }
.wt[data-step="3"] .bl-row.is-kept { opacity: var(--dim); }
.wt[data-step="3"] .bl-row.is-later { background-color: transparent; }
/* "Not now" fades the words once, and leaves the two buttons at full strength so it can be undone. */
.wt[data-step="3"] .bl-row.is-later > .bl-head,
.wt[data-step="3"] .bl-row.is-later .bl-see,
.wt[data-step="3"] .bl-row.is-later .decide-change { opacity: var(--dim); }
.bl-body { padding: 0 8px 12px 32px; display: grid; gap: 6px; }
.bl-see { color: var(--text-2); font-size: 0.97rem; line-height: 1.4; }
.bl-body .flag-tag { justify-self: start; }
.bl-body .decide { display: none; padding: 0; }
.wt[data-step="3"] .bl-body .decide { display: grid; gap: 8px; justify-content: stretch; }
.bl-body .decide-change { flex: none; }
.bl-body .decide-acts { justify-content: flex-start; padding: 0; }
.bl-body .mini { min-height: 44px; padding: 0 18px; }

/* The report sheet */
.sheet {
  order: 4;
  padding: 20px 22px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}
.sheet-title { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.fig-row { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: baseline; padding-block: 8px; border-bottom: 1px solid var(--line); }
.fig {
  font-size: var(--figure); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fig-cap { font-size: 0.97rem; font-weight: 700; line-height: 1.25; color: var(--text-2); }
.fig-row[data-kind="flagged"] .fig { color: var(--flag); }
.fig-row[data-kind="listed"] .fig { color: var(--listed); }
.wt[data-step="1"] .fig-row[data-kind="flagged"] .fig, .wt[data-step="1"] .fig-row[data-kind="listed"] .fig,
.wt[data-step="2"] .fig-row[data-kind="listed"] .fig { color: var(--text-3); }
.sheet-hold { padding-top: 10px; font-size: 0.92rem; font-weight: 700; line-height: 1.35; color: var(--listed); }
.sheet-where { margin-top: 10px; font-size: 0.85rem; line-height: 1.45; color: var(--text-2); }
.is-off { visibility: hidden; }

.wt-cta { order: 7; margin-top: 8px; }
.wt-cta .btn { width: 100%; }

html:not(.js) .stepbar, html:not(.js) .wt-controls { display: none; }
html:not(.js) .step-text { min-height: 0; }

@media (max-width: 639px) {
  .js .bill-table-wrap { display: none; }
  .js .bill-list { display: block; }
  html:not(.js) .bill-table { font-size: 0.85rem; }
  html:not(.js) .bill-table .c-flag { display: none; }
  /* Report panel as a compact strip that stays in reach; everything else about it follows in the page. */
  .sheet { display: contents; }
  .sheet-figs {
    order: 4;
    position: sticky; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter);
    background: var(--surface);
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 -12px 28px -18px rgba(0, 0, 0, 0.5);
  }
  .fig-row { display: block; padding: 0; border: 0; }
  .fig { display: block; font-size: 1.7rem; line-height: 1.1; }
  .fig-cap { display: block; font-size: 0.75rem; line-height: 1.2; }
  .sheet-hold { grid-column: 1 / -1; padding-top: 4px; font-size: 0.8rem; }
  .is-off { display: none; }
  .sheet-title { order: 5; padding: 0; border: 0; }
  .sheet-where { order: 6; margin: -8px 0 0; }
  .wt { gap: 12px; }
  .step-text { min-height: 5.8em; }
  .bill-figure { font-size: clamp(1.9rem, 9vw, 2.2rem); }
  .wt-banner p::before { display: none; }
}
@media (max-width: 639px) and (max-height: 500px) {
  /* A short screen can't spare the height: the step bar and the figures scroll with the page. The banner stays. */
  .stepbar, .sheet-figs { position: static; }
}
@media (min-width: 640px) {
  .sheet-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .fig-row { display: block; border-bottom: 0; }
  .fig { display: block; }
  .sheet-hold { grid-column: 1 / -1; }
  .wt-cta .btn { width: auto; }
  .stepbar { position: static; }
}
@media (min-width: 1000px) {
  .wt-banner .wrap { padding-block: 7px; }
  .wt {
    display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr); align-items: start;
  }
  .stepbar { grid-column: 1; grid-row: 1; }
  .bill { grid-column: 1; grid-row: 2; }
  .wt-right { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .wt-cta { margin-top: 12px; }
  .wt-cta .btn { width: 100%; }
  /* One screen at 1440 x 900: the head gives up a little height so all twelve lines fit. */
  .stage-wt { padding-top: clamp(10px, 1.8vh, 24px); }
  .stage-wt .eyebrow { padding-bottom: 12px; margin-bottom: clamp(8px, 1.1vh, 14px); }
  .wt-head h1 { font-size: clamp(2.8rem, min(1.6rem + 5.2vw, 8.2vh), 6.4rem); }
  .wt-head .lead { margin-top: clamp(6px, 0.9vh, 12px); }
  .wt { margin-top: clamp(10px, 1.5vh, 20px); gap: 12px 32px; }
  .bill-table tbody th, .bill-table tbody td { padding-block: 5px; }
  .bill-table thead th { padding-block: 2px 5px; }
  .bill-table-wrap { margin-top: 6px; }
  .stepbar button { min-height: 48px; }
  .sheet { margin-top: 12px; padding: 16px 22px 14px; }
  .sheet-title { padding-bottom: 10px; }
  .sheet-figs { display: block; }
  .fig-row { display: grid; border-bottom: 1px solid var(--line); }
  .step-text { min-height: 4.4em; }
  .stepbar button { font-size: 1rem; }
}
@media (min-width: 1000px) and (min-height: 800px) {
  .wt-right { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* ---------- Page change ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}

/* ---------- Reduced motion: nothing moves, every state changes at once ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: words on paper ---------- */

@media print {
  .site-header, .skip, .sky, .stepbar, .wt-controls, .page-actions, .wt-cta { display: none !important; }
  .wt-banner { position: static; }
  .stage { min-height: 0; }
  body { background: #fff; color: #000; }
}


/* Company page: the doors */
.arms { margin-top: clamp(28px, 5vh, 56px); scroll-margin-top: 90px; }
.arms-h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: clamp(14px, 2.4vh, 24px); }
.arm-status { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.72; margin-bottom: 6px; }
.arm-now { opacity: 1; }
.arm-core { max-width: 34em; }
.arms .panels { margin-top: clamp(16px, 2.6vh, 26px); }
@media (min-width: 900px) { .arms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.arms-band { margin-top: clamp(22px, 4vh, 40px); padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.arms-band-title { font-weight: 700; }
.arms-band-list { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; opacity: 0.8; font-size: 0.92rem; }

/* Constellation page: full screen, real-time 3D. Always dark: it is space. */
.cons-main { position: relative; height: calc(100svh - var(--header-h)); min-height: 560px; overflow: hidden; background: #03060f; color: #f2f1eb; isolation: isolate; }
.cons-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cons-head { position: absolute; left: 50%; width: min(90vw, 760px); margin-left: calc(min(90vw, 760px) / -2); text-align: center; top: clamp(14px, 3vh, 34px); pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.is-lit .cons-head { opacity: 1; transform: none; }
.cons-head .eyebrow { color: #9fe3de; }
.cons-h1 { font-size: clamp(1.7rem, 1rem + 2.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; text-shadow: 0 2px 40px rgba(3, 6, 15, 0.7); }
.cons-star { position: absolute; left: 0; top: 0; width: 132px; height: 132px; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 4px; background: none; border: 0; border-radius: 50%; color: rgba(242, 241, 235, 0.74); font: inherit; font-size: clamp(0.8rem, 0.7rem + 0.42vw, 1.02rem); font-weight: 700; letter-spacing: 0.005em; line-height: 1.15; text-align: center; cursor: pointer; opacity: 0; transition: color 0.3s ease, opacity 1.2s ease 0.3s; will-change: transform; text-shadow: 0 1px 14px rgba(3, 6, 15, 0.95); }
.is-lit .cons-star { opacity: 1; }
.cons-star span { display: block; transform: translateY(26px); max-width: 170px; }
.cons-star { text-decoration: none; }
.cons-star[hidden] { display: none; }
.cons-star:hover, .cons-star.is-on { color: #fff; }
.cons-star:focus-visible { outline: 2px solid #9fe3de; outline-offset: -6px; }
.cons-card { position: absolute; left: 50%; width: min(90vw, 560px); margin-left: calc(min(90vw, 560px) / -2); text-align: center; bottom: clamp(12px, 3vh, 30px); opacity: 0; transition: opacity 1.2s ease 0.4s; }
.is-lit .cons-card { opacity: 1; }
.cons-card.is-in > * { animation: consIn 0.7s cubic-bezier(.2,.7,.2,1) both; }
.cons-card.is-in > :nth-child(2) { animation-delay: 0.05s; }
.cons-card.is-in > :nth-child(3) { animation-delay: 0.1s; }
.cons-card.is-in > :nth-child(4) { animation-delay: 0.15s; }
@keyframes consIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cons-status { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 241, 235, 0.62); }
.cons-status-now { color: #9fe3de; }
.cons-name { margin-top: 4px; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; text-shadow: 0 2px 30px rgba(3, 6, 15, 0.8); }
.cons-line { margin-top: 6px; font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem); color: rgba(242, 241, 235, 0.82); text-shadow: 0 1px 14px rgba(3, 6, 15, 0.9); }
.cons-link { margin-top: 14px; }
.cons-link[hidden] { display: none; }
.no-gl .cons-gl { display: none; }
.no-gl .cons-head, .no-gl .cons-card { opacity: 1; transform: none; }
.no-gl .cons-star { display: none; }
@media (max-width: 640px) {
  .cons-star { width: 104px; height: 104px; font-size: 0.74rem; }
  .cons-star span { max-width: 110px; transform: translateY(22px); }
}
@media (prefers-reduced-motion: reduce) {
  .cons-head, .cons-star, .cons-card { transition: none; }
  .cons-card.is-in > * { animation: none; }
}

.cons-head .eyebrow::before, .cons-head .eyebrow::after { display: none; }
