/* ============================================================
   Live Smart Electric & Solar — Direction B "Resilience / Editorial"
   Warm paper editorial · Fraunces display · Newsreader text
   Electric Blue #2B6DA8 · Solar Orange #F79A1E
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F8F3EA;
  --paper-deep: #EFE7D8;
  --paper-line: #D9CDB8;
  --ink: #182430;
  --ink-soft: #46525E;
  --night: #14202C;
  --night-line: #2B3B4A;
  --on-night: #D5DDE4;
  --on-night-soft: #9DAAB6;
  --blue: #2B6DA8;
  --blue-deep: #1F5586;
  --blue-sky: #7FB2DC;
  --orange: #F79A1E;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6.5rem; } /* clear the sticky header on anchor jumps */
body {
  margin: 0;
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(24, 36, 48, 0.028) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.2rem;
  z-index: 200;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip-link:focus-visible { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type utilities ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
}
.kicker::before {
  content: '';
  width: 2.2rem;
  height: 3px;
  background: var(--orange);
  flex: none;
}
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: '';
  width: 2.2rem;
  height: 3px;
  background: var(--orange);
  flex: none;
}
.on-night .kicker, .kicker--night { color: var(--on-night-soft); }

.lede {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.on-night .lede { color: var(--on-night); }

.measure { max-width: var(--measure); }

.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 560;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--blue);
}

.pullquote {
  border-left: 4px solid var(--orange);
  margin: 2.4rem 0;
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote em, .pullquote strong { color: var(--blue-deep); font-style: italic; }
.on-night .pullquote { color: var(--paper); }
.on-night .pullquote em { color: var(--blue-sky); }

.rule-double {
  border: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 5px;
  margin: 0;
}
.on-night .rule-double { border-color: var(--paper-line); opacity: 0.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.7rem;
  border: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(24, 36, 48, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(24, 36, 48, 0.22);
  color: var(--paper);
}
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(24, 36, 48, 0.2); }

.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--orange:hover { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 rgba(24,36,48,0.18); }
.on-night .btn--ghost, .on-blue .btn--ghost { color: #fff; border-color: #fff; }
.on-night .btn--ghost:hover, .on-blue .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,0.25); }
.btn--paper:hover { color: var(--ink); }
.btn--small { padding: 0.65rem 1.1rem; font-size: 0.72rem; box-shadow: 3px 3px 0 rgba(24,36,48,0.15); }

.textlink {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-deep);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.25rem;
}
.textlink:hover { color: var(--ink); }
.on-night .textlink { color: var(--blue-sky); }
.on-night .textlink:hover { color: var(--paper); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  align-items: center;
}

