/* ==========================================================================
   Biography Consulting — site styles
   Tokens first, then base, layout, components, page sections, responsive.
   Light by default; dark follows the system or the header toggle.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --alt: #f2f6fc;
  --surface: #ffffff;
  --ink: #0b1626;
  --muted: #55657c;
  --line: #dce4f0;
  --accent: #1763e6;
  --accent-2: #19b5e8;
  --accent-ink: #ffffff;
  --accent-soft: #e6effd;
  --dark: #0a1322;
  --dark-2: #12213a;
  --on-dark: #f1f5fb;
  --on-dark-muted: #a9b8cb;
  --good: #14935a;
  --danger: #c0392b;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 18px;
  --shadow: 0 24px 40px -28px rgba(8, 25, 60, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1424; --alt: #0f1b30; --surface: #132340; --ink: #eaf0fa; --muted: #9fb1c9; --line: #25395a;
    --accent: #5aa2ff; --accent-2: #3cc6f2; --accent-ink: #061a33; --accent-soft: #15325a;
    --dark: #060d19; --dark-2: #0f1d36; --good: #4cc38a; --danger: #ff7b6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1424; --alt: #0f1b30; --surface: #132340; --ink: #eaf0fa; --muted: #9fb1c9; --line: #25395a;
  --accent: #5aa2ff; --accent-2: #3cc6f2; --accent-ink: #061a33; --accent-soft: #15325a;
  --dark: #060d19; --dark-2: #0f1d36; --good: #4cc38a; --danger: #ff7b6b;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
main { animation: contentFadeUp 0.55s ease-out both; }
@keyframes contentFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) {
  a[href]:hover, button:not(:disabled):hover { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}
a { color: var(--accent); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
ul { margin: 0; padding: 0; }
code { font: 400 0.88em var(--font-mono); background: var(--accent-soft); color: var(--ink); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.in { max-width: 1160px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 15px/1 var(--font-body); padding: 14px 24px; border-radius: 999px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn.outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.sm { padding: 11px 20px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.sh { position: sticky; top: 0; z-index: 90; background: #000; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; padding-top: env(safe-area-inset-top, 0px); }
.sh.scrolled { border-bottom-color: rgba(255, 255, 255, 0.14); box-shadow: 0 10px 30px -24px rgba(8, 25, 60, 0.6); }
.sh-in { display: flex; align-items: center; gap: 12px 28px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { display: block; height: 42px; width: auto; max-width: 100%; }
.logo em { font-style: normal; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px 26px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 6px; position: relative; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.sh .nav a { color: #a9b8cb; }
.sh .nav a:hover, .sh .nav a.on { color: #fff; }
.sh .icon-btn { color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.sh .icon-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent-2); }
.nav-toggle { display: none; }
.nav .nav-contact { display: none; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}

/* ---------- Generic sections ---------- */
.band { padding-block: 84px; }
.band.alt { background: var(--alt); }
.sec-h { display: grid; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.sec-h.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.sec-h p { color: var(--muted); font-size: 17px; }
.prose { display: grid; gap: 16px; font-size: 17px; color: var(--muted); }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* Page header band used on inner pages */
.page-hero { position: relative; color: var(--on-dark); background: var(--dark); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 88% 0%, rgba(25, 181, 232, 0.3), transparent 70%), radial-gradient(40% 100% at 0% 100%, rgba(23, 99, 230, 0.35), transparent 70%); }
.page-hero .in { padding-block: 72px 80px; display: grid; gap: 14px; }
.page-hero .eyebrow { color: var(--accent-2); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; max-width: 18ch; }
.page-hero p.lede { color: var(--on-dark-muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; }
.crumbs { font-size: 13px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); }

