/* =========================================================
   Apex Management Advisors — styles
   Tokens → themes → base → components → sections
   ========================================================= */

/* Palette — consulting blues (client feedback, Sep 2026): navy base + vivid blue accent */
:root {
  --white: #FFFFFF;
  --gray-50: #F4F6F8;
  --gray-100: #E9EEF3;
  --navy: #051C2C;
  --navy-800: #0B2A42;
  --blue: #2251FF;
  --blue-700: #1A3FD6;
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FF;
  --blue-on-navy: #7FA0FF;
  --slate: #51606F;
  --ink: #1D2733;
  --metal: linear-gradient(120deg, #EEF3FF 0%, #BFD0FF 100%);

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --surface: var(--white);
  --text: var(--ink);
  --heading: var(--navy);
  --muted: var(--slate);
  --accent: var(--blue);
  --accent-text: var(--blue-700);
  --line: #D3DAE2;
  --line-strong: #8795A5;
  --hair: #E3E8EE;
  --grid: transparent;
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-hover: var(--blue-700);
  --btn2-bg: transparent;
  --btn2-fg: var(--navy);
  --btn2-line: var(--navy);
  --focus: var(--blue);
  --ok: #1D6B43;
  --err: #B3261E;
  --err-bg: #FCEEEE;
  --ok-bg: #EDF6F0;
  --hl: #BFD0FF;
  --shadow: 0 18px 40px -24px rgba(5, 28, 44, 0.35);
  --shadow-sm: 0 6px 18px -12px rgba(5, 28, 44, 0.3);

  /* Type */
  --f-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: var(--f-body);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.8vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);

  /* Layout */
  --wrap: 1280px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(4.5rem, 3.5rem + 5vw, 8rem);
  --hdr: 76px;
  --r: 4px;
  --bw: 1px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t: 220ms;
  --t-slow: 700ms;
}

/* Navy blocks */
.inverse {
  --bg: var(--navy);
  --bg-alt: var(--navy-800);
  --surface: #0A2638;
  --text: #D6DEE7;
  --heading: #FFFFFF;
  --muted: #A9B8C8;
  --accent-text: var(--blue-on-navy);
  --line: rgba(255, 255, 255, 0.28);
  --line-strong: rgba(255, 255, 255, 0.5);
  --hair: rgba(255, 255, 255, 0.14);
  --btn-bg: var(--blue);
  --btn-fg: #FFFFFF;
  --btn-hover: #3E66FF;
  --btn2-fg: #FFFFFF;
  --btn2-line: rgba(255, 255, 255, 0.6);
  --focus: var(--blue-on-navy);
  --hl: #3A5BD9;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
::selection { background: var(--blue-100); color: var(--navy); }
[data-theme='dark'] ::selection { background: var(--silver); color: var(--black); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 300; top: 10px; left: 10px; padding: 0.75rem 1rem; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; text-decoration: none; transform: translateY(-200%); transition: transform var(--t) var(--ease); }
.skip:focus { transform: none; }
.icon { flex-shrink: 0; }
.tag { display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; border: var(--bw) solid var(--line); color: var(--heading); font-size: 0.6875rem; line-height: 1.3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.35rem;
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-family: var(--f-display); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.btn .icon { transition: transform var(--t) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { box-shadow: 4px 4px 0 0 var(--hair); }
.btn-secondary { background: var(--btn2-bg); color: var(--btn2-fg); }
.btn-secondary:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: var(--bw) solid var(--line); border-radius: var(--r); background: transparent; color: var(--heading);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.icon-btn:hover { background: var(--btn-bg); color: var(--btn-fg); }
.linkbtn { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 0.22em; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--heading); text-decoration: none; }
.brand-word { display: grid; gap: 0.3rem; line-height: 1; white-space: nowrap; }
.brand-name { font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; letter-spacing: 0.16em; }
.brand-sub { font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.brand-mark { color: var(--heading); transition: transform var(--t-slow) var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: var(--bw) solid var(--line); transition: background-color var(--t) var(--ease); }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: var(--hdr); }
.nav { display: none; }
.nav-list { display: flex; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
  color: var(--text); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.nav-list a::after { content: ''; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 6px; height: 1.5px; background: var(--heading); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--heading); }
.hdr-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang { display: inline-flex; align-items: stretch; height: 44px; border: var(--bw) solid var(--line); border-radius: var(--r); font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; text-decoration: none; overflow: hidden; }
.lang span { display: grid; place-items: center; min-width: 38px; color: var(--muted); transition: background-color var(--t), color var(--t); }
.lang span.on { background: var(--btn-bg); color: var(--btn-fg); }
.lang:hover span:not(.on) { color: var(--heading); }
.theme-btn .i-sun, [data-theme='dark'] .theme-btn .i-moon { display: none; }
[data-theme='dark'] .theme-btn .i-sun { display: block; }
.menu-btn .i-close, .menu-btn[aria-expanded='true'] .i-open { display: none; }
.menu-btn[aria-expanded='true'] .i-close { display: block; }
.hdr-cta, .lg-only { display: none; }
@media (min-width: 560px) { .hdr-cta { display: inline-flex; } }
@media (min-width: 1240px) {
  .nav { display: block; }
  .menu-btn, .mnav { display: none !important; }
  .lg-only { display: inline; }
  .sm-only { display: none; }
}
@media (max-width: 400px) { .brand-sub { display: none; } }

.mnav { position: fixed; inset: var(--hdr) 0 0; z-index: 99; background: var(--bg); overflow-y: auto; border-top: var(--bw) solid var(--line); opacity: 0; transition: opacity var(--t) var(--ease); }
.mnav.is-open { opacity: 1; }
.mnav[hidden] { display: none; }
.mnav-in { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 100%; padding-block: 1rem 2rem; }
.mnav-in:focus { outline: none; }
.mnav-list li { border-bottom: var(--bw) solid var(--hair); }
.mnav-list a { display: flex; align-items: center; gap: 1rem; min-height: 60px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--heading); text-decoration: none; }
.mnav-list .mono { color: var(--muted); }
.mnav-foot { display: grid; gap: 1rem; }
.mnav-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.mnav-meta a:not(.lang) { color: var(--muted); text-decoration: none; }

/* ---------- Section scaffolding ---------- */
.sec { position: relative; padding-block: var(--sec); background: var(--bg); }
.sec-alt { background: var(--bg-alt); }
[data-theme='dark'] .sec-alt { --muted: #A9AEB5; }
.sec + .sec { border-top: var(--bw) solid var(--line); }
.shead { display: grid; gap: 1.25rem 3rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); padding-top: 1.25rem; border-top: var(--bw) solid var(--line); }
.shead-label { display: flex; gap: 0.6rem; color: var(--heading); }
.shead-sep { color: var(--muted); }
.shead-title { max-width: 20ch; font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; color: var(--heading); text-wrap: balance; }
.shead-intro { max-width: 46ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 1024px) {
  .shead { grid-template-columns: 7fr 5fr; align-items: end; }
  .shead-label { grid-column: 1 / -1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); background: var(--bg); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 75%);
}
.hero-in { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1080px) { .hero-in { grid-template-columns: 6fr 5fr; } }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--heading); }
.kicker::before { content: ''; width: 10px; height: 10px; border: 1.5px solid var(--line); transform: rotate(45deg); background: var(--hl); }
.hero-title { margin-top: 1.5rem; font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; color: var(--heading); }
.hl { position: relative; z-index: 0; isolation: isolate; display: inline-block; white-space: nowrap; }
.hl::before { content: ''; position: absolute; z-index: -1; left: -0.04em; right: -0.06em; bottom: 0.1em; height: 0.26em; background: var(--hl); border: 1px solid var(--line); transform-origin: left; animation: hl-in 1s var(--ease) 0.5s both; }
.hero-lead { max-width: 52ch; margin-top: 1.75rem; font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
@media (max-width: 559px) { .hero-ctas .btn { width: 100%; } }
.facts { display: grid; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); border: var(--bw) solid var(--line); background: var(--surface); }
.facts > div { display: grid; gap: 0.35rem; padding: 1.1rem 1.25rem; }
.facts > div + div { border-top: var(--bw) solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-family: var(--f-display); font-size: 1.0625rem; font-weight: 600; color: var(--heading); }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div + div { border-top: 0; border-left: var(--bw) solid var(--line); }
}

