/* ==========================================================================
   MIRAI — home.css
   Homepage sections. Consumes tier-2 --theme--* tokens only.
   ========================================================================== */

/* Sections that continue the previous ground start with a rule instead of
   a colour change, so the page still breathes without a hard edge. */
.section--tight { padding-top: 0; }
.section--short { padding-block: calc(var(--section--pad) * 0.6); }

/* --------------------------------------------------------------------------
   01 · HERO
   -------------------------------------------------------------------------- */

.hero {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--section--pad) * 0.8);
}

.hero__title {
  margin-top: var(--space--5);
  /* Slightly tighter than the global display size: the hero sets two
     deliberate lines, and the global clamp overflows the 8-column measure. */
  font-size: clamp(2.5rem, 1.35rem + 4.9vw, 4.5rem);
}
.hero__line  { display: block; }

.hero__sub     { margin-top: var(--space--5); }
.hero__actions { margin-top: var(--space--6); }

.hero__scroll {
  position: absolute;
  left: var(--site--gutter);
  bottom: var(--space--5);
  display: flex;
  align-items: center;
  gap: var(--space--2);
  font-size: var(--size--eyebrow);
  letter-spacing: var(--tracking--eyebrow);
  text-transform: uppercase;
  color: var(--theme--label);
}
.hero__scroll-rule {
  width: 48px;
  height: 1px;
  background: var(--theme--rule-strong);
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------------------------
   DIAGRAMS
   -------------------------------------------------------------------------- */

.diagram-wrap { display: flex; align-items: center; }

.diagram {
  width: 100%;
  height: auto;
  color: var(--theme--text-tertiary);
}

/* Draw: connectors stroke in on scroll. Set up here, released by JS. */
/* Draw-on-scroll setup. MUST stay behind .js: without it the paths sit at
   full dash offset, which renders them invisible. When scripting is off the
   connectors have to be there — they are the entire point of the diagram. */
.js .diagram .dg-links path,
.js .diagram .cv-in path,
.js .diagram .cv-out path {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 900ms var(--ease);
  transition-delay: var(--draw-delay, 0ms);
}
.js .diagram .dg-links path { stroke-dasharray: 4 4; stroke-dashoffset: 0; opacity: 0;
                          transition: opacity 500ms var(--ease); }
.diagram.is-in .dg-links path { opacity: 0.75; }
.diagram.is-in .cv-in path,
.diagram.is-in .cv-out path { stroke-dashoffset: 0; }

.js .diagram .dg-tiles rect,
.js .diagram .dg-labels text,
.js .diagram .dg-note,
.js .diagram .cv-sources rect,
.js .diagram .cv-outbox rect,
.js .diagram .cv-bar {
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.diagram.is-in .dg-tiles rect,
.diagram.is-in .dg-labels text,
.diagram.is-in .dg-note,
.diagram.is-in .cv-sources rect,
.diagram.is-in .cv-outbox rect,
.diagram.is-in .cv-bar { opacity: 1; }

/* The attention marker arrives last, one soft pulse, then still. */
.js .diagram .dg-dot,
.js .diagram .cv-human { opacity: 0; }
.diagram.is-in .dg-dot,
.diagram.is-in .cv-human { animation: signal 600ms var(--ease) 1200ms forwards; }

@keyframes signal {
  from { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.15); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .diagram .dg-links path { opacity: 0.75; }
  .diagram .cv-in path,
  .diagram .cv-out path { stroke-dashoffset: 0; }
  .diagram .dg-tiles rect, .diagram .dg-labels text, .diagram .dg-note,
  .diagram .cv-sources rect, .diagram .cv-outbox rect, .diagram .cv-bar,
  .diagram .dg-dot, .diagram .cv-human { opacity: 1; animation: none; }
}

@media (max-width: 900px) {
  .diagram-wrap { margin-top: var(--space--7); }
}

/* --------------------------------------------------------------------------
   03 · THESIS LADDER

   Five rungs. The old version used an 8ch first column, which "Understand"
   overflowed — it collided with its own gloss. The word column is now sized
   to the longest word so all five align, and a number column carries a spine
   down the left so the list reads as a progression rather than five
   unrelated lines.

   The rule between Move and Understand is the argument of the whole page, so
   it is labelled rather than left for the reader to infer.
   -------------------------------------------------------------------------- */

.ladder {
  margin-top: var(--space--8);
  border-top: var(--rule--width) solid var(--theme--rule-strong);
  counter-reset: rung;
}

.ladder__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(11rem, max-content) minmax(0, 1fr);
  gap: 0 var(--space--5);
  align-items: baseline;
  padding-block: var(--space--5);
  border-bottom: var(--rule--width) solid var(--theme--rule);
}

/* Spine: a hairline running down through the number column, broken at the
   threshold so the eye registers the step. */
.ladder__row::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--theme--rule);
}
.ladder__row:first-child::before { top: 50%; }
.ladder__row:last-child::before  { bottom: 50%; }

.ladder__num {
  font-size: var(--size--eyebrow);
  line-height: inherit;
  color: var(--theme--text-tertiary);
  padding-left: 1.15rem;
}

.ladder__word {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: var(--weight--medium);
  letter-spacing: var(--tracking--snug);
  line-height: 1.1;
  color: var(--theme--text-tertiary);
  transition: color 300ms var(--ease);
}

.ladder__gloss {
  font-size: var(--size--body);
  line-height: 1.5;
  color: var(--theme--text-tertiary);
  text-wrap: pretty;
}

/* The three rungs the company stands on. */
.ladder__row--lit .ladder__word  { color: var(--theme--text); }
.ladder__row--lit .ladder__gloss { color: var(--theme--text-secondary); }

/* Threshold marker above the first lit rung. */
.ladder__row--threshold { margin-top: var(--space--6); }
.ladder__row--threshold::after {
  content: attr(data-mark);
  position: absolute;
  top: calc(var(--space--4) * -1);
  left: 0;
  font-family: var(--font--mono);
  font-size: var(--size--eyebrow);
  letter-spacing: var(--tracking--eyebrow);
  text-transform: uppercase;
  color: var(--theme--attention);
}
.ladder__row--threshold {
  border-top: var(--rule--width) solid var(--theme--attention);
}