/* ---------- Header ---------- */
.topline {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topline .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}
.topline p { margin: 0; white-space: nowrap; }
.topline .topline-right { color: var(--on-night-soft); }
@media (max-width: 700px) {
  .topline .topline-right { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  box-shadow: 0 1px 0 rgba(24, 36, 48, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}
.brand { flex: none; display: inline-flex; }
.brand img { width: clamp(170px, 22vw, 235px); height: auto; mix-blend-mode: multiply; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--orange); }
.primary-nav a[aria-current='page'] { border-bottom-color: var(--orange); color: var(--blue-deep); }
.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    display: none;
    box-shadow: 0 18px 30px rgba(24, 36, 48, 0.14);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
  }
  .primary-nav li { border-bottom: 1px solid var(--paper-line); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .primary-nav a { display: block; padding: 1rem 0.2rem; font-size: 0.9rem; }
  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.on-night { background: var(--night); color: var(--on-night); }
.on-night h1, .on-night h2, .on-night h3, .on-night h4 { color: var(--paper); }
.on-paper-deep { background: var(--paper-deep); }
.on-blue { background: var(--blue); color: #fff; }
.on-blue h2, .on-blue h3 { color: #fff; }
.on-orange { background: var(--orange); color: var(--ink); }

.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  max-width: 21ch;
}
.section-head--center { text-align: center; }
.section-head--center h2 { margin-inline: auto; }

/* Numeral rendered via ::before so it stays out of the text/a11y layer */
.chapter-no::before { content: attr(data-no); }
.chapter-no {
  font-family: var(--display);
  font-weight: 340;
  font-style: italic;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(43, 109, 168, 0.55);
  user-select: none;
  pointer-events: none;
  position: absolute;
  top: clamp(1rem, 3vw, 2.5rem);
  right: var(--gutter);
}
.on-night .chapter-no { -webkit-text-stroke-color: rgba(127, 178, 220, 0.4); }
@media (max-width: 700px) {
  .chapter-no { font-size: 2.9rem; top: 1.1rem; opacity: 0.75; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero h1 {
  font-size: clamp(2.55rem, 6.4vw, 5rem);
  font-weight: 500;
  max-width: 17ch;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 430;
  color: var(--blue);
}
.hero .lede { margin-bottom: 2.2rem; }
.hero-ctas { margin-bottom: 1.4rem; }
.hero-secondary { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; padding-top: 1rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.hero-contents {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(24, 36, 48, 0.12);
  margin-top: 0.6rem;
}
.hero-contents h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  margin: 0;
  padding: 0.85rem 1.3rem;
}
.hero-contents ol { list-style: none; margin: 0; padding: 0.4rem 1.3rem 0.8rem; }
.hero-contents li { border-bottom: 1px dotted var(--paper-line); }
.hero-contents li:last-child { border-bottom: 0; }
.hero-contents a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.78rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
}
.hero-contents a:hover .t { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.hero-contents .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-deep);
  flex: none;
}
.hero-contents .t {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 470;
}
.hero-contents .p {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-contents { display: none; }
}

.hero-intro {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--paper-line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}
.hero-intro-label {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--blue-deep);
  line-height: 1.35;
}
.hero-intro-copy p { max-width: var(--measure); }
@media (max-width: 800px) {
  .hero-intro { grid-template-columns: 1fr; }
}

/* ---------- Editorial numbered lists ---------- */
.ed-list { list-style: none; margin: 0; padding: 0; }
.ed-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--night-line);
  align-items: baseline;
}
.ed-list .no {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-size: 1.5rem;
  color: var(--orange);
  min-width: 2.4ch;
}
.ed-list h3 { font-size: 1.35rem; margin: 0 0 0.3rem; }
.ed-list p { margin: 0; color: var(--on-night-soft); max-width: 60ch; }

/* ---------- Problem grid (dark) ---------- */
.consequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
  margin: 2.5rem 0;
}
.consequence-grid > div {
  background: var(--night);
  padding: 1.4rem 1.5rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 420;
  color: var(--on-night);
  line-height: 1.4;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.consequence-grid .tick { color: var(--orange); font-family: var(--mono); font-size: 0.8rem; flex: none; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  counter-reset: step;
}
.step {
  border-top: 3px solid var(--ink);
  padding-top: 1.4rem;
  position: relative;
}
.step .step-no {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--blue);
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.45rem; }
.step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Services index (home) ---------- */
.svc-index { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.svc-index li { border-bottom: 1px solid var(--paper-line); }
.svc-index a {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.35rem 0.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.16s ease, padding-left 0.16s ease;
}
.svc-index a:hover { background: rgba(43, 109, 168, 0.07); padding-left: 1rem; }
.svc-index .no {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.08em;
}
.svc-index .name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 470;
  line-height: 1.25;
}
.svc-index .name small {
  display: block;
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.25rem;
  max-width: 58ch;
}
.svc-index .arrow {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 1.1rem;
  align-self: center;
}
@media (max-width: 640px) {
  .svc-index a { grid-template-columns: 2.4rem 1fr; }
  .svc-index .arrow { display: none; }
}