/* Scroll reveal: only elements below the first screen start hidden */
.rv-hide { opacity: 0; transform: translateY(14px); }
.rv-on { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.num > .rv-on:nth-child(2) { transition-delay: 50ms; }
.num > .rv-on:nth-child(3) { transition-delay: 100ms; }
.num > .rv-on:nth-child(4) { transition-delay: 150ms; }
.num > .rv-on:nth-child(n+5) { transition-delay: 150ms; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: var(--on-dark); background: var(--dark); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; opacity: 0.5; transform: scale(1.06); animation: drift 16s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 12, 24, 0.95) 8%, rgba(8, 18, 38, 0.8) 55%, rgba(10, 24, 52, 0.5)), radial-gradient(60% 80% at 85% 20%, rgba(25, 181, 232, 0.28), transparent 70%); }
.hero.plain .hero-bg { display: none; }
.hero.plain::after { background: radial-gradient(60% 90% at 90% 10%, rgba(25, 181, 232, 0.35), transparent 70%), radial-gradient(50% 90% at 0% 100%, rgba(23, 99, 230, 0.45), transparent 70%), linear-gradient(180deg, #0a1322, #0d1b33); }
.hero .in { padding-block: 96px 120px; display: grid; gap: 22px; }
.hero.plain .in { padding-block: 56px 76px; }
.hero-intro { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); font-weight: 800; max-width: 17ch; }
.hero h4 { font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: var(--on-dark-muted); max-width: 48ch; line-height: 1.55; letter-spacing: 0; }
.join-hero .in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: 72px 88px; }
.join-hero-copy { display: grid; gap: 18px; }
.join-hero h1 { max-width: 14ch; }
.join-hero-lede { color: var(--on-dark-muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; }
.join-hero-photo { margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.join-hero-photo img { width: 100%; aspect-ratio: 426 / 331; object-fit: cover; }
.join-hero-photo figcaption { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.join-opportunity { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.join-opportunity-copy { display: grid; gap: 12px; }
.join-opportunity-copy h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.join-opportunity-copy p:last-child { color: var(--muted); font-size: 16px; }
.join-actions { display: grid; justify-items: start; gap: 12px; }
.hero .eyebrow { color: var(--accent-2); }
.hero .crumbs { margin-bottom: 4px; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 12.5px/1 var(--font-mono); padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--on-dark); }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.24) translate3d(-2%, -1.5%, 0); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.glass { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 22px; padding: 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; gap: 18px; }
.glass .lbl { font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.division-card { position: relative; width: 100%; padding: 28px; grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.6fr); align-items: start; border-color: rgba(132, 177, 235, 0.26); background: linear-gradient(145deg, rgba(33, 54, 84, 0.92), rgba(17, 31, 52, 0.88)); box-shadow: 0 24px 70px -38px rgba(48, 132, 228, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.division-card::before { content: ""; position: absolute; width: 260px; height: 260px; top: -150px; right: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 181, 232, 0.2), transparent 70%); pointer-events: none; }
.division-card > * { position: relative; z-index: 1; }
.division-card .lbl { color: var(--accent-2); font-size: 18px; font-weight: 600; letter-spacing: 0.12em; }
.division-card .lbl { grid-column: 1 / -1; grid-row: 1; }
.division-tabs { grid-column: 1; grid-row: 2; display: grid; gap: 5px; align-content: start; min-width: 0; width: 100%; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; background: rgba(8, 18, 34, 0.42); }
.division-tabs .pill { width: 100%; min-width: 0; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark); text-align: left; overflow-wrap: anywhere; transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.division-tabs .pill:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(2px); }
.division-tabs .pill[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -10px var(--accent); }
.division-content { grid-column: 2; grid-row: 2; min-width: 0; }
.division-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; animation: divisionPanelIn 0.32s ease both; }
.division-detail h3 { font-size: 21px; font-weight: 700; color: var(--on-dark); }
.division-detail p { max-width: none; }
@keyframes divisionPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pills { display: flex; gap: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; }
.pill { border: 0; background: transparent; color: var(--on-dark); font: 600 14px/1 var(--font-body); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.pill[aria-selected="true"] { background: var(--accent); color: #fff; }
.glass ul { list-style: none; display: grid; gap: 10px; }
.glass .division-items { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.glass li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--on-dark); }
.glass li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.glass p { color: var(--on-dark-muted); font-size: 14.5px; }

/* ---------- Stat cards ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: 36px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 22px; box-shadow: var(--shadow); min-width: 0; }
.stat .big { font: 500 clamp(28px, 3.4vw, 38px)/1.1 var(--font-mono); color: var(--accent); letter-spacing: -0.03em; white-space: nowrap; }
.stat .lab { font-weight: 700; margin-top: 10px; }
.stat .sub { font-size: 13.5px; color: var(--muted); }
.swap { display: inline-block; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stat:hover .swap { transform: translateX(6px); }

/* ---------- Event banner ---------- */
.event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(120deg, var(--dark), var(--dark-2)); color: var(--on-dark); border-radius: 22px; padding: 28px 32px; }
.event .date { text-align: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; padding: 14px 20px; min-width: 110px; }
.event .date b { display: block; font: 500 26px/1.1 var(--font-mono); }
.event .date span { font-size: 12.5px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.event h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 6px 0; }
.event p { color: var(--on-dark-muted); font-size: 15px; }
.badge { display: inline-block; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--accent-2); color: #04223a; }
.badge.past { background: rgba(255, 255, 255, 0.14); color: var(--on-dark); }