@media (max-width: 700px) {
  .ladder__row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: var(--space--1) var(--space--3);
  }
  .ladder__word  { grid-column: 2; }
  .ladder__gloss { grid-column: 2; }
  .ladder__row::before { left: 1.15rem; }
  .ladder__row--threshold::after { left: 2.5rem; }
}

.thesis-line {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  font-weight: var(--weight--medium);
  letter-spacing: var(--tracking--snug);
  line-height: 1.2;
  color: var(--theme--text);
  max-width: 24ch;
  margin-top: var(--space--8);
}

/* --------------------------------------------------------------------------
   04 · FOUR STEPS
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space--7);
  border-top: var(--rule--width) solid var(--theme--rule-strong);
}

.steps__item {
  padding: var(--space--5) var(--space--4) 0 0;
  border-left: var(--rule--width) solid var(--theme--rule);
  padding-left: var(--space--4);
}
.steps__item:first-child { border-left: 0; padding-left: 0; }

.steps__num {
  display: block;
  font-size: var(--size--eyebrow);
  color: var(--theme--text-tertiary);
  margin-bottom: var(--space--3);
}
.steps__item .h3   { margin-bottom: var(--space--2); }
.steps__item .body { font-size: var(--size--small); line-height: 1.55; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__item:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps__item {
    border-left: 0; padding-left: 0;
    border-bottom: var(--rule--width) solid var(--theme--rule);
    padding-bottom: var(--space--5);
  }
  .steps__item:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   05 · ONE TEAM
   -------------------------------------------------------------------------- */

.oneteam { position: relative; padding-left: var(--space--6); }

.oneteam::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--theme--rule-strong);
}

.oneteam__brace {
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  background: var(--theme--background);
  padding-inline: var(--space--2);
  font-size: var(--size--eyebrow);
  letter-spacing: var(--tracking--eyebrow);
  text-transform: uppercase;
  color: var(--theme--label);
  white-space: nowrap;
}

.oneteam__list li {
  padding-block: var(--space--4);
  border-top: var(--rule--width) solid var(--theme--rule);
  font-size: var(--size--h3);
  font-weight: var(--weight--medium);
  letter-spacing: -0.01em;
}
.oneteam__list li:last-child { border-bottom: var(--rule--width) solid var(--theme--rule); }

/* --------------------------------------------------------------------------
   06 · CAPABILITY ROWS
   -------------------------------------------------------------------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--grid--gap);
  margin-top: var(--space--7);
}

.caps__row {
  padding-block: var(--space--4);
  border-top: var(--rule--width) solid var(--theme--rule);
}
.caps__row .h3 { margin-bottom: var(--space--1); }

@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   07 · ILLUSTRATIVE DASHBOARD
   -------------------------------------------------------------------------- */

.dash {
  margin: var(--space--8) 0 0;
  background: var(--theme--background-panel);
  border: var(--rule--width) solid var(--theme--rule);
  border-radius: var(--radius--md);
  padding: var(--space--5);
}

.dash__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space--2);
  padding-bottom: var(--space--5);
}
.dash__tag {
  font-size: 11px;
  letter-spacing: var(--tracking--eyebrow);
  color: var(--theme--text-tertiary);
}
.dash__meta { font-size: var(--size--eyebrow); color: var(--theme--text-tertiary); }

.dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi {
  padding: var(--space--4) var(--space--4) var(--space--5) 0;
  border-top: var(--rule--width) solid var(--theme--rule);
  border-left: var(--rule--width) solid var(--theme--rule);
  padding-left: var(--space--4);
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
}
.kpi:first-child { border-left: 0; padding-left: 0; }

.kpi__label {
  font-size: 11px;
  letter-spacing: var(--tracking--eyebrow);
  text-transform: uppercase;
  color: var(--theme--text-tertiary);
}
.kpi__figure {
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.5rem);
  font-weight: var(--weight--medium);
  line-height: 1;
  letter-spacing: var(--tracking--snug);
  color: var(--theme--text);
  font-variant-numeric: tabular-nums;
}
/* No colour on deltas. Direction is carried by the arrow glyph alone. */
.kpi__delta { font-size: 13px; color: var(--theme--text-secondary); }

@media (max-width: 760px) {
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi__figure { font-size: 2rem; }
}

.dash__panels {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border-top: var(--rule--width) solid var(--theme--rule);
}
@media (max-width: 860px) { .dash__panels { grid-template-columns: 1fr; } }

.dash__panel { padding: var(--space--5) var(--space--4) var(--space--5) 0; }
.dash__panel--attention {
  border-left: var(--rule--width) solid var(--theme--rule);
  padding-left: var(--space--4);
}
@media (max-width: 860px) {
  .dash__panel--attention {
    border-left: 0; padding-left: 0;
    border-top: var(--rule--width) solid var(--theme--rule);
  }
}

.dash__h {
  font-size: 14px;
  font-weight: var(--weight--medium);
  color: var(--theme--text);
  margin-bottom: var(--space--3);
}

.dash__lines li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--theme--text-secondary);
  padding-block: var(--space--2);
  border-top: var(--rule--width) solid var(--theme--rule);
}

.dash__attn li {
  display: flex;
  align-items: center;
  gap: var(--space--2);
  padding-block: var(--space--2);
  border-top: var(--rule--width) solid var(--theme--rule);
  font-size: 15px;
}
.dash__item   { color: var(--theme--text-secondary); flex: 1; }
.dash__status { font-size: 12px; color: var(--theme--text-tertiary); white-space: nowrap; }

.dash__caption {
  font-size: 11px;
  color: var(--theme--text-tertiary);
  padding-top: var(--space--3);
  border-top: var(--rule--width) solid var(--theme--rule);
}

