/* =====================================================================
   LIW Foresight Practice · shared stylesheet · version 1
   Direction B, "the horizon and the evidence": near-white editorial
   pages, flat Dark Purple bands, the three squares as the signature.
   One file for every page. Tokens first, then base, layout, components.
   Built to move into HubSpot CMS: each block below maps to a module.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* LIW palette, unchanged (brand guide July 2025) */
  --ink: #191246;          /* LIW Dark Purple: body copy, flat dark bands */
  --paper: #FBFAFE;        /* near-white ground (Dialogues guide) */
  --white: #FFFFFF;
  --violet: #783BE8;       /* LIW Purple: emphasis on light, links, focus on light */
  --green: #63D1C3;        /* LIW Green: emphasis on dark; shapes only on light */
  --yellow: #F6CF38;       /* LIW Yellow: hardest provocation on dark; focus on dark */
  --blue: #559EE2;         /* LIW Blue: facts only, flat Dark Purple only */
  --grey: #E6E7E8;         /* LIW Grey: hairline rules */

  /* 20% tints, as the brand guide allows for backgrounds */
  --violet-20: #E4D8FA;
  --green-20: #E0F6F3;
  --yellow-20: #FDF5D7;
  --blue-20: #DDECF9;

  /* Derived text tones (contrast checked) */
  --ink-72: #58537A;       /* Dark Purple at 72% on near-white: 6.9:1 */
  --white-75: #C6C4D1;     /* white at 75% on Dark Purple: 10.1:1 (Dialogues strapline rule) */

  /* The Foresight gradient: Dialogues surfaces only, fixed, never animated */
  --foresight-gradient: linear-gradient(168deg, #120E33 0%, #241858 42%, #5B2ABF 100%);

  /* Type: Open Sans only, variable weight and width */
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --display-width: 90;     /* a slightly narrower display cut, never squeezed */
  --track-display: -0.025em;
  --track-label: 0.14em;

  /* Type scale (fluid; 1rem = 16px) */
  --t-display-xl: clamp(2.6rem, 1.5rem + 4.6vw, 5.5rem);
  --t-display-l:  clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --t-display-m:  clamp(1.75rem, 1.3rem + 2vw, 2.875rem);
  --t-heading:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-lead:       clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body:       1.0625rem;
  --t-small:      0.9375rem;
  --t-label:      0.75rem;
  --t-stat:       clamp(4rem, 2.4rem + 7vw, 9rem);

  /* Space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Layout */
  --max: 1240px;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  --band-pad: clamp(64px, 9vw, 136px);

  /* The three squares */
  --sq: 16px;              /* digital size, fixed */

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-ui: 180ms;
  --t-explain: 700ms;

  /* Surface defaults (light). Every surface class resets these. */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--ink-72);
  --em: var(--violet);
  --link: var(--violet);
  --rule: var(--grey);
  --rule-strong: var(--ink);
  --horizon: var(--violet);
  --focus: var(--violet);
  --field-border: var(--ink-72);
  --field-bg: var(--white);

  /* The site commits to one look: light pages with set dark bands. */
  color-scheme: light;
}

/* ---------- 2. Surfaces ---------- */
.surface-light { --bg: var(--paper); --fg: var(--ink); --fg-muted: var(--ink-72); --em: var(--violet); --link: var(--violet); --rule: var(--grey); --rule-strong: var(--ink); --horizon: var(--violet); --focus: var(--violet); }
.surface-white { --bg: var(--white); }
.surface-dark  { --bg: var(--ink); --fg: var(--white); --fg-muted: var(--white-75); --em: var(--green); --link: var(--green); --rule: #3A3466; --rule-strong: var(--white); --horizon: var(--green); --focus: var(--yellow); --field-border: var(--white-75); --field-bg: #221A55; }
.surface-dialogues { --bg: #120E33; --fg: var(--white); --fg-muted: var(--white-75); --em: var(--green); --link: var(--green); --rule: rgba(255,255,255,.22); --rule-strong: var(--white); --horizon: var(--white); --focus: var(--yellow); background-image: var(--foresight-gradient); }
.surface-light, .surface-white, .surface-dark, .surface-dialogues { background-color: var(--bg); color: var(--fg); }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--violet-20); color: var(--ink); }
.surface-dark ::selection, .surface-dialogues ::selection { background: var(--yellow); color: var(--ink); }

.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); font-weight: 700; }
.skip-link:focus { top: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Type ---------- */
.display-xl, .display-l, .display-m {
  font-weight: 800;
  font-variation-settings: "wdth" var(--display-width);
  font-stretch: 90%;
  letter-spacing: var(--track-display);
  color: var(--fg);
}
.display-xl { font-size: var(--t-display-xl); line-height: 0.98; }
.display-l  { font-size: var(--t-display-l);  line-height: 1.02; }
.display-m  { font-size: var(--t-display-m);  line-height: 1.08; }
.heading    { font-size: var(--t-heading); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.lead       { font-size: var(--t-lead); font-weight: 700; line-height: 1.45; max-width: 40ch; }
.body       { font-size: var(--t-body); max-width: var(--measure); }
.small      { font-size: var(--t-small); line-height: 1.55; }
.muted      { color: var(--fg-muted); }
.prose { display: grid; gap: var(--s4); max-width: var(--measure); }

/* Label voice: Bold, 14% tracking, uppercase, one line. Metadata only. */
.label {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

/* Headline emphasis: one phrase of two to five words per headline */
h1 em, h2 em, h3 em, .display-xl em, .display-l em, .display-m em { font-style: normal; color: var(--em); }
/* Yellow: the hardest provocation, dark grounds only, once per event */
.surface-dark em.provoke, .surface-dialogues em.provoke { color: var(--yellow); }
/* Blue: facts only (forces, regulation, data), flat Dark Purple only */
.surface-dark em.fact { color: var(--blue); }

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--band-pad); }
.band-tight { padding-block: clamp(40px, 5vw, 72px); }
.stack { display: grid; gap: var(--s5); align-content: start; }
.stack-s { display: grid; gap: var(--s3); align-content: start; }
.stack-l { display: grid; gap: var(--s7); align-content: start; }
/* Asymmetric splits instead of equal columns */
.split { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 900px) {
  .split-5-7 { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); }
  .split-7-5 { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); }
  .split-4-8 { grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 96px); }
}
.split > * { min-width: 0; }

/* ---------- 6. The horizon line ---------- */
/* Light: a solid Purple rule. Dialogues: the glowing rule, the one permitted light effect. */
.horizon { height: 2px; background: var(--horizon); border: 0; margin: 0; width: 100%; }
.horizon-short { width: 72px; }
.surface-dialogues .horizon { background: var(--white); box-shadow: 0 0 10px 1px rgba(160, 120, 255, .55); height: 1px; }

/* ---------- 7. The three squares ---------- */
/* The practice's signature, used throughout the site in four fixed roles:
   1. Practice mark in the header, beside the LIW lockup (every page).
   2. Headline stamp above every section headline (light, dark and Dialogues).
   3. Sign-off, centred, where the page hands over to the conversation.
   4. Diagnostic stepper for Clarity, Climate and Competence, always with words.
   Always Purple, Green, Yellow, left to right. Square, flat, solid, equal.
   16px with an 8px gap. Never rotated, rounded, outlined, tiled, animated,
   used as bullets, as a container or as a chart key. */
.squares { display: inline-flex; gap: calc(var(--sq) / 2); line-height: 0; flex: 0 0 auto; }
.squares i { display: block; width: var(--sq); height: var(--sq); }
.squares i:nth-child(1) { background: var(--violet); }
.squares i:nth-child(2) { background: var(--green); }
.squares i:nth-child(3) { background: var(--yellow); }
.headline-stamp { display: grid; gap: var(--s4); justify-items: start; align-content: start; }
.sign-off { display: flex; justify-content: center; padding-block: var(--s8) var(--s6); }
.stamp { display: inline-flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.practice-mark { display: inline-flex; align-items: center; gap: var(--s3); padding-left: var(--s5); margin-left: var(--s5); border-left: 1px solid var(--grey); font-weight: 700; font-size: 0.9375rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand { display: flex; align-items: center; min-width: 0; }
/* Stepper: each square is one condition; a finished condition is solid, the rest are held back */
.stepper { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.stepper li { font-weight: 700; font-size: var(--t-small); }
.stepper li[data-state="todo"] { color: var(--fg-muted); font-weight: 600; }
.stepper li[data-state="done"]::after { content: " · done"; font-weight: 600; color: var(--fg-muted); }
.stepper li[aria-current="step"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* ---------- 8. Site header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--grey); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s4); }
.brand-link { display: block; flex: 0 0 auto; }
@media (max-width: 880px) { .practice-mark { padding-left: var(--s3); margin-left: var(--s3); } .practice-mark .pm-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.brand-link img { width: 228px; height: auto; } /* never below 117px; PNG is 598px wide */
.site-nav { display: flex; align-items: center; gap: var(--s6); }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s5); }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; padding-block: var(--s2); border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--grey); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--violet); }
.part-of { font-size: 0.8125rem; color: var(--ink-72); text-decoration: none; font-weight: 600; white-space: nowrap; }
.part-of:hover { color: var(--ink); text-decoration: underline; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .brand-link img { width: 176px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--s2); font: 700 0.9375rem/1 var(--font); color: var(--ink); background: none; border: 1.5px solid var(--ink); padding: 10px 14px; cursor: pointer; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--grey); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--s5) max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: var(--s3) 0; font-size: 1.125rem; border-bottom: 1px solid var(--grey); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--grey); color: var(--violet); }
  .part-of { padding-top: var(--s4); }
  .site-header { position: relative; }
}

