/* ==========================================================================
   CueForge Labs — Forge Field Manual
   Shared product-dossier system. Loaded by every individual product route,
   by business-solutions.html and by the two Business Solutions app pages.

   Direction: a well-made technical field manual. Bold chapter markers, large
   evidence plates, annotated interface details, confident breathing room —
   on CueForge's near-black cinematic field with restrained circuit energy.

   Typography contract:
     display   Space Grotesk 600-700
     body      Inter 500-700  (never 300)
     technical JetBrains Mono 500-600, metadata only
     body copy 17px desktop / 16px mobile, line-height 1.7

   Palette roles:
     teal      interaction / energy
     cyan      data / path
     lavender  ecosystem / secondary
     amber     decision / managed service
     red       real warnings only
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, dl, dd, blockquote {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }

:root {
  --forge-darker: #020406;
  --forge-dark: #05090d;
  --forge-panel: #090f15;
  --forge-panel-2: #0c141b;
  --forge-plate: #04070a;

  --forge-teal: #3ad1d6;
  --forge-cyan: #38d9f0;
  --forge-lavender: #b39bff;
  --forge-amber: #f7ab24;
  --forge-red: #f87171;

  /* Ink ladder. Nothing a visitor must read sits below --ink-3.
     --ink-4 is reserved for technical metadata and decorative labels. */
  --ink: #eef3f8;
  --ink-2: rgba(238, 243, 248, 0.84);
  --ink-3: rgba(238, 243, 248, 0.72);
  --ink-4: rgba(238, 243, 248, 0.62);

  --rule: rgba(58, 209, 214, 0.20);
  --rule-2: rgba(238, 243, 248, 0.12);
  --rule-3: rgba(238, 243, 248, 0.07);

  /* Per-page product signal, set by the page's data-accent block. */
  --accent: var(--forge-teal);
  --accent-soft: rgba(58, 209, 214, 0.14);
  --accent-line: rgba(58, 209, 214, 0.40);
  --accent-glow: rgba(58, 209, 214, 0.20);

  --shell: 1240px;
  --gutter: 44px;
  --deck-h: 72px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-accent="teal"] {
  --accent: #3ad1d6; --accent-soft: rgba(58,209,214,0.14);
  --accent-line: rgba(58,209,214,0.40); --accent-glow: rgba(58,209,214,0.20);
}
[data-accent="cyan"] {
  --accent: #38d9f0; --accent-soft: rgba(56,217,240,0.14);
  --accent-line: rgba(56,217,240,0.40); --accent-glow: rgba(56,217,240,0.20);
}
[data-accent="lavender"] {
  --accent: #b39bff; --accent-soft: rgba(179,155,255,0.15);
  --accent-line: rgba(179,155,255,0.42); --accent-glow: rgba(179,155,255,0.22);
}
[data-accent="amber"] {
  --accent: #f7ab24; --accent-soft: rgba(247,171,36,0.13);
  --accent-line: rgba(247,171,36,0.38); --accent-glow: rgba(247,171,36,0.20);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--deck-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  background: var(--forge-darker);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Near-black forge field. Static gradient — no ambient animation. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 66% 42% at 14% 4%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 56%),
    radial-gradient(ellipse 52% 38% at 90% 22%, rgba(179, 155, 255, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse 78% 50% at 52% 98%, rgba(56, 217, 240, 0.055) 0%, transparent 60%),
    var(--forge-darker);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 700; }
em { font-style: normal; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--forge-teal);
  color: var(--forge-darker);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 5px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Technical metadata label. Mono is allowed here and nowhere structural. */
