/* ==========================================================================
   Caliwelsh — Design System v3 · "Clean"
   Light by default · one accent (cobalt) · generous whitespace · quiet motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);

  --gutter: clamp(1.25rem, 0.25rem + 4vw, 6rem);
  --max: 1680px;
  --section: clamp(5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Brand constants */
  --cobalt: #2f4be0;
  --amber: #f5a524;
}

/* Light (default) */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --text: #0b0d12;
  --text-2: #3b4250;
  --muted: #5b6474;
  --line: #e7e9ee;
  --line-2: #d6dae2;
  --accent: #2f4be0;
  --accent-ink: #2239b8;
  --accent-soft: #eef1fe;
  --btn: #0b0d12;
  --btn-text: #ffffff;
  --btn-hover: #262b36;
  --ok: #0f7a52;    --ok-soft: #e7f6ef;
  --warn: #9a5b00;  --warn-soft: #fdf3e2;
  --risk: #b42318;  --risk-soft: #fdecea;
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 8px 24px -8px rgba(11, 13, 18, 0.08);
  --shadow-lg: 0 2px 4px rgba(11, 13, 18, 0.04), 0 24px 60px -20px rgba(11, 13, 18, 0.18);
  --dot: rgba(11, 13, 18, 0.07);
  color-scheme: light;
}

/* Dark (opt-in via toggle) */
:root[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-soft: #10131a;
  --surface: #141820;
  --surface-2: #1a1f29;
  --text: #f2f4f8;
  --text-2: #c4cad5;
  --muted: #9aa3b2;
  --line: #232834;
  --line-2: #2f3644;
  --accent: #8197ff;
  --accent-ink: #a3b3ff;
  --accent-soft: rgba(129, 151, 255, 0.12);
  --btn: #f2f4f8;
  --btn-text: #0b0d12;
  --btn-hover: #ffffff;
  --ok: #4ade9b;    --ok-soft: rgba(74, 222, 155, 0.12);
  --warn: #ffbf47;  --warn-soft: rgba(255, 191, 71, 0.12);
  --risk: #ff8a7a;  --risk-soft: rgba(255, 138, 122, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --dot: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; transition: background-color 0.3s, color 0.3s;
}
img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--text); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--btn); color: var(--btn-text); padding: 0.75rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (min-width: 1000px) {
  .section-head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; }
}
.split { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--top { align-items: start; } .split--wide-left { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Type ---------- */
.h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; line-height: 1.02; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; line-height: 1.06; }
.h3 { font-size: var(--fs-h3); }
.soft { color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); color: var(--text-2); line-height: 1.6; max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); }
.small { font-size: var(--fs-sm); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.975rem; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); box-shadow: var(--shadow); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent); min-height: 44px; }
.link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link:hover { color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0.2em; }
.nav { display: none; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.85rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; color: var(--text-2); transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cta { display: none !important; }
@media (min-width: 1000px) { .nav { display: block; } .header-cta { display: inline-flex !important; } .menu-btn { display: none !important; } }

.icon-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.2s, background-color 0.2s; position: relative; overflow: hidden; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-btn .i-sun, .theme-btn .i-moon { position: absolute; transition: transform 0.45s var(--ease), opacity 0.3s; }
.theme-btn .i-sun { transform: translateY(140%) rotate(-60deg); opacity: 0; }
:root[data-theme="dark"] .theme-btn .i-sun { transform: none; opacity: 1; }
:root[data-theme="dark"] .theme-btn .i-moon { transform: translateY(-140%) rotate(60deg); opacity: 0; }
.menu-btn span { position: absolute; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s; overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s; }
.mobile-menu ul { display: grid; border-top: 1px solid var(--line); }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.mobile-menu li a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Logo C ---------- */
.logo { display: inline-flex; align-items: baseline; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: 1.5rem; color: var(--text); white-space: nowrap; }
.logo .lc, .logo .li { position: relative; }
.logo .lbar { position: absolute; left: 0.04em; right: 0.06em; bottom: -0.2em; height: 0.11em; border-radius: 1em; background: var(--cobalt); }
.logo .ldot { position: absolute; left: 50%; top: -0.06em; width: 0.2em; height: 0.2em; margin-left: -0.1em; background: var(--amber); transform: rotate(45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem)); padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }
.hero::before { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 72% 35%, #000 20%, transparent 75%); }
.hero-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr); }
.pill { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; max-width: 100%; padding: 0.4rem 0.85rem 0.4rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }
.pill i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.hero-proof strong { color: var(--text); font-weight: 600; }