/* Assemble: figures settle in on scroll. */
.js .dash.is-in .kpi,
.js .dash.is-in .dash__lines li,
.js .dash.is-in .dash__attn li { animation: settle 500ms var(--ease) both; }
.js .dash.is-in .kpi:nth-child(1) { animation-delay: 0ms; }
.js .dash.is-in .kpi:nth-child(2) { animation-delay: 80ms; }
.js .dash.is-in .kpi:nth-child(3) { animation-delay: 160ms; }
.js .dash.is-in .kpi:nth-child(4) { animation-delay: 240ms; }
.js .dash.is-in .dash__lines li:nth-child(1) { animation-delay: 500ms; }
.js .dash.is-in .dash__lines li:nth-child(2) { animation-delay: 600ms; }
.js .dash.is-in .dash__lines li:nth-child(3) { animation-delay: 700ms; }
.js .dash.is-in .dash__attn li:nth-child(1)  { animation-delay: 900ms; }
.js .dash.is-in .dash__attn li:nth-child(2)  { animation-delay: 1000ms; }
.js .dash.is-in .dash__attn li:nth-child(3)  { animation-delay: 1100ms; }

@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Static on mobile and under reduced motion. */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .js .dash.is-in .kpi,
  .js .dash.is-in .dash__lines li,
  .js .dash.is-in .dash__attn li { animation: none; opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   07b · C-SUITE QUESTIONS
   -------------------------------------------------------------------------- */

.questions {
  columns: 2;
  column-gap: var(--grid--gap);
  font-family: var(--font--serif);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--theme--text-secondary);
}
.questions li { break-inside: avoid; padding-block: var(--space--2); }

@media (max-width: 700px) { .questions { columns: 1; } }

/* --------------------------------------------------------------------------
   09 · BELIEFS
   -------------------------------------------------------------------------- */

.beliefs__row {
  padding-block: var(--space--5);
  border-top: var(--rule--width) solid var(--theme--rule);
}
.beliefs__row:last-child { border-bottom: var(--rule--width) solid var(--theme--rule); }
.beliefs__row .h3   { margin-bottom: var(--space--2); }
.beliefs__row .body { max-width: 56ch; }

/* --------------------------------------------------------------------------
   11 · CTA
   -------------------------------------------------------------------------- */

.cta { min-height: 60vh; display: flex; align-items: center; }

/* --------------------------------------------------------------------------
   INNER PAGE HERO
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--section--pad) * 0.7);
  padding-bottom: calc(var(--section--pad) * 0.85);
}

/* --------------------------------------------------------------------------
   DETAILED STEPS  (Approach page)
   -------------------------------------------------------------------------- */

.detail-steps {
  margin-top: var(--space--7);
  border-top: var(--rule--width) solid var(--theme--rule-strong);
}

.detail-steps__item {
  display: grid;
  grid-template-columns: minmax(0, 6ch) 1fr;
  gap: var(--grid--gap);
  padding-block: var(--space--6);
  border-bottom: var(--rule--width) solid var(--theme--rule);
}

.detail-steps__num {
  font-size: var(--size--small);
  color: var(--theme--text-tertiary);
  padding-top: 0.35em;
}

.detail-steps__item .h3 { margin-bottom: var(--space--3); }

@media (max-width: 600px) {
  .detail-steps__item { grid-template-columns: 1fr; gap: var(--space--3); }
}

/* Capability and belief lists are used on inner pages inside .container too. */
.section > .caps,
.section > .beliefs,
.section > .dash,
.section > .questions {
  width: 100%;
  max-width: var(--site--max);
  margin-inline: auto;
  padding-inline: var(--site--gutter);
}
.section > .pull-line {
  max-width: min(40ch, var(--site--max));
  margin-inline: auto;
  padding-inline: var(--site--gutter);
  width: 100%;
}

/* --------------------------------------------------------------------------
   RECOGNITION LIST  ("You already know where it lives")
   Typographic list, hairline separated. The specificity carries it; no icons.
   -------------------------------------------------------------------------- */

.reality {
  border-top: var(--rule--width) solid var(--theme--rule-strong);
}
.reality li {
  padding-block: var(--space--4);
  border-bottom: var(--rule--width) solid var(--theme--rule);
  font-size: var(--size--body-lg);
  line-height: 1.45;
  color: var(--theme--text);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   OUTCOMES  ("What a redesigned workflow feels like")
   -------------------------------------------------------------------------- */

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--grid--gap);
  margin-top: var(--space--7);
  border-top: var(--rule--width) solid var(--theme--rule-strong);
}
.outcomes__row {
  padding-block: var(--space--5);
  border-bottom: var(--rule--width) solid var(--theme--rule);
}
.outcomes__row .h3   { margin-bottom: var(--space--2); }
.outcomes__row .body { max-width: 46ch; }

@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: var(--rule--width) solid var(--theme--rule-strong); }

.faq__row {
  padding-block: var(--space--5);
  border-bottom: var(--rule--width) solid var(--theme--rule);
}
.faq__row .h3   { margin-bottom: var(--space--3); }
.faq__row .body { max-width: 68ch; }

/* --------------------------------------------------------------------------
   HERO ATMOSPHERE — gradient ground + continuous motion layer

   A departure from the original design system, which called for flat grounds
   and no ambient motion. Added on instruction. Kept controlled: the gradient
   is built from the Backbase swatches only, and the motion never resolves
   into a shape that competes with the type.
   -------------------------------------------------------------------------- */

:root {
  --swatch--violet: var(--swatch--mist);   /* fourth hue, bridges deep blue to warm */
  --swatch--rose:   var(--swatch--copper);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--swatch--obsidian);
}

/* The gradient breathes — very slowly, so it reads as depth, not animation. */

.hero__motion {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
}
.hero__motion img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The vortex fan runs full-bleed behind the type. Its own hairlines are
   already faint, so it needs no extra masking — only a slight lift on the
   right where the copy does not reach. */
.hero__motion--vortex { inset: 0; opacity: 1; }
.hero__motion--flow   { inset: 0; opacity: 0.9; }

/* The orbital pattern sits right, as a disc. */
.hero__motion--orbit {
  inset: auto -14% auto auto;
  top: 50%;
  transform: translateY(-50%);
  width: min(880px, 68vw);
  aspect-ratio: 1;
  color: #FFFFFF;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 76%);
          mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 76%);
}
.hero__motion--orbit img { object-fit: contain; }

/* The rising fan runs full-bleed; its own hairlines are faint enough
   that it needs no mask. */
.hero__motion--rise { inset: 0; opacity: 1; }