.tag {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------- header */

.dossier-header {
  position: relative;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  max-width: var(--shell);
  margin: 0 auto;
}
.dossier-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--forge-teal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.dossier-header .logo img { width: 30px; height: 24px; flex-shrink: 0; }
.header-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 5px;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.header-contact:hover,
.header-contact:focus-visible {
  color: var(--forge-teal);
  border-color: var(--forge-teal);
  background: rgba(58, 209, 204, 0.09);
}

/* ----------------------------------------------------------- chapter deck */

.deck {
  position: sticky;
  top: 0;
  z-index: 120;
  border-top: 1px solid var(--rule-3);
  border-bottom: 1px solid var(--rule-2);
  background: rgba(2, 4, 6, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.deck-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--deck-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

/* Product identity and the return route stay visually separate from chapters. */
.deck-id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-right: 26px;
  border-right: 1px solid var(--rule-2);
  align-self: stretch;
}
.deck-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.deck-return:hover, .deck-return:focus-visible { color: var(--forge-teal); }
.deck-return-arrow { color: var(--accent); font-size: 1.05rem; line-height: 1; }
.deck-product {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

.deck-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  padding: 12px 0;
}
.deck-list::-webkit-scrollbar { display: none; }

/* Substantial chapter control: number, label, rail marker, energy bar. */
.deck-chapter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 18px;
  white-space: nowrap;
  scroll-snap-align: start;
  text-decoration: none;
  border: 1px solid var(--rule-3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--ink-3);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
/* Left rail marker. */
.deck-chapter::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--rule-2);
  transition: background 0.25s ease;
}
/* Active energy bar. */
.deck-chapter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.deck-chapter:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--rule-2);
  color: var(--ink);
}
.deck-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  transition: color 0.25s ease;
}
.deck-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.deck-chapter[aria-current="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: #fff;
}
.deck-chapter[aria-current="true"]::before { background: var(--accent); }
.deck-chapter[aria-current="true"]::after { transform: scaleX(1); }
.deck-chapter[aria-current="true"] .deck-num { color: var(--accent); }

/* ------------------------------------------------------------- movements */

.movement { padding: 92px 0; position: relative; }
.movement + .movement { border-top: 1px solid var(--rule-3); }

.movement-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
/* A second heading inside one movement (e.g. the roadmap under the apps). */
.movement-head.is-restart { margin-top: 76px; }
.movement-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 2.7rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  opacity: 0.34;
  padding-top: 6px;
}
.movement-kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.movement-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.1vw, 2.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: #fff;
  max-width: 22ch;
}
.movement-title em { color: var(--accent); }
.movement-lede {
  margin-top: 18px;
  max-width: 66ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Circuit rail energizing on meaningful section entry. */
.energize { position: relative; }
.energize::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleY(0.15);
  transform-origin: top;
  transition: opacity 0.6s ease, transform 0.9s ease;
}
.energize.is-live::after { opacity: 0.5; transform: scaleY(1); }

/* ------------------------------------------------- movement 1 — opening */

.opening { padding: 60px 0 84px; }
.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.opening-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.opening-mark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--forge-dark);
  border: 1px solid var(--accent-line);
  padding: 7px;
  flex-shrink: 0;
}
.opening-mark img.opening-product-logo {
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 16px;
}
.opening-eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.opening h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 6px;
}
.opening-promise {
  margin-top: 22px;
  font-size: 1.16rem;
  line-height: 1.62;
  font-weight: 500;
  color: var(--ink-2);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 17px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 5px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.status-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}
.status-chip.is-managed { border-color: rgba(247,171,36,0.42); background: rgba(247,171,36,0.11); color: var(--forge-amber); }
.status-chip.is-private { border-color: rgba(179,155,255,0.42); background: rgba(179,155,255,0.11); color: var(--forge-lavender); }

.chipset { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--rule-3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.022);
}
.chip.is-path { color: var(--forge-cyan); border-color: rgba(56, 217, 240, 0.28); }
.chip.is-eco { color: var(--forge-lavender); border-color: rgba(179, 155, 255, 0.28); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--forge-darker);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.cta:hover, .cta:focus-visible { filter: brightness(1.12); transform: translateY(-1px); }
.cta.is-quiet {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule-2);
}
.cta.is-quiet:hover, .cta.is-quiet:focus-visible { color: var(--ink); border-color: var(--ink-4); }