.page-hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 5vw, 6.5rem)); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 85% 0%, #000 10%, transparent 70%); }
.page-hero .container { display: grid; gap: 1.5rem; }
.page-hero .h1 { max-width: 17ch; }

/* ---------- Accountability board (hero UI card) ---------- */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.875rem; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.board-title { display: grid; gap: 0.15rem; min-width: 0; }
.board-title strong { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-title span { color: var(--muted); font-size: 0.8rem; }
.maturity-ring { display: flex; align-items: center; gap: 0.65rem; flex: none; }
.maturity-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.maturity-ring .track { fill: none; stroke: var(--line); stroke-width: 4; }
.maturity-ring .fill { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.maturity-ring div { display: grid; line-height: 1.25; }
.maturity-ring b { color: var(--text); font-size: 0.85rem; }
.maturity-ring small { color: var(--muted); font-size: 0.72rem; }
.board-cols, .board-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px 64px 112px; gap: 0.75rem; align-items: center; padding: 0 1.25rem; }
.board-cols { padding-block: 0.6rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.board-row { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.board-row:last-of-type { border-bottom: 0; }
.board-row .name { color: var(--text); font-weight: 500; display: grid; gap: 0.4rem; min-width: 0; }
.board-row .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: inherit; transform-origin: left; }
.bar--warn i { background: var(--warn); }
.bar--risk i { background: var(--risk); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); }
.due { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; padding: 0.22rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--ok { color: var(--ok); background: var(--ok-soft); }
.chip--warn { color: var(--warn); background: var(--warn-soft); }
.chip--risk { color: var(--risk); background: var(--risk-soft); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.9rem 1.25rem; background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.board-foot strong { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .board-cols, .board-row { grid-template-columns: minmax(0, 1fr) 48px 104px; gap: 0.6rem; }
  .board-cols span:nth-child(3), .board-row .due { display: none; }
}

/* ---------- Standards strip ---------- */
.strip { padding-block: 2rem; border-block: 1px solid var(--line); }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.strip p { font-size: var(--fs-sm); color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; }
.strip li { font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; }

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); display: grid; gap: 0.85rem; align-content: start; transition: border-color 0.25s, box-shadow 0.25s, transform 0.35s var(--ease); }
a.card:hover, .card--hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--text-2); font-size: var(--fs-sm); }
.card .link { margin-top: auto; min-height: 32px; }
.ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }
.checklist { display: grid; gap: 0.55rem; padding: 0; margin: 0; list-style: none; font-size: var(--fs-sm); }
.checklist li { display: flex; gap: 0.65rem; color: var(--text-2); }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 0.15em; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4be0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
:root[data-theme="dark"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238197ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }

/* ---------- Symptoms ---------- */
.symptom { display: grid; gap: 0.75rem; padding-top: 1.5rem; border-top: 2px solid var(--text); align-content: start; }
.symptom .num { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.symptom p { font-size: var(--fs-sm); }

/* ---------- Maturity model (signature) ---------- */
.maturity { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .maturity { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: clamp(6px, 1vw, 12px); height: clamp(300px, 32vw, 420px); padding-top: 2.5rem; }
.stair { position: relative; height: var(--h); border-radius: 10px 10px 4px 4px; background: var(--surface-2); border: 1px solid var(--line); transform-origin: bottom; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.2rem; padding: 0.85rem 0.7rem; text-align: left; transition: background-color 0.35s, border-color 0.35s; }
.section--soft .stair { background: var(--surface); }
.stair .lv { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.stair .nm { font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.95rem); font-weight: 600; color: var(--text); line-height: 1.2; overflow-wrap: anywhere; }
.stair:hover { border-color: var(--line-2); }
.stair[aria-selected="true"] { background: var(--accent); border-color: var(--accent); }
.stair[aria-selected="true"] .lv, .stair[aria-selected="true"] .nm { color: #fff; }
.stair[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; top: -1.5rem; width: 10px; height: 10px; margin-left: -5px; background: var(--amber); transform: rotate(45deg); }
.stairs-axis { display: flex; justify-content: space-between; margin-top: 0.85rem; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.level-panel { display: grid; gap: 1rem; align-content: start; min-height: 17rem; }
.level-panel .tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.level-panel h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.03em; }
.level-panel .signs { margin-top: 0.5rem; }

/* ---------- Maturity check (quiz) ---------- */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 860px; margin-inline: auto; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem clamp(1.25rem, 1rem + 1vw, 2rem); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.quiz-head strong { color: var(--text); }
.quiz-progress { flex: 1; max-width: 240px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.5s var(--ease); }
.quiz-body { padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem); font-weight: 600; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 1.5rem; padding: 0; }
.answers { display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .answers { grid-template-columns: repeat(3, 1fr); } }
.answer { position: relative; }
.answer input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.answer span { display: flex; align-items: center; gap: 0.65rem; min-height: 56px; padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 500; color: var(--text); background: var(--surface); transition: border-color 0.2s, background-color 0.2s; }
.answer span::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border 0.2s; }
.answer:hover span { border-color: var(--text); }
.answer input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.answer input:checked + span::before { border: 5px solid var(--accent); }
.answer input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.quiz-result { display: grid; gap: 1.25rem; }
.result-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.result-level { display: grid; gap: 0.25rem; }
.result-level .big { font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.05em; color: var(--accent); line-height: 1; }
.result-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(100%, 280px); }
.result-bars i { height: 8px; border-radius: 4px; background: var(--surface-2); }
.result-bars i.on { background: var(--accent); }