/* ---------- 9. Actions ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  font: 700 1rem/1.2 var(--font);
  padding: 15px 22px;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.btn:hover { background: transparent; color: var(--fg); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--fg); }
.btn-quiet:hover { background: var(--fg); color: var(--bg); }
.surface-dialogues .btn { color: #120E33; }
.surface-dialogues .btn:hover { color: var(--white); }
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform var(--t-ui) var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 700; color: var(--fg); text-decoration: none; border-bottom: 2px solid var(--em); padding-bottom: 2px; display: inline-flex; gap: var(--s2); }
.link-arrow:hover { border-bottom-width: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }

/* ---------- 10. Photography ---------- */
/* Real LIW photography only. The 45 degree cut echoes the symbol's chevron. */
.photo { position: relative; margin: 0; }
.photo img { width: 100%; object-fit: cover; }
.photo-cut img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 56px) 100%, 0 100%); }
.photo figcaption { margin-top: var(--s3); font-size: 0.8125rem; color: var(--fg-muted); }
.ratio-4-3 img { aspect-ratio: 4 / 3; }
.ratio-3-2 img { aspect-ratio: 3 / 2; }
.ratio-4-5 img { aspect-ratio: 4 / 5; }

/* ---------- 11. Evidence: statistics ---------- */
.stat { display: grid; gap: var(--s3); align-content: start; }
.stat-figure { font-size: var(--t-stat); font-weight: 800; font-variation-settings: "wdth" 88; font-stretch: 88%; letter-spacing: -0.035em; line-height: 0.85; font-variant-numeric: tabular-nums lining-nums; }
.stat-figure.small-figure { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); }
.stat-claim { font-weight: 700; font-size: var(--t-lead); line-height: 1.35; max-width: 26ch; }
.source { font-size: 0.8125rem; color: var(--fg-muted); max-width: 48ch; line-height: 1.5; }
.source::before { content: "Source: "; font-weight: 700; }

/* ---------- 12. Maturity scale ---------- */
/* Four levels, read left to right like a futures cone opening from today. */
.maturity { display: inline-flex; align-items: center; gap: var(--s3); }
.maturity-meter { display: inline-grid; grid-template-columns: repeat(4, 10px); gap: 3px; align-items: end; }
.maturity-meter span { display: block; width: 10px; background: transparent; border: 1.5px solid var(--fg-muted); }
.maturity-meter span:nth-child(1) { height: 6px; }
.maturity-meter span:nth-child(2) { height: 10px; }
.maturity-meter span:nth-child(3) { height: 14px; }
.maturity-meter span:nth-child(4) { height: 18px; }
.maturity-meter span.on { background: var(--fg); border-color: var(--fg); }
.maturity .label { color: var(--fg); }

.cone { width: 100%; max-width: 760px; }
.cone svg { width: 100%; height: auto; display: block; overflow: visible; }
.cone .seg { fill: transparent; stroke: var(--ink); stroke-width: 1.5; transition: fill var(--t-explain) var(--ease); }
.cone .seg.on { fill: var(--violet-20); }
.cone .seg.current { fill: var(--ink); }
.cone text.on-current { fill: var(--white); }
.cone text { font: 700 12px var(--font); letter-spacing: .14em; fill: var(--ink); }
.cone .today { font-weight: 600; letter-spacing: 0; font-size: 13px; fill: var(--ink-72); }
.cone-filter { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.cone-filter button { font: 700 0.875rem/1 var(--font); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); padding: 10px 14px; cursor: pointer; }
.cone-filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---------- 13. Lists with rules (instead of card rows) ---------- */
.ruled { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--rule-strong); }
.ruled > li { border-bottom: 1px solid var(--rule); }
.entry { display: grid; gap: var(--s3); padding-block: var(--s5); text-decoration: none; color: inherit; }
@media (min-width: 760px) {
  .entry { grid-template-columns: 13rem 1fr auto; gap: var(--s6); align-items: baseline; }
}
.entry-meta { display: grid; gap: var(--s2); align-content: start; }
.entry-title { font-size: var(--t-heading); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
a.entry:hover .entry-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--em); }
.entry-dek { color: var(--fg-muted); margin-top: var(--s2); max-width: 60ch; }
.entry-aside { font-size: var(--t-small); color: var(--fg-muted); white-space: nowrap; }

/* ---------- 14. Pull quote ---------- */
.pull { display: grid; gap: var(--s4); align-content: start; }
.pull p { max-width: 22ch; font-size: var(--t-display-m); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; letter-spacing: var(--track-display); line-height: 1.1; }
.pull cite { font-style: normal; font-size: var(--t-small); color: var(--fg-muted); }

/* ---------- 15. Forms ---------- */
.form { display: grid; gap: var(--s5); max-width: 560px; }
.field { display: grid; gap: var(--s2); }
.field > label, .fieldset legend { font-weight: 700; font-size: 1rem; }
.hint { font-size: var(--t-small); color: var(--fg-muted); }
.input, .select, .textarea {
  font: 400 1.0625rem/1.4 var(--font);
  color: var(--fg);
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  border-radius: 0;
  padding: 13px 14px;
  width: 100%;
}
.textarea { min-height: 7rem; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--fg); }
.field[data-invalid="true"] .input, .field[data-invalid="true"] .select, .field[data-invalid="true"] .textarea { border-color: var(--ink); border-width: 2px; background: var(--yellow-20); }
.error { display: none; font-weight: 700; font-size: var(--t-small); color: var(--ink); background: var(--yellow-20); border-left: 4px solid var(--yellow); padding: 6px 10px; }
.field[data-invalid="true"] .error { display: block; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }

/* Response scale for the diagnostic: words carry the meaning, never colour alone */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--ink); }
.scale label { position: relative; display: grid; place-items: center; text-align: center; gap: 4px; padding: var(--s3) var(--s2); min-height: 72px; font-size: 0.875rem; font-weight: 600; line-height: 1.25; cursor: pointer; border-left: 1.5px solid var(--ink); }
.scale label:first-of-type { border-left: 0; }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale label:has(input:checked) { background: var(--ink); color: var(--white); }
.scale label:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; z-index: 1; }
@media (max-width: 560px) {
  .scale { grid-template-columns: 1fr; }
  .scale label { border-left: 0; border-top: 1.5px solid var(--ink); min-height: 48px; justify-items: start; text-align: left; padding-inline: var(--s4); }
  .scale label:first-of-type { border-top: 0; }
}

.confirm { display: grid; gap: var(--s3); border-top: 2px solid var(--ink); padding-top: var(--s5); max-width: 560px; }

/* ---------- 16. Placeholder marker ---------- */
/* Visible build marker for anything not final. Removed at handover. */
.placeholder {
  display: grid; gap: var(--s1);
  border: 2px dashed var(--ink);
  background: var(--yellow-20);
  color: var(--ink);
  padding: var(--s3) var(--s4);
  font-size: var(--t-small);
  line-height: 1.45;
}
.placeholder::before { content: "Placeholder"; font-weight: 700; font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; }
.placeholder-inline { display: inline; padding: 0 4px; border: 1.5px dashed var(--ink); background: var(--yellow-20); color: var(--ink); }

/* ---------- 17. Client strip ---------- */
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) clamp(24px, 4vw, 56px); list-style: none; padding: 0; margin: 0; }
.clients img { width: auto; max-width: 140px; object-fit: contain; object-position: left center; opacity: .8; }