/* Frames (illustrations) */
.frame { border: var(--bw) solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 -1px var(--bg), 10px 10px 0 0 var(--line); }
.frame-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: var(--bw) solid var(--line); color: var(--heading); }

/* Gantt */
.gantt-body { position: relative; padding: 0.5rem 1rem 1.6rem; }
.g-head, .g-row { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; align-items: center; }
.g-head { grid-template-columns: minmax(96px, 30%) repeat(4, 1fr); padding-block: 0.5rem; color: var(--muted); border-bottom: var(--bw) solid var(--hair); }
.g-head span:not(:first-child) { padding-left: 0.4rem; border-left: var(--bw) dashed var(--hair); }
.g-row { min-height: 46px; border-bottom: var(--bw) solid var(--hair); }
.g-name { font-size: 0.8125rem; font-weight: 500; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0.5rem; }
.g-track { position: relative; height: 100%; min-height: 46px;
  background-image: linear-gradient(90deg, var(--hair) 1px, transparent 1px); background-size: 25% 100%; }
.g-bar { position: absolute; top: 50%; left: var(--s); width: calc(var(--e) - var(--s)); height: 14px; margin-top: -7px; border: 1.5px solid var(--line); transform-origin: left; animation: bar-in 900ms var(--ease) both; animation-delay: calc(400ms + var(--d)); }
.g-bar.st-track { background: var(--heading); }
.g-bar.st-risk { background: var(--hl); }
.g-bar.st-late { background: repeating-linear-gradient(135deg, var(--heading) 0 2px, transparent 2px 6px); }
.g-bar.st-plan { background: transparent; border-style: dashed; }
.g-ms { position: absolute; top: 50%; left: var(--m); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--surface); border: 1.5px solid var(--line); transform: rotate(45deg) scale(0); animation: ms-in 400ms var(--ease) both; animation-delay: calc(400ms + var(--d)); }
.g-overlay { position: absolute; top: 0.5rem; bottom: 1.6rem; left: 1rem; right: 1rem; display: grid; grid-template-columns: minmax(96px, 30%) 1fr; pointer-events: none; }
.g-ov { position: relative; }
.g-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--heading); }
.g-today span { position: absolute; bottom: -1.3rem; left: 0; transform: translateX(-50%); padding: 0.05rem 0.35rem; background: var(--heading); color: var(--bg); font-size: 0.625rem; line-height: 1.4; }
.g-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0.75rem 1rem; border-top: var(--bw) solid var(--line); color: var(--muted); }
.g-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.lg { display: inline-block; width: 18px; height: 10px; border: 1.5px solid var(--line); }
.lg-track { background: var(--heading); }
.lg-risk { background: var(--hl); }
.lg-late { background: repeating-linear-gradient(135deg, var(--heading) 0 2px, transparent 2px 5px); }