/* ---------- Approach steps ---------- */
.steps { position: relative; display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.steps-line { display: none; }
@media (min-width: 900px) {
  .steps-line { display: block; position: absolute; left: 22px; right: 0; top: 22px; height: 1px; background: var(--line-2); }
  .steps-line i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
}
.step { position: relative; display: grid; gap: 0.75rem; align-content: start; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 0.9rem; position: relative; z-index: 1; transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.section--soft .step-n { background: var(--bg-soft); }
.step.is-on .step-n { background: var(--accent); color: #fff; border-color: var(--accent); }
.step .meta { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.step p { font-size: var(--fs-sm); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); align-content: start; }
.stat-num { font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-sm); color: var(--muted); max-width: 26ch; }

/* ---------- Photo ---------- */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo-note { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: grid; gap: 0.15rem; padding: 0.85rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: var(--fs-sm); color: var(--text-2); }
.photo-note strong { color: var(--text); }
@media (min-width: 640px) { .photo-note { right: auto; max-width: 340px; } }

/* ---------- Testimonial ---------- */
.quote { display: grid; gap: 1.75rem; }
.quote blockquote { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem); font-weight: 500; line-height: 1.38; letter-spacing: -0.02em; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 0.85rem; font-size: var(--fs-sm); }
.quote figcaption strong { display: block; color: var(--text); }
.quote figcaption span { color: var(--muted); }
.quote .avatar { width: 44px; height: 44px; font-size: 0.85rem; }

/* ---------- Case cards ---------- */
.case-shift { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.case-shift .lvl { padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.case-shift .lvl--to { background: var(--accent-soft); color: var(--accent-ink); }
.case-shift svg { width: 16px; height: 16px; color: var(--muted); }
.case-metric { display: flex; align-items: baseline; gap: 0.6rem; padding-top: 1rem; margin-top: auto; border-top: 1px solid var(--line); }
.case-metric strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.case-metric span { font-size: var(--fs-sm); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-s { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }

/* ---------- Posts ---------- */
.posts { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post a { display: grid; gap: 0.9rem; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post:hover .thumb img, .post:hover .thumb svg { transform: scale(1.03); }
.post-meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--muted); }
.post-meta .cat { color: var(--accent); font-weight: 600; }
.post h3 { font-size: 1.15rem; line-height: 1.3; transition: color 0.2s; }
.post a:hover h3 { color: var(--accent); }
.post p { font-size: var(--fs-sm); color: var(--text-2); }
.post.is-hidden { display: none; }
.featured { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .featured { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 2.5rem; }
.filter { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 500; color: var(--text-2); background: var(--surface); transition: all 0.2s; }
.filter:hover { border-color: var(--text); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Diagram thumbnails (theme-aware SVG) */
.t-bg { fill: var(--surface-2); }
.t-grid { stroke: var(--line); }
.t-a { fill: var(--accent); }
.t-b { fill: color-mix(in srgb, var(--accent) 40%, var(--surface-2)); }
.t-c { fill: var(--line-2); }
.t-card { fill: var(--surface); stroke: var(--line); }
.t-hi { fill: var(--amber); }
.t-stroke { stroke: var(--accent); fill: none; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem); display: grid; gap: 2rem; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- Services detail ---------- */
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; gap: 1.25rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .service { grid-template-columns: 64px 1fr 1fr; gap: 2.5rem; } }
.service h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); letter-spacing: -0.03em; }
.service .meta { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.6rem; }
.service > div > p { margin-bottom: 1rem; }
.offers { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer { position: relative; }
.offer.is-featured { border-color: var(--text); box-shadow: var(--shadow-lg); }
.offer .badge { position: absolute; top: -12px; left: 1.5rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.75rem; font-weight: 600; }
.offer .dur { font-size: 1.6rem; font-weight: 600; color: var(--text); letter-spacing: -0.03em; }
.offer .kind { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.5rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; color: var(--text); font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font-weight: 600; font-size: 1.075rem; color: var(--text); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .a { padding: 0 3rem 1.5rem 0; color: var(--text-2); max-width: 70ch; }

/* ---------- About ---------- */
.principle { display: grid; gap: 0.6rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .principle { grid-template-columns: 220px 1fr; gap: 2rem; } }
.principle h3 { font-size: 1.125rem; }
.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.member { display: grid; gap: 0.85rem; }
.member .ph { aspect-ratio: 1; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 2.25rem; font-weight: 600; color: var(--muted); letter-spacing: -0.03em; }
.member h3 { font-size: 1.05rem; }
.member p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.35rem; }
.form-row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .req { color: var(--accent); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 0.75rem 0.95rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235b6474' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.input::placeholder { color: var(--muted); opacity: 0.75; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .error { display: none; color: var(--risk); font-size: var(--fs-sm); }
.field.has-error .input { border-color: var(--risk); }
.field.has-error .error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { margin-bottom: 0.65rem; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 0.95rem; border-radius: 10px; border: 1px solid var(--line-2); font-size: 0.925rem; font-weight: 500; color: var(--text-2); background: var(--surface); transition: all 0.2s; }
.choice:hover span { border-color: var(--text); color: var(--text); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.form-foot p { font-size: 0.8rem; color: var(--muted); max-width: 42ch; }
.form-msg { font-size: var(--fs-sm); min-height: 1.4em; margin-top: 0.5rem; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--risk); }
.spin { display: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { display: none; gap: 1rem; padding: 2.5rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.success.is-visible { display: grid; }
.success svg { width: 40px; height: 40px; color: var(--ok); }
.aside { display: grid; gap: 1.5rem; align-content: start; }
.info { display: grid; gap: 0.35rem; }
.info .k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.info a.v { font-size: 1.15rem; font-weight: 600; color: var(--text); word-break: break-word; }
.info a.v:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); background: var(--bg); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.footer-col a { display: inline-flex; min-height: 38px; align-items: center; color: var(--text-2); font-size: var(--fs-sm); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-col p { font-size: var(--fs-sm); color: var(--muted); max-width: 36ch; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 3.5rem; padding-block: 1.75rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Motion (JS-enhanced, subtle) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(16px); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.center { text-align: center; }
.hero .h1 { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.25rem); }
.board-row .name small { font-weight: 400; font-size: 0.8rem; }
/* Dark theme: the lighter accent needs dark text for contrast */
:root[data-theme="dark"] .stair[aria-selected="true"] .lv,
:root[data-theme="dark"] .stair[aria-selected="true"] .nm,
:root[data-theme="dark"] .step.is-on .step-n { color: #0b0d12; }
/* Narrow screens: steps show the level number only; the panel below names it */
@media (max-width: 640px) {
  .stair .nm { display: none; }
  .stair { align-items: center; padding: 0.7rem 0.3rem; }
  .stair .lv { font-size: 0.8rem; }
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn:disabled svg { transform: none; }

/* ==========================================================================
   v3.1 — Industrial video for "pop"
   ========================================================================== */

/* ---------- Video tile ---------- */
.vtile { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; background: #0b0d12; color: #fff; }
.vtile > img, .vtile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vtile > video { opacity: 0; transition: opacity 1.2s var(--ease); }
.vtile > video.is-playing { opacity: 1; }
.vtile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 13, 18, 0) 55%, rgba(11, 13, 18, 0.55)); }
.vtile--tall { aspect-ratio: 4 / 5; }
.vtile--wide { aspect-ratio: 16 / 10; }
.vcap { position: absolute; z-index: 3; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; background: rgba(11, 13, 18, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vcap::before { content: ""; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); }
.vbtn { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(11, 13, 18, 0.45); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 0.2s; }
.vbtn:hover { background: rgba(11, 13, 18, 0.7); }
.vbtn svg { width: 14px; height: 14px; }
.vbtn .i-play { display: none; }
.vbtn[aria-pressed="true"] .i-play { display: block; }
.vbtn[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Hero: video window + floating dashboard ---------- */
.hero-visual { position: relative; }
.hero-visual .vtile { aspect-ratio: 4 / 3; }
.hero-visual .board { position: relative; z-index: 4; margin: -4.5rem 0.75rem 0; }
@media (min-width: 980px) {
  .hero-visual { padding-bottom: 3rem; }
  .hero-visual .vtile { aspect-ratio: 4 / 4.6; margin-left: 14%; }
  .hero-visual .board { position: absolute; left: 0; bottom: 0; width: min(92%, 500px); margin: 0; }
  .hero-visual .vcap { left: auto; right: 4.25rem; top: 1rem; bottom: auto; }
  .hero-visual .vbtn { top: 1rem; bottom: auto; }
}

/* ---------- Cinematic band ---------- */
.vband { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; background: #0b0d12; color: #fff; min-height: clamp(460px, 62vh, 640px); display: flex; align-items: flex-end; }
.vband > img, .vband > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vband > video { opacity: 0; transition: opacity 1.2s var(--ease); }
.vband > video.is-playing { opacity: 1; }
.vband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 18, 0.15) 0%, rgba(11, 13, 18, 0.35) 45%, rgba(11, 13, 18, 0.88) 100%), linear-gradient(90deg, rgba(11, 13, 18, 0.55), transparent 70%); }
.vband-inner { width: 100%; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: grid; gap: 2rem; }
@media (min-width: 960px) { .vband-inner { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.vband h2 { color: #fff; }
.vband .soft { color: rgba(255, 255, 255, 0.62); }
.vband p { color: rgba(255, 255, 255, 0.82); }
.vband .eyebrow { color: #c9d2ff; }
.vband-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--r); overflow: hidden; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vband-stats div { background: rgba(11, 13, 18, 0.45); padding: 1rem 1.1rem; display: grid; gap: 0.15rem; }
.vband-stats strong { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.vband-stats span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
.vband .vbtn { top: 1.25rem; right: 1.25rem; bottom: auto; }
.vband .vcap { top: 1.25rem; left: 1.25rem; bottom: auto; }

/* Video note over a tile (used beside the testimonial) */
.vtile .photo-note { z-index: 3; }
.vtile--note .vbtn { top: 1rem; bottom: auto; }
/* Hero tile: keep caption + pause control clear of the overlapping dashboard */
.hero-visual .vcap { top: 1rem; bottom: auto; left: 1rem; right: auto; }
.hero-visual .vbtn { top: 1rem; bottom: auto; }
@media (min-width: 980px) { .hero-visual .vcap { left: auto; right: 4.25rem; } }
.board-cols, .board-row { grid-template-columns: minmax(0, 1fr) 52px 60px 112px; }
@media (max-width: 560px) { .board-cols, .board-row { grid-template-columns: minmax(0, 1fr) 52px 104px; } }
@media (min-width: 980px) {
  .hero-visual { padding-bottom: 4.5rem; }
  .hero-visual .vtile { aspect-ratio: 4 / 4.4; margin-left: 0; margin-right: 10%; }
  .hero-visual .vtile > img, .hero-visual .vtile > video { object-position: 38% 50%; }
  .hero-visual .board { left: auto; right: 0; bottom: 0; width: min(86%, 470px); }
  .hero-visual .vcap { left: 1rem; right: auto; }
  .hero-visual .vbtn { right: 1rem; }
}
@media (min-width: 980px) { .hero-visual { padding-bottom: 13rem; } .hero-grid { align-items: start; } .hero-copy { padding-top: 2rem; } }
@media (max-width: 560px) {
  .board-row .name small { display: none; }
  .hero-visual .board { margin-top: -3rem; }
}

/* ==========================================================================
   v3.2 — Full-screen photo hero, maturity model page, auto-cycling levels
   ========================================================================== */

/* ---------- Full-screen photo hero (fills the viewport on every device) ---------- */
.hero--photo {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh;               /* fallback */
  min-height: 100svh;              /* mobile: excludes browser toolbars */
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3.5rem, 2.5rem + 6vh, 7.5rem);
  background: #0b0d12; color: #fff;
}
.hero--photo::before { display: none; }
.hero--photo > .container { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 13, 18, 0.55) 0%, rgba(11, 13, 18, 0.1) 30%, rgba(11, 13, 18, 0.35) 62%, rgba(11, 13, 18, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 13, 18, 0.55) 0%, rgba(11, 13, 18, 0) 70%);
}
.hero--photo .hero-copy { max-width: 780px; gap: 1.5rem; }
.hero--photo .h1 { color: #fff; font-size: clamp(2.75rem, 1.3rem + 5.2vw, 5.75rem); max-width: 14ch; }
.hero--photo .h1 .soft { color: rgba(255, 255, 255, 0.7); }
.hero--photo .lede { color: rgba(255, 255, 255, 0.88); max-width: 52ch; }
@media (max-height: 640px) and (orientation: landscape) { .hero--photo .h1 { font-size: clamp(2.2rem, 1rem + 4vw, 3.5rem); } }

.btn--light { background: #fff; color: #0b0d12; }
.btn--light:hover { background: #eef0f4; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Header reads white while it sits over the photo */
body[data-page="home"]:not(.menu-open) .site-header:not(.is-scrolled) {
  --text: #ffffff; --text-2: rgba(255, 255, 255, 0.86); --line-2: rgba(255, 255, 255, 0.32);
  --surface: rgba(255, 255, 255, 0.08); --surface-2: rgba(255, 255, 255, 0.14);
  --btn: #ffffff; --btn-text: #0b0d12; --btn-hover: #eef0f4;
}

/* ---------- Auto-cycling maturity levels ---------- */
.stair .prog { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.45rem; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); overflow: hidden; opacity: 0; }
.stair .prog::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.stairs.is-cycling .stair[aria-selected="true"] .prog { opacity: 1; }
.stairs.is-cycling .stair[aria-selected="true"] .prog::after { animation: stair-fill var(--cycle, 4.5s) linear forwards; }
.stairs.is-cycling.is-held .stair[aria-selected="true"] .prog::after { animation-play-state: paused; }
:root[data-theme="dark"] .stair .prog::after { background: #0b0d12; }
@keyframes stair-fill { to { transform: scaleX(1); } }
.stairs-axis { align-items: center; }
.cycle-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; padding: 0 0.7rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.cycle-btn:hover { border-color: var(--text); color: var(--text); }
.cycle-btn svg { width: 12px; height: 12px; }
.cycle-btn .i-play { display: none; }
.cycle-btn[aria-pressed="true"] .i-play { display: block; }
.cycle-btn[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Maturity model page ---------- */
.areas { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area { background: var(--surface); padding: 1.4rem 1.25rem; display: grid; gap: 0.5rem; align-content: start; }
.area .ico { width: 38px; height: 38px; }
.area .ico svg { width: 19px; height: 19px; }
.area h3 { font-size: 1rem; }
.area p { font-size: 0.875rem; color: var(--muted); }
.scroll-cue { display: grid; justify-items: center; gap: 0.75rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); text-align: center; }
.scroll-cue .btn svg { transform: rotate(90deg); }
.scroll-cue .btn:hover svg { transform: rotate(90deg) translateX(3px); }
/* Muted, premium tone for the hero photo (matches the calm dusk reference) */
.hero-bg img { filter: saturate(0.78) brightness(0.96); object-position: 50% 55%; }
@media (min-width: 980px) {
  .hero-bg img { object-position: 50% 85%; }
  .hero--photo { padding-bottom: clamp(3rem, 7vh, 5.5rem); }
  .hero--photo .h1 { font-size: clamp(2.75rem, 1.2rem + 3.6vw, 5rem); max-width: 16ch; }
}

/* ---------- Service tiers (Diagnose / Build / Run) ---------- */
.service-list { border-top: 0; }
.tier-head { display: grid; gap: 0.5rem 2.5rem; padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-bottom: 1.25rem; border-bottom: 2px solid var(--text); }
.tier-head:first-child { padding-top: 0; }
@media (min-width: 960px) { .tier-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.tier-head .h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
.tier-head p { color: var(--muted); }
.tier-tag { display: inline-flex; margin-bottom: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.svc-num { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 0.35rem; }

/* ---------- Home: three-package cards ---------- */
.pkg { gap: 1rem; }
.pkg .kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pkg ul { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.pkg li { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.pkg li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.pkg { display: flex; flex-direction: column; }
.pkg ul { margin-bottom: 0.5rem; }
.pkg .link { margin-top: auto; }

/* ---------- Photo heroes on any page ---------- */
/* Header reads white over any full-screen photo hero */
body:has(.hero--photo):not(.menu-open) .site-header:not(.is-scrolled),
body[data-page="what-we-do"]:not(.menu-open) .site-header:not(.is-scrolled) {
  --text: #ffffff; --text-2: rgba(255, 255, 255, 0.86); --line-2: rgba(255, 255, 255, 0.32);
  --surface: rgba(255, 255, 255, 0.08); --surface-2: rgba(255, 255, 255, 0.14);
  --btn: #ffffff; --btn-text: #0b0d12; --btn-hover: #eef0f4;
}
.hero--photo .eyebrow { color: #c9d2ff; }
/* What we do: New York at dusk — keep the towers and pink sky in frame, colors left vivid */
.hero--city .hero-bg img { object-position: 50% 58%; filter: saturate(1) brightness(0.92); }
@media (min-width: 980px) { .hero--city .hero-bg img { object-position: 50% 62%; } }
.hero--city .hero-bg img { filter: saturate(1.1) brightness(1); }
.hero--city::after {
  background:
    linear-gradient(180deg, rgba(11, 13, 18, 0.35) 0%, rgba(11, 13, 18, 0) 25%, rgba(11, 13, 18, 0.25) 60%, rgba(11, 13, 18, 0.85) 100%),
    linear-gradient(90deg, rgba(11, 13, 18, 0.6) 0%, rgba(11, 13, 18, 0.1) 60%, rgba(11, 13, 18, 0) 100%);
}

/* ---------- Larger header: logo + menu ---------- */
:root { --header-h: 84px; }
.site-header .brand .logo { font-size: 1.85rem; }
.site-footer .brand .logo { font-size: 1.7rem; }
.nav a { font-size: 1.0625rem; padding: 0 0.95rem; min-height: 44px; }
@media (min-width: 1000px) and (max-width: 1180px) {
  .nav a { font-size: 1rem; padding: 0 0.65rem; }
  .site-header .brand .logo { font-size: 1.7rem; }
}
@media (max-width: 999px) { .site-header .brand .logo { font-size: 1.7rem; } }

/* ---------- Logo B: maturity steps (live) ---------- */
.brand { padding-bottom: 0; }
.logo--steps { display: inline-flex; align-items: center; gap: 0.36em; font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--text); }
.logo--steps .logo-mark { width: 1.28em; height: 1.28em; flex: none; display: block; }
.logo--steps .logo-word { display: block; padding-top: 0.04em; }
:root[data-theme="dark"] .logo--steps .logo-mark rect[fill="#2f4be0"] { fill: #4f6bff; }
/* Contact: Burj Khalifa cropped to the tower and skyline (hides the pool at the bottom) */
.photo--burj { aspect-ratio: 4 / 3; }
.photo--burj img { object-position: 50% 0%; transform: scale(1.32); transform-origin: 50% 8%; }

/* ---------- Dusk photo treatment (matches the home page) ---------- */
body[data-page="contact"]:not(.menu-open) .site-header:not(.is-scrolled) {
  --text: #ffffff; --text-2: rgba(255, 255, 255, 0.86); --line-2: rgba(255, 255, 255, 0.32);
  --surface: rgba(255, 255, 255, 0.08); --surface-2: rgba(255, 255, 255, 0.14);
  --btn: #ffffff; --btn-text: #0b0d12; --btn-hover: #eef0f4;
}
.hero--dubai .hero-bg img { filter: saturate(0.82) brightness(0.95); object-position: 50% 58%; }
@media (min-width: 980px) { .hero--dubai .hero-bg img { object-position: 50% 62%; } }
.photo--dusk img { filter: saturate(0.82) brightness(0.96); }

/* Arriving at the maturity check from another page: a brief accent glow */
.quiz.is-arrived { animation: quiz-arrive 2.2s var(--ease) 1; }
@keyframes quiz-arrive {
  0%   { box-shadow: 0 0 0 0 rgba(47, 75, 224, 0.55), var(--shadow-lg); }
  35%  { box-shadow: 0 0 0 12px rgba(47, 75, 224, 0.14), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(47, 75, 224, 0), var(--shadow-lg); }
}

/* Maturity check section: tighter so the heading and quiz sit closer together */
#check.section { padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
#check .section-head { margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); gap: 0.85rem; }
#check .h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
#check .quiz-body { padding-top: clamp(1.25rem, 1rem + 1.5vw, 2rem); padding-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
#check .q legend { margin-bottom: 1.1rem; }
#check .quiz-nav { margin-top: 1.4rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal .updated { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); letter-spacing: -0.02em; margin: 2.75rem 0 0.85rem; }
.legal h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 0.9rem; }
.legal ul { padding-left: 1.25rem; margin: 0.6rem 0 0; display: grid; gap: 0.45rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: var(--fs-sm); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 600; }
.legal .toc { padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); }
.legal .toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.legal .toc a { text-decoration: none; }

/* Footer legal row + consent notes */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-note a, .form-foot p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Outcomes: short text only ---------- */
.outcomes { display: grid; gap: 2.25rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.outcome { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.outcome::before { content: ""; display: block; width: 2.5rem; height: 2px; margin: -1.375rem 0 1.25rem; background: var(--accent, #2f4be0); }
.outcome .h3 { margin: 0 0 0.5rem; }
.outcome p { margin: 0; color: var(--muted); }


/* ---------- Phone polish ---------- */
@media (max-width: 600px) {
  /* Comfortable 44px tap targets */
  .footer-col a { min-height: 44px; }
  .card .link { min-height: 44px; }
  .cycle-btn { min-height: 44px; padding: 0 1rem; }
  /* Level-bar captions on one line, the tour button centred underneath */
  .stairs-axis { flex-wrap: wrap; row-gap: 0.75rem; }
  .stairs-axis .cycle-btn { order: 3; margin-inline: auto; }
  /* Stacked buttons share one full width */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .btn { justify-content: center; width: 100%; }
}

/* Spam trap on the contact form: hidden from people, filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