/* ---------- 18. Dialogues band ---------- */
.dialogues { display: grid; }
@media (min-width: 900px) { .dialogues { grid-template-columns: 1fr 1fr; } }
.dialogues > * { min-width: 0; }
.dialogues-copy { display: grid; gap: var(--s5); align-content: center; padding-block: var(--band-pad); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .dialogues-copy { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100vw - var(--max)) / 2)); } }
.dialogues-photo { margin: 0; background: #120E33; min-height: 320px; }
.dialogues-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); }
.site-footer .wrap { display: grid; gap: var(--s7); padding-block: var(--s9) var(--s6); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a:not(.btn) { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.contact-line { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s2); font-variant-numeric: tabular-nums; user-select: all; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); border-top: 1px solid #3A3466; padding-top: var(--s5); font-size: 0.8125rem; color: var(--white-75); }

/* ---------- 20. LIW pattern (diagnostic results only) ---------- */
.pattern { display: block; width: 100%; height: auto; }
.pattern rect { stroke: var(--ink); stroke-width: 2.5; }

/* ---------- 21. Motion ---------- */
/* Only three things move: the Sense to Equip loop, the maturity cone, the results pattern. */
.cycle svg { width: 100%; max-width: 560px; height: auto; display: block; overflow: visible; }
.cycle .track { fill: none; stroke: var(--grey); stroke-width: 2; }
.cycle .path { fill: none; stroke: var(--violet); stroke-width: 3; }
.cycle .node { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.cycle .node.done { fill: var(--ink); }
.cycle text { font: 700 15px var(--font); fill: var(--ink); }
.cycle .note { font-weight: 400; font-size: 13px; fill: var(--ink-72); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Phone: keep the drawn diagrams legible */
@media (max-width: 600px) {
  .cycle text { font-size: 22px; }
  .cycle .note { font-size: 18px; }
  .cone svg { display: none; }
  table.data, table.data tbody, table.data caption { display: block; min-width: 0; width: 100%; }
  table.data tr { display: grid; } table.data th, table.data td { display: block; padding: 0; border: 0; } table.data tbody th { width: auto; }
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data tr { display: grid; gap: var(--s2); padding-block: var(--s4); border-bottom: 1px solid var(--rule); }
  .data th, .data td { display: block; padding: 0; border: 0; width: auto; }
  .data tbody th { width: auto; }
  .data td[data-label]::before { content: attr(data-label); display: block; font-size: var(--t-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-muted); margin-bottom: 2px; }
}


/* =====================================================================
   Page templates (added for the full build)
   ===================================================================== */

/* Page title block: stamp, title, lead, with a full-width horizon below */
.page-head { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); display: grid; gap: var(--s5); }
.page-head .lead { max-width: 46ch; }
.page-head + .horizon-wrap { padding-bottom: 0; }
.horizon-wrap .horizon { margin: 0; }

/* Section head: stamp + headline + optional intro, with breathing room */
.section-head { display: grid; gap: var(--s4); margin-bottom: clamp(32px, 4vw, 56px); max-width: 52rem; }
.section-head .body { color: var(--fg-muted); }

/* Hero (homepage) */
.hero { padding-block: clamp(48px, 7vw, 112px) clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; gap: var(--s7); align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: clamp(40px, 5vw, 88px); } }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: var(--s5); align-content: start; }
.hero-copy .lead { max-width: 38ch; }

/* Definition rows: term on the left, meaning on the right, ruled */
.defs { display: grid; border-top: 2px solid var(--rule-strong); margin: 0; }
.defs > div { display: grid; gap: var(--s2); padding-block: var(--s4); border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .defs > div { grid-template-columns: 11rem 1fr; gap: var(--s5); } }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; color: var(--fg-muted); }
.defs.two-col { border-top: 0; }
@media (min-width: 900px) { .defs.two-col { grid-template-columns: 1fr 1fr; column-gap: var(--s7); border-top: 2px solid var(--rule-strong); } }

/* Doors: three ways in, as large ruled rows */
.doors { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--rule-strong); }
.doors li { border-bottom: 1px solid var(--rule); }
.door { display: grid; gap: var(--s3); padding-block: clamp(24px, 3vw, 40px); color: inherit; text-decoration: none; }
@media (min-width: 900px) { .door { grid-template-columns: 4fr 5fr 3fr; gap: var(--s7); align-items: baseline; } }
.door-title { font-size: var(--t-display-m); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; letter-spacing: var(--track-display); line-height: 1.05; }
.door-text { color: var(--fg-muted); max-width: 46ch; }
.door-meta { display: grid; gap: var(--s2); justify-items: start; }
.door-go { font-weight: 700; border-bottom: 2px solid var(--em); padding-bottom: 2px; }
a.door:hover .door-title { color: var(--em); }
a.door:hover .door-go { border-bottom-width: 3px; }

/* Data table (futures literacy, cede or keep) */
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--t-small); line-height: 1.5; }
.data caption { text-align: left; font-weight: 700; font-size: 1rem; padding-bottom: var(--s3); caption-side: top; }
.data th, .data td { text-align: left; vertical-align: top; padding: var(--s4) var(--s5) var(--s4) 0; border-bottom: 1px solid var(--rule); }
.data thead th { font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-muted); border-bottom: 2px solid var(--rule-strong); padding-top: 0; }
.data tbody th { font-weight: 700; font-size: 1rem; width: 22%; }

/* Questions set large (the "where foresight helps" rows) */
.question-rows { display: grid; border-top: 2px solid var(--rule-strong); }
.question-row { display: grid; gap: var(--s5); padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .question-row { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); } }
.question-row > * { min-width: 0; }
.question { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; letter-spacing: var(--track-display); line-height: 1.12; }
.question-row .defs { border-top: 0; }
.question-row .defs > div:first-child { padding-top: 0; }

/* Portrait block for the practice lead */
.lead-person { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .lead-person { grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 88px); align-items: start; } }
.portrait-slot { aspect-ratio: 4 / 5; display: grid; align-content: end; }

/* Steps that really are a sequence (beta journey) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--rule-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 5rem 1fr; gap: var(--s4); padding-block: var(--s5); border-bottom: 1px solid var(--rule); }
.steps li::before { content: "Step " counter(step); font-size: var(--t-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-muted); padding-top: 4px; grid-row: 1 / 3; white-space: nowrap; }
.steps strong { display: block; }

/* Two-column page body: form and its context */
.form-layout { display: grid; gap: var(--s8); }
@media (min-width: 960px) { .form-layout { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 104px); } }
.form-layout > * { min-width: 0; }
.aside-note { display: grid; gap: var(--s4); align-content: start; padding-top: var(--s5); border-top: 2px solid var(--rule-strong); }
.note-from { display: grid; gap: var(--s3); padding: var(--s5); background: var(--violet-20); }
.note-from p { color: var(--ink); }
.note-from .sig { font-weight: 700; }

/* ---------- Article ---------- */
.reading-progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 30; background: transparent; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); }
.article-head { padding-block: clamp(48px, 7vw, 104px) var(--s7); display: grid; gap: var(--s5); max-width: 60rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.byline { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-small); color: var(--fg-muted); }
.byline strong { color: var(--fg); }
.article { display: grid; gap: var(--s6); padding-block: var(--s8) var(--s9); }
@media (min-width: 1100px) { .article { grid-template-columns: minmax(0, 1fr) 14rem; column-gap: var(--s7); max-width: 1000px; } }
.article-body { display: block; max-width: 68ch; font-size: 1.125rem; line-height: 1.7; min-width: 0; }
.article-body > * + * { margin-top: 1.15em; }
.article-body > h2 { margin-top: 2.2em; }
.article-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; letter-spacing: var(--track-display); line-height: 1.1; }
.article-body h3 { font-size: 1.25rem; font-weight: 700; }
.article-body figure, .article-body .edge-box, .article-body .tension { margin-block: 2em; }
.article-body ul, .article-body ol { padding-left: 1.2em; display: grid; gap: var(--s3); }
.article-body .takeaway { font-weight: 700; font-size: var(--t-lead); line-height: 1.45; border-top: 2px solid var(--violet); padding-top: var(--s4); }
.article-body figure { display: grid; gap: var(--s3); }
.article-body figcaption { font-size: var(--t-small); color: var(--fg-muted); }
.margin-note { font-size: var(--t-small); color: var(--fg-muted); border-top: 1px solid var(--rule-strong); padding-top: var(--s3); display: grid; gap: var(--s2); }
.margin-note strong { color: var(--fg); }
@media (min-width: 1100px) {
  .article-body .margin-note { position: absolute; right: 0; width: 14rem; margin-top: 0; }
  .article { position: relative; }
}
.edge-box { background: var(--green-20); padding: var(--s5); display: grid; gap: var(--s3); }
.tension { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .tension { grid-template-columns: 1fr 1fr; } }
.tension p { font-weight: 800; font-size: 1.25rem; line-height: 1.3; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; border-top: 2px solid var(--ink); padding-top: var(--s3); }