/* ---------- Problem ---------- */
.symptoms { display: grid; gap: var(--bw); background: var(--line); border: var(--bw) solid var(--line); }
@media (min-width: 720px) { .symptoms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .symptoms { grid-template-columns: repeat(4, 1fr); } }
.symptom { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); background: var(--surface); transition: background-color var(--t) var(--ease); }
.symptom-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; color: var(--heading); }
.symptom-top .mono { color: var(--muted); }
.symptom h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; color: var(--heading); letter-spacing: -0.01em; }
.symptom p { color: var(--muted); }
.symptom:hover { background: var(--bg-alt); }
.sec-alt .symptom:hover { background: var(--bg); }
.closing { max-width: 58ch; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-left: 1.25rem; border-left: 3px solid var(--line); font-size: var(--fs-lead); line-height: 1.55; }
.closing strong { color: var(--heading); font-weight: 600; }

/* ---------- Services ---------- */
.svc-featured { display: grid; border: var(--bw) solid var(--line); }
@media (min-width: 960px) { .svc-featured { grid-template-columns: 7fr 5fr; } }
.svc-f-main { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); }
.svc-f-main h3 { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; color: var(--heading); }
.svc-f-main p:not(.tag) { max-width: 52ch; color: var(--muted); font-size: var(--fs-lead); }
.svc-f-main .btn { margin-top: 0.75rem; }
.tag-light { color: var(--heading); border-color: var(--line); }
.svc-f-list { padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); border-top: var(--bw) solid var(--hair); background: var(--bg-alt); }
@media (min-width: 960px) { .svc-f-list { border-top: 0; border-left: var(--bw) solid var(--hair); } }
.svc-f-list > .mono { color: var(--muted); margin-bottom: 1.25rem; }
.svc-f-list ul { display: grid; }
.svc-f-list li { display: flex; gap: 0.8rem; align-items: flex-start; padding-block: 1rem; border-top: var(--bw) solid var(--hair); color: var(--heading); font-weight: 500; }
.svc-f-list li:last-child { border-bottom: var(--bw) solid var(--hair); }
.svc-f-list li .icon { margin-top: 0.2rem; color: var(--line); }
.svc-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border: var(--bw) solid var(--line); color: var(--heading); background: var(--surface); }
.inverse .svc-icon { background: var(--hl); color: #0B0B0C; border-color: var(--line); }
.svc-grid { display: grid; gap: var(--bw); margin-top: 1.5rem; background: var(--line); border: var(--bw) solid var(--line); }
@media (min-width: 720px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); background: var(--surface); transition: background-color var(--t) var(--ease); }
.svc:hover { background: var(--bg-alt); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.svc-top .mono { color: var(--muted); }
.svc h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--heading); }
.svc p { max-width: 48ch; color: var(--muted); }

/* ---------- Models ---------- */
.models { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .models { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, auto); gap: 0 1.25rem; }
  .model { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
}
.model { border: 1.5px solid var(--line); background: var(--surface); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.model:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 0 var(--line); }
.model-head { display: grid; gap: 0.35rem; padding: 1.5rem; border-bottom: 1.5px solid var(--line); }
.model-head .mono { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 0.75rem; border: var(--bw) solid var(--line); color: var(--heading); }
.model-head h3 { font-family: var(--f-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.model-tag { color: var(--muted); font-size: 1.0625rem; }
.model-row { display: grid; gap: 0.4rem; align-content: start; padding: 1.1rem 1.5rem; border-bottom: var(--bw) solid var(--hair); }
.model-row .mono { color: var(--muted); }
.model-row ul { display: grid; gap: 0.35rem; }
.model-row li { position: relative; padding-left: 1.1rem; }
.model-row li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border: 1.5px solid var(--line); transform: rotate(45deg); }
.model-row strong { color: var(--heading); font-weight: 600; }
.model-foot { padding: 1.25rem 1.5rem 1.5rem; align-self: end; }

/* ---------- Method ---------- */
.approaches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.approaches li { padding: 0.45rem 0.8rem; border: var(--bw) solid var(--line); color: var(--heading); }
.steps { display: grid; gap: 1rem; }
@media (min-width: 720px) and (max-width: 1079px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { display: grid; gap: 0.75rem; align-content: start; }
.step-box { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; border: 1.5px solid var(--line); background: var(--surface); }
.step-n { display: flex; align-items: center; gap: 0.6rem; color: var(--heading); }
.step-n::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.step h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; color: var(--heading); }
.step-box p { color: var(--muted); }
.step-out { display: grid; gap: 0.3rem; align-content: start; padding: 0.9rem 1.1rem; border: var(--bw) dashed var(--line); background: var(--bg-alt); }
.step-out .mono { color: var(--muted); font-size: 0.6875rem; }
.step-out p { color: var(--heading); font-weight: 500; font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; column-gap: 0; row-gap: 0.75rem; }
  .step { grid-row: span 2; grid-template-rows: subgrid; gap: 0; }
  .step + .step .step-box { border-left-width: 0; }
  .step:not(:last-child) .step-out { margin-right: 0.75rem; }
  .step:not(:last-child) .step-box::after {
    content: ''; position: absolute; z-index: 1; top: 1.45rem; right: -9px; width: 16px; height: 16px;
    background: var(--surface); border-top: 1.5px solid var(--line); border-right: 1.5px solid var(--line); transform: rotate(45deg);
  }
}
.loop { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: var(--bw) solid var(--line); color: var(--heading); }
.loop .icon { animation: spin 8s linear infinite; }