/* ---------- Trust / credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.cred {
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  padding: 1.15rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 3px 3px 0 rgba(24, 36, 48, 0.1);
}
.cred .mark { color: var(--blue-deep); font-size: 1rem; flex: none; }

/* ---------- Plan cards ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  align-items: stretch;
}
.plan-card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 1.8rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
  position: relative;
}
.plan-card--featured { border-color: var(--orange); border-width: 3px; }
.plan-flag {
  position: absolute;
  top: -0.85rem;
  left: 1.2rem;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}
.plan-card .plan-kind {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 0.4rem;
}
.plan-card h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.plan-price {
  font-family: var(--display);
  font-weight: 560;
  font-size: 2.3rem;
  color: var(--ink);
  margin: 0.2rem 0 0.4rem;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
}
.plan-save {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 0.6rem;
}
.plan-card p.plan-desc { color: var(--ink-soft); font-size: 1rem; }
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.2rem;
  border-top: 1px solid var(--paper-line);
}
.plan-card ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--paper-line);
  font-size: 0.98rem;
  position: relative;
}
.plan-card ul li::before {
  content: '+';
  position: absolute;
  left: 0.1rem;
  color: var(--blue-deep);
  font-family: var(--mono);
  font-weight: 700;
}
.plan-card .btn { margin-top: auto; }

/* Mini plan teasers (home, dark section) */
.plan-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2.4rem 0;
}
.plan-mini {
  border: 1px solid var(--night-line);
  background: rgba(248, 243, 234, 0.035);
  padding: 1.5rem 1.4rem;
  border-radius: 3px;
}
.plan-mini h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--paper); }
.plan-mini .plan-price { color: var(--orange); font-size: 2rem; margin: 0; }
.plan-mini .plan-price span { color: var(--on-night-soft); }
.plan-mini p { color: var(--on-night-soft); font-size: 0.95rem; margin: 0.5rem 0 0; }

.advantage {
  border: 2px solid var(--orange);
  border-radius: 3px;
  background: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  box-shadow: 6px 6px 0 rgba(247, 154, 30, 0.25);
}
.advantage .badge-50 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 0.95;
  color: var(--blue);
  border-right: 3px solid var(--orange);
  padding-right: 1.5rem;
}
.advantage .badge-50 small { display: block; font-size: 0.95rem; font-style: italic; font-weight: 400; color: var(--ink-soft); }
.advantage h3 { font-size: 1.5rem; }
.advantage p { max-width: 60ch; }
.advantage ul { columns: 2; column-gap: 2.4rem; margin-bottom: 0; }
@media (max-width: 720px) {
  .advantage { grid-template-columns: 1fr; }
  .advantage .badge-50 { border-right: 0; border-bottom: 3px solid var(--orange); padding: 0 0 1rem; }
  .advantage ul { columns: 1; }
}

/* ---------- Services page ---------- */
.svc-article {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--paper-line);
}
.svc-article:last-of-type { border-bottom: 0; }
.svc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem 2rem;
  align-items: baseline;
  margin-bottom: 1.6rem;
}
.svc-head .no {
  font-family: var(--display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--blue);
}
.svc-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0; max-width: 24ch; }
.svc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 4rem);
}
.svc-copy p:first-of-type { max-width: var(--measure); }
.svc-aside {
  border-left: 3px solid var(--orange);
  padding-left: 1.5rem;
  align-self: start;
}
.svc-aside h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.svc-aside ul { list-style: none; padding: 0; margin: 0; }
.svc-aside li {
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--paper-line);
  font-size: 0.99rem;
}
.svc-aside li:last-child { border-bottom: 0; }
.svc-ctas { margin-top: 1.8rem; }
@media (max-width: 860px) {
  .svc-body { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.mission-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
}
.mission-panel > div { background: var(--night); padding: clamp(1.8rem, 4vw, 3rem); }
.mission-panel h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.mission-panel p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 420;
  line-height: 1.4;
  color: var(--paper);
  margin: 0;
}
.mission-panel p small { display: block; font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--on-night-soft); margin-top: 1rem; line-height: 1.6; }
@media (max-width: 800px) { .mission-panel { grid-template-columns: 1fr; } }

.value-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: start;
}
.value-entry:last-of-type { border-bottom: 0; }
.value-entry .no {
  font-family: var(--display);
  font-style: italic;
  font-weight: 340;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--blue);
  min-width: 3.2rem;
  padding-top: 0.3rem;
}
.value-entry h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.value-entry .value-credo {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--blue-deep);
  margin-bottom: 0.7rem;
}
.value-entry p { max-width: var(--measure); color: var(--ink-soft); margin-bottom: 0.6em; }
@media (max-width: 640px) {
  .value-entry { grid-template-columns: 1fr; gap: 0.6rem; }
}