/* LARM column figure and the four futures 2x2 */
.larm { display: grid; grid-template-columns: 7rem 1fr; border-top: 2px solid var(--ink); font-size: var(--t-small); }
.larm > * { padding: var(--s3); border-bottom: 1px solid var(--grey); }
.larm .row-h { font-weight: 700; }
.larm .cell { display: grid; gap: 2px; }
.larm .cell strong { font-size: 1rem; }
.larm .head { font-size: var(--t-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-muted); }
.futures { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0; font-size: var(--t-small); }
.futures .q { padding: var(--s4); border: 1.5px solid var(--ink); margin: -0.75px; display: grid; gap: var(--s2); align-content: start; min-height: 9rem; background: var(--white); }
.futures .q strong { font-size: 1.0625rem; }
.futures .q.watch { background: var(--yellow-20); }
.futures .ax { font-size: var(--t-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-muted); padding: var(--s2); display: grid; align-items: center; }
.futures .ax-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.chain, .article-body .chain { list-style: none; padding: 0; display: grid; gap: var(--s2); }
@media (min-width: 760px) { .chain { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.chain li { border-top: 3px solid var(--ink); padding: var(--s3) var(--s4) var(--s3) 0; display: grid; gap: 2px; font-weight: 700; }
.chain li span { font-weight: 400; font-size: var(--t-small); color: var(--fg-muted); }

/* ---------- Diagnostic ---------- */
.diag { display: grid; gap: var(--s7); padding-block: var(--s7) var(--s9); }
.diag-panel { display: grid; gap: var(--s5); max-width: 760px; align-content: start; }
.diag-panel:focus { outline: none; }
.question-card { display: block; padding-block: var(--s6) 0; border: 0; box-shadow: inset 0 1px 0 var(--grey); margin-top: var(--s5); }
.question-card:first-of-type { box-shadow: inset 0 2px 0 var(--ink); margin-top: 0; }
.question-card legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s4); display: grid; gap: var(--s2); }
.question-card legend .label { font-size: var(--t-label); }
.question-card > * + * { clear: both; }
.question-card .error { margin-top: var(--s3); }
.q-label { display: flex; gap: var(--s3); align-items: baseline; }
.diag-nav { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; padding-top: var(--s5); border-top: 2px solid var(--ink); }
.results { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.result-row { display: grid; gap: var(--s5); padding-block: var(--s6); border-bottom: 1px solid var(--grey); }
@media (min-width: 900px) { .result-row { grid-template-columns: 22rem 1fr; gap: var(--s7); align-items: start; } }
.result-row > * { min-width: 0; }
.result-word { font-size: var(--t-display-m); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; letter-spacing: var(--track-display); line-height: 1.05; }
.result-scale { display: flex; gap: 4px; align-items: center; font-size: var(--t-small); color: var(--fg-muted); }
.result-scale b { display: inline-block; width: 28px; height: 6px; background: var(--grey); }
.result-scale b.on { background: var(--ink); }

/* Insight filter layout */
.insights-layout { display: grid; gap: var(--s7); }

/* Footer extra link */
.footer-base a { color: var(--white-75); }

/* Cycle stage notes: always readable, the current stage marked */
.cycle-notes { list-style: none; padding: 0; margin: 0; display: grid; border-top: 2px solid var(--rule-strong); }
.cycle-notes li { display: grid; gap: 2px; padding: var(--s3) 0 var(--s3) var(--s4); border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; font-size: var(--t-small); color: var(--fg-muted); transition: border-color var(--t-ui) var(--ease); }
.cycle-notes li strong { color: var(--fg); font-size: 1rem; }
.cycle-notes li[aria-current="step"] { border-left-color: var(--violet); color: var(--fg); }
.cycle .arrowhead { fill: var(--violet); }
.empty-state { padding-block: var(--s5); font-weight: 700; border-bottom: 1px solid var(--rule); }

/* ---------- Homepage hero: the horizon and the signals ---------- */
/* The headline names a future; the horizon line below it carries the evidence for that future,
   and fills while each signal is on screen so the reader can see when it will change. */
.hero2 { padding-top: clamp(48px, 7vw, 104px); }
.hero2-title { max-width: 21ch; font-size: clamp(2.75rem, 1.4rem + 6vw, 6.75rem); line-height: 0.96; }
.hero2-title em { display: inline; transition: opacity 260ms var(--ease); }
.hero2-title em.is-changing { opacity: 0; }
.hero2-sub { display: grid; gap: var(--s5); margin-top: clamp(28px, 3.5vw, 48px); }
@media (min-width: 960px) { .hero2-sub { grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; } }
.hero2-sub .lead { max-width: 40ch; }
.signals { margin-top: clamp(40px, 5vw, 72px); }
.signal-line { height: 2px; background: var(--grey); position: relative; overflow: hidden; }
.signal-line span { position: absolute; inset: 0; background: var(--violet); transform-origin: 0 50%; transform: scaleX(1); }
.signal-body { display: grid; gap: var(--s3) var(--s6); padding-block: var(--s5) var(--s6); align-items: start; }
@media (min-width: 900px) { .signal-body { grid-template-columns: 12rem minmax(0, 1fr) auto; } }
.signal-copy { display: grid; gap: var(--s2); min-height: 5.6em; min-width: 0; }
.signal-text { font-size: var(--t-lead); font-weight: 600; line-height: 1.45; max-width: 60ch; transition: opacity 260ms var(--ease); }
.signal-copy.is-changing .signal-text, .signal-copy.is-changing .source { opacity: 0; }
.signal-controls { display: flex; gap: var(--s2); }
.signal-btn { font: 700 0.9375rem/1 var(--font); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); min-width: 44px; height: 44px; padding: 0 14px; cursor: pointer; }
.signal-btn:hover { background: var(--ink); color: var(--white); }
.signal-pause { min-width: 76px; }
.hero2-photo { margin: 0; }
.hero2-photo img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; object-position: 50% 38%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), calc(100% - 72px) 100%, 0 100%); }
.hero2-photo figcaption { padding-block: var(--s3) 0; font-size: 0.8125rem; color: var(--ink-72); }

/* ---------- Not prediction, preparation ---------- */
.prep { display: grid; gap: clamp(40px, 5vw, 72px); }
.prep-title { max-width: 22ch; }
.prep-title span { display: block; }
.prep-not { color: var(--ink-72); }
.prep-not s { text-decoration-thickness: 0.08em; text-decoration-color: var(--ink); }
.benefits { display: grid; gap: 0 var(--s7); margin: 0; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits { grid-template-columns: 1fr 1fr 1fr; } }
.benefits > div { display: grid; gap: var(--s2); align-content: start; padding-block: var(--s5); border-top: 2px solid var(--ink); }
.benefits dt { font-size: var(--t-heading); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; letter-spacing: -0.01em; }
.benefits dd { margin: 0; color: var(--ink-72); max-width: 32ch; }

/* ---------- Full-bleed photo break ---------- */
.photo-break { margin: 0; }
.photo-break img { width: 100%; height: clamp(240px, 36vw, 520px); object-fit: cover; }
.photo-break figcaption { font-size: 0.8125rem; color: var(--ink-72); padding-top: var(--s3); }

/* ---------- Three columns of ruled prose ---------- */
.trio { display: grid; gap: var(--s6) var(--s7); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio > div { display: grid; gap: var(--s3); align-content: start; border-top: 2px solid var(--rule-strong); padding-top: var(--s4); }
.trio h3 { font-size: var(--t-heading); font-weight: 800; font-variation-settings: "wdth" var(--display-width); font-stretch: 90%; }
.trio p { color: var(--fg-muted); }

/* ---------- Position statement: quiet setup, loud promise ---------- */
.optA { display: grid; gap: var(--s5); max-width: 62rem; }
.optA .quiet { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; color: var(--ink-72); max-width: 34ch; line-height: 1.35; }
.optA .loud { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem); font-weight: 800; font-variation-settings: "wdth" 90; font-stretch: 90%; letter-spacing: -0.025em; line-height: 1; }
.optA .loud em { font-style: normal; color: var(--violet); }