/* ----------------------------------------------------------- plates */

/* The screenshot is the primary canvas: instrument framing, generous size. */
.plate {
  position: relative;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: var(--forge-panel);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.014);
}
.plate::before,
.plate::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
  border-color: var(--accent-line);
  opacity: 0.8;
}
.plate::before { top: 44px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.plate::after { right: 10px; bottom: 10px; border-right: 2px solid; border-bottom: 2px solid; }

.plate-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule-3);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: rgba(255, 255, 255, 0.02);
}
.plate-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}
.plate-stage { background: var(--forge-plate); padding: 14px; }
.plate-stage img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--rule-3);
}
.plate-note {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--rule-3);
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-3);
}
.plate-note b { color: var(--ink); font-weight: 700; }
.plate.is-wide { margin-top: 44px; }

/* True-phone captures. A 390px-wide source stays at a legible scale instead of
   stretching to the column width and towering over the rest of the bench. */
.plate.is-phone .plate-stage {
  display: flex;
  justify-content: center;
}
.plate.is-phone .plate-stage img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
}

/* Explanatory panel. Never styled to imitate a product interface. */
.callout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  padding: 34px 30px;
  border: 1px dashed rgba(238, 243, 248, 0.22);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.014) 0 12px, transparent 12px 24px),
    var(--forge-plate);
}
.callout .callout-label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forge-amber);
}
.callout p { font-size: 0.98rem; line-height: 1.68; color: var(--ink-3); max-width: 54ch; }
.callout .callout-meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-4);
  line-height: 1.7;
}

/* ------------------------------------------------ movement 2 — scenes */

.scenes { margin-top: 26px; display: grid; gap: 78px; }
.scene {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 54px;
  align-items: center;
}
/* Alternate scene direction so the page never reads as a template repeat. */
.scene.is-flipped { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.scene.is-flipped .scene-copy { order: 2; }
.scene.is-flipped .plate { order: 1; }

.scene-job {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.scene-copy h3 {
  margin-top: 13px;
  font-family: var(--display);
  font-size: clamp(1.42rem, 2.2vw, 1.78rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: #fff;
}
.scene-copy > p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.scene-points { margin-top: 20px; display: grid; gap: 11px; }
.scene-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.97rem;
  line-height: 1.62;
  color: var(--ink-3);
}
.scene-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.scene-bound {
  margin-top: 22px;
  padding: 15px 18px;
  border-left: 3px solid var(--rule-2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 5px 5px 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-3);
}
.scene-bound span {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 5px;
}

/* -------------------------------------------------- movement 3 — rail */

.rail {
  margin-top: 42px;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--rule-3);
  padding-left: 0;
}
.rail-step {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 26px 0 26px 34px;
}
.rail-step + .rail-step { border-top: 1px solid var(--rule-3); }
/* Node on the spine. */
.rail-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 38px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forge-darker);
  border: 2px solid var(--rule-2);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.is-live .rail-step::before {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.is-live .rail-step:nth-child(2)::before { transition-delay: 0.1s; }
.is-live .rail-step:nth-child(3)::before { transition-delay: 0.2s; }
.is-live .rail-step:nth-child(4)::before { transition-delay: 0.3s; }
.is-live .rail-step:nth-child(5)::before { transition-delay: 0.4s; }
.rail-n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0.55;
}
.rail-step h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
}
.rail-step p {
  margin-top: 9px;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-3);
  max-width: 68ch;
}

/* ------------------------------------------------- movement 4 — bench */

.bench {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  /* Lens windows carry their own aspect ratios, so cards size to content
     rather than stretching to the tallest one in the row. */
  align-items: start;
}
.bench.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lens {
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--forge-panel);
  overflow: hidden;
}
/* Detail window. The image is the exact accepted capture, scaled and offset
   by CSS only; no pixels are redrawn and no new state is implied. */