.story-flow p { max-width: var(--measure); }
.story-flow .pullquote { max-width: 30ch; }

.why-checklist {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem 2.4rem;
}
.why-checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 440;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--night-line);
  color: var(--on-night);
}
.why-checklist .mark { color: var(--orange); font-family: var(--mono); flex: none; }

/* ---------- Assessment ---------- */
.score-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  margin: 2rem 0;
}
.score-scale > div { background: var(--paper); padding: 1.1rem 1.2rem; }
.score-scale .range { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--blue-deep); display: block; margin-bottom: 0.3rem; }
.score-scale .tier-name { font-family: var(--display); font-size: 1.1rem; font-weight: 500; }

.quiz-section {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(24, 36, 48, 0.12);
  margin-bottom: 2rem;
  overflow: hidden;
}
.quiz-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
}
.quiz-section-head h3 { margin: 0; font-size: 1.25rem; color: var(--paper); }
.quiz-section-head .sec-no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--orange); display: block; margin-bottom: 0.3rem; }
.live-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  flex: none;
}
.quiz-items { padding: 0.6rem 1.5rem 1rem; }
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--paper-line);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1.5;
  transition: background-color 0.15s ease;
}
.check-item:last-child { border-bottom: 0; }
.check-item:hover { background: rgba(43, 109, 168, 0.06); }
.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  margin: 0.15rem 0 0;
  cursor: pointer;
  position: relative;
  flex: none;
}
.check-item input:checked { background: var(--blue); border-color: var(--blue); }
.check-item input:checked::after {
  content: '';
  position: absolute;
  left: 0.42rem;
  top: 0.14rem;
  width: 0.36rem;
  height: 0.72rem;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-item input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.quiz-actions {
  text-align: center;
  padding: 1.5rem 0 0;
}
.quiz-actions .hint { font-style: italic; color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.9rem; }

/* Results */
.results-panel { margin-top: 2.5rem; }
.results-card {
  background: var(--night);
  color: var(--on-night);
  border: 3px solid var(--orange);
  border-radius: 4px;
  padding: clamp(1.8rem, 5vw, 3rem);
  box-shadow: 8px 8px 0 rgba(247, 154, 30, 0.3);
}
.results-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--night-line);
  margin-bottom: 1.8rem;
}
.total-wrap { text-align: center; }
.total-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-night-soft); display: block; margin-bottom: 0.4rem; }
#total-score {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.8rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--orange);
  display: block;
}
.total-of { font-family: var(--mono); font-size: 0.8rem; color: var(--on-night-soft); display: block; margin-top: 0.4rem; }
#score-tier {
  font-family: var(--display);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--paper);
  display: block;
  margin-bottom: 0.6rem;
}
#tier-explain { font-size: 1.1rem; color: var(--on-night); max-width: 56ch; margin: 0 0 0.8rem; }
#tier-next { font-family: var(--display); font-style: italic; font-size: 1.08rem; color: var(--blue-sky); margin: 0; max-width: 56ch; }
@media (max-width: 720px) {
  .results-top { grid-template-columns: 1fr; text-align: center; }
  #tier-explain, #tier-next { margin-inline: auto; }
}

.section-scores {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}
.section-scores li {
  border: 1px solid var(--night-line);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  background: rgba(248, 243, 234, 0.04);
}
.section-scores .sec-name { display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-soft); margin-bottom: 0.35rem; }
.section-score { font-family: var(--display); font-weight: 560; font-size: 1.5rem; color: var(--paper); }
.section-score small { font-size: 0.85rem; color: var(--on-night-soft); font-weight: 400; }

.results-ctas { border-top: 1px solid var(--night-line); padding-top: 1.8rem; }
.results-ctas p { color: var(--on-night); }

/* Contact block on assessment */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem 1.6rem;
  margin: 1.6rem 0 0.6rem;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.field input, .field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }

.report-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2.4rem 0;
}
.report-tier {
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  padding: 1.6rem 1.5rem;
  box-shadow: 4px 4px 0 rgba(24, 36, 48, 0.1);
}
.report-tier h3 { font-size: 1.25rem; }
.report-tier .plan-price { font-size: 1.9rem; }
.report-tier p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

.faq { border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 480;
  padding: 1.2rem 0.3rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--orange); font-weight: 700; font-size: 1.2rem; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { max-width: var(--measure); color: var(--ink-soft); padding: 0 0.3rem 1.2rem; }

/* ---------- CTA bands ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2.2rem; }
.cta-band .cta-row { justify-content: center; }
.on-blue .lede { color: rgba(255, 255, 255, 0.92); }

.assess-band { position: relative; overflow: hidden; }
.on-orange .kicker::before, .on-orange .kicker::after { background: var(--ink); }
.assess-band h2 { max-width: 20ch; }
.assess-band .lede { color: rgba(24, 36, 48, 0.85); }
.assess-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: 2.5rem;
  align-items: center;
}
.assess-dial {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px rgba(24, 36, 48, 0.75);
  text-align: right;
  user-select: none;
}
.assess-dial small { display: block; font-size: 0.22em; font-style: normal; font-family: var(--mono); letter-spacing: 0.25em; -webkit-text-stroke: 0; color: var(--ink); margin-top: 0.8rem; text-transform: uppercase; }
@media (max-width: 760px) {
  .assess-band-inner { grid-template-columns: 1fr; }
  .assess-dial { text-align: left; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 20ch; }
.page-hero h1 em { font-style: italic; font-weight: 420; color: var(--blue); }
.page-hero .lede { margin-bottom: 0; }
.page-hero .cta-row { margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); border-top: 4px solid var(--orange); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-brand img { width: 130px; margin-bottom: 1.2rem; }
.footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-area { font-size: 0.95rem; color: var(--on-night-soft); max-width: 34ch; }
.site-footer h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 0.3rem 0; }
.site-footer a { color: var(--on-night); text-decoration: none; font-size: 0.98rem; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--orange); }
.footer-badges li {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night);
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.4rem 0;
}
.footer-badges .mark { color: var(--orange); flex: none; }
.footer-contact-note { font-size: 0.9rem; font-style: italic; color: var(--on-night-soft); margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--night-line);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}
.footer-bottom p { margin: 0; }
@media (max-width: 940px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ----------
   Content is ALWAYS visible by default (screenshot/print/no-JS safe).
   1. Load: a one-time CSS keyframe entrance staggers the in-view elements.
   2. Scroll: main.js arms .rv-hide only on the user's first scroll, and
      only for elements well below the fold; IntersectionObserver then
      reveals them as the reader arrives. */
/* Entrance animates TRANSFORM ONLY — opacity never drops, so a viewport
   resize / print / full-page capture that restarts CSS animations can
   never blank the content (worst case: a 22px offset for one frame). */
@keyframes rv-enter {
  from { transform: translateY(22px); }
  to { transform: none; }
}
.rv {
  animation: rv-enter 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--rv-delay, 0s);
}
.rv-hide {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--rv-delay, 0s);
}
.rv-hide.rv-in { opacity: 1; transform: none; }

/* ============================================================
   THE NIGHT THE GRID FAILED — signature experience layer
   Storm plates, kinetic type, Figure 01, lit-house reveal.
   All decorative layers: aria-hidden + pointer-events none.
   ============================================================ */