.hero__motion--mesh { inset: 0; opacity: 0.45;
  -webkit-mask-image: radial-gradient(120% 90% at 82% 50%, #000 24%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 82% 50%, #000 24%, transparent 72%); }

/* Type always sits above the atmosphere. */
.hero > .container,
.page-hero > .container { position: relative; z-index: 1; }
.hero__scroll { z-index: 1; }

/* Keep the ground legible where the copy runs. */

@media (max-width: 900px) {
  .hero__motion--orbit { right: -34%; width: min(660px, 96vw); }
  .hero__motion { opacity: 0.5; }
  .hero > .container::before,
  .page-hero > .container::before { inset: -10% -20%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-hero::before { animation: none; }
}

/* --------------------------------------------------------------------------
   SECTION GROUNDS — gradient rather than flat

   Each gradient starts and ends on the section's own base colour, with the
   colour interest in the middle. That means two stacked sections always meet
   on the same value, so there is no seam where they join — which matters
   here because several sections continue the previous ground and are
   separated only by a hairline.

   The hero is excluded: it carries its own, stronger treatment.
   -------------------------------------------------------------------------- */





/* The dashboard panel needs to stay distinct from a now-gradient ground. */
.dash { background: var(--swatch--onyx); backdrop-filter: none; }

/* --------------------------------------------------------------------------
   CAPABILITY CYCLES  (Finance page)
   Two columns: the cycle name and its one-line frame on the left, the work
   itself on the right. Hairline separated, no cards.
   -------------------------------------------------------------------------- */

.cycles {
  margin-top: var(--space--7);
  border-top: var(--rule--width) solid var(--theme--rule-strong);
}

.cycle {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--grid--gap);
  padding-block: var(--space--6);
  border-bottom: var(--rule--width) solid var(--theme--rule);
}

.cycle__head .h3    { margin-bottom: var(--space--2); }
.cycle__head .small { max-width: 34ch; }

.cycle__list li {
  position: relative;
  padding: var(--space--2) 0 var(--space--2) var(--space--4);
  border-top: var(--rule--width) solid var(--theme--rule);
  font-size: var(--size--body);
  line-height: 1.5;
  color: var(--theme--text-secondary);
  text-wrap: pretty;
}
.cycle__list li:first-child { border-top: 0; padding-top: 0; }

/* A hairline tick rather than a bullet. */
.cycle__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.75em + var(--space--2));
  width: 10px;
  height: 1px;
  background: var(--theme--rule-strong);
}
.cycle__list li:first-child::before { top: 0.75em; }

@media (max-width: 860px) {
  .cycle { grid-template-columns: 1fr; gap: var(--space--4); }
}

/* --------------------------------------------------------------------------
   SECTION FIELD — texture for the folds below the hero

   The gradient alone left the lower sections feeling flat next to the hero.
   This adds a very faint contour field behind the dark ones: two families of
   concentric arcs from off-canvas centres, turning against each other. It
   never resolves into a shape — it only gives the ground somewhere to catch
   the light.

   One shared background-image, so it costs a single cached 2 KB request no
   matter how many sections use it.
   -------------------------------------------------------------------------- */


/* Light sections get the same idea at a whisper. */

/* Content sits above the field. */
main > .section > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   INTRO SPLIT — editorial two-column section opener

   These sections previously stacked the label, heading and body into a narrow
   left column, leaving the right half of a wide viewport empty. Splitting the
   heading from the body fills the measure, shortens the line length of the
   body copy, and gives the eye somewhere to land on the right.
   -------------------------------------------------------------------------- */

.intro-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.intro-split > .section-split-head { grid-column: 1; }
.intro-split > .section-label      { grid-column: 1; grid-row: 1; }
.intro-split > .h2                 { grid-column: 1; grid-row: 2; }
.intro-split > .stack              { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }

/* The body no longer needs its own width limit — the column supplies it. */
.intro-split > .stack .measure { max-width: 58ch; }

@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-split > .section-label,
  .intro-split > .h2,
  .intro-split > .stack { grid-column: 1; grid-row: auto; }
  .intro-split > .stack { margin-top: var(--space--5); }
}

/* Four short items read better as a 2x2 than as a long left-hugging list. */
.beliefs--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.beliefs--2col .beliefs__row:nth-child(-n+2) { border-top: var(--rule--width) solid var(--theme--rule); }
.beliefs--2col .beliefs__row { border-bottom: 0; }
.beliefs--2col .beliefs__row:nth-last-child(-n+2) {
  border-bottom: var(--rule--width) solid var(--theme--rule);
}
@media (max-width: 760px) { .beliefs--2col { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   EXCEPTIONS LIST
   Four short lines carrying what was a dense paragraph. Scannable in the
   time it takes to read the sentence above it.
   -------------------------------------------------------------------------- */

.exceptions {
  margin-top: var(--space--5);
  border-top: var(--rule--width) solid var(--theme--rule-strong);
}
.exceptions li {
  padding-block: var(--space--3);
  border-bottom: var(--rule--width) solid var(--theme--rule);
  font-size: var(--size--body);
  line-height: 1.4;
  color: var(--theme--text);
}

/* --------------------------------------------------------------------------
   DASHBOARD — refinements

   The panel was legible but flat: four figures, then two blocks of prose.
   Three changes, all static and all inside the illustrative frame.
   -------------------------------------------------------------------------- */

/* A hairline track under each figure. It makes "vs plan" something the eye
   reads at a glance instead of a phrase it has to parse. Deliberately not a
   sparkline — there is no series here and nothing implying live data. */
.kpi__track {
  display: block;
  height: 2px;
  margin-top: var(--space--1);
  background: var(--theme--rule);
  position: relative;
  max-width: 88%;
}
.kpi__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 50%);
  background: var(--swatch--deep-blue-70);
}
/* The unchanged figure gets a neutral marker, not a filled bar. */
.kpi:nth-child(3) .kpi__track i { background: var(--theme--rule-strong); }

/* "What changed" reads as three findings once they are numbered. */
.dash__lines li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space--2);
}
.dash__idx {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--theme--text-tertiary);
  padding-top: 0.15em;
}

/* Attention rows: give the status its own field so the three align, and let
   the row respond to the pointer — it is the one part of the panel that
   represents a decision waiting to be made. */