/* ---------- Dark hero ground: white type; Purple emphasis passes AA as large text on #120E33 (3.2:1) ---------- */
.hero2 { padding-top: 0; }
.hero2-stage { --bg: #120E33; --em: var(--violet); background: #120E33; color: var(--white); padding-top: clamp(56px, 8vw, 120px); }
.hero2-stage .hero2-title { color: var(--white); }
.hero2-stage .hero2-title em { color: var(--violet); }
.hero2-stage .lead, .hero2-stage .signal-text { color: var(--white); }
.hero2-stage .link-arrow { border-bottom-color: var(--green); }
.hero2-stage .signal-line { background: rgba(255, 255, 255, 0.16); }
.hero2-stage .signal-btn { color: var(--white); border-color: var(--white-75); }
.hero2-stage .signal-btn:hover { background: var(--white); color: var(--ink); }
.hero2-stage .signal-body { padding-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Futures cone statement (homepage) ---------- */
.cone-statement { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .cone-statement { grid-template-columns: 5fr 7fr; align-items: center; gap: var(--s8); } }
.cone-statement > * { min-width: 0; }
.futures-svg { width: 100%; height: auto; display: block; overflow: visible; }
.futures-svg .path { fill: none; stroke: var(--violet); stroke-width: 2.5; }
.futures-svg .path.alt { stroke: var(--ink); stroke-width: 1.5; }
.futures-svg .pred { fill: none; stroke: var(--ink-72); stroke-width: 2; stroke-dasharray: 6 6; }
.futures-svg text { font: 700 13px var(--font); letter-spacing: .1em; fill: var(--ink); text-transform: uppercase; }
.futures-svg .t-muted { fill: var(--ink-72); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 14px; }
.futures-svg .dot { fill: var(--ink); }
.futures-svg .end { fill: var(--paper); stroke: var(--violet); stroke-width: 2.5; }
@media (max-width: 600px) { .futures-svg text { font-size: 20px; } .futures-svg .t-muted { font-size: 20px; } }

/* ---------- Photo hero, liw3.com style: real photo, near-white wash on the text side ---------- */
.hero2-wash { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); padding-block: clamp(64px, 9vw, 136px) clamp(56px, 7vw, 104px); }
.hero2-wash .hero2-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: 0; }
.hero2-wash::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(251, 250, 254, 0.97) 0%, rgba(251, 250, 254, 0.93) 38%, rgba(251, 250, 254, 0.55) 58%, rgba(251, 250, 254, 0) 78%); }
.hero2-wash > .wrap { position: relative; z-index: 2; }
.hero2-wash .hero2-title { color: var(--ink); max-width: 13ch; }
.hero2-wash .hero2-title em { color: var(--violet); }
.hero2-wash .hero2-sub { grid-template-columns: 1fr; justify-content: start; max-width: 36rem; }
.hero2-wash .lead { color: var(--ink); }
.hero2 > .signals { margin-top: 0; }
.hero2 > .signals .signal-line { margin-top: 0; }
@media (max-width: 760px) {
  .hero2-wash { padding-top: 0; }
  .hero2-wash .hero2-bg { position: relative; height: 280px; object-position: 50% 35%; }
  .hero2-wash::before { display: none; }
  .hero2-wash > .wrap { padding-top: var(--s7); }
}

/* ---------- Framing under the hero ---------- */
.framing { display: grid; gap: var(--s3); padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--grey); }
@media (min-width: 900px) { .framing { grid-template-columns: 1fr; } }
.framing-text { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; max-width: 52ch; margin: 0; }
.rot-toggle { justify-self: start; font: 600 0.875rem/1 var(--font); color: var(--ink-72); background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.rot-toggle:hover { color: var(--ink); }
.hero2-wash { --bg: var(--paper); --fg: var(--ink); --fg-muted: var(--ink-72); --em: var(--violet); --link: var(--violet); --focus: var(--violet); --rule: var(--grey); }
.hero2-wash .hero2-bg { object-position: 78% 40%; }
.hero2-wash::before { background: linear-gradient(90deg, rgba(251, 250, 254, 0.97) 0%, rgba(251, 250, 254, 0.94) 44%, rgba(251, 250, 254, 0.6) 62%, rgba(251, 250, 254, 0) 82%); }
.hero2-wash .hero2-title { max-width: 15ch; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.25rem); }
.hero2-wash .link-arrow { border-bottom-color: var(--violet); }

/* ---------- Three ways in, as photo cards ---------- */
.door-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s6); }
@media (min-width: 900px) { .door-cards { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.door-cards li { display: flex; }
.door-card { display: flex; flex-direction: column; width: 100%; background: var(--white); border: 1px solid var(--grey); color: inherit; text-decoration: none; transition: border-color var(--t-ui) var(--ease); }
.door-card:hover { border-color: var(--ink); }
.door-card-img { display: block; overflow: hidden; }
.door-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--ease); }
.door-card:hover .door-card-img img { transform: scale(1.03); }
.door-card-body { display: grid; gap: var(--s3); align-content: start; padding: var(--s5) var(--s5) var(--s6); flex: 1; grid-template-rows: auto 1fr auto auto; }
.door-card .door-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.door-card .door-go { justify-self: start; margin-top: var(--s2); }
.door-card:hover .door-title { color: var(--violet); }

/* ---------- Hero matched to liw3.com: header over the photo, whole photo softly washed ---------- */
.site-header-over { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: transparent; border-bottom: 0; }
.site-header-over + main .hero2-wash { padding-top: clamp(140px, 13vw, 190px); min-height: min(940px, 96vh); display: grid; align-content: center; }
.hero2-wash .hero2-bg { object-position: 72% 35%; }
.hero2-wash::before { background: linear-gradient(90deg, rgba(251, 250, 254, 0.9) 0%, rgba(251, 250, 254, 0.78) 34%, rgba(251, 250, 254, 0.42) 58%, rgba(251, 250, 254, 0.08) 82%); }
.hero2-wash .hero2-title { font-variation-settings: "wdth" 100; font-stretch: 100%; letter-spacing: -0.012em; line-height: 1.04; font-size: clamp(2.75rem, 1.3rem + 5vw, 6rem); max-width: 12ch; }
.hero2-wash .hero2-sub { max-width: 40rem; gap: var(--s6); }
.hero2-wash .lead { font-weight: 400; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.5; max-width: 38ch; }
.hero2-wash .btn { background: var(--violet); border-color: var(--violet); color: var(--white); font-size: 1.125rem; padding: 18px 28px; }
.hero2-wash .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hero2-wash .link-arrow { border-bottom: 3px solid var(--green); font-size: 1.125rem; }
.hero2-wash .rot-toggle { color: var(--ink-72); }
@media (max-width: 880px) { .site-header-over { position: relative; background: var(--paper); } .site-header-over + main .hero2-wash { padding-top: 0; min-height: 0; } }
.hero2-wash .hero2-title { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem); max-width: 14ch; }
.hero2-wash .hero2-sub { margin-top: var(--s6); }
.site-header-over + main .hero2-wash { min-height: min(860px, 92vh); padding-bottom: clamp(48px, 5vw, 80px); }

/* ---------- Dark photo hero: photo, then a deep navy wash from the left, then the title ---------- */
.hero2-dark { --bg: #120E33; --fg: var(--white); --fg-muted: var(--white-75); --em: var(--violet); --link: var(--green); --focus: var(--yellow); background: #120E33; color: var(--white); min-height: min(820px, 88vh); display: grid; align-content: center; padding-block: clamp(72px, 9vw, 128px); }
.hero2-dark .hero2-bg { object-position: 75% 35%; }
.hero2-dark::before { background: linear-gradient(90deg, rgba(18, 14, 51, 0.97) 0%, rgba(18, 14, 51, 0.92) 36%, rgba(18, 14, 51, 0.6) 58%, rgba(18, 14, 51, 0.15) 82%, rgba(18, 14, 51, 0.05) 100%); }
.hero2-dark .hero2-title { color: var(--white); }
.hero2-dark .hero2-title em { color: #9B6BF2; }
.hero2-dark .lead { color: var(--white); }
.hero2-dark .btn { background: var(--violet); border-color: var(--violet); color: var(--white); }
.hero2-dark .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.hero2-dark .link-arrow { color: var(--white); border-bottom-color: var(--green); }
.hero2-dark .rot-toggle { color: var(--white-75); }
.hero2-dark .rot-toggle:hover { color: var(--white); }
@media (max-width: 760px) {
  .hero2-dark { min-height: 0; padding-top: 0; }
  .hero2-dark .hero2-bg { position: relative; }
  .hero2-dark::before { display: block; inset: 0 0 auto 0; height: 280px; background: linear-gradient(180deg, rgba(18,14,51,0) 55%, rgba(18,14,51,0.9) 100%); }
}

.payload { font: 0.8125rem/1.5 ui-monospace, Menlo, monospace; background: var(--white); border: 1px solid var(--grey); padding: var(--s4); overflow-x: auto; white-space: pre; max-width: 100%; }

.error[data-hs-error]:not(:empty) { display: block; }

.debrief-cta { display: grid; gap: var(--s6); padding: clamp(28px, 4vw, 56px); margin-top: var(--s8); align-items: center; }
@media (min-width: 900px) { .debrief-cta { grid-template-columns: 1fr auto; } }
.debrief-cta .btn { background: var(--white); border-color: var(--white); color: var(--ink); }
.debrief-cta .btn:hover { background: transparent; color: var(--white); }

/* =====================================================================
   Conditions check: 18 cards and report (Taylor's direction, 6 Nov)
   ===================================================================== */
.c-clarity { --c-tint: var(--violet-20); --c-solid: var(--violet); }
.c-climate { --c-tint: var(--green-20); --c-solid: var(--green); }
.c-competence { --c-tint: var(--yellow-20); --c-solid: var(--yellow); }
.diag-intro .diag-band { width: 100%; height: auto; aspect-ratio: 10 / 1; display: block; margin-bottom: var(--s3); }
.c-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); max-width: 36rem; }
.c-chips li { background: var(--c-tint); padding: var(--s3); text-align: center; font-weight: 700; font-size: var(--t-small); }