/* ---------- Storm plates (home) ---------- */
.scene-block { margin: 0; padding: 0; }
.hero .scene-block { margin-top: clamp(2.6rem, 5vw, 4rem); }
.scene {
  position: relative;
  height: clamp(320px, 58vh, 560px);
  overflow: hidden;
  border-block: 2px solid var(--ink);
  /* no-JS / print fallback compositions; the canvas paints over these */
  background: linear-gradient(to bottom, #3E4E64 0%, #7A686C 58%, #C97F4A 100%);
}
.scene[data-scene='night'] {
  background: linear-gradient(to bottom, #0A121B 0%, #131D28 62%, #1D2834 100%);
}
.scene[data-scene='dawn'] {
  background: linear-gradient(to bottom, #466080 0%, #BA8A68 58%, #EFA050 100%);
}
.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scene-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.85rem var(--gutter) 0;
  max-width: 92ch;
  margin-inline: auto;
}
.plate-no {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-right: 0.4rem;
}
.scene-hint {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* rain drifting through the dark chapters */
.storm-rain > .scene-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.storm-rain > .container { position: relative; z-index: 1; }
.storm-rain > .chapter-no { z-index: 1; }

/* the whole page catches the lightning — kept very subtle */
.storm-flash {
  position: fixed;
  inset: 0;
  background: #DCE8F6;
  opacity: 0;
  pointer-events: none;
  z-index: 400;
  mix-blend-mode: screen;
}

@media print {
  .scene-canvas, .storm-flash { display: none; }
}

/* ---------- Kinetic editorial type ---------- */
/* Outlined numerals charge with ink as their chapter passes the reader */
.chapter-no { color: rgba(43, 109, 168, calc(var(--numfill, 0) * 0.38)); }
.on-night .chapter-no { color: rgba(127, 178, 220, calc(var(--numfill, 0) * 0.3)); }
.svc-head .no { color: rgba(43, 109, 168, calc(var(--numfill, 0) * 0.5)); }
.value-entry .no { color: rgba(43, 109, 168, calc(var(--numfill, 0) * 0.5)); }

/* Pull-quotes emerge lightning-struck (opacity never drops below 1) */
@keyframes pq-strike {
  0%   { text-shadow: 0 0 0 rgba(170, 205, 245, 0); border-left-color: var(--orange); }
  7%   { text-shadow: 0 0 22px rgba(170, 205, 245, 0.95), 0 0 3px rgba(255, 255, 255, 0.7); border-left-color: #EAF2FB; }
  13%  { text-shadow: 0 0 8px rgba(170, 205, 245, 0.35); }
  19%  { text-shadow: 0 0 26px rgba(170, 205, 245, 0.75); border-left-color: #EAF2FB; }
  100% { text-shadow: 0 0 0 rgba(170, 205, 245, 0); border-left-color: var(--orange); }
}
.pq-strike { animation: pq-strike 1.2s ease-out 1; }

/* Hero display serif: the key word underlines itself as the page opens */
@keyframes uline-draw { from { background-size: 0% 0.07em; } to { background-size: 100% 0.07em; } }
.hero h1 em {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left 0.96em / 100% 0.07em;
  animation: uline-draw 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
}

/* ---------- Figure 01 — The First 72 Hours ---------- */
.fig72 {
  border: 1px solid var(--night-line);
  border-radius: 4px;
  background: rgba(248, 243, 234, 0.03);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  margin: 2.8rem 0 0.4rem;
}
.fig-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.7rem;
}
.fig72 h3 { color: var(--paper); font-size: clamp(1.35rem, 2.8vw, 1.9rem); margin-bottom: 0.5rem; }
.fig72-intro { color: var(--on-night-soft); max-width: 62ch; font-size: 1.02rem; }
.fig72-scrub { margin: 1.5rem 0 0.3rem; }
.fig72-hourlab {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.55rem;
}
.fig72-hourlab output {
  color: var(--orange);
  display: inline-block;
  min-width: 2ch;
  font-size: 1.05rem;
}
#fig72-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
#fig72-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--orange) calc(var(--fig-progress, 0) * 100%), var(--night-line) 0);
}
#fig72-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9.5px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 4px rgba(10, 16, 24, 0.55);
}
#fig72-range::-moz-range-track { height: 5px; border-radius: 3px; background: var(--night-line); }
#fig72-range::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--orange); }
#fig72-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--orange);
}
#fig72-range:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.fig72-ticks {
  position: relative;
  height: 1.3em;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--on-night-soft);
  margin-top: 0.25rem;
}
.fig72-ticks span { position: absolute; transform: translateX(-50%); }
.fig72-ticks span:nth-child(1) { left: 0; transform: none; }
.fig72-ticks span:nth-child(2) { left: 16.667%; }
.fig72-ticks span:nth-child(3) { left: 33.333%; }
.fig72-ticks span:nth-child(4) { left: 66.667%; }
.fig72-ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.fig72-status {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.45;
  color: var(--blue-sky);
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
  margin: 1.3rem 0 1.5rem;
  min-height: 2.9em;
  max-width: 56ch;
}
.fig72-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.fig72-col {
  border: 1px solid var(--night-line);
  border-radius: 3px;
  padding: 1.15rem 1.25rem;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.fig72-col--on { border-color: rgba(247, 154, 30, 0.55); background: rgba(247, 154, 30, 0.05); }
.fig72-col h4 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 1.12rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
}
.fig72-col h4 small {
  display: block;
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: -0.2rem;
}
.fig72-house { width: 44px; flex: none; }
.fig72-house .fh-body { fill: none; stroke: var(--on-night-soft); stroke-width: 2; stroke-linejoin: round; }
.fig72-house .fh-win { fill: var(--night-line); transition: fill 0.35s ease; }
.fig72-house--lit .fh-win { fill: var(--orange); }
.fig72-list { list-style: none; padding: 0; margin: 0.7rem 0 0; }
.fig72-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.48rem 0;
  border-bottom: 1px dotted var(--night-line);
  font-size: 0.98rem;
  color: var(--on-night);
}
.fig72-list li:last-child { border-bottom: 0; }
.fig72-list .state {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-night-soft);
}
.fig72-col--on .state { color: var(--orange); }
.fig72-col--on .state::before { content: '\25CF\00A0'; }
.fig72.is-out .fig72-col--out .sys {
  text-decoration: line-through;
  text-decoration-color: rgba(247, 154, 30, 0.55);
  text-decoration-thickness: 1.5px;
  color: var(--on-night-soft);
}
@media (max-width: 760px) {
  .fig72-cols { grid-template-columns: 1fr; }
  .fig72-status { min-height: 0; }
}

