/* ============================================================
   TEN GRAND SPACES — styles
   Tokens, site frame, nav, section shell and reveal are carried over
   verbatim from the Ten Grand site (laindoe/ten-grand, css/style.css).
   Spaces-specific sections are appended below. See
   DESIGN-SYSTEM.md before adding anything new.
   ============================================================ */

/* Self-hosted, as on the Ten Grand site (SIL OFL; licences in assets/fonts). */
@font-face {
  font-family: 'Oxanium';
  src: url('../assets/fonts/Oxanium-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Allura';
  src: url('../assets/fonts/Allura-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Italiana';
  src: url('../assets/fonts/Italiana-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --thermal-cherry: #EB1528;
  --thermal-red: #FF3220;
  --thermal-yellow: #FFDC00;
  --thermal-lime: #B8EF00;
  --thermal-green: #A8E000;
  --thermal-cyan: #00CDE8;
  --thermal-blue: #45CDF6;

  /* Pulled from Figma "intro" frame design context */
  --color-bg: #141414;
  --color-card: rgba(217, 217, 217, 0);
  --color-card-border: #f3f3f4;
  --color-text: #f3f3f4;
  --color-text-muted: rgba(243, 243, 244, 0.65);
  --color-accent: #d94f30;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-digital: "Oxanium", "Share Tech Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --digital-glow:
    0 0 4px rgba(255, 255, 255, .9),
    0 0 14px rgba(63, 214, 255, .75),
    0 0 30px rgba(251, 47, 123, .55);

  --frame-margin: 8px;
  --section-padding-x: clamp(20px, 6vw, 60px);
  --content-max-width: 480px;
  --measure-body: 34ch;
  --measure-subhead: 36ch;
  --measure-wide: 40ch;
  /* Space between a header divider (the rule under a section's own
     headline, or under any full-bleed content block that ends in one)
     and the text on either side of it. One shared value, used the same
     way in every section that has this kind of divider, instead of each
     section hand-picking its own 24/32/40px -- being applied section by
     section as a trial; see .amass__header and its content blocks for
     the first application. */
  --divider-gap: 32px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

/* Chromium's UA stylesheet for [hidden] (display: none) doesn't reach
   svg elements the way it does everything else -- a hidden <svg> still
   computes to display: inline (or block, once blockified by its own
   position: absolute) and keeps rendering. Every icon-toggle pattern on
   the site that puts [hidden] directly on an <svg> needs this to work. */
svg[hidden] {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Mobile browsers apply :focus after a tap (not just keyboard nav),
   and most icon buttons on this site never defined their own focus
   treatment -- so they fell back to the browser's native outline,
   which then visibly "stuck" on the tapped icon. Some of these icons
   (the AMASS share button, for one) also get refocused by script when
   a modal they opened closes, as a screen-reader/keyboard
   accessibility courtesy -- and that programmatic refocus alone is
   enough for :focus-visible to match and show an outline again, with
   no tap or keypress involved. Suppressing the outline for every
   plain button by default removes that entirely; a button that wants
   one back still can, same as .route__pin or .amass-flow__cta already
   do elsewhere, via its own more specific :focus-visible rule.
   -webkit-tap-highlight-color covers the separate tap-flash overlay
   WebKit/Chrome draw on touch, same reasoning. */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Site frame ---------- */
/* One continuous outline around the whole site, square corners. */

.site-frame {
  margin: var(--frame-margin);
  margin-bottom: 0;
  border: 1px solid var(--color-card-border);
}

/* The navigation supplies the frame's top edge; avoid stacked 1px lines.
   It also sits flush with the top of the screen: the sticky nav sticks at
   top:0, so a top margin here made the whole header jump up by that margin
   the moment scrolling began. */
.site-frame:has(> .nav) { border-top: 0; margin-top: 0; }

/* Never let the page pan sideways: a horizontal pan of one frame margin was
   shifting the whole site left when a scroll started. clip (unlike hidden)
   doesn't create a scroll container, so sticky positioning keeps working. */
html, body { overflow-x: clip; }

/* ---------- Site footer ---------- */

.site-footer {
  margin-bottom: 0;
  padding: 24px var(--frame-margin);
  text-align: center;
}

.site-footer__copyright {
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

/* Cover the strip above the sticky navigation during mobile viewport
   transitions. The mask moves with the header and cannot intercept taps. */
@media (max-width: 900px), (pointer: coarse) {
  .nav::before {
    content: "";
    position: absolute;
    /* Stop above the border instead of painting over its top pixel. */
    bottom: calc(100% + 1px);
    left: -1px;
    right: -1px;
    height: max(64px, env(safe-area-inset-top, 0px));
    background: var(--color-bg);
    pointer-events: none;
  }
}

.nav__inner {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto;
}

.nav__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 48px;
  padding: 12px 0;
  color: var(--color-text);
}

.nav__logo-mark {
  position: relative;
  display: block;
  width: 16.47px;
  height: 38px;
  overflow: hidden;
}

.nav__logo-mark img {
  position: absolute;
  max-width: none;
  width: 599.28%;
  height: 144.94%;
  left: -359.89%;
  top: -10.11%;
}

.nav__divider {
  flex-shrink: 0;
  width: 1px;
  background: var(--color-card-border);
}

.nav__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  font-size: clamp(0.5rem, 2.2vw, 0.7rem);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

/* The clamp above floors at 0.5rem, which is already its value from here
   down to ~365px -- so on the narrowest phones (iPhone SE class, ~320-
   340px) "TRANSMISSIONS" (the longest, nowrap label) no longer fits
   its flex:1 share and pushes the page into a few pixels of horizontal
   scroll. Shrinking the floor further only in this narrow band fixes
   that without touching the clamp's behavior at any width it was
   already scaling past 0.5rem. */
@media (max-width: 480px) {
  .nav__item {
    padding-inline: 6px;
  }
}

@media (max-width: 340px) {
  .nav__logo-box {
    width: 40px;
  }

  .nav__item {
    font-size: 0.45rem;
    padding-inline: 6px;
  }
}

.nav__item--inverse {
  background: var(--color-text);
  color: var(--color-bg);
}

.nav__item:not(.nav__item--inverse):focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

.nav__item--inverse:focus-visible {
  background: var(--color-bg);
  color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
  .nav__item:not(.nav__item--inverse):hover {
    background: var(--color-text);
    color: var(--color-bg);
  }

  .nav__item--inverse:hover {
    background: var(--color-bg);
    color: var(--color-text);
  }
}

.nav__dropdown {
  position: relative;
  flex: 1;
  display: flex;
}

.nav__dropdown-trigger {
  appearance: none;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

/* Share spare space equally around the labels, so shorter labels do not
   receive oversized cells. Keep the logo track and desktop grid intact. */
@media (max-width: 899px) {
  .nav__inner > .nav__item,
  .nav__inner > .nav__dropdown {
    flex: 1 1 auto;
  }
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: var(--nav-menu-width, 240px);
  min-width: 0;
  max-width: calc(100vw - 32px);
  /* top:100% alone (no margin adjustment) lands this panel's border
     box exactly where the nav's own border-bottom is drawn, with no
     rounding involved -- it's an exact percentage, not a fudged pixel
     offset. The panel stacks above the nav (z-index) and would paint
     over that line if it had no border of its own, so it draws its
     own border-top here as the visible divider; the earlier version
     of this rule additionally nudged position with a -1px margin on
     top of that already-exact placement, which is what introduced the
     sub-pixel gap on high-density screens -- removing that nudge (not
     the border) was the actual fix. */
  border: 1px solid var(--color-card-border);
  background: var(--color-bg);
  padding: 6px 0;
}

.nav__dropdown-menu[hidden] {
  display: none;
}

.nav__dropdown-link {
  padding: 13px 18px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--color-text);
  transition: background-color 180ms ease;
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus-visible {
  background: rgba(243, 243, 244, 0.08);
}

/* ---------- Layout / section shell ---------- */

.section {
  position: relative;
  padding: 60px var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* Clears the sticky nav on anchor-jump/scrollIntoView so section
     content (esp. a section-header flush against the top) isn't
     hidden underneath it. */
  scroll-margin-top: 64px;
}

.card {
  width: 100%;
  max-width: var(--content-max-width);
  padding: clamp(28px, 6vw, 48px) clamp(24px, 5vw, 40px);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- Intro section ---------- */

.section--intro {
  text-align: center;
}

.intro__logo {
  margin: 0 auto 40px;
  width: 233px;
  height: auto;
}

/* Broken into two lines in the markup. fit-content so the box is never
   narrower than the longer line in whatever font renders; a ch value
   would be a guess. */
.intro__headline {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 40px;
}

/* Below ~360px the longer line needs more than the 1rem floor allows
   and breaks into a third line. */
@media (max-width: 359px) {
  .intro__headline {
    font-size: 0.8125rem;
  }
}

.intro__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 40px;
  color: var(--color-text);
}

/* Centered, inherited from .section--intro. */
.intro__explainer {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto;
}


.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

/* ============================================================
   REUSABLE COMPONENTS
   Built only from Ten Grand patterns; see DESIGN-SYSTEM.md.
   ============================================================ */

/* ---------- Heat band (WebGL canvas from js/heat.js, CSS fallback) ----------
   Usage: <section class="heat-band"><canvas class="heat-band__canvas"
   data-voices-heat data-heat-variant="header" aria-hidden="true"></canvas>
   ...content...</section> */

.heat-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--color-card-border);
  background: #062d30;
}

/* Static fallback, same pools as .cw-hero::before in the Ten Grand site. */
.heat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 47% 65% at 49% 66%, #08191beF 25%, #062b2bd9 52%, transparent 100%),
    radial-gradient(ellipse 34% 55% at 3% -4%, #ff142a 12%, #ff3920 30%, #ffcf00 49%, #c9f000 61%, #16ca7a 77%, transparent 100%),
    radial-gradient(ellipse 40% 58% at 94% 8%, #ff102f 8%, #ff4420 28%, #ffcd00 48%, #b5ed00 61%, #00ceab 79%, transparent 100%),
    radial-gradient(ellipse 35% 53% at 0% 104%, #ff1730 14%, #ff4820 33%, #ffda00 53%, #9ddd00 65%, transparent 100%),
    radial-gradient(ellipse 34% 57% at 103% 107%, #ff252b 12%, #ff6a00 32%, #ebee00 53%, #22df76 70%, transparent 100%),
    radial-gradient(ellipse 32% 40% at 85% 70%, #009cfa 15%, #00c9d7 47%, transparent 100%),
    radial-gradient(ellipse 33% 42% at 2% 48%, #00a9fa 17%, #00cdb8 53%, transparent 100%),
    radial-gradient(ellipse 35% 45% at 39% -5%, #009bf1 15%, #00beaa 50%, transparent 100%);
}

.heat-band__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Digital readout (Oxanium) ---------- */

.digital-readout {
  font-family: var(--font-digital);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: var(--digital-glow);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons (the Ten Grand CTA: solid light, square, uppercase) ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--color-text);
  border-radius: 2px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 14px 18px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}

.btn::after {
  content: '  \2192';
  margin-left: 8px;
  font-size: 1rem;
}

.btn:hover,
.btn:focus-visible { background: #fff; }

/* Outlined variant: white stroke, no fill. Hover inverts only on devices
   with a real pointer, so a tap on a phone doesn't leave it stuck filled. */
.btn--ghost {
  background: transparent;
  color: var(--color-text);
}

.btn--ghost:focus-visible {
  background: transparent;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    background: var(--color-text);
    color: var(--color-bg);
  }
}

/* No trailing arrow. */
.btn--no-arrow::after { content: none; }

/* Outline CTA: copied from .director__cta on the Ten Grand site (the
   "Follow the Heart" / "Enter the Tunnel" buttons). Hover inverts only on
   fine-pointer devices; no focus ring or focus fill (requested), so a
   programmatic refocus after the modal closes leaves it plain. */
.outline-cta {
  display: inline-block;
  border: 1px solid var(--color-card-border);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  padding: 16px 32px;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.outline-cta:focus-visible { outline: none; }

@media (hover: hover) and (pointer: fine) {
  .outline-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
  }
}

/* Red solid variant (HQ's .btn--red pattern, in the builder red). */
.btn--red {
  background: var(--thermal-red);
  border-color: var(--thermal-red);
  color: #fff;
}

.btn--red:hover,
.btn--red:focus-visible { background: var(--thermal-red); }

@media (hover: hover) and (pointer: fine) {
  .btn--red:hover {
    background: var(--color-text);
    color: var(--thermal-red);
  }
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Keyboard focus ring. */
a:focus-visible,
button:focus-visible:not(.btn--ghost):not(.outline-cta) {
  outline: 2px solid var(--thermal-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav: button items ---------- */
/* Reset so a <button> nav item (Move In) matches the link cells. */
button.nav__item {
  appearance: none;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Nav: current page ---------- */
/* Inactive links are gray; the current page is white with a glowing green
   "live" dot beside it. */
.nav__item:not(.nav__item--inverse) {
  color: var(--color-text-muted);
}

.nav__item[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  gap: 0.55em;
}

.nav__item[aria-current="page"]::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  color: var(--thermal-green);
  background: currentColor;
  box-shadow: 0 0 4px 1px currentColor, 0 0 10px 3px color-mix(in srgb, currentColor 45%, transparent);
  animation: nav-live-pulse 4.5s ease-in-out infinite, nav-live-colors 9s linear infinite;
}

/* On phones the dot sits underneath the label instead of beside it. */
@media (max-width: 899px) {
  .nav__item[aria-current="page"] { position: relative; gap: 0; }
  .nav__item[aria-current="page"]::before {
    position: absolute;
    left: 50%;
    bottom: 14px;
    margin-left: -3px;
  }
}

@keyframes nav-live-colors {
  0%, 100% { color: var(--thermal-red); }
  17% { color: var(--thermal-yellow); }
  34% { color: var(--thermal-lime); }
  51% { color: var(--thermal-cyan); }
  68% { color: var(--thermal-blue); }
  84% { color: var(--thermal-cherry); }
}

@keyframes nav-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__item[aria-current="page"]::before { animation: none; }
}

/* ---------- Modal (Move In) ----------
   Hairline panel on the dark background, square corners, uppercase
   tracked labels: the same language as the nav and dropdown. */

html.is-modal-open { overflow: hidden; }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.88);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
}

.modal__panel:focus { outline: none; }

.modal__bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-card-border);
}

.modal__title {
  flex: 1;
  padding: 16px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.modal__close {
  appearance: none;
  flex-shrink: 0;
  width: 48px;
  border: 0;
  border-left: 1px solid var(--color-card-border);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

.modal__body { min-height: 160px; }

/* Secondary action: small text link, bottom of the modal. */
.modal__secondary {
  padding: 16px 18px;
  border-top: 1px solid var(--color-card-border);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.modal__login {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.modal__login:hover,
.modal__login:focus-visible { color: var(--color-text); }

/* ---------- Home hero text ---------- */

.intro__cta { margin-top: 32px; }

/* Red all-caps offer line. --thermal-red (not cherry) so it clears 4.5:1
   on the dark background; same role as the red .dilemma__cue on the
   Ten Grand site. */
.intro__offer {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--thermal-red);
}

/* The Spaces logo is the page's h1. Its file is cropped tight, so width and
   margins are set to make the lettering the same size, and sit the same
   distance from its neighbours, as the company logo (logo-white.png at 233px,
   which has transparent padding around it): GRAND is ~199px wide in both. */
.intro__heading { font-size: 0; line-height: 0; }
.intro__heading .intro__logo {
  width: 208px;
  height: auto;
  margin-top: 6px;
  margin-bottom: 53px;
}

/* ---------- "Your business needs some space" section ---------- */

.section--space {
  min-height: auto;
  border-top: 1px solid var(--color-card-border);
  padding: 48px var(--section-padding-x) 60px;
}

.space {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

/* The artwork is on pure black. "lighten" keeps its colours and lets the
   black take on the page's #141414, so there is no visible box. On phones
   and tablets it runs edge to edge, breaking out of the section padding to
   reach the frame borders (same technique as the full-bleed headers). */
.space__art {
  display: block;
  width: calc(100% + 2 * var(--section-padding-x));
  max-width: none;
  height: auto;
  margin: 0 calc(-1 * var(--section-padding-x)) 32px;
  mix-blend-mode: lighten;
}

/* On wide screens full width would be taller than the screen, so the art is
   capped and centred. */
@media (min-width: 900px) {
  .space__art {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 32px;
  }
}

.space__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.space__body {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1em;
}

.space__body:last-of-type { margin-bottom: 32px; }

/* Scroll cue (not interactive): red all-caps label (same role as .dilemma__cue on the Ten Grand
   site) with a bouncing arrow beneath it. */
.tour-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  color: var(--thermal-red);
  text-align: center;
}

.tour-cue__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tour-cue__arrow { display: block; }

/* Sits under the brain section's paragraph. */
.floors .tour-cue { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .tour-cue__arrow { animation: tour-cue-bounce 1.6s ease-in-out infinite; }
}

@keyframes tour-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Red all-caps cue ----------
   Same size and weight as the cue lines on the Ten Grand site (.dilemma__cue:
   0.75rem, 600, 0.05em), in thermal red with a soft glow. Used for "Now
   Serving" and "Click to clear thoughts." */

.cue-red {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--thermal-red);
  text-shadow:
    0 0 6px rgba(255, 50, 32, 0.8),
    0 0 14px rgba(255, 50, 32, 0.5);
}

/* ---------- "Can your business move without you?" section ---------- */

.section--thoughts {
  min-height: auto;
  border-top: 1px solid var(--color-card-border);
  padding: 48px var(--section-padding-x) 60px;
}

.thoughts {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.thoughts__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.thoughts__cue { margin-bottom: 24px; }

/* Brain artwork with thought clouds above it. Like the illustration above,
   it runs edge to edge on phones and is capped on wide screens. The artwork
   is a transparent WebP (its black background removed), so it sits directly
   on the page. Positions below are percentages of the stage (--x/--y: cloud
   centre; --ox/--oy: the spot on the brain the thought comes from). */
.thoughts__stage {
  position: relative;
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 32px;
}

.thoughts__art {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .thoughts__stage { width: 100%; max-width: 640px; margin: 0 auto 32px; }
}

/* Where a thought comes from lights up: its own fold of the brain, filled in
   the thought's colour. Each fold's outline is a mask image
   (assets/images/brain-sections/), found by splitting the artwork's black
   folds at their natural narrow points. One thought per fold. The layer is
   screen-blended, so the white lines stay white. */
.thoughts__glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.thought__glow {
  --thought-accent: var(--color-text);
  position: absolute;
  left: calc(var(--sx) * 1%);
  top: calc(var(--sy) * 1%);
  width: calc(var(--sw) * 1%);
  height: calc(var(--sh) * 1%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: radial-gradient(
    ellipse at 40% 35%,
    color-mix(in srgb, var(--thought-accent) 60%, #fff) 0%,
    var(--thought-accent) 55%,
    color-mix(in srgb, var(--thought-accent) 90%, #000) 100%
  );
  filter: saturate(1.25) drop-shadow(0 0 5px var(--thought-accent));
  opacity: 1;
}

.thoughts__list {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.thought {
  --thought-accent: var(--color-text);
  /* Candy body: a bright highlight toward the top-left, the pure role colour
     through the middle, a slightly deeper tone at the bottom. */
  --thought-glass: radial-gradient(
    ellipse 90% 80% at 30% 22%,
    color-mix(in srgb, var(--thought-accent) 55%, #fff) 0%,
    var(--thought-accent) 48%,
    color-mix(in srgb, var(--thought-accent) 78%, #000) 100%
  );
  --thought-ink: #141414;
  position: absolute;
  inset: 0;
}

.thought--yellow { --thought-accent: var(--thermal-yellow); }
.thought--cyan { --thought-accent: var(--thermal-cyan); }
.thought--red { --thought-accent: var(--thermal-red); }
.thought--green { --thought-accent: var(--thermal-green); }
/* Role colours: create yellow, build red, fund green, support cyan. */

/* A candy-coated thought cloud in a role colour: puffy shape (clip-path),
   saturated gradient body, a glossy white sheen across the top and a small
   specular spot, a light rim and a coloured glow. */
.thought__cloud {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 24%;
  aspect-ratio: 100 / 74;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--thought-accent) 70%, transparent));
}

.thought__glass {
  position: absolute;
  inset: 0;
  clip-path: url(#cloud-clip);
  background: var(--thought-glass);
}

/* Gloss: a curved white sheen over the top half and a bright specular spot. */
.thought__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 27% 21%, rgba(255, 255, 255, 0.95) 0 4%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(ellipse 85% 48% at 45% 2%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.18) 62%, rgba(255, 255, 255, 0) 100%);
}

.thought__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: color-mix(in srgb, var(--thought-accent) 35%, #fff);
  stroke-width: 1.6;
}

.thought__text {
  position: absolute;
  inset: 18% 14% 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--thought-ink);
  font-size: clamp(0.56rem, 2.6vw, 0.9rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* The trail of small bubbles from the brain up to the cloud, like the
   thought-bubble emoji. They sit on the line from cloud to origin. */
.thought__dot {
  position: absolute;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--thought-accent) 35%, #fff);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 14%, rgba(255, 255, 255, 0) 32%),
    var(--thought-glass);
  box-shadow: 0 0 10px color-mix(in srgb, var(--thought-accent) 70%, transparent);
}

.thought__dot--1 {
  left: calc((var(--x) + (var(--ox) - var(--x)) * 0.62) * 1%);
  top: calc((var(--y) + (var(--oy) - var(--y)) * 0.62) * 1%);
  width: 3.6%;
}

.thought__dot--2 {
  left: calc((var(--x) + (var(--ox) - var(--x)) * 1) * 1%);
  top: calc((var(--y) + (var(--oy) - var(--y)) * 1) * 1%);
  width: 2.2%;
}

/* Pop-out, once the section scrolls into view: the area lights up, then the
   trail of bubbles and the cloud rise from it. After that the clouds drift
   and the lit areas breathe. scale, translate and opacity are separate
   properties, so these animations don't fight each other or the centring
   transform. */
@media (prefers-reduced-motion: no-preference) {
  .thoughts__stage.is-visible .thought__glow {
    animation:
      thought-glow-on 0.9s ease-out calc(0.6s + var(--i) * 0.55s) both,
      thought-glow-breathe 4.5s ease-in-out calc(1.5s + var(--i) * 0.55s) infinite alternate;
  }

  .thoughts__stage.is-visible .thought__dot--2 {
    animation: thought-pop 0.4s var(--ease-out) calc(0.9s + var(--i) * 0.55s) both;
  }

  .thoughts__stage.is-visible .thought__dot--1 {
    animation: thought-pop 0.4s var(--ease-out) calc(1.05s + var(--i) * 0.55s) both;
  }

  .thoughts__stage.is-visible .thought__cloud {
    transform-origin: 50% 100%;
    animation:
      thought-pop 0.6s var(--ease-out) calc(1.2s + var(--i) * 0.55s) both,
      thought-drift 6s ease-in-out calc(2s + var(--i) * 0.55s) infinite;
  }

  /* Before the section is seen, everything waits. */
  .thoughts__stage:not(.is-visible) :is(.thought__glow, .thought__dot, .thought__cloud) { opacity: 0; }
}

@keyframes thought-glow-on {
  from { opacity: 0; scale: 0.92; }
  to { opacity: 1; scale: 1; }
}

@keyframes thought-glow-breathe {
  from { opacity: 1; }
  to { opacity: 0.7; }
}

@keyframes thought-pop {
  from { opacity: 0; scale: 0.2; }
  to { opacity: 1; scale: 1; }
}

@keyframes thought-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

.thoughts__body {
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

/* ---------- "From your head to headquarters" section ---------- */

.section--floors {
  min-height: auto;
  border-top: 1px solid var(--color-card-border);
  padding: 48px var(--section-padding-x) 60px;
}

.floors {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.floors__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.floors__sub {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.floors__intro {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 24px;
}

.floors__close {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 32px;
  margin-bottom: 24px;
}

/* Timeline: one dot per area, joined by a line. A dot is a button; it turns
   red and reveals more info when open. Several can be open at once. */
.tl { list-style: none; }

.tl__item {
  position: relative;
  padding: 0 0 18px 44px;
}

.tl__item:last-child { padding-bottom: 0; }

/* The line to the next dot. */
.tl__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -2px;
  width: 2px;
  background: var(--color-text);
}

.tl__toggle {
  appearance: none;
  display: block;
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* A comfortable tap area around the dot and title. */
.tl__toggle::after {
  content: "";
  position: absolute;
  inset: -10px -8px -6px -44px;
}

.tl__dot {
  position: absolute;
  left: -44px;
  top: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-text);
  border-radius: 50%;
  background: var(--color-bg);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tl__toggle[aria-expanded="true"] .tl__dot {
  background: var(--thermal-red);
  border-color: var(--thermal-red);
  box-shadow: 0 0 10px rgba(255, 50, 32, 0.6);
}

@media (hover: hover) and (pointer: fine) {
  .tl__toggle:hover .tl__dot { border-color: var(--thermal-red); }
}

.tl__toggle:focus-visible { outline: 2px solid var(--thermal-cyan); outline-offset: 6px; }

.tl__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 24px;
  text-transform: uppercase;
}

.tl__desc {
  margin-top: 2px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.tl__more {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.tl__more[hidden] { display: none; }

/* Full-width divider above the floor plan: breaks out of the section padding
   to reach the frame borders. */
.floors__rule {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 40px calc(-1 * var(--section-padding-x)) 32px;
  border: 0;
  border-top: 1px solid var(--color-card-border);
}

/* The floor plan runs edge to edge on phones, capped on wide screens. */
.floors__plan {
  display: block;
  width: calc(100% + 2 * var(--section-padding-x));
  max-width: none;
  height: auto;
  margin: 0 calc(-1 * var(--section-padding-x)) 16px;
}

@media (min-width: 900px) {
  .floors__plan { width: 100%; max-width: 640px; margin: 0 auto 16px; }
}

/* ---------- Tour stops: "01 / PUBLIC PRESENCE" and the sections after it ---------- */

.section--stop {
  min-height: auto;
  border-top: 1px solid var(--color-card-border);
  padding: 48px var(--section-padding-x) 0;
}

.stop {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.stop__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.stop__num { color: var(--thermal-red); }

.stop__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.stop__body {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Illustration runs edge to edge on phones (capped on wide screens). */
.stop__art {
  position: relative;
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x));
}

.stop__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .stop__art { width: 100%; max-width: 640px; margin: 0 auto; }
}

/* ---------- Product intro: "Digital Home" (working title) ---------- */

.product {
  width: 100%;
  max-width: 560px;
  margin-top: 24px;
  text-align: center;
}

/* The floor plan image has empty space built into its bottom edge. */
.product--cta { margin-top: -36px; }

.product__eyebrow { margin-bottom: 10px; }

.product__title {
  font-size: clamp(2rem, 11vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.product__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.product__body {
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

.product__body + .product__body { margin-top: 1em; }

.product__note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: left;
}

/* The offer sits above the button, in white. */
.product__offer {
  margin: 16px 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Move In, solid red with white words (same size as the outline CTA). */
.outline-cta--red {
  background: var(--thermal-red);
  border-color: var(--thermal-red);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .outline-cta--red:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--thermal-red);
  }
}

/* ---------- Closing section: "Make room for what's next" ---------- */

.section--final { padding-bottom: 60px; }

.final {
  width: 100%;
  max-width: 560px;
  margin-top: 32px;
  text-align: center;
}

.final__title {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.final .product__offer { margin-top: 20px; }

/* Small text link under a Move In button (same quiet style as the modal's Log In). */
.more-info {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 6px 4px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.more-info:hover,
.more-info:focus-visible { color: var(--color-text); }

/* ---------- Now Serving page: an offer ("Welcome Center") ---------- */

.section--offer {
  min-height: auto;
  padding: 36px var(--section-padding-x) 60px;
}

.offer {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.offer__eyebrow { margin-bottom: 10px; }

.offer__title {
  font-size: clamp(2.25rem, 12vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.offer__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.offer__body {
  font-size: 1rem;
  line-height: 1.5;
}

/* Illustration: edge to edge on phones, capped on wide screens. */
.offer__art {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 28px calc(-1 * var(--section-padding-x)) 28px;
}

.offer__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .offer__art { width: 100%; max-width: 640px; margin: 28px auto; }
}

.offer__package {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.offer__price {
  font-size: clamp(1.75rem, 9vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.offer__beta {
  margin: 6px 0 20px;
  font-size: 1rem;
  text-align: center;
}

.offer__cta { display: block; margin: 0 auto; }

/* A button with no destination yet: reads as inactive, can't be activated. */
.outline-cta[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* A second offer under the first, set off by a full-width rule. */
.section--offer-next {
  border-top: 1px solid var(--color-card-border);
  padding-top: 48px;
}

.offer__title--sm { font-size: clamp(2rem, 11vw, 3.25rem); }

.offer__body + .offer__body { margin-top: 1em; }

.offer--center { text-align: center; }

.offer__limited {
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.offer--center .offer__beta { margin: 0 0 20px; }

/* Small muted line under an offer button. */
.offer__note {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* ---------- Tools page ---------- */

.section--tools {
  min-height: auto;
  align-items: stretch;
  padding: 36px var(--section-padding-x) 60px;
}

.tools__head { max-width: 960px; width: 100%; margin: 0 auto; }
.tools__eyebrow { margin-bottom: 10px; }

.tools__title {
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 14px;
}

.tools__lede { font-size: 1rem; line-height: 1.45; }

/* Each tool: text and button, then its illustration; side by side on wide screens. */
.tool {
  width: calc(100% + 2 * var(--section-padding-x));
  max-width: none;
  margin: 36px calc(-1 * var(--section-padding-x)) 0;
  padding: 36px var(--section-padding-x) 0;
  border-top: 1px solid var(--color-card-border);
  display: grid;
  gap: 24px;
}

.tool__name {
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.tool__desc { font-size: 1rem; line-height: 1.4; margin-bottom: 20px; max-width: 34ch; }

.tool__img {
  display: block;
  width: calc(100% + 2 * var(--section-padding-x));
  max-width: none;
  height: auto;
  margin: 0 calc(-1 * var(--section-padding-x));
}

.tool__cta { display: inline-flex; align-items: center; gap: 10px; }
.tool__play { flex: none; }

@media (min-width: 900px) {
  .tools__head, .tool, .tools__library, .tools__close { max-width: 960px; margin-left: auto; margin-right: auto; }
  .tool { width: 100%; grid-template-columns: 1fr 1.25fr; align-items: center; padding-left: 0; padding-right: 0; gap: 40px; }
  .tool__img { width: 100%; margin: 0; }
}

.tools__library {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 48px calc(-1 * var(--section-padding-x)) 0;
  padding: 36px var(--section-padding-x) 0;
  border-top: 1px solid var(--color-card-border);
}

.tools__library-title {
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.tools__library-lede { font-size: 1rem; line-height: 1.4; margin-bottom: 20px; }

.tools__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 20px;
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
}

.tools__search svg { flex: none; }

.tools__search input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.tools__search input::placeholder { color: var(--color-text-muted); }
.tools__search:focus-within { border-color: var(--thermal-cyan); }

.tools__table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; }

.tools__table th,
.tools__table td { padding: 10px 8px 10px 0; vertical-align: top; }

.tools__table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-card-border);
}

.tools__table tbody tr { border-bottom: 1px solid rgba(243, 243, 244, 0.35); }
.tools__table tbody tr[hidden] { display: none; }
.tools__table tbody th { font-weight: 700; }

.tools__empty,
.tools__more { margin-top: 14px; font-size: 0.85rem; font-style: italic; color: var(--color-text-muted); }

.tools__close {
  width: 100%;
  margin-top: 40px;
  padding-top: 36px;
  text-align: left;
}

.tools__close-title {
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.tools__close-lede { font-size: 1rem; line-height: 1.4; margin-bottom: 20px; }

/* Wider modal for a tool demo, with room for the live tool. */
.modal__panel--wide { max-width: 960px; }

.modal__body--tool {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(60vh, 520px);
}

.modal__placeholder { color: var(--color-text-muted); font-size: 0.9rem; }

/* Visually hidden, still read by screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Support page: the letter to the creator ----------
   A paper letter on the dark page, as in the reference: white sheet, black
   serif text, the company logo (the white logo file inverted to black) and the
   HQ globe in the letterhead. The serif is a system stack; no font is added. */

.section--letter {
  min-height: auto;
  padding: 32px var(--section-padding-x) 60px;
}

.letter {
  width: 100%;
  max-width: 560px;
  background: #fdfdfc;
  color: #111;
  --letter-pad: clamp(26px, 7vw, 44px);
  --letter-inset: 10px;
  --letter-bleed: calc(var(--letter-pad) - var(--letter-inset));
  position: relative;
  padding: var(--letter-pad) var(--letter-pad) var(--letter-inset);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* A black frame set in from the paper's edge. */
.letter::before {
  content: "";
  position: absolute;
  inset: var(--letter-inset);
  border: 1.5px solid #111;
  pointer-events: none;
}

/* Dividers run the full width of the frame, edge to edge. */
.letter__head {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3vw, 16px);
  margin: calc(-1 * var(--letter-bleed)) calc(-1 * var(--letter-bleed)) 0;
  padding: var(--letter-bleed) var(--letter-bleed) 16px;
  border-bottom: 1px solid #111;
}

.letter__logo {
  flex: none;
  width: clamp(64px, 22vw, 100px);
  height: auto;
  filter: invert(1);
}

/* The vertical rule runs the full height of the letterhead: frame top to the rule below. */
.letter__rule { flex: none; align-self: stretch; width: 1px; margin-top: calc(-1 * var(--letter-bleed)); margin-bottom: -16px; background: #111; }

.letter__tag {
  flex: 1;
  font-family: var(--font-body);
  font-size: clamp(0.45rem, 1.9vw, 0.62rem);
  letter-spacing: 0.22em;
  line-height: 1.7;
  text-transform: uppercase;
  color: #222;
}

.letter__globe { flex: none; width: clamp(40px, 13vw, 64px); height: auto; }

.letter__body { padding: clamp(24px, 7vw, 40px) 0 6px; }

.letter__body p {
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  line-height: 1.55;
  margin-bottom: 1.1em;
}

.letter__greeting {
  font-size: clamp(1.4rem, 6.5vw, 1.9rem) !important;
  font-style: italic;
  line-height: 1.2 !important;
  margin-bottom: 1em !important;
}

.letter__sign {
  font-style: italic;
  font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
  margin: 1.4em 0 0 !important;
}

/* The signature: a script face, with the printed name beneath it. */
.letter__body .letter__signature {
  font-family: "Allura", "Segoe Script", "Snell Roundhand", cursive;
  font-size: clamp(1.9rem, 9vw, 3.2rem);
  line-height: 1.1;
  margin: 4px 0 0;
  white-space: nowrap;
}

.letter__body .letter__name {
  font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  margin: 0 0 clamp(14px, 4vw, 24px);
}

/* Footer: one unbroken full-width rule, with the name centred in the
   rectangle between it and the bottom of the frame. */
.letter__foot {
  margin: 0 calc(-1 * var(--letter-bleed));
  padding: 12px 0;
  border-top: 1px solid #111;
  text-align: center;
}

.letter__brand {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 2.2vw, 0.7rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Support page: "The Ten Grand Standard" ----------
   Serif type as in the owner's reference: the same system serif stack as the
   letter (no font added). The violet rule is the one colour not already in
   the site's palette; it follows the reference. */

.section--standard {
  min-height: auto;
  padding: 40px var(--section-padding-x) 48px;
  border-bottom: 1px solid var(--color-card-border);
}

.std {
  width: 100%;
  max-width: 560px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

.std__mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.std__mark span { font-size: 0.6rem; letter-spacing: 0.45em; text-align: center; color: var(--color-text-muted); }

.std__title {
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 18px;
}

.std__line { display: block; width: 64px; height: 3px; margin-bottom: 20px; background: #a23cff; }

.std__intro { font-size: 1rem; line-height: 1.5; max-width: 40ch; }

/* The Ten Grand Standard seal. */
.std__seal {
  display: block;
  width: clamp(150px, 44vw, 190px);
  height: auto;
  margin: 28px auto 8px;
}

.std__list { list-style: none; margin-top: 24px; --std-card: clamp(84px, 24vw, 100px); }

/* Each principle is a row between two full-width rules. Its number sits in a
   square card at the left; the card's right edge is the vertical divider, and
   it runs the full height of the row, touching the rule above and below. */
.std__item {
  display: flex;
  align-items: stretch;
  min-height: var(--std-card);
  border: 1px solid var(--color-card-border);
  margin-top: -1px;
}

.std__item:first-child { margin-top: 0; }

.std__num {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--std-card);
  border-left: 1px solid var(--color-card-border);
  border-right: 1px solid var(--color-card-border);
  font-size: clamp(2rem, 9.5vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
}

.std__text {
  align-self: center;
  padding: 12px clamp(10px, 3vw, 16px) 12px clamp(12px, 4vw, 20px);
}

.std__name { font-size: clamp(1.2rem, 5.5vw, 1.5rem); font-weight: 600; line-height: 1.15; }

.std__desc { margin-top: 4px; font-size: clamp(0.8rem, 3.4vw, 0.95rem); line-height: 1.35; }

@media (max-width: 359px) {
  .std__desc { font-size: 0.78rem; }
}

@media (min-width: 760px) {
  .std { max-width: 720px; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; }
  .std__mark, .std__title, .std__line, .std__intro { grid-column: 1; }
  .std__seal { grid-column: 2; grid-row: 2 / span 3; margin: 0; align-self: start; }
  .std__list { grid-column: 1 / -1; }
}

/* ---------- Support page: "Ten Grand Cares" ---------- */

.section--cares {
  min-height: auto;
  padding: 32px var(--section-padding-x) 48px;
  border-bottom: 1px solid var(--color-card-border);
}

.cares { width: 100%; max-width: 640px; }

.cares__eyebrow {
  margin-bottom: 14px;
  text-align: center;
}

.cares__title {
  text-align: center;
  font-size: clamp(2rem, 9.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

.cares__sub {
  margin-top: 8px;
  text-align: center;
  font-size: clamp(1.1rem, 5.2vw, 1.6rem);
  line-height: 1.2;
}

.cares__art {
  width: 100%;
  max-width: 420px;
  margin: 20px auto 8px;
}

.cares__img { display: block; width: 100%; height: auto; }

.cares__body { text-align: center; font-size: 1rem; line-height: 1.5; margin-bottom: 28px; }

/* Section labels: small tracked caps, then a rule to the edge. */
.cares__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.cares__label::after { content: ""; flex: 1; height: 1px; background: var(--color-text); }
.cares__label--gap { margin: 32px 0 16px; }

.amen { border: 1px solid var(--color-card-border); border-radius: 8px; padding: 16px 12px 12px; }
.amen .cares__label { margin: 0 4px 14px; }

.amen__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.amen__tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
}

.amen__icon { flex: none; width: 34px; height: 34px; filter: drop-shadow(0 0 4px rgba(255, 220, 0, 0.35)); }

.amen__tile > div { min-width: 0; }
.amen__name { font-size: 0.85rem; overflow-wrap: anywhere; font-weight: 700; line-height: 1.15; }
.amen__desc { margin-top: 3px; font-size: 0.72rem; line-height: 1.3; }

.avail { display: grid; gap: 12px; }

.avail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
}

.avail__btn--red { background: var(--thermal-red); border-color: var(--thermal-red); color: #fff; }

.avail__btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.avail__btn--soon { cursor: default; }
.avail__tag { padding-left: 14px; border-left: 1px solid var(--color-card-border); font-size: 1rem; font-style: italic; font-weight: 400; }

/* On phones the icon sits above its text so each tile stays narrow-proof. */
@media (max-width: 599px) {
  .amen__tile { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (min-width: 760px) {
  .amen__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avail { grid-template-columns: 1fr 1fr; }
}

/* ---------- Move In modal content ---------- */

.mi { padding: 20px 18px 20px; text-align: center; }

.mi__beta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; }

.mi__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--thermal-red); box-shadow: 0 0 8px var(--thermal-red); }

.mi__sub { margin: 0 0 14px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

.mi__title { font-size: clamp(1.6rem, 7vw, 2rem); font-weight: 700; line-height: 1.1; margin: 0 0 10px; }

.mi__text { font-size: 0.95rem; line-height: 1.45; margin-bottom: 20px; }

/* One bordered card: status meter, the note, then the Apply button. */
.mi__card { border: 1px solid var(--color-card-border); padding: 16px 14px 14px; margin-bottom: 4px; text-align: left; }

.mi__status[hidden] { display: none; }

.mi__head { display: flex; align-items: center; gap: 8px; }

.mi__label { font-size: clamp(0.58rem, 2.6vw, 0.74rem); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

.mi__tag { flex: none; padding: 5px 8px; background: var(--thermal-red); border: 1px solid var(--thermal-red); color: #fff; font-size: clamp(0.56rem, 2.5vw, 0.7rem); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }

.mi__big { margin: 14px 0 12px; font-size: clamp(1.7rem, 8vw, 2.1rem); font-weight: 700; line-height: 1.1; }

/* The meter: a track of thin dark stripes; the filled part shows the heat
   ramp in the same stripes, cut off at the occupied percentage. */
.mi__bar {
  position: relative;
  height: 34px;
  border: 1px solid rgba(243, 243, 244, 0.7);
  background: repeating-linear-gradient(90deg, #2a2a2a 0 3px, #161616 3px 6px);
}

.mi__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% - var(--rest, 100%));
  background: linear-gradient(90deg, #45CDF6 0%, #00CDE8 16%, #A8E000 36%, #B8EF00 50%, #FFDC00 68%, #FF3220 88%, #EB1528 100%);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px);
  mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px);
}

.mi__row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }

.mi__spots { margin-top: 10px; font-size: 0.85rem; }

.mi__rule { margin: 16px 0; border: 0; border-top: 1px solid rgba(243, 243, 244, 0.35); }

.mi__note { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.4; }

.mi__apply {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--thermal-red);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.mi__apply { text-align: center; }

.mi__perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }

.mi__perks li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.8rem; line-height: 1.25; }

/* ---------- Residency application (apply.html) ---------- */

.flowbar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-card-border);
}

.flowbar__title {
  flex: 1;
  padding: 16px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flowbar__close {
  display: grid;
  place-items: center;
  width: 56px;
  border-left: 1px solid var(--color-card-border);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .flowbar__close:hover { background: var(--color-text); color: var(--color-bg); }
}

.section--apply { min-height: auto; align-items: center; justify-content: flex-start; padding: 28px var(--section-padding-x) 48px; }

.apply { width: 100%; max-width: 480px; text-align: left; }

.apply__steps { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.apply__label, .apply__count { margin: 0; }
.apply__count { font-variant-numeric: tabular-nums; }

.apply__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 12px 0 28px; }
.apply__bar i { height: 4px; background: rgba(243, 243, 244, 0.22); }
.apply__bar i.is-on { background: var(--thermal-red); }

.apply__sub { margin-bottom: 8px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }

.apply__title { font-size: clamp(1.9rem, 9vw, 2.6rem); font-weight: 700; line-height: 1.05; margin-bottom: 12px; }

.apply__lede { font-size: 1rem; line-height: 1.4; margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 600; }

.field input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(243, 243, 244, 0.55);
  border-radius: 10px;
  background: #000;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease;
}

.field input::placeholder { color: var(--color-text-muted); }
.field input:focus { border-color: var(--thermal-cyan); }
.field input[aria-invalid="true"] { border-color: var(--thermal-red); }

.field__help { margin-top: 8px; font-size: 0.85rem; line-height: 1.35; color: var(--color-text-muted); }

.field__error { margin: 0 0 16px; font-size: 0.9rem; color: var(--thermal-red); }
.field__error[hidden] { display: none; }

.apply__continue {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--thermal-red);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .apply__continue:hover { background: var(--color-text); color: var(--thermal-red); }
}

.apply__alt { margin-top: 18px; text-align: center; font-size: 0.9rem; }
.apply__alt a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-text-muted); transition: color 180ms ease; }
.apply__alt a:hover, .apply__alt a:focus-visible { color: var(--color-text); }

/* ---------- Residency application: verify your email ---------- */

.verify { text-align: center; }
.verify .apply__steps { text-align: left; }

.verify__icon { display: block; margin: 8px auto 20px; }

.verify__title { margin-bottom: 14px; }

.verify__lede { font-size: 1.1rem; line-height: 1.4; margin-bottom: 18px; }

.verify__email { margin-bottom: 24px; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }

.verify__code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }

.verify__code input {
  min-width: 0;
  aspect-ratio: 1 / 1.15;
  padding: 0;
  border: 1px solid var(--color-card-border);
  border-radius: 0;
  background: #000;
  color: var(--color-text);
  font: inherit;
  font-size: clamp(1.4rem, 7vw, 1.9rem);
  text-align: center;
  outline: none;
  transition: border-color 180ms ease;
}

.verify__code input::placeholder { color: rgba(243, 243, 244, 0.55); }
.verify__code input:focus { border-color: var(--thermal-cyan); }

.verify .field__error { text-align: left; }

.verify__alt { margin-top: 18px; font-size: 1rem; }

.verify__link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.verify__alt:last-child .verify__link { color: var(--color-text-muted); }
.verify__link:hover, .verify__link:focus-visible { color: #fff; }

/* ---------- Residency application: steps 2 to 4 ---------- */

.field legend, .field > label { display: block; margin-bottom: 8px; padding: 0; font-size: 1rem; font-weight: 600; }
.field legend span { font-weight: 400; color: var(--color-text-muted); }
fieldset.field { min-width: 0; margin-left: 0; margin-right: 0; padding: 0; border: 0; }

.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(243, 243, 244, 0.55);
  border-radius: 10px;
  background-color: #000;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease;
}

.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field textarea::placeholder { color: var(--color-text-muted); }
.field select:focus, .field textarea:focus, .social select:focus, .social input:focus { border-color: var(--thermal-cyan); }

.field select, .social select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f3f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.field input[type="number"], .field input[type="date"] { color-scheme: dark; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.money { display: flex; align-items: center; border: 1px solid rgba(243, 243, 244, 0.55); border-radius: 10px; background: #000; padding-left: 16px; transition: border-color 180ms ease; }
.money:focus-within { border-color: var(--thermal-cyan); }
.money span { color: var(--color-text-muted); font-size: 1rem; }
.money input { border: 0; background: transparent; padding-left: 8px; }

/* Social media rows: a platform list, a handle, and more rows on request. */
.social__list { display: grid; gap: 10px; }
.social__row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; align-items: center; }
.social__row:has(.social__remove) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 44px; }

.social select, .social input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 14px;
  border: 1px solid rgba(243, 243, 244, 0.55);
  border-radius: 10px;
  background-color: #000;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms ease;
}

.social input::placeholder { color: var(--color-text-muted); }

.social__add, .social__remove {
  appearance: none;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.social__add { margin-top: 10px; padding: 8px 0; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.social__add[hidden] { display: none; }
.social__remove { width: 44px; height: 44px; border: 1px solid rgba(243, 243, 244, 0.55); border-radius: 10px; font-size: 1.3rem; line-height: 1; }

@media (max-width: 430px) {
  .social__row { grid-template-columns: minmax(0, 1fr); }
  .social__row:has(.social__remove) { grid-template-columns: minmax(0, 1fr) 44px; }
  .social__row:has(.social__remove) select,
  .social__row:has(.social__remove) input { grid-column: 1; }
  .social__row:has(.social__remove) .social__remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Industry cards: a neon-outlined, tickable card in a thermal colour. */
.industries__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }

.industry {
  --accent: var(--color-text);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 14px 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.industry--cyan { --accent: var(--thermal-cyan); }
.industry--red { --accent: var(--thermal-red); }
.industry--lime { --accent: var(--thermal-lime); }
.industry--yellow { --accent: var(--thermal-yellow); }

.industry input { position: absolute; opacity: 0; pointer-events: none; }

.industry__box {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-text);
  border-radius: 3px;
}

.industry input:checked ~ .industry__box { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.industry input:checked ~ .industry__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #141414; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.industry input:focus-visible ~ .industry__box { outline: 2px solid var(--thermal-cyan); outline-offset: 2px; }
.industry:has(input:checked) { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent); }

.industry__name { color: var(--color-text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.industry--other { flex-direction: row; min-height: 56px; padding: 12px 44px 12px 16px; justify-content: flex-start; }

.industries__other { margin: 14px 0 0; }
.industries__other[hidden] { display: none; }

/* The generic ".field label" rule is for form labels; the industry cards are
   labels too, so they restate their own layout at higher specificity. */
.field .industry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.field .industry--other {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 56px;
  padding: 12px 44px 12px 16px;
}

/* Back + Continue side by side. */
.apply__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }

.apply__back {
  display: grid;
  place-items: center;
  border: 1px solid var(--color-card-border);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .apply__back:hover { background: var(--color-text); color: var(--color-bg); }
}

/* Range choices: one tappable row per range. */
.choices__list { display: grid; gap: 10px; }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(243, 243, 244, 0.55);
  border-radius: 10px;
  background: #000;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice__dot { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--color-text); border-radius: 50%; transition: border-color 180ms ease, box-shadow 180ms ease; }

.choice:has(input:checked) { border-color: var(--thermal-red); background: color-mix(in srgb, var(--thermal-red) 12%, #000); }
.choice input:checked ~ .choice__dot { border-color: var(--thermal-red); background: radial-gradient(circle, var(--thermal-red) 0 45%, transparent 50%); box-shadow: 0 0 8px var(--thermal-red); }
.choice input:focus-visible ~ .choice__dot { outline: 2px solid var(--thermal-cyan); outline-offset: 3px; }

/* Same as the industry cards: restate the row layout over ".field label". */
.field .choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

/* ---------- Application: service interests ---------- */

.apply__lede--muted { color: var(--color-text-muted); }

.interests__list { display: grid; gap: 10px; }

.field .interest {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(243, 243, 244, 0.55);
  border-radius: 10px;
  background: #000;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.interest input { position: absolute; opacity: 0; pointer-events: none; }
.interest svg { flex: none; }
.interest__dot { flex: none; width: 24px; height: 24px; border: 1.5px solid rgba(243, 243, 244, 0.7); border-radius: 50%; transition: border-color 180ms ease, box-shadow 180ms ease; }
.interest:has(input:checked) { border-color: var(--thermal-red); background: color-mix(in srgb, var(--thermal-red) 12%, #000); }
.interest input:checked ~ .interest__dot { border-color: var(--thermal-red); background: radial-gradient(circle, var(--thermal-red) 0 42%, transparent 46%); box-shadow: 0 0 8px var(--thermal-red); }
.interest input:focus-visible ~ .interest__dot { outline: 2px solid var(--thermal-cyan); outline-offset: 3px; }

.apply__alt .verify__link { color: var(--color-text-muted); }
.apply__alt .verify__link:hover, .apply__alt .verify__link:focus-visible { color: #fff; }

/* ---------- Application: Make yourself at home (last page) ---------- */

.picks__help { margin: -2px 0 12px; }
.picks__title { margin-top: 4px; font-size: 1.15rem !important; letter-spacing: 0.02em; text-transform: uppercase; }
.picks__list { display: grid; gap: 6px; }

.field .pick {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 9px 2px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__dot { flex: none; width: 24px; height: 24px; border: 1.5px solid rgba(243, 243, 244, 0.7); border-radius: 50%; transition: border-color 180ms ease, box-shadow 180ms ease; }
.pick input:checked ~ .pick__dot { border-color: var(--thermal-red); background: radial-gradient(circle, var(--thermal-red) 0 42%, transparent 46%); box-shadow: 0 0 8px var(--thermal-red); }
.pick input:focus-visible ~ .pick__dot { outline: 2px solid var(--thermal-cyan); outline-offset: 3px; }

.apply__rule { margin: 28px 0 20px; border: 0; border-top: 1px solid rgba(243, 243, 244, 0.35); }

/* ---------- Application: review page ---------- */

.rev { margin: 8px 0 24px; border-top: 1px solid var(--color-card-border); }
.rev__item { border-bottom: 1px solid var(--color-card-border); }

.rev__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
}

.rev__sum::-webkit-details-marker { display: none; }
.rev__title { font-size: 1.1rem; font-weight: 700; }

.rev__chev { flex: none; width: 10px; height: 10px; border: solid var(--color-text); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 180ms ease; }
.rev__item[open] .rev__chev { transform: rotate(-135deg); }
.rev__sum:focus-visible { outline: 2px solid var(--thermal-cyan); outline-offset: 2px; }

.rev__body { padding: 0 2px 18px; }

.rev__rows { display: grid; gap: 4px; margin: 0 0 14px; }
.rev__rows dt { margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.rev__rows dd { margin: 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.rev__line { display: block; }
.rev__none { color: var(--color-text-muted); font-style: italic; }
p.rev__none { margin: 0 0 14px; }

.rev__edit { display: inline-block; font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--thermal-red); }
.rev__edit:hover, .rev__edit:focus-visible { color: #fff; }

.apply__continue[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.need__help { margin: -2px 0 10px; }