/* Ambition */
.amb-options { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .amb-options { grid-template-columns: 1fr 1fr; } }
.amb { position: relative; display: grid; gap: 2px; padding: var(--s4) var(--s5); border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; }
.amb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amb-l { font-weight: 800; font-size: 1.125rem; }
.amb-d { color: var(--ink-72); font-size: var(--t-small); }
.amb:has(input:checked) { background: var(--ink); color: var(--white); }
.amb:has(input:checked) .amb-d { color: var(--white-75); }
.amb:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
[data-amb-error] { display: none; margin-top: var(--s3); }

/* Condition cards */
.diag-cards { max-width: 860px; }
.ccard { border: 0; margin: 0 0 var(--s5); padding: var(--s5); background: var(--white); border-top: 6px solid var(--c-solid); box-shadow: 0 0 0 1px var(--grey) inset; display: grid; gap: var(--s4); min-width: 0; }
.ccard legend { float: left; width: 100%; padding: 0; display: grid; gap: 4px; }
.ccard legend .heading { font-size: 1.375rem; font-weight: 800; }
.ccard > * + * { clear: both; }
.ccard-sides { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .ccard-sides { grid-template-columns: 1fr 1fr; } }
.ccard-sides p { display: grid; gap: 4px; padding: var(--s4); font-size: var(--t-small); line-height: 1.5; margin: 0; }
.ccard .side-p { background: var(--c-tint); }
.ccard .side-a { border: 1.5px solid var(--c-solid); }
.ccard-ask { font-weight: 700; font-size: var(--t-small); margin: 0; }
.scale.scale-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .scale.scale-4 { grid-template-columns: 1fr; } }
.ccard[data-invalid="true"] { box-shadow: 0 0 0 2px var(--ink) inset; background: var(--yellow-20); }
.ccard[data-invalid="true"] .error { display: block; }

/* Report */
.rep { max-width: 1000px; display: grid; gap: var(--s6); }
.rep-head { display: grid; gap: var(--s2); border-bottom: 3px solid var(--violet); padding-bottom: var(--s5); }
.rep-head .label { color: var(--violet); }
.rep-pd, .rep-two { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .rep-pd, .rep-two { grid-template-columns: 1fr 1fr; } }
.rep-pull, .rep-drift, .rep-paper, .rep-start, .rep-share { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); }
.rep-pull { background: var(--green-20); border: 1.5px solid var(--green); }
.rep-drift { background: var(--yellow-20); border: 1.5px solid var(--yellow); }
.rep-pull .label, .rep-drift .label, .rep-paper .label { color: var(--ink); }
.rep-big { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; font-variation-settings: "wdth" 90; font-stretch: 90%; line-height: 1.05; }
.rep-sum { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .rep-sum { grid-template-columns: 2fr 3fr; } }
.rep-count { padding: var(--s5); display: grid; gap: var(--s2); align-content: center; }
.rep-n { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 800; line-height: 1; }
.rep-of { font-weight: 800; font-size: 1.25rem; }
.rep-count-l { font-weight: 700; }
.rep-bars { background: var(--grey); background: #F1F1F3; padding: var(--s5); display: grid; gap: var(--s4); align-content: center; }
.rbar { display: grid; gap: 6px; }
.rbar p { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--t-small); margin: 0; font-variant-numeric: tabular-nums; }
.rbar-t { height: 10px; background: var(--white); }
.rep-bars .rbar-t { background: #DDDCE3; }
.rbar-t i { display: block; height: 100%; background: var(--violet); }
.rbar-ink .rbar-t i { background: var(--ink); }
.rep-h { margin-bottom: calc(-1 * var(--s3)); }
.rep-grid { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .rep-grid { grid-template-columns: repeat(3, 1fr); } }
.rg-col { display: grid; gap: var(--s2); align-content: start; }
.rg-h { background: var(--c-tint); padding: var(--s2) var(--s3); font-weight: 800; font-size: var(--t-small); margin: 0; }
.rg-cell { display: grid; gap: 2px; padding: var(--s3); font-size: var(--t-small); line-height: 1.35; }
.rg-cell span { font-size: 0.8125rem; }
.st-present { background: var(--green); }
.st-mostly { background: var(--green-20); }
.st-partly { background: var(--yellow-20); }
.st-absent { background: var(--yellow); }
.rep-key { list-style: none; padding: 0; margin: calc(-1 * var(--s3)) 0 0; display: flex; flex-wrap: wrap; gap: var(--s4); font-size: 0.8125rem; color: var(--ink-72); }
.rep-key li { display: inline-flex; align-items: center; gap: 6px; }
.rep-key i { width: 14px; height: 14px; display: inline-block; border: 1px solid rgba(25,18,70,.15); }
.rep-paper { background: var(--yellow-20); }
.rep-start { border: 2px solid var(--violet); }
.rep-start .label { color: var(--violet); }
.rep-start .heading { font-weight: 800; }
.rep-act { font-weight: 700; }
.rep-share { border: 2px solid var(--violet); }
.rep-share .label { color: var(--violet); }
.btn-link { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: inherit; font-weight: 700; }
.rep .debrief-cta { margin-top: 0; }

/* ---------- Cede/keep worksheet page ---------- */
.ck-hero { padding-block: clamp(48px, 7vw, 112px); }
.ck-hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .ck-hero-grid { grid-template-columns: 6fr 6fr; gap: clamp(40px, 5vw, 88px); } }
.ck-hero-grid > * { min-width: 0; }
.ck-hero .label { color: var(--green); }
.ck-cover { margin: 0; }
.ck-cover img, .ck-pages img { display: block; width: 100%; height: auto; box-shadow: 0 24px 60px rgba(8, 5, 30, .35); }
.ck-rows { display: grid; border-top: 2px solid var(--rule-strong); }
.ck-row { display: grid; gap: var(--s1) var(--s5); padding: var(--s4) 0 var(--s4) var(--s5); border-bottom: 1px solid var(--rule); border-left: 6px solid var(--ck); align-items: baseline; }
@media (min-width: 720px) { .ck-row { grid-template-columns: 10rem 1fr auto; } }
.ck-row strong { font-size: var(--t-heading); font-weight: 800; }
.ck-rule { font-weight: 700; color: var(--fg-muted); font-size: var(--t-small); }
.ck-keep { --ck: var(--ink); }
.ck-share { --ck: var(--violet); }
.ck-cede { --ck: var(--green); }
.ck-qs { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .ck-qs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ck-qs { grid-template-columns: repeat(4, 1fr); } }
.ck-qs > div { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); background: var(--violet-20); }
.ck-qs > .ck-today { background: var(--yellow-20); }
.ck-qs h3 { font-size: var(--t-heading); font-weight: 800; margin: 0; }
.ck-qs p { margin: 0; }
.ck-q { font-weight: 700; line-height: 1.4; }
.ck-gap { display: grid; gap: var(--s4); }
.ck-grid { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 520px; }
.ck-grid th, .ck-grid td { padding: var(--s3) var(--s4); text-align: left; border: 1px solid var(--grey); }
.ck-grid thead th { font-weight: 800; background: var(--white); }
.ck-grid tbody th { font-weight: 800; background: var(--white); }
.ck-grid .g-hold { background: var(--white); font-weight: 700; }
.ck-grid .g-drift { background: var(--yellow); font-weight: 800; }
.ck-grid .g-room { background: var(--green-20); font-weight: 700; }
.ck-key { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); max-width: 70ch; }
.ck-key li::before { content: "› "; font-weight: 800; color: var(--violet); }
.ck-pages { display: grid; gap: var(--s6); }
@media (min-width: 640px) { .ck-pages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ck-pages { grid-template-columns: repeat(3, 1fr); } }
.ck-pages figure { margin: 0; display: grid; gap: var(--s4); align-content: start; }
.ck-pages img { box-shadow: 0 10px 30px rgba(25, 18, 70, .14); border: 1px solid var(--grey); }
.ck-pages figcaption { font-size: var(--t-small); color: var(--fg-muted); }
.ck-pages figcaption strong { display: block; color: var(--fg); font-size: var(--t-body); margin-bottom: var(--s1); }
.ck-steps { display: grid; gap: var(--s4); padding-left: 1.25em; margin: 0; }
.ck-steps li::marker { font-weight: 800; color: var(--violet); }
.ck-done:focus { outline: none; }

/* ---------- Header: back to the main LIW site ---------- */
.btn-sm { padding: 9px 14px; font-size: 0.875rem; }
.site-nav .btn-liw { color: var(--white); background: var(--ink); border: 2px solid var(--ink); white-space: nowrap; padding-block: 9px; }
.site-nav .btn-liw:hover { background: transparent; color: var(--ink); border-color: var(--ink); text-decoration: none; }
@media (max-width: 880px) { .site-nav .btn-liw { margin-top: var(--s4); align-self: flex-start; } }

/* ---------- Prototype cards ---------- */
.proto-cards .door-card-img { position: relative; }
.proto-status { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white); padding: 8px 14px; font-size: var(--t-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; }
.proto-status[data-s="idea"] { background: var(--white); color: var(--ink); }
.proto-cards .door-card-body { grid-template-rows: auto auto 1fr auto; }