/* ---------- Assessment reveal: dial ring + the lit house ---------- */
.results-top { grid-template-columns: auto auto 1fr; }
.score-ring {
  --pct: 0;
  display: grid;
  place-items: center;
  width: clamp(122px, 15vw, 152px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--pct) * 1%), var(--night-line) 0);
}
.score-ring #total-score {
  display: grid;
  place-items: center;
  width: calc(100% - 14px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--night);
  font-size: clamp(2.7rem, 5.5vw, 3.5rem);
}
.results-house { text-align: center; --house-glow: 0; }
.results-house svg { width: clamp(128px, 16vw, 172px); display: block; margin-inline: auto; }
.rh-line { fill: none; stroke: var(--on-night-soft); stroke-width: 2; stroke-linejoin: round; }
.rh-wall { fill: rgba(8, 13, 20, 0.55); }
.rh-glow { fill: rgba(247, 154, 30, calc(var(--house-glow, 0) * 0.13)); }
.rh-win {
  fill: var(--orange);
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(247, 154, 30, 0.8));
}
.results-house-note {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-night-soft);
  margin: 0.7rem 0 0;
}
@media (max-width: 900px) {
  .results-top { grid-template-columns: auto 1fr; }
  .results-house { display: none; }
}
@media (max-width: 720px) {
  .results-top { grid-template-columns: 1fr; }
  .results-house { display: block; }
}

/* ---------- Horizon strip: every page sets into the night footer ---------- */
.horizon-strip { line-height: 0; overflow: hidden; }
.horizon-strip svg { width: 100%; height: clamp(54px, 7vw, 90px); display: block; }
.hz { fill: var(--night); }
.hz-wire { fill: none; stroke: var(--night); stroke-width: 1.5; }
.hz-lit { fill: var(--orange); }
.horizon-strip + .site-footer { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { animation: none; }
  .rv-hide { opacity: 1; transform: none; transition: none; }
  .btn, .svc-index a { transition: none; }
  .pq-strike { animation: none; }
  .hero h1 em { animation: none; }
  .rh-win, .fig72-house .fh-win, .fig72-col { transition: none; }
}

/* ---------- Print-ish niceties ---------- */
::selection { background: var(--orange); color: var(--ink); }