.dash__attn li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 5.6rem;
  align-items: center;
  gap: var(--space--2);
  transition: background-color 200ms var(--ease);
}
.dash__status {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--theme--attention);
  opacity: 0.85;
}
.dash__panel--attention .dot { width: 7px; height: 7px; }

@media (max-width: 560px) {
  .dash__attn li { grid-template-columns: 10px minmax(0, 1fr); }
  .dash__status  { grid-column: 2; text-align: left; }
  .dash__lines li { grid-template-columns: 1.8rem minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   CONVERGE DIAGRAM — flowing light

   The first version moved a hard-edged dash along each line, which read as a
   thick bar sliding rather than as light. This one strokes the full length of
   every connector with a repeating gradient that sweeps across the frame: the
   band fades to transparent at both ends so the edges are soft, and because
   the gradient repeats and translates by exactly one tile width the loop
   never visibly restarts.

   Colour still varies with position — blue, violet, rose, cyan — so the flow
   changes hue as it crosses rather than carrying one flat tone.
   -------------------------------------------------------------------------- */

.cv-pulse path {
  fill: none;
  stroke: url(#cvSweep);
  stroke-width: 2.1;
  stroke-linecap: round;
  /* A tight core and a wider bloom. Ten short paths inside one 620x440
     diagram — affordable in a way a full-viewport blur was not. */
  filter: drop-shadow(0 0 2px rgba(204,145,102,0.30))
          drop-shadow(0 0 7px rgba(255,255,255,0.10));
}

.cv-pulse--out path { stroke-width: 2.4; }

/* The engine brightens continuously rather than on a beat. */
.diagram--converge .cv-bar { animation: cv-core 5s ease-in-out infinite; }
@keyframes cv-core {
  0%, 100% { fill: var(--swatch--deep-blue); }
  50%      { fill: var(--swatch--bone); }
}

/* Reduced motion: the diagram stays, the light goes. Frozen mid-sweep it
   would read as a stray coloured mark rather than motion that stopped. */
@media (prefers-reduced-motion: reduce) {
  .cv-pulse { display: none; }
  .diagram--converge .cv-bar { animation: none; }
}

/* Let the reveal finish before the light appears. */
.js .cv-pulse path { opacity: 0; transition: opacity 800ms var(--ease) 600ms; }
.js .diagram.is-in .cv-pulse path { opacity: 1; }



/* --------------------------------------------------------------------------
   OUTPUT CARDS — the flow continues into the border

   The three result cards are duplicated and stroked with the same sweeping
   gradient as the connectors. Nothing is timed or phase-matched: the border
   lights because the band is passing over it, which is the same instant the
   light on its connector arrives. Continuation rather than an echo.
   -------------------------------------------------------------------------- */

.cv-outglow rect {
  fill: none;
  stroke: url(#cvSweep);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 3px rgba(204,145,102,0.30));
}

@media (prefers-reduced-motion: reduce) { .cv-outglow { display: none; } }

.js .cv-outglow rect { opacity: 0; transition: opacity 800ms var(--ease) 700ms; }
.js .diagram.is-in .cv-outglow rect { opacity: 1; }

/* Figures counting up must not reflow the panel; the track fills on the same
   beat as the number lands. */
.kpi__figure .num { font-variant-numeric: tabular-nums; }
.kpi__delta  .num { font-weight: inherit; font-variant-numeric: tabular-nums; }
.kpi__track i { transition: width 1200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .kpi__track i { transition: none; } }

/* Hero sub-note — the line beneath the buttons. Quiet, and set apart from the
   supporting copy above it so it reads as a closing remark, not a third
   paragraph. */
.hero__note {
  margin-top: var(--space--5);
  color: var(--theme--text-tertiary);
  max-width: 46ch;
}

/* ==========================================================================
   SLASH VARIANT — component overrides

   Everything below re-skins the existing components to the Slash reference:
   onyx cards at 10px with hairline borders, pill controls, copper reserved
   for category labels, and the gilded gradient confined to data.
   ========================================================================== */

/* --- Cards: surface step + hairline, never a shadow --------------------- */
.dash {
  border: var(--rule--width) solid var(--swatch--graphite);
  border-radius: var(--radius--card);
  padding: var(--space--6);
}
.dash__tag {
  font-size: var(--text--eyebrow);
  font-weight: var(--weight--semi);
  letter-spacing: var(--track--eyebrow);
  color: var(--swatch--copper);
  text-transform: none;
}
.dash__meta { font-size: var(--text--ui); color: var(--theme--text-tertiary); }

/* Figures are the one place the serif carries numerals — editorial gravitas
   for statistics, per the reference's Stat Display component. */
.kpi__figure {
  font-family: var(--font--serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: var(--weight--regular);
  letter-spacing: var(--track--serif);
  color: var(--theme--text);
}
.kpi__label {
  font-size: var(--text--eyebrow);
  font-weight: var(--weight--semi);
  letter-spacing: var(--track--eyebrow);
  color: var(--theme--text-tertiary);
  text-transform: none;
}
.kpi__delta { font-size: var(--text--ui); color: var(--theme--text-secondary); }

/* The variance track is data visualisation, so it takes the gilded gradient —
   the only place in the system where warm colour appears at any size. */
.kpi__track { background: var(--swatch--graphite); height: 2px; }
.kpi__track i { background: var(--gilded); }
.kpi:nth-child(3) .kpi__track i { background: var(--swatch--slate); }

.dash__h {
  font-family: var(--font--sans);
  font-size: var(--text--ui);
  font-weight: var(--weight--medium);
  color: var(--theme--text);
}
.dash__lines li, .dash__attn li { border-top-color: var(--swatch--graphite); }
.dash__item { color: var(--theme--text-secondary); }
.dash__status { color: var(--swatch--copper); font-size: 12px; }
.dash__idx { color: var(--theme--text-tertiary); }
.dash__caption { font-size: 12px; color: var(--theme--text-tertiary); }

/* --- Lists and rows: hairlines only ------------------------------------ */
.caps__row, .beliefs__row, .outcomes__row, .faq__row, .cycle,
.reality li, .exceptions li, .ladder__row, .oneteam__list li {
  border-color: var(--swatch--graphite);
}
.reality li, .exceptions li {
  font-family: var(--font--sans);
  font-size: var(--text--body-sm);
  letter-spacing: var(--track--body-sm);
  color: var(--theme--text-secondary);
}
.cycle__list li { color: var(--theme--text-secondary); font-size: var(--text--body-xs); }
.cycle__list li::before { background: var(--swatch--slate); }
.cycle__head .small { color: var(--theme--text-tertiary); }

/* --- The ladder: serif words, copper threshold ------------------------- */
.ladder__word {
  font-family: var(--font--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: var(--weight--regular);
  letter-spacing: var(--track--serif);
  color: var(--theme--text-tertiary);
}
.ladder__row--lit .ladder__word { color: var(--theme--text); }
.ladder__gloss { color: var(--theme--text-secondary); font-size: var(--text--body-xs); }
.ladder__num { color: var(--theme--text-tertiary); font-size: var(--text--eyebrow); }
.ladder__row--threshold { border-top-color: var(--swatch--copper); }
.ladder__row--threshold::after { color: var(--swatch--copper); font-family: var(--font--sans); }
.thesis-line {
  font-family: var(--font--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  font-weight: var(--weight--regular);
  letter-spacing: var(--track--serif);
  color: var(--theme--text);
}

/* --- Steps ------------------------------------------------------------- */
.steps { border-top-color: var(--swatch--slate); }
.steps__item { border-left-color: var(--swatch--graphite); }
.steps__num { color: var(--swatch--copper); font-weight: var(--weight--semi); }

/* --- C-suite questions: serif, as editorial moments -------------------- */
.questions {
  font-family: var(--font--serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  letter-spacing: var(--track--serif);
  color: var(--theme--text-secondary);
}

/* --- Hero motion: monochrome. No blue field, no chromatic glow. -------- */
.hero__motion { opacity: 0.5; }
.hero__motion--orbit { color: var(--swatch--paper); }

/* --- Diagrams ---------------------------------------------------------- */
.diagram { color: var(--swatch--smoke); }
.diagram--converge .cv-bar { fill: var(--swatch--paper); }
.diagram--converge .cv-bar { animation: none; }
.cv-pulse path {
  stroke: url(#cvGild);
  stroke-width: 1.8;
  filter: none;
}
.cv-outglow rect { stroke: url(#cvGild); stroke-width: 1.4; filter: none; }

/* --- Section rhythm: gaps, not alternating grounds --------------------- */
.section--tight { padding-top: 0; }
.section--short { padding-block: calc(var(--section--pad) * 0.55); }

/* ==========================================================================
   ILLUSTRATIVE SURFACES

   Superpower's folds carry weight because a product interface is floating in
   them, not because of the photography around it. Mirai has no photography
   and the brief rules out stock, so these are the substance instead:
   original finance surfaces, fictional figures, labelled as illustrative
   every time they appear.
   ========================================================================== */

.surface {
  background: var(--swatch--onyx);
  border: var(--rule--width) solid var(--swatch--graphite);
  border-radius: var(--radius--card);
  padding: var(--space--5);
  color: var(--swatch--bone);
}
.theme-light .surface {
  background: var(--swatch--chalk);
  border-color: var(--swatch--hairline-l);
  color: var(--swatch--graphite-l);
}

.surface__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space--4); padding-bottom: var(--space--4);
}
.surface__tag {
  font-size: var(--text--eyebrow); font-weight: var(--weight--semi);
  letter-spacing: var(--track--eyebrow); color: var(--theme--accent);
}
.surface__meta { font-size: 12px; color: var(--theme--text-tertiary); }
.surface__foot {
  margin-top: var(--space--4); padding-top: var(--space--3);
  border-top: var(--rule--width) solid var(--theme--rule);
  font-size: 12px; color: var(--theme--text-tertiary);
}

/* --- Chart card: the Slash reference's hero component ------------------- */
.surface__figure {
  font-family: var(--font--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: var(--weight--regular);
  letter-spacing: var(--track--serif);
  line-height: 1;
  color: var(--theme--text);
}
.surface__delta { font-size: var(--text--ui); color: var(--theme--text-tertiary); }
.surface__pills { display: flex; gap: var(--space--2); }
.pill {
  font-size: 12px; padding: 4px 10px;
  border: var(--rule--width) solid var(--swatch--steel);
  border-radius: var(--radius--pill);
  color: var(--theme--text-tertiary);
}
.pill[aria-current="true"] {
  border-color: var(--theme--text); color: var(--theme--text);
}
.surface__chart { margin-top: var(--space--5); height: 168px; }
.surface__chart img { width: 100%; height: 100%; object-fit: fill; }

/* --- Checklist: a close in progress ----------------------------------- */
.checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center; gap: var(--space--3);
  padding-block: var(--space--3);
  border-top: var(--rule--width) solid var(--theme--rule);
  font-size: var(--text--ui);
}
.checklist li:first-child { border-top: 0; }
.check {
  width: 16px; height: 16px; border-radius: var(--radius--pill);
  border: var(--rule--width) solid var(--swatch--steel);
  display: grid; place-items: center;
  font-size: 9px; color: var(--theme--text-tertiary);
}
.check--done {
  background: var(--swatch--copper); border-color: var(--swatch--copper); color: #08080a;
}
.check--now { border-color: var(--theme--text); color: var(--theme--text); }
.checklist__owner { font-size: 12px; color: var(--theme--text-tertiary); }
.checklist li.is-done { color: var(--theme--text-tertiary); }

/* --- Variance trace: the "why" made visible ---------------------------- */
.trace li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  gap: var(--space--3); align-items: center;
  padding-block: var(--space--3);
  border-top: var(--rule--width) solid var(--theme--rule);
  font-size: var(--text--ui);
}
.trace li:first-child { border-top: 0; }
.trace__bar {
  grid-column: 1 / -1; height: 3px; border-radius: var(--radius--pill);
  background: var(--theme--rule);
  position: relative; overflow: hidden;
}
.trace__bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--gilded); }
.trace__val { text-align: right; color: var(--theme--text); font-variant-numeric: tabular-nums; }
.trace__step { color: var(--theme--text-secondary); }

/* --- Two-up composition: copy beside a surface ------------------------- */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

/* The hero is now a split composition: copy left, surface right. */
.hero__surface { align-self: center; }
@media (max-width: 900px) {
  .hero__surface { margin-top: var(--space--7); }
}

/* ==========================================================================
   VIDEO MEDIA

   Built for a muted, looping background clip — the one thing Superpower uses
   video for. Drop a file at the path the markup names and it plays; leave the
   path empty and the poster shows instead of a broken frame.
   ========================================================================== */

.media--video { background: var(--swatch--onyx); }
.media--video video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* A clip behind copy needs to sit back so the type stays readable. */
.media--video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,8,10,0.78), rgba(8,8,10,0.30) 55%, rgba(8,8,10,0.55));
  pointer-events: none;
}
.media--video > .media__overlay { z-index: 1; }

/* Full-bleed media band: breaks the container to the panel edge. */
.media--bleed {
  margin-inline: calc(var(--site--gutter) * -1);
  border-radius: 0;
}
@media (min-width: 900px) {
  .media--bleed { margin-inline: 0; border-radius: var(--radius--panel); }
}

/* Reduced motion: the clip is decorative, so it stops. The poster remains. */
@media (prefers-reduced-motion: reduce) {
  .media--video video { display: none; }
  .media--video { background-size: cover; background-position: center; }
}

/* ==========================================================================
   SECTION RHYTHM — tonal, not mechanical

   Strict dark/light alternation reads as stripes. Three dark anchors instead
   — the hero, the management-intelligence fold, and the close — with the long
   light run varied by a barely-perceptible tonal step between linen and
   chalk. The shift is about 4% in luminance: enough for the eye to register
   a new section, not enough to read as a band.
   ========================================================================== */


/* A section that continues the one above it must not change tone — that is
   what produced a visible seam in the earlier build. */

/* The dark anchors keep their inset panel treatment and now carry more
   weight, since there are only three of them. */
.section.theme-dark { box-shadow: none; }

/* A hairline at the top of a light section that follows another light one,
   so the change of subject still registers when the tone barely moves. */

/* --------------------------------------------------------------------------
   STATEMENT FOLD

   One sentence at display scale, centred, with air. The device that lets a
   page breathe between dense folds without needing an image to justify the
   space.
   -------------------------------------------------------------------------- */

.statement { text-align: center; }
.statement .eyebrow { margin-bottom: var(--space--6); }

.statement__line {
  font-family: var(--font--serif);
  font-size: clamp(1.875rem, 1.1rem + 3.3vw, 3.5rem);
  font-weight: var(--weight--regular);
  line-height: 1.18;
  letter-spacing: var(--track--serif);
  color: var(--theme--text);
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}

.statement__note {
  margin-top: var(--space--6);
  font-family: var(--font--sans);
  font-size: var(--text--body-sm);
  line-height: 1.5;
  letter-spacing: var(--track--body-sm);
  color: var(--theme--text-tertiary);
  max-width: 46ch;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ==========================================================================
   TONE — assigned per fold, not by formula

   Five dark anchors spaced roughly every four folds, with three genuinely
   distinct light tones cycling between them. The earlier build tried a 4%
   step between two near-identical tones, which read as one long flat run;
   parchment gives the light range a third value with enough separation to
   register.

   Tones are set in the markup rather than by :nth-of-type, because a
   formula cannot know which fold continues the one above it.
   ========================================================================== */

.tone-linen     { background: var(--swatch--linen); }
.tone-chalk     { background: var(--swatch--chalk); }
.tone-parchment { background: var(--swatch--parchment); }

/* A fold that continues the one above shares its ground, so the pair reads
   as one section split by a hairline rather than as two. */
.tone-inherit { background: inherit; }

/* Where two differently-toned light folds meet, the tonal step does the
   work — no hairline needed. Where the tone does not change, the hairline
   inside the fold already marks it. */

/* --------------------------------------------------------------------------
   FILLING THE FOLD

   Five folds ran a single narrow column down the left of a twelve-column grid
   and left the right-hand half empty. Empty space reads as deliberate only
   when the composition asks for it; here it read as unfinished. Each of the
   patterns below gives the other half of the fold something to hold.
   -------------------------------------------------------------------------- */

/* Sticky rail — the heading holds its place on the left while a long list
   scrolls past it. Grid items stretch by default, which kills position:
   sticky, so the rail has to opt out of the stretch. */
.rail { align-self: start; }

@media (min-width: 901px) {
  .rail {
    position: sticky;
    /* clear of the floating header, plus air */
    top: calc(52px + var(--space--3) * 2 + var(--space--5));
  }
}

.rail .h2 { text-wrap: balance; }

.rail__note {
  margin-top: var(--space--6);
  padding-top: var(--space--5);
  border-top: var(--rule--width) solid var(--theme--rule);
  max-width: 34ch;
}

/* The base rule strips link styling site-wide, which is right for navigation
   and wrong for a link sitting inside a sentence. These two carry one. */
.rail__note a, .facts a {
  color: var(--theme--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--theme--rule-strong);
  transition: text-decoration-color 200ms var(--ease);
}
.rail__note a:hover, .facts a:hover { text-decoration-color: currentColor; }

/* An aside that carries a single line opposite the body copy, on the fold's
   optical centre rather than trailing under the paragraph. */
.fold-aside {
  align-self: center;
  border-left: var(--rule--width) solid var(--theme--rule-strong);
  padding-left: var(--space--6);
}
.fold-aside .pull-line { max-width: 22ch; }

@media (max-width: 900px) {
  .fold-aside {
    border-left: 0;
    padding-left: 0;
    border-top: var(--rule--width) solid var(--theme--rule-strong);
    padding-top: var(--space--6);
    margin-top: var(--space--7);
  }
}

/* Three across rather than two, so six short rows fill the width instead of
   trailing a rule off into empty space. */
.caps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1000px) { .caps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:  760px) { .caps--3 { grid-template-columns: 1fr; } }

/* The close: the ask on the left, the particulars of answering it on the
   right. Every value here is a fact stated elsewhere on the site. */
.facts { border-top: var(--rule--width) solid var(--theme--rule-strong); }

.facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space--5);
  padding-block: var(--space--4);
  border-bottom: var(--rule--width) solid var(--theme--rule);
}

.facts__key {
  flex: none;
  font-family: var(--font--sans);
  font-size: var(--text--body-xs);
  letter-spacing: var(--track--body-sm);
  color: var(--theme--text-tertiary);
}

.facts__val {
  text-align: right;
  font-family: var(--font--sans);
  font-size: var(--text--body-sm);
  color: var(--theme--text);
  text-wrap: pretty;
}


@media (max-width: 480px) {
  .facts li { display: block; }
  .facts__val { text-align: left; margin-top: var(--space--2); }
}

/* --------------------------------------------------------------------------
   SLATE GROUND — a lifted dark panel

   The same slate ramp the header bar uses, at section scale: a soft smoke
   highlight off the top-left corner falling through slate and graphite into
   the page's obsidian. It gives a dark fold depth without turning it into a
   different colour of section.

   The lift is deliberately held at the low end. At the panel's lightest point
   the ground is #262D — light enough to read as a gradient, dark enough that
   every text token on the dark theme keeps its contrast: fog, the darkest of
   them, still clears 4.9:1 there. Pushing the highlight to where it looked
   good in isolation put fog at 4.5:1, with nothing left for the blur and
   compression that sit between this and a real screen.

   Not applied to the hero or to the management-intelligence fold: the hero is
   the page's one pure obsidian statement, and the dashboard is the subject of
   its own fold and should not compete with its ground.
   -------------------------------------------------------------------------- */

.section.theme-dark.ground-slate {
  background-color: var(--swatch--obsidian);
  background-image:
    radial-gradient(
      118% 92% at 6% -8%,
      rgb(var(--swatch--smoke-rgb) / 0.26),
      rgb(var(--swatch--smoke-rgb) / 0) 60%
    ),
    linear-gradient(
      103deg,
      rgb(var(--swatch--slate-rgb)    / 0.50) 0%,
      rgb(var(--swatch--graphite-rgb) / 0.34) 38%,
      rgb(var(--swatch--obsidian-rgb) / 0)    76%
    );
}

/* Consecutive dark panels join into one, so a lifted panel sitting directly
   under a plain one would show its highlight mid-join. Only the first of a
   run carries the gradient. */
.section.theme-dark + .section.theme-dark.ground-slate {
  background-image: linear-gradient(
    103deg,
    rgb(var(--swatch--slate-rgb)    / 0.38) 0%,
    rgb(var(--swatch--graphite-rgb) / 0.26) 42%,
    rgb(var(--swatch--obsidian-rgb) / 0)    78%
  );
}

/* --------------------------------------------------------------------------
   HERO FIELD — a slow blue drift behind the vortex

   Three soft discs of blue, screened over the obsidian panel and moved on
   very long, out-of-phase cycles. It reads as weather behind the hairlines
   rather than as an animation playing.

   Built from transforms only. The earlier bloom on this page was an animated
   Gaussian blur and it cost a repaint of the whole panel every frame; these
   are composited, so the work happens off the main thread. Softness comes
   from the radial-gradient falloff, not from a filter.

   The group carries one opacity rather than each disc carrying its own. Discs
   overlap as they drift, and per-disc alpha compounds where they cross — one
   shared value caps the field's brightest possible point no matter how they
   stack. At 0.34 over obsidian the worst case is a fully saturated azure,
   which leaves the copper eyebrow at 5.2:1 and the body copy at 6.4:1.
   -------------------------------------------------------------------------- */

.field {
  position: absolute;
  inset: 0;
  z-index: -2;                 /* under the vortex at -1, over the panel */
  overflow: hidden;
  opacity: 0.34;
  pointer-events: none;
  contain: layout paint style;
}

/* No mix-blend-mode. Screen was the obvious choice for glow on a dark ground
   and it is measurably pointless here: against obsidian the screen result and
   plain alpha render the same, verified side by side. It is not free, though —
   a blended layer under the fixed header sits in that header's backdrop-filter
   sample, which is a well-known source of Chrome compositing artefacts. Plain
   alpha also makes overlaps darker rather than brighter, so the contrast floor
   holds wherever two discs cross. */
.field__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.field__blob--a {
  width: 68vw; aspect-ratio: 1;
  top: -26%; left: -14%;
  background: radial-gradient(closest-side,
    rgb(var(--swatch--azure-rgb))        0%,
    rgb(var(--swatch--azure-rgb) / 0.52) 44%,
    rgb(var(--swatch--azure-rgb) / 0)    74%);
  animation: field-a 44s ease-in-out infinite alternate;
}

.field__blob--b {
  width: 56vw; aspect-ratio: 1;
  top: 22%; left: 54%;
  background: radial-gradient(closest-side,
    rgb(var(--swatch--cobalt-rgb))        0%,
    rgb(var(--swatch--cobalt-rgb) / 0.48) 42%,
    rgb(var(--swatch--cobalt-rgb) / 0)    72%);
  animation: field-b 63s ease-in-out infinite alternate;
}

.field__blob--c {
  width: 74vw; aspect-ratio: 1;
  bottom: -34%; left: 18%;
  background: radial-gradient(closest-side,
    rgb(var(--swatch--indigo-rgb))        0%,
    rgb(var(--swatch--indigo-rgb) / 0.60) 46%,
    rgb(var(--swatch--indigo-rgb) / 0)    76%);
  animation: field-c 52s ease-in-out infinite alternate;
}

/* Out of phase and on different distances, so the field never repeats a shape
   the eye can catch. */
@keyframes field-a {
  from { transform: translate3d(0, 0, 0)             scale(1);    }
  to   { transform: translate3d(14vw, 9vh, 0)        scale(1.18); }
}
@keyframes field-b {
  from { transform: translate3d(0, 0, 0)             scale(1.1);  }
  to   { transform: translate3d(-17vw, -11vh, 0)     scale(0.92); }
}
@keyframes field-c {
  from { transform: translate3d(0, 0, 0)             scale(0.95); }
  to   { transform: translate3d(10vw, -13vh, 0)      scale(1.22); }
}

/* Narrow screens: the discs are sized in vw, so they already scale — but the
   copy occupies most of the panel there, so the field steps back. */
@media (max-width: 900px) {
  .field { opacity: 0.26; }
}

@media (prefers-reduced-motion: reduce) {
  .field__blob { animation: none; }
}