/* ---------- Condition cards v0.3: report additions, expanded card, card deck ---------- */
button.rg-cell { font: inherit; color: var(--ink); text-align: left; border: 0; cursor: pointer; width: 100%; transition: box-shadow var(--t-ui) var(--ease); }
button.rg-cell:hover { box-shadow: 0 0 0 2px var(--ink) inset; }
button.rg-cell:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.rep-cap, .rep-focus { display: grid; gap: var(--s3); }
.caps { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .caps { grid-template-columns: repeat(4, 1fr); } }
.cap { display: grid; gap: var(--s2); align-content: start; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 0; box-shadow: 0 0 0 1px var(--grey) inset; border-top: 4px solid var(--violet); padding: var(--s4); cursor: pointer; }
.cap .rbar-t { background: var(--grey); height: 8px; display: block; }
.cap.cap-weak { border-top-color: var(--yellow); }
.cap.cap-weak .rbar-t i { background: var(--yellow); }
.cap-h { display: flex; justify-content: space-between; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.cap-n { font-weight: 700; color: var(--violet); }
.cap[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--ink) inset; }
.cap[aria-expanded="true"] .cap-n { color: var(--ink); }
.cap:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.cap-list { background: var(--white); padding: var(--s4); box-shadow: 0 0 0 1px var(--grey) inset; }
.cap-cards { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: var(--s2); }
@media (min-width: 760px) { .cap-cards { grid-template-columns: 1fr 1fr; } }
.fc-filter { margin-top: 0; }
.fc-list { display: grid; gap: var(--s2); }
.fc { background: var(--white); box-shadow: 0 0 0 1px var(--grey) inset; border-left: 6px solid var(--c-solid); }
.fc summary { display: grid; gap: 2px; padding: var(--s4) var(--s5); cursor: pointer; list-style: none; position: relative; padding-right: 48px; }
.fc summary::-webkit-details-marker { display: none; }
.fc summary::after { content: "+"; position: absolute; right: var(--s5); top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.fc[open] summary::after { content: "−"; }
.fc summary .label { color: var(--ink-72); }
.fc-name { font-weight: 800; font-size: 1.125rem; }
.fc-body { display: grid; gap: var(--s3); padding: 0 var(--s5) var(--s5); font-size: var(--t-small); line-height: 1.55; }
.fc-body p { margin: 0; }
.fc-start { background: var(--violet-20); padding: var(--s3); }
.fc-body .btn { justify-self: start; }

/* The expanded card */
.xc { display: grid; gap: var(--s5); }
.xc-head { display: grid; gap: var(--s2); border-top: 8px solid var(--c-solid); padding-top: var(--s4); }
.xc-head .label { color: var(--ink-72); }
.xc-name { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; font-stretch: 90%; letter-spacing: var(--track-display); line-height: 1.05; }
.xc-tags { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0; font-size: var(--t-small); font-weight: 700; }
.xc-tags span + span::before { content: "·"; margin-right: var(--s4); color: var(--ink-72); }
.xc-answer { margin: var(--s2) 0 0; display: inline-grid; justify-self: start; gap: 2px; padding: var(--s2) var(--s3); font-weight: 800; }
.xc-answer .label { color: var(--ink); opacity: .75; }
.xc-sides { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .xc-sides { grid-template-columns: 1fr 1fr; } }
.xc-sides p { margin: 0; line-height: 1.5; }
.xc-sides .label { display: block; margin-bottom: var(--s2); }
.xc-p { background: var(--c-tint); }
.xc-a { box-shadow: 0 0 0 1.5px var(--c-solid) inset; }
.xc-body { display: grid; gap: var(--s5); }
.xc-body section { display: grid; gap: var(--s2); }
.xc-body h4 { font-size: 0.8125rem; font-weight: 800; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-72); margin: 0; }
.xc-body p { margin: 0; line-height: 1.6; max-width: 70ch; }
.xc-ask { display: grid; gap: var(--s2); margin: 0; }
.xc-ask div { display: grid; gap: 2px var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--grey); }
@media (min-width: 700px) { .xc-ask div { grid-template-columns: 11rem 1fr; } }
.xc-ask dt { font-weight: 800; }
.xc-ask dd { margin: 0; line-height: 1.5; }
.xc-start { background: var(--violet-20); padding: var(--s4); }
.xc-start p { font-weight: 700; }
.xc-ev ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s3); font-size: var(--t-small); }
.xc-ev details { margin-top: 4px; }
.xc-ev summary { cursor: pointer; color: var(--ink-72); font-size: 0.8125rem; font-weight: 700; }
.xc-ev details p { margin-top: 4px; color: var(--ink-72); }
.xc-dialog { width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(8, 5, 30, .45); }
.xc-dialog::backdrop { background: rgba(18, 14, 51, .62); }
.xc-dialog > [data-xc-body] { padding: var(--s5) clamp(18px, 4vw, 48px) var(--s7); }
.xc-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) clamp(18px, 4vw, 48px); background: var(--paper); border-bottom: 1px solid var(--grey); }
.xc-bar [data-xc-pos] { margin-right: auto; }
.xc-bar [data-xc-close] { order: 3; }
.xc-bar .btn[disabled] { opacity: .35; cursor: default; }

/* The card deck */
.deck-filters { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .deck-filters { grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s6); } }
.deck-filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.deck-filters legend { font-weight: 800; font-size: 0.8125rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-72); margin-bottom: var(--s2); padding: 0; }
.deck-filters .cone-filter { margin-top: 0; }
.deck-count { font-weight: 700; }
.deck { display: grid; gap: var(--s4); }
@media (min-width: 680px) { .deck { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .deck { grid-template-columns: repeat(3, 1fr); } }
.dk { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s3); align-content: start; }
.dk-meta { display: flex; justify-content: space-between; gap: var(--s3); font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-72); }
.dk-side { margin: 0; line-height: 1.5; padding: var(--s3); }
.dk[data-side="present"] .dk-side { background: var(--c-tint); }
.dk[data-side="absent"] .dk-side { box-shadow: 0 0 0 1.5px var(--c-solid) inset; }
.dk-side .label { display: block; margin-bottom: 4px; }
.dk-tags { font-size: 0.8125rem; font-weight: 700; color: var(--ink-72); margin: 0; }
.dk-acts { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.dk-mine { font-size: 0.8125rem; font-weight: 800; padding: 4px 8px; }
.deck-legend { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .deck-legend { grid-template-columns: repeat(4, 1fr); } }
.deck-legend div { border-top: 2px solid var(--rule-strong); padding-top: var(--s3); }
.deck-legend p { margin: 4px 0 0; font-size: var(--t-small); color: var(--fg-muted); }
.src-list { display: grid; gap: var(--s4); padding-left: 1.4em; margin: 0; }
.src-list li { line-height: 1.5; }
.src-list p { margin: 4px 0 0; font-size: var(--t-small); color: var(--fg-muted); max-width: 80ch; }
.src-list .small { font-weight: 700; }

/* Report grid: column headings stay neutral so green and yellow only ever mean "present" and "absent" */
.rep-grid .rg-h { background: var(--ink); color: var(--white); }
.rep-key { margin: calc(-1 * var(--s4)) 0 0; }
.fc { border-left-color: var(--ink); }

/* ---------- Header matched to liw3.com: LIW menu, with the Foresight Practice as its own tab ---------- */
.site-header .wrap { gap: var(--s5); padding-block: var(--s3); position: relative; }
.site-nav { display: flex; align-items: center; gap: var(--s5); }
.site-nav .nav-top { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); }
.site-nav .nav-top > li { position: relative; display: flex; align-items: center; gap: 2px; }
.site-nav a.top { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: var(--s3) 0; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.site-nav a.top:hover { border-bottom-color: var(--grey); }
.site-nav .nav-fp > a.top { font-weight: 800; border-bottom-color: var(--violet); }
.site-nav .nav-fp .squares { --sq: 8px; }
.sub-btn { width: 22px; height: 28px; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink); padding: 0; }
.sub-btn::after { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-ui) var(--ease); }
.sub-btn[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.sub-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.site-nav .sub { list-style: none; margin: 0; padding: var(--s3) 0; background: var(--white); box-shadow: 0 0 0 1px var(--grey), 0 18px 40px rgba(25, 18, 70, .14); min-width: 250px; display: none; }
.site-nav .sub a { display: block; padding: 10px var(--s5); color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; border-left: 3px solid transparent; }
.site-nav .sub a:hover, .site-nav .sub a:focus-visible { background: var(--paper); border-left-color: var(--violet); }
.site-nav .sub a[aria-current="page"] { border-left-color: var(--violet); font-weight: 800; }
.nav-contact { display: inline-flex; align-items: center; background: var(--green); color: var(--ink); font-weight: 800; font-size: 1rem; text-decoration: none; padding: 14px 22px; white-space: nowrap; }
.nav-contact:hover { background: var(--ink); color: var(--white); }
.nav-contact:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.site-nav .part-of, .site-nav .btn-liw { display: none; }
@media (min-width: 1361px) {
  .site-nav .sub { position: absolute; top: 100%; left: -12px; z-index: 40; }
  .site-nav .nav-fp .sub { left: auto; right: -12px; }
  .site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub, .site-nav .sub-btn[aria-expanded="true"] + .sub { display: block; }
  .nav-toggle { display: none; }
}
@media (max-width: 1360px) {
  .brand-link img { width: 176px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--s2); font: 700 0.9375rem/1 var(--font); color: var(--ink); background: none; border: 1.5px solid var(--ink); padding: 10px 14px; cursor: pointer; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--grey); flex-direction: column; align-items: stretch; gap: var(--s4); padding: var(--s3) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--s5) max(var(--gutter), env(safe-area-inset-left, 0px)); max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-nav[data-open="false"] { display: none; }
  .site-nav .nav-top { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .nav-top > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--grey); }
  .site-nav .nav-fp { order: -1; }
  .site-nav a.top { padding: var(--s3) 0; font-size: 1.0625rem; border-bottom: 0; }
  .site-nav .nav-fp > a.top { color: var(--violet); }
  .sub-btn { width: 44px; height: 44px; }
  .sub-btn::after { left: 17px; top: 15px; }
  .site-nav .sub { flex-basis: 100%; box-shadow: none; padding: 0 0 var(--s3); background: transparent; }
  .site-nav .sub-btn[aria-expanded="true"] + .sub { display: block; }
  .site-nav .sub a { padding: 8px var(--s4); }
  .nav-contact { align-self: flex-start; }
}
@media (min-width: 1361px) and (max-width: 1520px) { .site-header .brand-link img { width: 196px; } .site-nav .nav-top { gap: 18px; } .site-nav { gap: var(--s4); } }

