/* =============================================================================
   DOTMENT Internal Communication Capability Framework — styles (v2)
   -----------------------------------------------------------------------------
   1. Tokens          2. Base            3. Shared parts     4. Header
   5. Hero / model    6. How it works    7. Framework        8. Next + footer
   9. Responsive      10. No-script      11. Reduced motion
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens — exact values from the DOTMENT Brand Book v12
   ------------------------------------------------------------------------ */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --blue: #75E2FF;
  --grey: #E3E4E5;

  --ink: var(--black);
  --ink-2: rgba(0, 0, 0, 0.66);
  --ink-3: rgba(0, 0, 0, 0.5);
  --line: rgba(0, 0, 0, 0.14);
  --paper: var(--white);
  --paper-2: rgba(255, 255, 255, 0.74);
  --paper-3: rgba(255, 255, 255, 0.5);
  --line-light: rgba(255, 255, 255, 0.18);
  --blue-wash: rgba(117, 226, 255, 0.14);

  --font: 'Gilroy', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
  --max: 1440px;
  --header-h: 84px;
  --bar-h: 76px;

  --dur-fast: 180ms;
  --dur: 280ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dt, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.section-light :focus-visible, .how :focus-visible, .fw :focus-visible, .next :focus-visible { outline-color: var(--black); }
::selection { background: var(--blue); color: var(--black); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--blue); color: var(--black); font-weight: 700; font-size: 14px; }
.skip-link:focus { top: 12px; }
[data-focus-target]:focus { outline: none; }

/* ---------------------------------------------------------------------------
   3. Shared parts
   ------------------------------------------------------------------------ */
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); flex: none; }
.eyebrow-dark::before { background: var(--black); }
h2 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 900; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; line-height: 1.2;
  border: 1.5px solid currentColor; white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.btn .icon { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 11.5px; }
.btn-blue { background: var(--blue); color: var(--black); border-color: var(--blue); }
.btn-blue:hover { background: var(--white); border-color: var(--white); }
.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--white); color: var(--black); }
.btn-outline { color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-ghost { border-style: dashed; color: rgba(0, 0, 0, 0.55); cursor: default; }

.dots { display: flex; gap: 9px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.dots-black i { background: var(--black); }

.glyph { display: inline-flex; gap: 4px; flex: none; }
.glyph i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--black); }
.glyph i.on { background: var(--black); }

.link-line { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; border-bottom: 1.5px solid var(--blue); padding-bottom: 4px; transition: color var(--dur-fast); }
.link-line:hover { color: var(--blue); }

/* ---------------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------------ */
.site-header { background: var(--black); color: var(--white); position: relative; z-index: 30; }
.site-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 36px; }
.site-nav a[data-nav] {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-fast);
}
.site-nav a[data-nav]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease); }
.site-nav a[data-nav]:hover { color: var(--white); }
.site-nav a[data-nav]:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span { position: relative; display: block; width: 24px; height: 2px; background: var(--white); transition: background var(--dur-fast); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--white); transition: transform var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease); }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------------------
   5. Hero — the model
   ------------------------------------------------------------------------ */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 60px; align-items: center; padding-top: 44px; padding-bottom: 72px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 0.97; letter-spacing: -0.035em; font-weight: 900; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { color: var(--paper-2); margin-bottom: 34px; max-width: 30em; }