.lens-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--dw-ar, 16 / 10);
  background: var(--forge-plate);
  border-bottom: 1px solid var(--rule-3);
}
.lens-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--dw-zoom, 2.2) * 100%);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) translate(var(--dw-x, 0%), var(--dw-y, 0%));
  transition: width 0.4s ease, transform 0.4s ease;
}
.lens-frame.is-full img {
  width: 100%;
  transform: translate(-50%, -50%);
}
.lens-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-3);
}
.lens-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
}
.lens-n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.lens-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 15px;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule-3);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lens-toggle:hover { color: var(--ink); border-color: var(--rule-2); }
.lens-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.lens figcaption {
  padding: 14px 16px 17px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-3);
}
.lens figcaption b { color: var(--ink-2); font-weight: 700; }

.bench-note {
  margin-top: 22px;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-3);
  max-width: 78ch;
}
.bench-note a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------------------------------------------- movement 5 — readiness */

.readiness-panel {
  margin-top: 40px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 54%), var(--forge-panel-2);
  padding: 44px 40px 46px;
}
.readiness-status {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.readiness-panel h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.018em;
  color: #fff;
}
.readiness-panel p {
  margin-top: 16px;
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.readiness-panel .cta-row { margin-top: 30px; }

.price-table {
  margin-top: 28px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.price-table caption {
  text-align: left;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: 12px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-3);
  vertical-align: top;
}
.price-table thead th {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.price-table tbody th { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.price-table td { color: var(--ink-2); }
.price-table .amount {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--accent);
  white-space: nowrap;
}

.model-list { margin-top: 26px; display: grid; gap: 13px; }
.model-list li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.model-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.model-list b { color: #fff; font-weight: 700; }

/* ------------------------------------------------------------ two-column */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 42px;
}
.panel {
  padding: 32px 30px 34px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--forge-panel);
}
.panel h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
}
.panel h3 .marker {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 11px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}
.panel ul { margin-top: 18px; display: grid; gap: 12px; }
.panel li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  line-height: 1.66;
  color: var(--ink-2);
}
.panel li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.panel.is-boundary { border-color: var(--rule-2); background: rgba(255, 255, 255, 0.014); }
.panel.is-boundary h3 .marker { background: var(--ink-4); }
.panel.is-boundary li::before { background: var(--ink-4); }
.panel.is-boundary li { color: var(--ink-3); }

/* --------------------------------------------------------- requirements */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--rule-3);
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  overflow: hidden;
}
.spec { background: var(--forge-panel); padding: 26px 24px 28px; }
.spec dt {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.spec dd { margin-top: 11px; font-size: 0.98rem; line-height: 1.66; color: var(--ink-2); }

/* ------------------------------------------------------------- related */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.related-card {
  display: block;
  padding: 28px 26px 30px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--forge-panel);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.related-card:hover,
.related-card:focus-visible { border-color: var(--accent-line); transform: translateY(-2px); }
.related-card .rel-link {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.related-card .rel-name {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #fff;
}
.related-card p { margin-top: 11px; font-size: 0.95rem; line-height: 1.64; color: var(--ink-3); }

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

.dossier-footer { border-top: 1px solid var(--rule-3); padding: 46px 0 62px; }
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-note { font-size: 0.92rem; color: var(--ink-4); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--forge-teal); }

/* ============================================ business solutions suite */

/* Client Hub as the visible connective core. */
.hub {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.05fr);
  gap: 0;
  align-items: center;
}
.hub-feeds { display: grid; gap: 16px; }
.hub-feed {
  padding: 20px 22px 22px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--forge-panel);
}
.hub-feed-name {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.hub-feed-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hub-feed-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}
.hub-feed-role { display: block; margin-top: 7px; font-size: 0.93rem; line-height: 1.6; color: var(--ink-3); }
.hub-feed .readiness { margin-top: 12px; }