/* Results v3: headline, highest and lowest, start here, capacity lens */
.rep-s1, .rep-s2 { display: grid; gap: var(--s4); }
.rep-s2 { border-top: 2px solid var(--ink); padding-top: var(--s6); }
.rep-headline { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin: 0; max-width: 30ch; }
.rep-bars-3 { display: grid; gap: var(--s4); background: none; padding: 0; }
@media (min-width: 760px) { .rep-bars-3 { grid-template-columns: repeat(3, 1fr); } }
.rep-bars-3 .rbar-t { background: var(--grey); }
.rep-bars-3 .rbar-t i { background: var(--ink); }
.hilo { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .hilo { grid-template-columns: 1fr 1fr; } }
.hl { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); background: var(--white); box-shadow: 0 0 0 1px var(--grey) inset; border-top: 4px solid var(--ink); }
.hl .label { color: var(--ink); }
.hl p { margin: 0; }
.rc-list { display: grid; gap: 4px; }
.rc { font: inherit; color: var(--ink); text-align: left; border: 0; cursor: pointer; padding: 8px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); font-size: var(--t-small); }
.rc b { font-weight: 700; }
.rc span { font-size: 0.8125rem; white-space: nowrap; }
.rc:hover { box-shadow: 0 0 0 2px var(--ink) inset; }
.rc:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.rep-act-row { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .rep-act-row { grid-template-columns: 1.4fr 1fr; } }
.rep-start-name { font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin: 0; }
.rep-start p { margin: 0; }
.rep-next { display: grid; gap: var(--s2); align-content: start; padding: var(--s5); box-shadow: 0 0 0 1px var(--grey) inset; background: var(--white); }
.rep-next .label { margin: 0 0 var(--s2); }
.capcols { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .capcols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .capcols { grid-template-columns: repeat(4, 1fr); } }
.capcol { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); background: var(--white); box-shadow: 0 0 0 1px var(--grey) inset; }
.capcol p { margin: 0; }
.capcol .rbar-t { background: var(--grey); height: 8px; margin-bottom: var(--s2); }
.capcol .rbar-t i { background: var(--ink); }
.capcol.cap-weak { box-shadow: 0 0 0 2px var(--violet) inset; }
.capcol.cap-weak .label { color: var(--violet); }
.cap-num { font-size: 2.25rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.capcol .rc { flex-direction: column; gap: 0; }
.rep-all { border-top: 2px solid var(--ink); padding-top: var(--s5); }
.rep-all > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; }
.rep-all[open] > summary { margin-bottom: var(--s5); }
.rep-all .rep-key { margin: 0 0 var(--s4); }
.rep-all .rep-grid { margin-bottom: var(--s4); }

/* Practice: five stages left to right, with arrows between and a loop back */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
@media (min-width: 960px) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px; } }
.flow-step { position: relative; display: grid; gap: var(--s2); align-content: start; background: var(--white); box-shadow: 0 0 0 1.5px var(--ink) inset; border-top: 8px solid var(--ink); padding: var(--s4) var(--s4) var(--s5); transition: background var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), transform 300ms var(--ease); }
.flow-step strong { font-size: 1.375rem; font-weight: 800; letter-spacing: var(--track-display); }
.flow-step p { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--ink-72); }
.flow-step .label { color: var(--ink-72); }
.flow-step:nth-child(1) { border-top-color: var(--violet); } .flow-step:nth-child(2) { border-top-color: var(--green); } .flow-step:nth-child(3) { border-top-color: var(--yellow); } .flow-step:nth-child(4) { border-top-color: var(--blue); } .flow-step:nth-child(5) { border-top-color: var(--ink); }
/* arrows: down between stacked boxes, right between boxes in a row */
.flow-step + .flow-step::before { content: ""; position: absolute; left: 50%; top: -34px; width: 2px; height: 22px; background: var(--ink); transform: translateX(-50%); }
.flow-step + .flow-step::after { content: ""; position: absolute; left: 50%; top: -18px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
@media (min-width: 960px) {
  .flow-step + .flow-step::before { left: -36px; top: 50%; width: 26px; height: 2px; transform: none; }
  .flow-step + .flow-step::after { left: -20px; top: calc(50% - 5px); transform: rotate(-45deg); }
}
.flow-step.is-on { background: var(--violet-20); transform: translateY(-4px); }
.flow-step.is-done { background: var(--paper); }
.flow-loop { display: none; }
@media (min-width: 960px) {
  .flow-loop { display: block; position: relative; height: 44px; margin-top: calc(-1 * var(--s4)); border: 2px solid var(--ink); border-top: 0; margin-inline: 10%; }
  .flow-loop::before { content: ""; position: absolute; left: -7px; top: -2px; width: 10px; height: 10px; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
  .flow-loop span { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: var(--white); padding: 0 var(--s3); font-size: var(--t-small); font-weight: 700; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .flow-step { transition: none; } .flow-step.is-on { transform: none; } }
@media (min-width: 900px) { .door-cards.ways, .door-cards.proto-cards { grid-template-columns: repeat(2, 1fr); } }

/* Homepage stats: one row, counting up when they come into view */
.stat-row { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); } }
.stat-row .stat { border-top: 2px solid var(--rule-strong); padding-top: var(--s5); }
.stat-row .stat-figure { font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem); }
.stat-row .stat-claim { max-width: 30ch; }

/* ---------- Condition card faces, matched to the printed deck ---------- */
.pc { container-type: inline-size; display: block; width: 100%; font-family: var(--font); text-align: left; }
.pc-in { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; aspect-ratio: 88.9 / 63.5; box-sizing: border-box; padding: 8cqw 6cqw 5cqw calc(10cqw + 7cqw); }
.pc-in::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10cqw; }
.pc-present .pc-in { background: var(--ink); color: var(--white); }
.pc-present .pc-in::before { background: var(--green); }
.pc-absent .pc-in { background: #F6F6F8; color: var(--ink); box-shadow: 0 0 0 1px var(--grey) inset; }
.pc-absent .pc-in::before { background: var(--yellow); }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-c { font-size: max(11px, 3.6cqw); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pc-present .pc-c { color: var(--white-75); }
.pc-absent .pc-c { color: var(--ink-72); }
.pc-pill { font-size: max(11px, 3.6cqw); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); padding: 0.25em 0.75em; border-radius: 999px; line-height: 1.2; }
.pc-present .pc-pill { background: var(--green); }
.pc-absent .pc-pill { background: var(--yellow); }
.pc-name { display: block; margin: 1.5cqw 0 0; font-size: max(18px, 7.6cqw); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: inherit; }
.pc-text { grid-row: 4; display: block; margin-top: 4cqw; font-size: max(14px, 5.2cqw); font-weight: 400; line-height: 1.3; max-width: 92%; }
.pc-logo { grid-row: 5; justify-self: end; width: max(44px, 14cqw); height: auto; margin-top: 2cqw; }
.tc-face, .tc-face > .pc { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.tc-item, .tc-card, .tc-inner, .pc-in { min-width: 0; }
.table-scroll { overflow-x: auto; }