/* ---------- Service cards (home) and rows (services page) ---------- */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.svc::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.svc:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.svc:hover::before { opacity: 1; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; position: relative; }
.ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; font-weight: 700; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc .more { font-weight: 600; text-decoration: none; font-size: 14.5px; }

.svc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.spy { position: sticky; top: 96px; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.spy a { color: var(--muted); text-decoration: none; padding: 9px 16px; font-size: 14.5px; font-weight: 500; margin-left: -2px; border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.spy a:hover { color: var(--ink); }
.spy a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.svc-rows { display: grid; gap: 28px; }
.svc-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; transition: border-color 0.3s, box-shadow 0.3s; }
.svc-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.svc-row .ico { width: 64px; height: 64px; border-radius: 18px; }
.svc-row .ico svg { width: 32px; height: 32px; }
.svc-row h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.svc-row p { color: var(--muted); font-size: 16.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

/* ---------- Case study cards and filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.fchip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font-body); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.fchip:hover { border-color: var(--accent); }
.fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 0.6s; }
.card:hover img { transform: scale(1.05); }
.card .body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { font-weight: 600; color: var(--accent); font-size: 14.5px; }
.card.slot { border-style: dashed; place-items: center; text-align: center; padding: 34px; color: var(--muted); grid-template-rows: none; min-height: 200px; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- Partners and marquee ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 16px; align-content: start; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.partner:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.partner .top { display: flex; align-items: center; gap: 16px; }
.logo-box { width: 84px; height: 84px; border-radius: 0; background: transparent; display: grid; place-items: center; overflow: hidden; flex: none; border: 0; }
.partner-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mark { width: 56px; height: 56px; border-radius: 16px; background: var(--dark); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--font-mono); flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.partner h3 { font-size: 21px; font-weight: 700; }
.partner .tier { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 4px; display: block; }
.partner p { color: var(--muted); font-size: 15.5px; }
.partner a.ext { font-weight: 600; text-decoration: none; font-size: 14.5px; }
.ibm-project { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.ibm-project-copy { display: grid; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.ibm-project-copy h3 { font-size: 22px; font-weight: 700; }
.ibm-project-copy p { color: var(--muted); font-size: 15.5px; }
.ibm-project-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ibm-certificates { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ibm-certificate { display: grid; align-content: start; gap: 12px; margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ibm-certificate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ibm-certificate figcaption { color: #17233b; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
.ibm-project-links { display: flex; flex-wrap: wrap; gap: 12px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; gap: 56px; width: max-content; animation: mq 32s linear infinite; }
.mq-item { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; height: 72px; padding: 8px 14px; box-sizing: border-box; background: transparent; border-radius: 0; }
.partner-marquee-logo { max-width: 132px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.partner-marquee-logo[alt="Ingram Micro"] { width: 132px; height: 56px; object-fit: contain; }
.partner-marquee-logo[alt="SSH"] { width: 160px; max-width: 160px; height: 56px; object-fit: cover; }
.mq-item .mark { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; margin-inline: auto; gap: 18px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: grid; gap: 14px; justify-items: start; transition: transform 0.3s, border-color 0.3s; }
.member:hover { transform: translateY(-5px); border-color: var(--accent); }
.member-photo { width: 100%; height: 320px; object-fit: contain; object-position: center bottom; background: #e8edf4; border-radius: 12px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font: 600 24px/1 var(--font-mono); }
.member h3 { font-size: 19px; font-weight: 700; }
.member p { color: var(--muted); font-size: 14.5px; }

/* ---------- Tabs (generic) ---------- */
.tabset { display: grid; gap: 24px; }
.tabset.side { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); align-items: stretch; }
.tablist { display: grid; gap: 10px; align-content: start; }
.tab { text-align: left; font: 600 16px/1.3 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; cursor: pointer; display: grid; gap: 4px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.tab small { font: 400 13px/1.4 var(--font-body); color: var(--muted); }
.tab:hover { transform: translateX(4px); border-color: var(--accent); }
.tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); background: var(--accent-soft); }
.tabpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: grid; gap: 22px; align-content: start; animation: fadeup 0.45s both; }
.tabpanel h3 { font-size: 28px; font-weight: 700; }
.tabpanel .lbl { font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tabpanel p { font-size: 17px; }
.tabpanel .why { color: var(--muted); }
.tabpanel ul.checklist { list-style: none; display: grid; gap: 12px; }
.tabpanel ul.checklist li { position: relative; padding-left: 28px; font-size: 16.5px; }
.tabpanel ul.checklist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }
.tabset.inline .tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tabset.inline .tab { border-radius: 999px; padding: 12px 22px; }
.tabset.inline .tab:hover { transform: none; }
.tabset.inline .tab[aria-selected="true"] { box-shadow: none; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Numbered cards ---------- */
.num { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ncard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 10px; transition: transform 0.3s, border-color 0.3s; }
.ncard:hover { transform: translateY(-6px); border-color: var(--accent); }
.ncard .n { font: 500 44px/1 var(--font-mono); color: var(--accent); opacity: 0.25; transition: opacity 0.3s; }
.ncard:hover .n { opacity: 1; }
.ncard h4 { font-size: 19px; font-weight: 700; }
.ncard p { color: var(--muted); font-size: 15px; }
.capability-card .tags { margin-top: auto; padding-top: 6px; }
.delivery-principles { display: grid; gap: 12px; margin-top: 24px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.delivery-principles .eyebrow { color: var(--accent); }
.review-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; margin-top: 24px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.review-panel > div { display: grid; align-content: start; gap: 12px; }
.review-panel .eyebrow { color: var(--accent); }
.review-panel h3 { font-size: 22px; font-weight: 700; }
.review-panel h4 { font-size: 16px; font-weight: 700; }
.review-panel p, .review-panel li { color: var(--muted); font-size: 15px; }
.review-panel ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.review-panel li { position: relative; padding-left: 22px; }
.review-panel li::before { content: ""; position: absolute; top: 8px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--accent), #0e3fa8); color: #fff; text-align: center; padding-block: 84px; }
.cta .in { display: grid; gap: 18px; justify-items: center; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; max-width: 20ch; }
.cta p { max-width: 52ch; opacity: 0.92; font-size: 17px; }
.cta .btn { background: #fff; color: #0b2c70; }
.cta .contact { font: 400 13px/1.6 var(--font-mono); opacity: 0.85; }

/* ---------- Footer ---------- */
.sf { background: var(--dark); color: var(--on-dark); padding-block: 56px 32px; font-size: 14.5px; }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.sf h4 { font: 500 11.5px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.sf p, .sf li { color: #d3ddec; }
.sf ul { list-style: none; display: grid; gap: 8px; }
.sf a { color: #d3ddec; text-decoration: none; }
.sf a:hover { color: #fff; text-decoration: underline; }
.sf .logo { color: #fff; margin-bottom: 16px; }
.sf .tagline { max-width: 36ch; margin-bottom: 14px; }
.sf-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--on-dark-muted); font-size: 13.5px; }
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -10px var(--accent); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; z-index: 80; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
a.info:hover { border-color: var(--accent); transform: translateX(4px); }
.info .ico { width: 48px; height: 48px; border-radius: 12px; }
.info .ico svg { width: 22px; height: 22px; }
.info b { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.info span { font-weight: 600; overflow-wrap: anywhere; }
.map { margin-top: 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--alt); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.form h3 { font-size: 24px; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field label i { color: var(--danger); font-style: normal; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.err input, .field.err textarea { border-color: var(--danger); }
.field .msg { color: var(--danger); font-size: 13.5px; min-height: 0; }
.field .count { text-align: right; font: 400 12px var(--font-mono); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { border-radius: 14px; padding: 16px 18px; font-weight: 500; }
.flash.ok { background: color-mix(in srgb, var(--good) 14%, var(--surface)); border: 1px solid var(--good); color: var(--ink); }
.flash.bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid var(--danger); }

/* ---------- Event page ---------- */
.event-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.event-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; padding: 8px 22px; background: var(--surface); }
.event-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-facts div:last-child { border-bottom: 0; }
.event-facts dt { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.event-facts dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- Case study page ---------- */
.chain { background: var(--dark); color: var(--on-dark); border-radius: 20px; padding: 34px 30px; position: relative; overflow: hidden; }
.chain::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(25, 181, 232, 0.35), transparent 65%); }
.chain h3 { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 22px; position: relative; }
.node { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; opacity: 0.35; transition: opacity 0.6s; }
.node::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 2px; background: rgba(255, 255, 255, 0.2); }
.node:last-of-type { padding-bottom: 0; }
.node:last-of-type::before { display: none; }
.node i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-2); background: var(--dark); position: relative; z-index: 1; }
.node.final i { background: var(--accent-2); box-shadow: 0 0 0 6px rgba(25, 181, 232, 0.22); }
.node b { font: 500 22px/1.2 var(--font-mono); display: block; }
.node span { font-size: 13.5px; color: var(--on-dark-muted); }
.chain.go .node { opacity: 1; }
.chain.go .node:nth-of-type(2) { transition-delay: 0.35s; }
.chain.go .node:nth-of-type(3) { transition-delay: 0.7s; }
.chain.go .node:nth-of-type(4) { transition-delay: 1.05s; }
.chain-foot { position: relative; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; color: var(--on-dark-muted); }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: 15px; }

.journey { background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: 38px 36px; display: grid; gap: 28px; }
.j-scroll { overflow-x: auto; padding-bottom: 6px; }
.j-track { position: relative; min-width: 760px; height: 96px; }
.j-line { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.j-fill { position: absolute; left: 0; top: 18px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.j-seg { position: absolute; z-index: 1; top: 8px; height: 28px; min-width: 18px; border: 0; padding: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.j-seg.prep { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 6px, rgba(255, 255, 255, 0.07) 6px 12px); }
.j-seg.war { z-index: 0; background: rgba(76, 195, 138, 0.55); }
.j-seg:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.34); }
.j-seg[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 0 4px rgba(90, 162, 255, 0.3); }
.j-seg.war[aria-pressed="true"] { background: #4cc38a; box-shadow: 0 0 0 4px rgba(76, 195, 138, 0.3); }
.j-seg.prep[aria-pressed="true"] { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, #3b82f0 6px 12px); }
.j-lab { position: absolute; top: 46px; font-size: 12.5px; font-weight: 600; transform: translateX(-2px); white-space: nowrap; }
.j-lab.r { transform: translateX(-100%); }
.j-sign { position: absolute; top: 12px; width: 18px; height: 18px; border: 3px solid #4cc38a; background: var(--dark); transform: translateX(-50%) rotate(45deg); border-radius: 3px; pointer-events: none; }
.j-ax { position: absolute; left: 0; right: 0; top: 74px; height: 18px; }
.j-ax span { position: absolute; font: 400 11px/1 var(--font-mono); color: var(--on-dark-muted); transform: translateX(-2px); }
.j-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--dark-2); border-radius: 16px; padding: 26px 28px; min-height: 150px; }
.j-detail h3 { font-size: 26px; font-weight: 700; }
.j-detail .when { font: 500 13px/1.4 var(--font-mono); color: var(--accent-2); margin-top: 6px; }
.j-detail p { color: var(--on-dark-muted); font-size: 16.5px; }
.j-nav { display: flex; gap: 8px; justify-content: flex-end; }
.j-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--on-dark); font-size: 18px; cursor: pointer; transition: background 0.2s; }
.j-nav button:hover { background: rgba(255, 255, 255, 0.14); }
.signbadge { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: #4cc38a; margin-top: 10px; }
.signbadge::before { content: ""; width: 9px; height: 9px; border: 2px solid #4cc38a; transform: rotate(45deg); }
.factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.factor { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform 0.25s, border-color 0.25s; }
.factor:hover { transform: translateY(-4px); border-color: var(--accent); }
.factor h4 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.factor p { font-size: 14.5px; color: var(--muted); }

.acc { display: grid; gap: 12px; max-width: 900px; }
.acc details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.acc details[open] { border-color: var(--accent); box-shadow: 0 18px 34px -26px var(--accent); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) 26px; gap: 14px; align-items: center; padding: 18px 22px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 400 24px/1 var(--font-mono); color: var(--accent); text-align: center; transition: transform 0.25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .ans { padding: 0 22px 22px; display: grid; gap: 10px; color: var(--muted); }
.acc .ans b { color: var(--good); font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.acc .ans p.fix { color: var(--ink); }

.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--line); cursor: zoom-in; border: 0; padding: 0; display: block; text-align: left; font: inherit; color: inherit; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.shot:hover img { transform: scale(1.05); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(5, 10, 20, 0.85)); color: #fff; font-size: 14px; line-height: 1.4; }
.shot.a { grid-column: 1 / span 7; aspect-ratio: 4 / 3.1; }
.shot.b { grid-column: 8 / span 5; grid-row: 1 / span 2; min-height: 540px; }
.shot.c { grid-column: 1 / span 7; aspect-ratio: 16 / 7; }
.shot.a img { object-position: 50% 40%; }
.shot.c img { object-position: 50% 52%; }
.lb { position: fixed; inset: 0; z-index: 150; background: rgba(4, 9, 18, 0.94); display: grid; place-items: center; padding: 24px; }
.lb figure { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lb img { max-height: 78vh; width: auto; border-radius: 10px; }
.lb figcaption { color: #d6e0f0; font-size: 14px; text-align: center; max-width: 60ch; }
.lb .x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 22px; cursor: pointer; }

.ahead { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: var(--on-dark); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ahead h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin: 10px 0 14px; }
.ahead p { color: var(--on-dark-muted); }
.ahead .eyebrow { color: var(--accent-2); }
.ahead ul { list-style: none; display: grid; gap: 10px; }
.ahead li { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 13px 16px; font-size: 14.5px; }
.upgrade-roadmap { display: grid; gap: 24px; margin-top: 24px; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.upgrade-roadmap-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.upgrade-roadmap-heading .eyebrow { color: var(--accent); }
.upgrade-roadmap-heading h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; }
.upgrade-roadmap-heading > p { max-width: 42ch; color: var(--muted); font-size: 14px; }
.upgrade-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.upgrade-metric { display: grid; gap: 5px; padding: 16px; background: var(--alt); border: 1px solid var(--line); border-radius: 14px; }
.upgrade-metric strong { color: var(--accent); font: 600 clamp(17px, 2vw, 22px)/1.2 var(--font-mono); }
.upgrade-metric span { color: var(--ink); font-size: 14px; font-weight: 700; }
.upgrade-metric small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.upgrade-timeline-scroll { overflow-x: auto; padding-bottom: 6px; }
.upgrade-timeline { display: grid; gap: 0; min-width: 820px; }
.upgrade-timeline-axis, .upgrade-timeline-row, .upgrade-timeline-deadline { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; }
.upgrade-timeline-axis { min-height: 30px; }
.upgrade-years, .upgrade-months, .upgrade-timeline-track { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); }
.upgrade-years span { padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 11px/1 var(--font-mono); text-align: center; }
.upgrade-months span { padding: 7px 1px; color: var(--muted); font: 500 11px/1 var(--font-mono); text-align: center; }
.upgrade-axis-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.upgrade-timeline-row { min-height: 39px; }
.upgrade-stage-label { padding-right: 12px; color: var(--ink); font-size: 12px; }
.upgrade-timeline-track { position: relative; min-height: 28px; align-items: center; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 11 - 1px), var(--line) calc(100% / 11 - 1px), var(--line) calc(100% / 11)); }
.upgrade-timeline-track::after { content: ""; position: absolute; z-index: 2; top: -5px; bottom: -5px; left: 93.3%; border-left: 2px dashed #ed7a32; pointer-events: none; }
.upgrade-timeline-bar { z-index: 1; display: block; overflow: hidden; padding: 5px 8px; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center; white-space: nowrap; }
.upgrade-timeline-bar.prep, .upgrade-timeline-bar.plan, .upgrade-timeline-bar.warranty { background: #52657d; }
.upgrade-timeline-bar.test { background: #0876c9; }
.upgrade-timeline-bar.production { background: #a95217; }
.upgrade-timeline-bar.buffer { border: 1px solid #0876c9; background: rgba(8, 118, 201, 0.16); color: var(--ink); }
.upgrade-timeline-deadline { margin-top: 8px; }
.upgrade-timeline-deadline strong { justify-self: end; color: #c65a1a; font-size: 11px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .code { font: 500 clamp(72px, 14vw, 140px)/1 var(--font-mono); color: var(--accent); letter-spacing: -0.05em; }
.notfound .in { display: grid; gap: 16px; justify-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .band { padding-block: 60px; }
  .split, .ahead, .j-detail, .hero-grid, .contact-grid, .event-detail, .svc-layout, .ibm-project, .join-hero .in, .join-opportunity, .review-panel { grid-template-columns: minmax(0, 1fr); }
  .upgrade-roadmap-heading { align-items: start; flex-direction: column; }
  .split { gap: 32px; }
  .spy { display: none; }
  .tabset.side { grid-template-columns: minmax(0, 1fr); }
  .tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab:hover { transform: none; }
  .shot.a, .shot.b, .shot.c { grid-column: 1 / -1; grid-row: auto; }
  .shot.a, .shot.c { aspect-ratio: 4 / 3; }
  .shot.b { min-height: 0; aspect-ratio: 4 / 5; }
  .j-nav { justify-content: flex-start; }
  .sf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .event { grid-template-columns: minmax(0, 1fr); }
  .event .date { width: fit-content; }
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px max(18px, env(safe-area-inset-left, 0px)) 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(8, 25, 60, 0.6); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; font-size: 17px; }
  .sh .nav { background: #000; border-bottom-color: rgba(255, 255, 255, 0.14); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav .nav-contact { display: block; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.on { color: var(--accent); }
  .sh-in > .btn { display: none; }
}
@media (max-width: 640px) {
  .hero .in { padding-block: 64px 100px; }
  .hero.plain .in { padding-block: 40px 58px; }
  .upgrade-metrics { grid-template-columns: minmax(0, 1fr); }
  .division-card { padding: 22px 18px; }
  .division-card { grid-template-columns: minmax(0, 1fr); }
  .division-card .lbl { grid-column: 1; }
  .division-tabs { grid-column: 1; grid-row: 2; }
  .division-content { grid-column: 1; grid-row: 3; }
  .glass .division-items { grid-template-columns: minmax(0, 1fr); }
  .stats-wrap { margin-top: 28px; }
  .page-hero .in { padding-block: 52px 56px; }
  .journey { padding: 26px 18px; border-radius: 18px; }
  .tabpanel { padding: 24px 20px; }
  .ahead { padding: 28px 22px; }
  .tablist { grid-template-columns: minmax(0, 1fr); }
  .svc-row { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 18px; }
  .form { padding: 24px 18px; }
  .sf-grid { grid-template-columns: minmax(0, 1fr); }
  .acc summary { grid-template-columns: minmax(0, 1fr) 26px; }
  .acc summary .tag { grid-column: 1; justify-self: start; }
  .acc summary span:not(.tag) { grid-column: 1; }
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv-hide { opacity: 1; transform: none; }
  .mq-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