/* ---------- Deliverables (inverse) ---------- */
.sec.inverse { border-top: 0; }
.sec.inverse .shead { border-top-color: var(--hair); }
.deliv { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .deliv { grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; } }
.deliv-tabs { display: grid; border: var(--bw) solid var(--line); }
.dtab {
  display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; padding: 1.2rem 1.25rem; text-align: left;
  background: transparent; border: 0; border-bottom: var(--bw) solid var(--hair); color: var(--text);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.dtab:last-child { border-bottom: 0; }
.dtab .mono { grid-row: span 2; padding-top: 0.25rem; color: var(--muted); }
.dtab-t { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 600; color: var(--heading); }
.dtab-d { color: var(--muted); font-size: 0.9375rem; }
.dtab:hover { background: var(--bg-alt); }
.dtab[aria-selected='true'] { background: #FFFFFF; color: #2A2D32; }
.dtab[aria-selected='true'] .dtab-t { color: #0B0B0C; }
.dtab[aria-selected='true'] .dtab-d { color: #4F545B; }
.dtab[aria-selected='true'] .mono { color: #0B0B0C; }
.dtab:focus-visible { outline-offset: -3px; }
.deliv-panels { display: grid; gap: 0.75rem; }
.dpanel:focus-visible { outline-offset: 4px; }
.deliv-note { color: var(--muted); }

/* Mockups (always light, like a document on a desk) */
.mock {
  --m-line: #0B0B0C; --m-hair: #D5D8DD; --m-text: #2A2D32; --m-muted: #5E636B; --m-bg: #FFFFFF; --m-alt: #F2F3F5;
  border: 1.5px solid var(--line); background: var(--m-bg); color: var(--m-text); animation: fade-up 450ms var(--ease) both;
}
.mock .tag { border-color: var(--m-line); color: #0B0B0C; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-bottom: var(--bw) solid var(--m-line); color: #0B0B0C; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: var(--bw) solid var(--m-line); }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: grid; gap: 0.2rem; padding: 1rem; border-right: var(--bw) solid var(--m-hair); border-bottom: var(--bw) solid var(--m-hair); }
.kpi-v { font-family: var(--f-display); font-size: 1.875rem; font-weight: 700; color: #0B0B0C; line-height: 1; }
.kpi-k { font-size: 0.75rem; color: var(--m-muted); }
.mtable { display: grid; padding: 0.5rem 1rem 1rem; font-size: 0.8125rem; }
.mrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 0.75rem; align-items: center; min-height: 42px; border-bottom: var(--bw) solid var(--m-hair); }
.mrow-h { min-height: 34px; font-family: var(--f-mono); font-size: 0.6875rem; text-transform: uppercase; color: var(--m-muted); }
.mrow > span:first-child { font-weight: 500; color: #0B0B0C; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.45rem; border: 1px solid var(--m-line); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border: 1px solid var(--m-line); }
.chip-track::before { background: #0B0B0C; }
.chip-risk::before { background: var(--metal); }
.chip-late::before { background: repeating-linear-gradient(135deg, #0B0B0C 0 1.5px, transparent 1.5px 3px); }
.meter { display: block; height: 8px; border: 1px solid var(--m-line); }
.meter i { display: block; height: 100%; background: #0B0B0C; transform-origin: left; animation: bar-in 800ms var(--ease) 150ms both; }
.doc { position: relative; margin: 1.25rem; padding: 1.25rem 1.25rem 1.5rem; border: var(--bw) solid var(--m-hair); background: #fff; box-shadow: 6px 6px 0 -1px #fff, 6px 6px 0 0 var(--m-hair); }
.doc-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1.5px solid var(--m-line); color: var(--m-muted); }
.doc-mark { color: #0B0B0C; }
.doc-sec { display: grid; gap: 0.45rem; padding-block: 0.7rem; border-bottom: var(--bw) solid var(--m-hair); }
.doc-h { font-family: var(--f-display); font-weight: 600; font-size: 0.9375rem; color: #0B0B0C; }
.ln { display: block; height: 6px; background: var(--m-alt); border: 1px solid var(--m-hair); }
.doc-decision { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.6rem 0.75rem; border: 1px solid var(--m-line); background: var(--m-alt); font-size: 0.8125rem; font-weight: 500; }
.doc-lights { position: absolute; top: 4.2rem; right: 1.25rem; display: flex; gap: 0.3rem; }
.lt { width: 12px; height: 12px; border: 1px solid var(--m-line); border-radius: 50%; }
.lt-track { background: #0B0B0C; } .lt-risk { background: var(--metal); } .lt-late { background: repeating-linear-gradient(135deg, #0B0B0C 0 1.5px, #fff 1.5px 3px); }
.rmatrix { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 0.5rem; padding: 1.25rem; }
.ax { color: var(--m-muted); font-size: 0.6875rem; }
.ax-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.ax-x { grid-column: 2; text-align: center; }
.rgrid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--m-line); border-left: 1.5px solid var(--m-line); }
.rc { display: grid; place-items: center; aspect-ratio: 1.6; border-right: 1px solid var(--m-hair); border-bottom: 1px solid var(--m-hair); }
.rc-l { background: #fff; }
.rc-m { background: var(--m-alt); }
.rc-h { background: repeating-linear-gradient(135deg, #E3E5E9 0 2px, #F7F8FA 2px 7px); }
.rc b { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 0.3rem; border: 1.5px solid var(--m-line); background: #fff; font-family: var(--f-mono); font-size: 0.6875rem; color: #0B0B0C; }
.gov { display: grid; gap: 1.25rem; padding: 1.25rem; }
@media (min-width: 560px) { .gov { grid-template-columns: 1fr 1fr; } }
.gov-tree { display: grid; gap: 0.6rem; }
.gov-tree li { position: relative; margin-left: calc(var(--lvl) * 1rem); padding: 0.6rem 0.8rem; border: 1.5px solid var(--m-line); font-weight: 600; font-size: 0.875rem; color: #0B0B0C; background: #fff; }
.gov-tree li:first-child { background: var(--metal); }
.gov-tree li + li::before { content: ''; position: absolute; left: -0.5rem; top: -0.7rem; width: 0.5rem; height: calc(50% + 0.7rem); border-left: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); }
.gov-files { display: grid; align-content: start; border: 1px solid var(--m-line); }
.gov-files li { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.8rem; font-size: 0.875rem; border-bottom: 1px solid var(--m-hair); }
.gov-files li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.qa { border: var(--bw) solid var(--line); background: var(--surface); transition: box-shadow var(--t) var(--ease); }
.qa[open] { box-shadow: 5px 5px 0 0 var(--hair); }
.qa summary { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; min-height: 68px; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .mono { color: var(--muted); }
.qa-q { font-family: var(--f-display); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 600; color: var(--heading); line-height: 1.3; }
.qa-ico { display: grid; place-items: center; width: 36px; height: 36px; border: var(--bw) solid var(--line); color: var(--heading); transition: transform var(--t) var(--ease), background-color var(--t), color var(--t); }
.qa[open] .qa-ico { transform: rotate(45deg); background: var(--btn-bg); color: var(--btn-fg); }
.qa summary:hover .qa-q { text-decoration: underline; text-underline-offset: 0.2em; }
.qa-a { overflow: hidden; }
.qa-a p { max-width: 70ch; padding: 0 1.25rem 1.4rem calc(1.25rem + 2.2rem + 1rem); color: var(--muted); }
@media (max-width: 559px) { .qa-a p { padding-left: 1.25rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact { grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; } }
.contact-side { display: grid; gap: 1.5rem; }
.cal { display: grid; gap: 0.9rem; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); border: var(--bw) solid var(--line); }
.cal-k { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.cal h3 { font-family: var(--f-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.cal p:not(.cal-k) { color: var(--muted); }
.cal .btn { margin-top: 0.5rem; }
.cinfo { display: grid; border: var(--bw) solid var(--line); background: var(--surface); }
.cinfo > div { display: grid; gap: 0.35rem; padding: 1rem 1.25rem; }
.cinfo > div + div { border-top: var(--bw) solid var(--hair); }
.cinfo dt { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.cinfo dt .icon { width: 16px; height: 16px; }
.cinfo dd { display: grid; color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
.cinfo dd a { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.cinfo dd a:hover { text-decoration: underline; }
.cinfo small { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.form-card { border: 1.5px solid var(--line); background: var(--surface); padding: clamp(1.5rem, 1.2rem + 2vw, 2.75rem); }
.form-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: var(--bw) solid var(--line); }
.form-head h3 { font-family: var(--f-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.form-head .mono { color: var(--muted); }
.cform { display: grid; gap: 1.25rem; }
.frow { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .frow { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--heading); }
.req { margin-left: 0.2rem; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--heading); font-size: 1rem;
  transition: box-shadow var(--t-fast), border-color var(--t-fast); -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6B7785; opacity: 1; }
[data-theme='dark'] .field input::placeholder, [data-theme='dark'] .field textarea::placeholder { color: #8B9098; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--line), 4px 4px 0 0 var(--hair); }
.field [aria-invalid='true'] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.select { position: relative; display: block; }
.select::after { content: ''; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--heading); border-bottom: 1.5px solid var(--heading); transform: rotate(45deg); pointer-events: none; }
.select select { padding-right: 2.5rem; cursor: pointer; }
.ferr { display: flex; align-items: center; gap: 0.4rem; color: var(--err); font-size: 0.8125rem; font-weight: 500; }
.ferr[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { color: var(--muted); font-size: 0.875rem; }
.consent a { color: var(--heading); }
.submit { justify-self: start; min-width: 220px; }
@media (max-width: 639px) { .submit { width: 100%; } }
.spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.submit.is-loading { pointer-events: none; opacity: 0.85; }
.submit.is-loading .spin { display: inline-block; }
.submit.is-loading .icon { display: none; }
.fstatus { padding: 0.9rem 1rem; border: var(--bw) solid; font-size: 0.9375rem; font-weight: 500; }
.fstatus[hidden] { display: none; }
.fstatus.is-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); }
.fstatus.is-err { color: var(--err); background: var(--err-bg); border-color: var(--err); }

/* ---------- Footer ---------- */
.ftr { padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 1.5rem; font-size: 0.9375rem; }
.ftr .brand-mark { color: #FFFFFF; }
.ftr-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: var(--bw) solid var(--hair); }
@media (min-width: 720px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .ftr-top { grid-template-columns: 4fr 3fr 2fr 3fr; } }
.ftr-brand p { max-width: 34ch; margin-top: 1.25rem; color: var(--muted); }
.ftr-est { display: inline-block; margin-top: 1rem !important; padding: 0.3rem 0.6rem; border: var(--bw) solid var(--line); color: var(--heading) !important; }
.ftr-col h2 { margin-bottom: 1rem; font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--heading); }
.ftr-col ul { display: grid; gap: 0.2rem; }
.ftr-col a, .ftr-col span { display: inline-flex; align-items: center; gap: 0.5rem; padding-block: 0.35rem; color: var(--muted); text-decoration: none; }
.ftr-col a:hover { color: var(--heading); text-decoration: underline; }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.25rem; color: var(--muted); font-size: 0.8125rem; }
.ftr-bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.ftr-bottom a, .ftr-bottom .linkbtn { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.8125rem; text-decoration: none; }
.ftr-bottom a:hover, .ftr-bottom .linkbtn:hover { color: var(--heading); text-decoration: underline; }

/* ---------- WhatsApp & cookies ---------- */
.wa {
  position: fixed; right: clamp(1rem, 2.5vw, 1.5rem); bottom: clamp(1rem, 2.5vw, 1.5rem); z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: #0B0B0C; color: #FFFFFF; border: 1.5px solid #C4C8CE; border-radius: 50%;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transition: transform var(--t) var(--ease), background-color var(--t), color var(--t), bottom var(--t) var(--ease);
}
.wa:hover { transform: translateY(-2px); background: #FFFFFF; color: #0B0B0C; border-color: #0B0B0C; }
[data-theme='dark'] .wa { background: #F2F3F5; color: #0B0B0C; border-color: #0B0B0C; }
.cookie {
  position: fixed; z-index: 95; left: clamp(0.75rem, 2.5vw, 1.5rem); right: clamp(0.75rem, 2.5vw, 1.5rem); bottom: clamp(0.75rem, 2.5vw, 1.5rem);
  display: grid; gap: 0.75rem; max-width: 440px; padding: 1.25rem;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line); box-shadow: 8px 8px 0 0 var(--hair);
  font-size: 0.875rem; animation: fade-up 400ms var(--ease) both;
}
.cookie[hidden] { display: none; }
.cookie-title { color: var(--heading); }
.cookie a { color: var(--heading); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
body.has-cookie .wa { bottom: calc(var(--cookie-h, 190px) + 1.5rem); }
@media (min-width: 640px) { body.has-cookie .wa { bottom: clamp(1rem, 2.5vw, 1.5rem); } }

/* ---------- Inner pages ---------- */
.phero { position: relative; isolation: isolate; padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: var(--bw) solid var(--line); overflow: hidden; }
.phero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.phero h1 { margin-top: 1.5rem; font-family: var(--f-display); font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--heading); }
.phero .mono:not(.kicker) { margin-top: 1rem; color: var(--muted); }
.phero-lead { max-width: 44ch; margin: 1.25rem 0 2.25rem; color: var(--muted); font-size: var(--fs-lead); }
.phero-404 { min-height: 70vh; display: flex; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--heading); font-weight: 500; text-decoration: none; }
.back:hover { text-decoration: underline; }
.legal { border-top: 0 !important; }
.prose { max-width: 74ch; font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.75rem; padding-top: 1rem; border-top: var(--bw) solid var(--line); font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; color: var(--heading); }
.prose h3 { margin-top: 1.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--heading); }
.prose strong { color: var(--heading); }
.prose ul { display: grid; gap: 0.55rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ''; position: absolute; left: 0.1rem; top: 0.72em; width: 6px; height: 6px; border: 1.5px solid var(--line); transform: rotate(45deg); }
.prose a { color: var(--heading); font-weight: 500; }
.prose code { font-family: var(--f-mono); font-size: 0.85em; padding: 0.05em 0.35em; border: var(--bw) solid var(--hair); background: var(--bg-alt); }
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--line); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--heading); background: var(--bg-alt); border-bottom: var(--bw) solid var(--line); }
.prose tr + tr td { border-top: var(--bw) solid var(--hair); }

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .hero .rv:nth-child(1) { transition-delay: 60ms; }
.js .hero .rv:nth-child(2) { transition-delay: 140ms; }
.js .hero .rv:nth-child(3) { transition-delay: 240ms; }
.js .hero .rv:nth-child(4) { transition-delay: 340ms; }
.js .hero-fig.rv { transition-delay: 260ms; }
@keyframes hl-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ms-in { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

@media print {
  .hdr, .wa, .cookie, .hero-grid-bg { display: none !important; }
  .inverse { background: #fff !important; color: #000 !important; }
}

@media (max-width: 559px) { .pre { display: none; } .g-head, .g-row, .g-overlay { grid-template-columns: 72px 1fr; } .g-head { grid-template-columns: 72px repeat(4, 1fr); } }

/* ---------- 3D pyramid (hero) ---------- */
.pyr-stage { position: relative; aspect-ratio: 1 / 0.86; overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.pyr-poster, .pyr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pyr-poster { padding: 8% 10%; transition: opacity 0.6s var(--ease); }
.pp-top { fill: var(--surface); stroke: var(--line); stroke-width: 1.4; }
.pp-side { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1.4; }
.pp-side2 { fill: var(--hair); stroke: var(--line); stroke-width: 1.4; }
.pp-line { stroke: var(--line); stroke-width: 1.4; }
.pp-diamond { fill: url(styles.css); fill: #C4C8CE; stroke: var(--line); stroke-width: 1.4; }
.pyr-canvas canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; opacity: 0; transition: opacity 0.8s var(--ease); }
.pyr.is-dragging .pyr-canvas canvas { cursor: grabbing; }
.pyr.is-3d .pyr-canvas canvas { opacity: 1; }
.pyr.is-3d .pyr-poster { opacity: 0; }
.pyr-tip { position: absolute; top: 0; left: 0; z-index: 2; margin: -2.2rem 0 0 0.75rem; padding: 0.3rem 0.55rem; background: var(--btn-bg); color: var(--btn-fg); white-space: nowrap; pointer-events: none; }
.pyr-tip::before { content: ''; position: absolute; left: -5px; bottom: -5px; width: 9px; height: 9px; background: var(--btn-bg); transform: rotate(45deg); }
.pyr-tip[hidden] { display: none; }
.pyr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 1rem; border-top: var(--bw) solid var(--line); }
.pyr-levels { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--heading); }
.pyr-levels li { padding: 0.1rem 0.3rem; transition: background-color var(--t-fast), color var(--t-fast); }
.pyr-levels li.on { background: var(--btn-bg); color: var(--btn-fg); }
.pyr-levels li.on span { color: inherit; }
.pyr-levels span { color: var(--muted); margin-right: 0.35rem; }
.pyr-hint { color: var(--muted); font-size: 0.6875rem; }
.pyr:not(.is-3d) .pyr-hint { visibility: hidden; }

/* Problem → managed system (Gantt moved here) */
.problem-close { display: grid; gap: 2rem; align-items: center; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.problem-close .closing { margin-top: 0; }
@media (min-width: 1024px) { .problem-close { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.sec-alt .frame { box-shadow: 10px 10px 0 -1px var(--bg-alt), 10px 10px 0 0 var(--line); }


/* =========================================================
   Consulting restyle (Sep 2026): serif headings, soft contours,
   no blueprint grid / monospace / dark mode.
   ========================================================= */
.mono { font-family: var(--f-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, h4 { font-weight: 600; }
h4 { margin: 0; }
.btn { font-family: var(--f-body); font-weight: 600; border-width: 1.5px; }
.btn-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: var(--shadow-sm); }
.inverse .btn-primary:hover { background: #3E66FF; border-color: #3E66FF; }
.btn-secondary { background: var(--btn2-bg); color: var(--btn2-fg); border-color: var(--btn2-line); }
.btn-secondary:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.inverse .btn-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.icon-btn { border-color: var(--line); color: var(--heading); }
.icon-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag { border: 0; background: var(--blue-50); color: var(--accent-text); border-radius: 999px; padding: 0.25rem 0.65rem; letter-spacing: 0.1em; }
.inverse .tag, .tag-light { background: rgba(127, 160, 255, 0.16); color: var(--blue-on-navy); }

/* Brand */
.brand-name { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.12em; font-size: 1.5rem; }
.brand-mark { color: var(--heading); }
.ftr .brand-mark { color: #fff; }

/* Header */
.hdr { border-bottom-color: var(--line); }
.lang { border-color: var(--line); font-family: var(--f-body); font-weight: 600; }
.lang span.on { background: var(--navy); color: #fff; }
.nav-list a::after { background: var(--accent); height: 2px; }
.theme-btn { display: none !important; }

/* Section heads */
.shead { border-top: 0; padding-top: 0; }
.shead-label { color: var(--accent-text); gap: 0.5rem; }
.shead-label::before { content: ''; width: 28px; height: 2px; background: var(--accent); align-self: center; margin-right: 0.25rem; }
.shead-sep { display: none; }
.shead-label span:first-child { color: var(--muted); }
.shead-title { font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.sec + .sec { border-top-color: var(--hair); }

/* Hero */
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 85% 30%, rgba(34, 81, 255, 0.10), transparent 70%), linear-gradient(180deg, #FFFFFF 0%, var(--gray-50) 100%); }
.hero-grid-bg, .phero-grid { display: none; }
.kicker { color: var(--accent-text); }
.kicker::before { width: 28px; height: 2px; border: 0; transform: none; background: var(--accent); }
.hero-title { font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.hl { color: var(--accent); white-space: normal; }
.hl::before { display: none; }
.facts { border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.facts > div + div { border-color: var(--line); }
.facts dd { font-family: var(--f-body); font-weight: 600; font-size: 1rem; }

/* Frames / illustrations */
.frame { border-color: var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.sec-alt .frame { box-shadow: var(--shadow); }
.frame-head { border-bottom-color: var(--line); background: var(--gray-50); }
.pyr-stage { background: linear-gradient(180deg, #FFFFFF, #F4F6FB); }
.pyr-foot { border-top-color: var(--line); }
.pyr-levels li.on { background: var(--navy); color: #fff; }
.pyr-tip { background: var(--navy); color: #fff; }
.pyr-tip::before { background: var(--navy); }
.g-head span:not(:first-child) { border-left-color: var(--hair); }
.g-bar { border-color: var(--navy); border-width: 1px; border-radius: 2px; }
.g-bar.st-track { background: var(--navy); }
.g-bar.st-risk { background: var(--hl); }
.g-bar.st-late { background: repeating-linear-gradient(135deg, var(--navy) 0 2px, transparent 2px 6px); }
.g-ms { border-color: var(--navy); background: #fff; }
.g-today { border-left-color: var(--accent); }
.g-today span { background: var(--accent); color: #fff; }
.lg { border-color: var(--navy); border-width: 1px; }
.lg-track { background: var(--navy); }
.lg-risk { background: var(--hl); }
.lg-late { background: repeating-linear-gradient(135deg, var(--navy) 0 2px, transparent 2px 5px); }
.g-legend { border-top-color: var(--line); }

/* Problem */
.symptoms { background: var(--line); border-color: var(--line); border-radius: 6px; overflow: hidden; }
.symptom h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; }
.symptom-top { color: var(--accent); }
.closing { border-left-color: var(--accent); }

/* Services (two groups) */
.svc-group + .svc-group { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.svc-group-head { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: baseline; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--navy); }
.svc-group-idx { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; border-radius: var(--r); }
.svc-group-head h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); color: var(--heading); }
.svc-group-head p { color: var(--muted); }
.svc-featured { border: 0; border-radius: 6px; overflow: hidden; margin-bottom: 1.25rem; }
.svc-f-main h4 { font-family: var(--f-display); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; color: var(--heading); }
.svc-f-list li .icon { color: var(--blue-on-navy); }
.inverse .svc-icon { background: rgba(127, 160, 255, 0.14); color: var(--blue-on-navy); border-color: transparent; }
.svc-grid { margin-top: 0; gap: 1.25rem; background: none; border: 0; }
@media (min-width: 720px) { .svc-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) and (max-width: 1023px) { .svc-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.svc { border: var(--bw) solid var(--line); border-radius: 6px; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.svc:hover { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc h4 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: var(--heading); }
.svc-icon { border: 0; border-radius: var(--r); background: var(--blue-50); color: var(--accent); }

/* Models */
.model { border: var(--bw) solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; }
.model:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.model-head { border-bottom-color: var(--line); }
.model-head .mono { border: 0; background: var(--navy); color: #fff; border-radius: var(--r); }
.model-head h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
.model-row { border-bottom-color: var(--hair); }
.model-row li::before { border: 0; background: var(--accent); width: 6px; height: 6px; transform: none; border-radius: 1px; }

/* Method */
.approaches li { border: 0; background: var(--blue-50); color: var(--accent-text); border-radius: 999px; padding: 0.45rem 0.9rem; }
.step-box { border: var(--bw) solid var(--line); }
.step h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; }
.step-n { color: var(--accent-text); }
.step-out { border: var(--bw) dashed var(--line-strong); background: var(--gray-50); border-radius: var(--r); }
.step:not(:last-child) .step-box::after { border-color: var(--line); }
.loop { border: var(--bw) solid var(--line); border-radius: var(--r); color: var(--heading); }
.loop .icon { color: var(--accent); }

/* Deliverables */
.deliv-tabs { border-color: var(--line); border-radius: 6px; overflow: hidden; }
.dtab-t { font-family: var(--f-display); font-weight: 600; }
.dtab[aria-selected='true'] { background: #FFFFFF; box-shadow: inset 4px 0 0 var(--blue); }
.dtab[aria-selected='true'] .dtab-t, .dtab[aria-selected='true'] .mono { color: var(--navy); }
.dtab[aria-selected='true'] .dtab-d { color: var(--slate); }
.mock { --m-line: #051C2C; --m-hair: #D3DAE2; --m-text: #1D2733; --m-muted: #51606F; --m-alt: #F4F6F8; border: 0; border-radius: 6px; overflow: hidden; }
.mock .tag { background: var(--blue-50); color: var(--blue-700); }
.mock-head { background: #F4F6F8; color: var(--navy); border-bottom-color: #D3DAE2; }
.kpi-v { font-family: var(--f-display); color: var(--navy); }
.chip { border-color: #D3DAE2; border-radius: 999px; }
.chip-track::before { background: var(--navy); }
.meter { border-color: #D3DAE2; border-radius: 2px; }
.meter i { background: var(--navy); }
.doc-mark { color: var(--navy); }
.doc-h { font-family: var(--f-display); color: var(--navy); }
.lt-track { background: var(--navy); }
.rc b { border-color: var(--navy); border-radius: 3px; color: var(--navy); }
.rc-h { background: #DCE6FF; }
.rc-m { background: #EEF3FF; }
.gov-tree li { border: var(--bw) solid #D3DAE2; border-radius: var(--r); color: var(--navy); }
.gov-tree li:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }

/* FAQ */
.qa { border-color: var(--line); border-radius: 6px; }
.qa[open] { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.qa-q { font-family: var(--f-display); font-weight: 600; }
.qa summary .mono { color: var(--accent-text); }
.qa-ico { border-color: var(--line); border-radius: 50%; }
.qa[open] .qa-ico { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Contact */
.cal { border: 0; border-radius: 6px; }
.cal h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
.cinfo { border-color: var(--line); border-radius: 6px; }
.cinfo dt .icon { color: var(--accent); }
.form-card { border: var(--bw) solid var(--line); border-radius: 6px; box-shadow: var(--shadow-sm); }
.form-head { border-bottom-color: var(--line); }
.form-head h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
.field input, .field select, .field textarea { border-color: var(--line-strong); border-radius: var(--r); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(34, 81, 255, 0.2); border-color: var(--accent); }
.consent a { color: var(--accent-text); }

/* Footer & floating */
.ftr-est { border-color: var(--line) !important; border-radius: var(--r); }
.wa { background: var(--navy); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.wa:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.cookie { border: var(--bw) solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }

/* Inner pages */
.phero { background: linear-gradient(180deg, #FFFFFF, var(--gray-50)); border-bottom-color: var(--line); }
.phero h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }
.prose h2 { font-family: var(--f-display); font-weight: 600; border-top-color: var(--line); }
.prose ul li::before { border: 0; background: var(--accent); width: 6px; height: 6px; transform: none; border-radius: 1px; }
.table-wrap { border-color: var(--line); border-radius: 6px; }
.prose th { font-family: var(--f-body); border-bottom-color: var(--line); }

.svc-f-top { display: flex; align-items: center; gap: 0.75rem; }
.svc-f-top > .mono { color: var(--muted); }

/* multipage */
.page-hero{background:#051C2C;color:#fff;padding:clamp(7rem,12vw,10rem) 0 3.5rem}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.6rem);margin:.6rem 0 .8rem;line-height:1.05}
.page-hero p{max-width:46rem;opacity:.8;font-size:1.15rem}
.crumbs{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;opacity:.7}.crumbs a{color:inherit}
.page-next{padding:3rem 0 5rem;text-align:center}
.hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1px;background:linear-gradient(rgba(5,28,44,.12),rgba(5,28,44,.12));border:1px solid rgba(5,28,44,.12);margin-top:2.5rem}
.hcard{display:flex;flex-direction:column;gap:.6rem;padding:2rem;background:#fff;color:inherit;text-decoration:none;transition:background .2s}
.hcard:hover{background:#f3f6f8}.hcard h3{font-size:1.35rem;margin:0}.hcard p{opacity:.75;margin:0;flex:1}
.hcard-more{color:#2251FF;font-weight:600}
.nav-list a[aria-current=page]{text-decoration:underline;text-underline-offset:6px}