.facts { display: flex; gap: 44px; margin-bottom: 38px; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { font-size: 42px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.facts dt { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-3); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero .dots { position: absolute; left: var(--gutter); bottom: 34px; }
.dotgrid {
  position: absolute; right: 0; top: 0; bottom: 0; width: 180px; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent);
  mask-image: linear-gradient(to left, #000 40%, transparent);
}

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 620px; }
.model { width: 100%; height: auto; font-family: var(--font); }
.model .ring { fill: none; stroke-width: 1; }
.model .ring-out { stroke: rgba(255, 255, 255, 0.26); }
.model .ring-halo { stroke: rgba(255, 255, 255, 0.08); }
.model .ring-in { stroke: rgba(255, 255, 255, 0.5); stroke-dasharray: 3 6; }
.model .ring-core { stroke: rgba(255, 255, 255, 0.12); }
.model .traveller { fill: var(--blue); }
.model .centre-title { font-size: 22px; font-weight: 900; letter-spacing: 0.16em; fill: var(--white); }
.model .caption { font-size: 15px; font-weight: 800; letter-spacing: 0.2em; fill: var(--blue); }
.model .caption-sub { font-size: 13.5px; font-weight: 500; fill: rgba(255, 255, 255, 0.75); }

/* domain points */
.model .dpt { cursor: pointer; outline: none; }
.model .dpt .pt { fill: var(--blue); transition: r var(--dur-fast) var(--ease); }
.model .dpt .halo { fill: var(--blue); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity var(--dur-fast); }
.model .dpt:hover .pt, .model .dpt:focus-visible .pt, .model .dpt.is-active .pt { r: 7; }
.model .dpt:hover .halo, .model .dpt:focus-visible .halo, .model .dpt.is-active .halo { opacity: 0.35; }
.js .model .dpt .halo { animation: point-glow 4.2s var(--ease) calc(var(--i) * 0.16s + 0.6s) 1 both; }
@keyframes point-glow {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  10% { opacity: 0.5; transform: scale(1); }
  22% { opacity: 0; transform: scale(1.25); }
}

/* level nodes */
.model .lnode { cursor: pointer; outline: none; }
.model .node { fill: var(--white); stroke: var(--blue); stroke-width: 2; transition: stroke-width var(--dur-fast); }
.model .node-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.9); transition: opacity var(--dur-fast), transform var(--dur) var(--ease); }
.model .lnode:hover .node-ring, .model .lnode:focus-visible .node-ring { opacity: 0.7; transform: scale(1); }
.model .node-icon { fill: none; stroke: var(--black); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.model .node-label { font-size: 15px; font-weight: 800; letter-spacing: 0.14em; fill: var(--white); transition: fill var(--dur-fast); }
.model .lnode:hover .node-label, .model .lnode:focus-visible .node-label { fill: var(--blue); }
.model .node-sub { font-size: 12.5px; font-weight: 500; fill: rgba(255, 255, 255, 0.72); }

.model-tip {
  position: absolute; z-index: 5; pointer-events: none;
  max-width: 300px; padding: 10px 14px;
  background: var(--white); color: var(--black);
  font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, calc(-100% - 16px));
}
.model-tip small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0, 0, 0, 0.55); }
.model-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--white); border-bottom: 0; }
.model-tip.is-below { transform: translate(-50%, 16px); }
.model-tip.is-below::after { bottom: auto; top: -6px; border-top: 0; border-bottom: 6px solid var(--white); }

/* entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.25s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.35s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.45s; }
.js .hero-visual { opacity: 0; animation: fade 1s var(--ease) 0.3s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------------------------------------------------------------------------
   6. How it works — heading and the three levels
   ------------------------------------------------------------------------ */
.how { background: var(--grey); padding: clamp(56px, 6vw, 80px) 0 clamp(56px, 6vw, 84px); }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.how .eyebrow { margin-bottom: 22px; }
.how h2 { max-width: 14ch; margin-bottom: 18px; }
.how .lead { color: var(--ink-2); max-width: 34em; }
.how .lead b { color: var(--ink); font-weight: 700; }
.lvls li { display: grid; grid-template-columns: 44px 150px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(0, 0, 0, 0.18); align-items: start; }
.lvls li:first-child { border-top: 2px solid var(--black); }
.lvls .glyph { margin-top: 6px; }
.lvls a { display: block; }
.lvls b { display: block; font-size: 16px; font-weight: 800; transition: color var(--dur-fast); }
.lvls a:hover b { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lvls small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.lvls .d { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   7. The framework
   ------------------------------------------------------------------------ */
.fw { background: var(--white); padding-top: clamp(64px, 7vw, 96px); }
.fw-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: 36px; }
.fw-head .eyebrow { margin-bottom: 24px; }
.fw-head .lead { color: var(--ink-2); max-width: 32em; padding-bottom: 6px; }

.barwrap { border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); background: var(--white); }
.bar { display: flex; align-items: center; gap: 28px; min-height: var(--bar-h); }
.seg { display: inline-flex; flex: none; border: 1.5px solid var(--black); border-radius: 28px; padding: 3px; }
.seg-btn { padding: 9px 20px; border-radius: 24px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; transition: background-color var(--dur-fast), color var(--dur-fast); }
.seg-btn:hover { background: var(--blue-wash); }
.seg-btn[aria-pressed="true"] { background: var(--black); color: var(--white); }
.bar-right { margin-left: auto; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; white-space: nowrap; }

/* selector tiles: 10 domains (5 × 2) or 3 levels */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-bottom: 28px; }
.tiles.is-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 14px 16px 12px;
  border: 1px solid rgba(0, 0, 0, 0.28); text-align: left;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.tile:hover { border-color: var(--black); background: var(--blue-wash); }