/* Spine joining the three feeds into the core. */
.hub-bracket {
  position: relative;
  align-self: stretch;
  min-height: 190px;
}
.hub-bracket::before {
  content: '';
  position: absolute;
  left: 46px;
  top: 16%;
  bottom: 16%;
  width: 2px;
  background: var(--accent-line);
}
.hub-bracket::after {
  content: '';
  position: absolute;
  left: 46px;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--accent-line);
}
.hub-stub {
  position: absolute;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent-line);
}
.hub-stub:nth-of-type(1) { top: 16%; }
.hub-stub:nth-of-type(2) { top: 50%; }
.hub-stub:nth-of-type(3) { top: 84%; }
.hub-arrow {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--accent);
}

.hub-core {
  padding: 34px 32px 36px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 58%), var(--forge-panel-2);
  box-shadow: 0 0 44px color-mix(in srgb, var(--accent) 10%, transparent);
}
.hub-core-kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hub-core h3 {
  margin-top: 11px;
  font-family: var(--display);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #fff;
}
.hub-core > p { margin-top: 14px; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.hub-records { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-records li {
  padding: 7px 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.79rem;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.024);
}
.hub-included {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-3);
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--ink-3);
}

/* App selector. */
.apps { margin-top: 42px; display: grid; gap: 22px; }
.app {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: var(--forge-panel);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.app.is-linked:hover, .app.is-linked:focus-within {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.app-preview {
  position: relative;
  overflow: hidden;
  background: var(--forge-plate);
  border-right: 1px solid var(--rule-3);
  min-height: 210px;
}
.app-preview img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--dw-zoom, 1.55) * 100%);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) translate(var(--dw-x, 0%), var(--dw-y, 0%));
}
.app-preview.is-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.014) 0 12px, transparent 12px 24px),
    var(--forge-plate);
}
.app-glyph {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--ink-3);
  text-align: center;
}
.app-body { padding: 30px 30px 32px; display: flex; flex-direction: column; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.app-title-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.app-product-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}
.app-body h3 {
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #fff;
}
.app-job { margin-top: 14px; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.app-bound { margin-top: 13px; font-size: 0.93rem; line-height: 1.62; color: var(--ink-3); }
.app-enter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 22px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.app-enter:hover, .app-enter:focus-visible { background: var(--accent); color: var(--forge-darker); }
.app-here {
  margin-top: 20px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.app-here a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.readiness {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--rule-2);
  color: var(--ink-3);
}
.readiness::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.readiness.is-managed { color: var(--forge-amber); border-color: rgba(247, 171, 36, 0.40); background: rgba(247, 171, 36, 0.09); }
.readiness.is-dev { color: var(--forge-teal); border-color: rgba(58, 209, 214, 0.36); background: rgba(58, 209, 214, 0.08); }
.readiness.is-private { color: var(--forge-lavender); border-color: rgba(179, 155, 255, 0.36); background: rgba(179, 155, 255, 0.08); }
.readiness.is-core { color: var(--forge-cyan); border-color: rgba(56, 217, 240, 0.36); background: rgba(56, 217, 240, 0.08); }
.readiness.is-planned { color: var(--ink-4); }

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.roadmap-item {
  padding: 26px 24px 28px;
  border: 1px solid var(--rule-3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.016);
}
.roadmap-item h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.roadmap-item p { margin-top: 10px; font-size: 0.94rem; line-height: 1.64; color: var(--ink-3); }
.roadmap-item .readiness { margin-top: 16px; }

/* Lifecycle sequence. */
.lifecycle { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.lifecycle-step {
  flex: 1 1 168px;
  padding: 24px 20px 26px;
  border: 1px solid var(--rule-3);
  border-radius: 8px;
  background: var(--forge-panel);
}
.lifecycle-step .step-n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.lifecycle-step h3 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
}
.lifecycle-step p { margin-top: 9px; font-size: 0.92rem; line-height: 1.6; color: var(--ink-3); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .opening-grid { grid-template-columns: 1fr; gap: 44px; }
  .scene, .scene.is-flipped { grid-template-columns: 1fr; gap: 34px; }
  .scene.is-flipped .scene-copy, .scene.is-flipped .plate { order: 0; }
  .hub { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .bench, .bench.is-three { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app-preview { border-right: 0; border-bottom: 1px solid var(--rule-3); min-height: 200px; }
  .movement-head { grid-template-columns: 62px minmax(0, 1fr); gap: 20px; }
  .movement-num { font-size: 2rem; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --deck-h: 64px; }
  html { scroll-padding-top: calc(var(--deck-h) + 74px); }
  body { font-size: 16px; }

  .movement { padding: 62px 0; }
  .opening { padding: 36px 0 58px; }

  .dossier-header { padding: 14px var(--gutter); }
  .dossier-header .logo span { display: none; }

  /* The deck becomes a readable snap-scrolling row under the identity line. */
  .deck-inner {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding: 0 0 0 var(--gutter);
  }
  .deck-id {
    width: 100%;
    padding: 0 var(--gutter) 0 0;
    border-right: 0;
    min-height: var(--deck-h);
  }
  .deck-list {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding: 10px var(--gutter) 12px 0;
    border-top: 1px solid var(--rule-3);
    gap: 9px;
  }
  .deck-chapter { min-height: 46px; padding: 0 14px 0 16px; }
  .deck-label { font-size: 0.875rem; }

  .opening-mark { gap: 14px; margin-bottom: 20px; }
  .opening-mark img { width: 54px; height: 54px; }
  .opening h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .opening-promise { margin-top: 18px; font-size: 1.06rem; }
  .cta-row { margin-top: 28px; }
  .cta { width: 100%; }

  .movement-head { grid-template-columns: 1fr; gap: 0; }
  .movement-num { font-size: 1.6rem; margin-bottom: 14px; padding-top: 0; }
  .movement-title { max-width: none; }

  .scenes { gap: 56px; }
  .plate::before { top: 42px; }
  .plate-stage { padding: 9px; }
  .plate-note { padding: 14px 15px 16px; }
  .callout { min-height: 200px; padding: 26px 20px; }

  .rail-step { grid-template-columns: 1fr; gap: 10px; padding: 22px 0 22px 26px; }
  .rail-n { font-size: 1.5rem; }

  .panel, .related-card, .roadmap-item, .app-body { padding: 26px 20px 28px; }
  .readiness-panel { padding: 30px 22px 32px; }
  .spec { padding: 22px 20px 24px; }
  .hub-core { padding: 28px 22px 30px; }

  .lifecycle-step { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* The connective spine turns vertical on phones. */
  .hub-bracket { min-height: 54px; }
  .hub-bracket::before { left: 50%; top: 0; bottom: 0; width: 2px; height: auto; }
  .hub-bracket::after { display: none; }
  .hub-stub { display: none; }
  .hub-arrow {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--accent);
    border-bottom: 0;
  }

  /* Wide tabular pricing reflows to stacked rows on phones. */
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tr { border: 1px solid var(--rule-2); border-radius: 6px; margin-bottom: 14px; padding: 8px 0; }
  .price-table th, .price-table td { border-bottom: 0; padding: 8px 16px; }
  .price-table td::before {
    content: attr(data-label) ' ';
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ink-4);
    display: block;
    margin-bottom: 3px;
  }
}

/* ----------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .energize::after { opacity: 0.45; transform: none; }
  .rail-step::before { border-color: var(--accent); }
  .deck-chapter[aria-current="true"]::after { transform: scaleX(1); }
  .cta:hover, .related-card:hover, .app.is-linked:hover { transform: none; }
}

@media print {
  .deck, .lens-toggle, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