.tile[aria-selected="true"] { background: var(--blue); border-color: var(--blue); }
.tile-num { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--blue); transition: color var(--dur-fast); }
.tile[aria-selected="true"] .tile-num { color: var(--black); }
.tile-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; text-wrap: balance; }
.tile-count { margin-top: auto; padding-top: 6px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.tile[aria-selected="true"] .tile-count { color: rgba(0, 0, 0, 0.6); }
.tile .glyph { margin-bottom: 2px; }
.tile-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.tile[aria-selected="true"] .tile-sub { color: rgba(0, 0, 0, 0.7); }

.fw-body { transition: opacity var(--dur-fast) var(--ease); }
.fw-body.is-fading { opacity: 0; }

/* domain block */
.block { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); padding: clamp(44px, 4.5vw, 64px) 0 clamp(48px, 5.5vw, 80px); }
.block-nav, .level-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.nav-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--black); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; max-width: 100%; transition: background-color var(--dur-fast), color var(--dur-fast); }
.nav-btn:hover { background: var(--black); color: var(--white); }
.nav-btn .icon { width: 16px; height: 16px; }
.nav-btn span { white-space: normal; text-align: left; }
.side { position: relative; }
.side .num { font-size: clamp(120px, 14vw, 200px); line-height: 0.78; font-weight: 900; letter-spacing: -0.06em; color: var(--blue); margin: 0 0 26px -0.03em; }
.side h3 { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 900; margin-bottom: 18px; max-width: 14ch; }
.side .desc { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin-bottom: 32px; max-width: 27em; }
.stat { display: flex; align-items: baseline; gap: 14px; }
.stat b { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.dist { display: flex; height: 6px; gap: 3px; margin: 14px 0 10px; max-width: 360px; }
.dist i { display: block; height: 100%; }
.dist .f, .legend .f { background: var(--black); }
.dist .a, .legend .a { background: rgba(0, 0, 0, 0.32); }
.dist .v, .legend .v { background: var(--blue); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; }
.wm { position: absolute; right: 0; top: 14px; width: 150px; height: 150px; stroke: var(--black); opacity: 0.07; fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.group { margin-bottom: 36px; }
.group:last-child { margin-bottom: 0; }
.gh { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding-bottom: 11px; border-bottom: 2px solid var(--black); }
.gh .l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gh .l b { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.gh .l span { font-size: 13.5px; color: var(--ink-3); }
.gh .count { font-size: 13px; font-weight: 700; color: var(--ink-3); min-width: 16px; text-align: right; }
.empty { padding: 14px 0 0; font-size: 14px; color: var(--ink-3); font-style: italic; }

/* capability row = a button, followed by its body */
.cap { border-bottom: 1px solid var(--line); }
.cap-btn {
  position: relative; display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 14px;
  width: 100%; min-height: 60px; padding: 12px 0; text-align: left;
  transition: background-color var(--dur-fast), padding var(--dur-fast) var(--ease);
}
.cap-btn::before { content: ""; position: absolute; left: -16px; right: -16px; top: 0; bottom: 0; background: var(--blue-wash); opacity: 0; transition: opacity var(--dur-fast); pointer-events: none; }
.cap-btn:hover::before { opacity: 1; }
.cap-btn > * { position: relative; }
.cap-btn .ci { font-size: 12px; font-weight: 700; color: rgba(0, 0, 0, 0.4); letter-spacing: 0.06em; }
.cap-btn .cn { font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color var(--dur-fast); }
.cap-btn:hover .cn { text-decoration-color: var(--blue); }
.cap-btn .chev { width: 18px; height: 18px; stroke: var(--black); fill: none; stroke-width: 1.8; justify-self: end; transition: transform var(--dur) var(--ease); }
.cap-btn:hover .chev { transform: translateY(2px); }
.cap-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cap.is-open { background: linear-gradient(90deg, var(--blue) 0 4px, transparent 4px); }
.cap.is-open .cap-btn { padding-left: 22px; }
.cap.is-open .cap-btn .cn { font-weight: 700; }
.cap-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur) var(--ease), visibility 0s linear var(--dur); }
.cap.is-open .cap-body { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.cap-body-inner { overflow: hidden; }
.cap-body-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; padding: 4px 0 22px 76px; }
.cap-body-content .def { font-size: 17px; line-height: 1.55; color: rgba(0, 0, 0, 0.82); }
.cap-body-content .draft-note { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); font-style: italic; }
.cap-body-content .lab { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.cap-body-content .maturity { margin: 0 0 12px; font-size: 14.5px; }
.prog { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.prog li { display: flex; align-items: center; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: rgba(0, 0, 0, 0.45); }
.prog li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--black); margin-right: 6px; flex: none; }
.prog li.is-past::before { background: var(--black); }
.prog li.is-current { color: var(--black); }
.prog li.is-current::before { background: var(--blue); border-color: var(--blue); }
.prog li + li { margin-left: 16px; position: relative; }
.prog li + li::after { content: ""; position: absolute; left: -16px; width: 12px; height: 1px; background: rgba(0, 0, 0, 0.3); top: 50%; }

/* by-level view */
.lsection { padding: clamp(40px, 4.5vw, 56px) 0 clamp(48px, 5.5vw, 80px); }
.lsection .level-nav { margin-top: 28px; }
.lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--black); margin-bottom: 8px; }
.lhead-l { display: flex; align-items: center; gap: 16px; }
.lhead-l .glyph i { width: 12px; height: 12px; }
.lhead h3 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -0.03em; font-weight: 900; }
.lhead p { font-size: 15px; color: var(--ink-2); }
.lgroup { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 60px); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lgroup:last-child { border-bottom: 0; }
.lg-head { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.lnum { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; color: var(--blue); line-height: 1; }
.lname { font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.lcaps .cap:first-child .cap-btn { padding-top: 0; min-height: 48px; }

/* ---------------------------------------------------------------------------
   8. Next + footer
   ------------------------------------------------------------------------ */
.next { position: relative; background: var(--blue); color: var(--black); padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 7.5vw, 110px); }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.next .eyebrow { margin-bottom: 24px; }
.next h2 { margin-bottom: 16px; max-width: 14ch; }
.next p:not(.eyebrow) { font-size: 16px; line-height: 1.55; color: rgba(0, 0, 0, 0.72); margin-bottom: 30px; max-width: 32em; }
.next .dots { position: absolute; right: var(--gutter); bottom: 34px; }
.site-footer { background: var(--black); color: var(--paper-2); font-size: 13px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line-light); flex-wrap: wrap; }
.foot-l, .foot-r { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-l img { height: 20px; width: auto; }
.foot-r a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; transition: color var(--dur-fast); }
.foot-r a:hover { color: var(--white); }
.foot-r .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------------
   9. Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { justify-self: center; max-width: 560px; margin-top: 8px; }
  .dotgrid { width: 120px; }
  .block { grid-template-columns: 1fr; gap: 36px; }
  .side .desc { margin-bottom: 24px; }
  .lgroup { grid-template-columns: 260px 1fr; }
}
@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2rem;
    padding: 2.5rem var(--gutter); background: var(--black);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav li { border-bottom: 1px solid var(--line-light); }
  .site-nav a[data-nav] { display: block; padding: 1.25rem 0; font-size: 1.05rem; letter-spacing: 0.1em; }
  .site-nav .btn { width: 100%; }
  .menu-toggle { display: flex; }
  body.menu-open { overflow: hidden; }

  .how-grid, .fw-head, .next-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.is-levels { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .lvls li { grid-template-columns: 44px 1fr; }
  .lvls .d { grid-column: 2; }
  .lgroup { grid-template-columns: 1fr; gap: 14px; }
  .cap-body-content { grid-template-columns: 1fr; gap: 18px; padding-left: 54px; }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .hero-grid { padding-top: 28px; padding-bottom: 64px; }
  .facts { gap: 28px; }
  .facts dd { font-size: 34px; }
  .actions { gap: 18px; }
  .actions .btn { width: 100%; }
  .hero .dots { bottom: 24px; }
  .model .node-sub, .model .caption-sub { font-size: 15px; }
  .model .node-label { font-size: 17px; }
  .model .centre-title { font-size: 24px; }
  .model .caption { font-size: 17px; }
  .bar { gap: 14px; min-height: var(--bar-h); }
  .tiles { gap: 6px; padding-bottom: 22px; }
  .tile { padding: 12px 12px 10px; }
  .tile-num { font-size: 20px; }
  .tile-name { font-size: 12.5px; }
  .seg-btn { padding: 12px 14px; font-size: 11px; }
  .bar-right { display: none; }
  .side .num { margin-bottom: 16px; }
  .cap-btn { grid-template-columns: 32px 1fr 22px; gap: 10px; min-height: 56px; }
  .cap-btn .cn { font-size: 16px; }
  .cap-body-content { padding-left: 0; }
  .gh { grid-template-columns: 1fr auto; }
  .gh .count { display: none; }
  .lhead { gap: 8px; }
  .foot-row { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   10. No-script
   The single-file build ships the framework pre-rendered with every definition
   open, so the page stays complete where scripts are blocked.
   ------------------------------------------------------------------------ */
html.js .nojs-only { display: none !important; }
html:not(.js) .js-only { display: none !important; }
html:not(.js) .cap-body { grid-template-rows: 1fr; visibility: visible; }
html:not(.js) .cap-btn { cursor: default; }
html:not(.js) .cap-btn .chev { display: none; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .model-tip { display: none; }
@media (max-width: 900px) {
  html:not(.js) .site-nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding: 0; transform: none; visibility: visible; overflow: visible; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.25rem; width: auto; }
  html:not(.js) .site-nav li { border-bottom: 0; }
  html:not(.js) .site-nav a[data-nav] { padding: 0.5rem 0; font-size: 0.72rem; letter-spacing: 0.08em; }
  html:not(.js) .site-nav .btn { display: none; }
}

/* ---------------------------------------------------------------------------
   11. Reduced motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .hero-copy > *, .js .hero-visual { opacity: 1; transform: none; animation: none; }
  .js .model .dpt .halo { animation: none; }
}
