
/* Layout concept: one machined part held in a fixed stage while the story scrolls past it.
   Single dark world by design: Apex logo colours only (cobalt, black, white). */
:root {
  color-scheme: dark;
  --ink: #04060C;          /* page ground, black with a cobalt bias */
  --panel: #0A0F1F;        /* raised dark surfaces */
  --line: #1B2440;         /* hairlines on dark */
  --cobalt: #3D63E6;       /* logo blue as supplied for dark grounds */
  --cobalt-deep: #002885;  /* logo blue as supplied for light grounds */
  --cobalt-mist: #9DB1F5;  /* light tint of the logo blue, small accents only */
  --text: #EEF1F8;
  --muted: #98A2BA;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1280px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt-mist); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 80px); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Fixed stage: glow, then the 3D part. Content scrolls above it. */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(42vmax 42vmax at var(--gx, 68%) var(--gy, 52%), rgba(61, 99, 230, var(--gi, .34)), rgba(61, 99, 230, 0) 70%); transition: background .2s linear; }
#stage { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; display: block; }
.stage-fallback { position: fixed; z-index: 1; right: 8vw; top: 50%; width: min(40vw, 460px); transform: translateY(-50%); pointer-events: none; opacity: .9; }
.has-3d .stage-fallback { display: none; }
@media (max-width: 760px) { .stage-fallback { right: 50%; top: 26%; transform: translate(50%, -50%); width: 70vw; } }
.callouts { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.callout::before { content: ""; width: var(--len, 34px); height: 1px; background: linear-gradient(90deg, var(--cobalt-mist), rgba(157, 177, 245, .35)); }
.callout i { position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--cobalt-mist); box-shadow: 0 0 0 4px rgba(157, 177, 245, .18); }

/* Giant words sit behind the stage */
.bigword { position: absolute; left: 0; right: 0; text-align: center; font-weight: 900; line-height: .8; letter-spacing: -.045em; font-size: clamp(5rem, 21vw, 22rem); background: linear-gradient(90deg, rgba(61, 99, 230, .16) 0%, rgba(61, 99, 230, .9) 55%, rgba(157, 177, 245, .95) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; white-space: nowrap; }

main section { position: relative; }
main section > .wrap, .masthead, footer, .proto-note { position: relative; z-index: 3; }
.bigword { z-index: 0; }

/* Prototype note */
.proto-note { background: #0E1530; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.proto-note .wrap { padding-block: 8px; display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; }
.proto-note b { color: var(--text); font-weight: 600; }

/* Header */
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(4, 6, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(27, 36, 64, .7); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 54px; width: auto; display: block; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (max-width: 960px) { .nav .nav__link { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 3px; font: 600 16px/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: #2F52CC; }
.btn--ghost { border-color: rgba(238, 241, 248, .35); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cobalt-mist); }
.display { font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); }
.h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.lede strong { color: var(--text); font-weight: 600; }

/* Story blocks: copy sits on one side, the part on the other */
.scene { position: relative; min-height: 110vh; display: flex; align-items: center; }
.scene .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.copy { display: grid; gap: 24px; align-content: center; max-width: 560px; }
.copy--right { grid-column: 2; }
@media (max-width: 760px) {
  .scene { min-height: auto; padding-block: 52vh 18vh; }
  .scene .wrap { grid-template-columns: minmax(0, 1fr); }
  .copy--right { grid-column: 1; }
  .copy { background: linear-gradient(180deg, rgba(4, 6, 12, 0), rgba(4, 6, 12, .86) 18%, rgba(4, 6, 12, .92)); padding: 28px 0 8px; }
}

/* Hero */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end; padding-block: 120px 72px; }
.hero .bigword { top: 0; font-size: clamp(5rem, 19vw, 20rem); }
.hero .hero__copy { padding-top: 24px; }
.hero__copy { display: grid; gap: 26px; max-width: 640px; }
.entry { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--muted); }
.entry a { color: var(--text); font-weight: 600; text-underline-offset: 4px; text-decoration-color: rgba(157, 177, 245, .5); }
.tagline { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 760px) { .hero { padding-top: 46vh; } .hero .bigword { top: 9%; } }

/* Approach: native sticky, five real steps */
.approach { position: relative; }
.approach__stage { padding-block: 120px; }
.approach__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.approach__copy { display: grid; gap: 28px; align-content: center; }
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; align-items: baseline; }
.step__num { font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: var(--cobalt-mist); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.5rem; font-weight: 700; }
.step p { grid-column: 2; color: var(--muted); max-width: 44ch; }
.approach.is-sticky { height: 420vh; }
.approach.is-sticky .approach__stage { position: sticky; top: 0; height: 100vh; padding-block: 0; display: flex; align-items: center; }
.approach.is-sticky .approach__inner { width: 100%; }
.approach.is-sticky .steps { position: relative; min-height: 340px; }
.approach.is-sticky .step { position: absolute; inset: 0 0 auto 0; grid-template-columns: minmax(0, 1fr); opacity: 0; filter: blur(14px); transform: translateY(18px); transition: opacity .5s, filter .5s, transform .5s; }
.approach.is-sticky .step.is-active { opacity: 1; filter: blur(0); transform: none; }
.approach.is-sticky .step__num { font-size: clamp(6rem, 15vw, 12rem); line-height: .85; letter-spacing: -.05em; color: var(--text); }
.approach.is-sticky .step h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.approach.is-sticky .step p { grid-column: 1; font-size: 1.12rem; }
.ticks { display: none; gap: 8px; }
.approach.is-sticky .ticks { display: flex; }
.ticks span { width: 42px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ticks span i { display: block; height: 100%; width: 0; background: var(--cobalt); }
@media (max-width: 760px) {
  .approach__inner { grid-template-columns: minmax(0, 1fr); }
  .approach.is-sticky .approach__stage { align-items: flex-end; padding-bottom: 10vh; }
  .approach.is-sticky .steps { min-height: 300px; }
  .approach__copy { background: linear-gradient(180deg, rgba(4, 6, 12, 0), rgba(4, 6, 12, .9) 14%); padding-top: 24px; }
}

/* Product lines */
.lines { padding-block: 140px; background: linear-gradient(180deg, rgba(4, 6, 12, 0) 0, var(--ink) 18%, var(--ink) 82%, rgba(4, 6, 12, 0)); }
.lines__head { display: grid; gap: 18px; margin-bottom: 48px; max-width: 760px; }
.lines__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .lines__body { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: grid; border-top: 1px solid var(--line); }
.tab { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 clamp(1.15rem, 2vw, 1.5rem)/1.25 var(--font); padding: 20px 4px; cursor: pointer; transition: color .2s, padding .3s; min-height: 64px; }
.tab small { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #59627A; }
.tab::after { content: "→"; font-weight: 500; opacity: 0; transform: translateX(-6px); transition: .25s; color: var(--cobalt-mist); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); padding-left: 12px; }
.tab[aria-selected="true"] small { color: var(--cobalt-mist); }
.tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.panel { display: grid; gap: 24px; }
.slot { position: relative; aspect-ratio: 3 / 2; max-width: 100%; background: radial-gradient(120% 90% at 70% 40%, #101A3A 0%, #070B17 70%); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.slot svg { width: 58%; height: auto; opacity: .55; }
.slot figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slot figcaption b { color: var(--cobalt-mist); font-weight: 600; }
.panel h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.panel p { color: var(--muted); max-width: 56ch; }
.items { display: flex; flex-wrap: wrap; gap: 8px; }
.items li { font-size: 14px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--text); }
.panel-anim { animation: panelIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes panelIn { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } to { opacity: 1; filter: none; transform: none; } }

/* Services */
.services .copy { max-width: 600px; }
@media (min-width: 761px) { .services .copy { padding: 36px; margin: -36px; background: radial-gradient(120% 100% at 70% 50%, rgba(4, 6, 12, .9) 40%, rgba(4, 6, 12, 0) 100%); } }
.svc { display: grid; border-top: 1px solid var(--line); }
.svc li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc b { font-size: 1.12rem; font-weight: 700; }
.svc span { font-size: 15px; color: var(--muted); }
.callbar { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--cobalt); background: rgba(10, 15, 31, .8); border-radius: 3px; }
.callbar small { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.callbar b { font-size: 1.3rem; font-weight: 700; user-select: all; }

/* Industries matrix */
.industries { padding-block: 140px; background: linear-gradient(180deg, rgba(4, 6, 12, 0) 0, var(--ink) 14%, var(--ink) 86%, rgba(4, 6, 12, 0)); }
.industries__head { display: grid; gap: 18px; margin-bottom: 40px; max-width: 760px; }
.matrix-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; line-height: 1.35; }
.matrix tbody th { text-align: left; font-weight: 600; font-size: 16px; white-space: nowrap; }
.matrix tbody tr { transition: background .2s; }
.matrix tbody tr:hover { background: rgba(61, 99, 230, .08); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 5px rgba(61, 99, 230, .18); }
.none { color: #353D55; }
.matrix td.svcs { text-align: left; color: var(--muted); font-size: 14px; min-width: 220px; }
.matrix-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Closing */
.closing { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding-block: 0 96px; }
.closing .bigword { top: 10%; font-size: clamp(3.4rem, 13.6vw, 14rem); }
.closing__copy { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 15px; color: var(--muted); }
.contacts b { color: var(--text); font-weight: 600; user-select: all; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--ink); font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 64px 40px; }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.foot h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot img { height: 60px; width: auto; margin-bottom: 16px; }
.foot address { font-style: normal; display: grid; gap: 4px; }
.base { border-top: 1px solid var(--line); padding-block: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
.credit { color: #8790A8; }

/* Blur-in reveals: visible by default, hidden only once script has run */
.js .reveal:not(.in) { opacity: 0; filter: blur(12px); transform: translateY(26px); }
.js .reveal { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { opacity: 1; filter: none; transform: none; }
}

/* ===== Site-wide additions ===== */
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { gap: 12px; }
  .mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(4, 6, 12, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gut-r) 24px var(--gut-l); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; text-decoration: none; color: var(--text); }
  .mobile-nav a small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
}
@media (max-width: 420px) { .masthead .btn--sm { padding: 10px 12px; font-size: 14px; } .brand img { height: 46px; } }

/* Inner page hero: copy left, part right */
.page-hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; padding-block: 72px 96px; }
.page-hero__copy { display: grid; gap: 22px; max-width: 620px; }
.page-hero .h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #4A5370; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
@media (max-width: 760px) { .page-hero { min-height: auto; padding-block: 46vh 48px; align-items: flex-end; } .page-hero__copy { background: linear-gradient(180deg, rgba(4, 6, 12, 0), rgba(4, 6, 12, .9) 14%); padding-top: 24px; } }

/* Solid content bands: sit above the stage */
.band { position: relative; background: var(--ink); padding-block: clamp(72px, 9vw, 120px); }
.band--panel { background: var(--panel); }
.band + .band { border-top: 1px solid var(--line); }
.band__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 780px; }
.h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; align-content: start; }
.prose { display: grid; gap: 18px; max-width: 64ch; color: var(--muted); }
.prose strong { color: var(--text); }
.statement { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; max-width: 30ch; }

/* Lists */
.ruled { display: grid; border-top: 1px solid var(--line); }
.ruled li { display: flex; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.ruled li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--cobalt); transform: translateY(-2px); }
.ruled--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 600px) { .ruled--two { grid-template-columns: minmax(0, 1fr); } }
.label { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Cards and rows */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--ink); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; transition: background .25s; min-width: 0; }
a.card:hover { background: #0B1022; }
.card h3 { font-size: 1.25rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { color: var(--cobalt-mist); font-weight: 600; font-size: 15px; }
.code { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cobalt-mist); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row h2, .row h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.015em; }
.row h2 a, .row h3 a { text-decoration: none; }
.row h2 a:hover, .row h3 a:hover { color: var(--cobalt-mist); }
.row p { color: var(--muted); }
.row .btn-row { justify-content: flex-end; }
.row.is-match { background: rgba(61, 99, 230, .1); box-shadow: -16px 0 0 rgba(61, 99, 230, .1), 16px 0 0 rgba(61, 99, 230, .1); }
@media (max-width: 960px) { .row { grid-template-columns: 70px minmax(0, 1fr); } .row > p, .row .btn-row { grid-column: 2; justify-content: flex-start; } }

/* Process (real sequence) */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.process li { counter-increment: s; padding: 24px 20px 0 0; display: grid; gap: 10px; align-content: start; }
.process li::before { content: counter(s, decimal-leading-zero); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: var(--cobalt-mist); }
.process h3 { font-size: 1.15rem; font-weight: 700; }
.process p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* Symptom guide table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.guide { width: 100%; border-collapse: collapse; font-size: 16px; }
.guide th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 16px 14px 0; border-bottom: 1px solid var(--line); }
.guide td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide td:first-child { font-weight: 600; width: 50%; }
.guide a { color: var(--cobalt-mist); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 640px) { .guide thead { display: none; } .guide tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); } .guide td { border: 0; padding: 2px 0; width: auto !important; } }

/* Sector explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); border: 1px solid var(--line); }
.explorer__list { border-right: 1px solid var(--line); padding: 8px 0; }
.explorer__btn { width: 100%; text-align: left; font: 600 15.5px/1.3 var(--font); color: var(--muted); background: none; border: 0; border-left: 3px solid transparent; padding: 13px 20px; cursor: pointer; min-height: 48px; }
.explorer__btn:hover { color: var(--text); background: rgba(61, 99, 230, .06); }
.explorer__btn[aria-selected="true"] { color: var(--text); border-left-color: var(--cobalt); background: rgba(61, 99, 230, .1); }
.explorer__panel { padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; align-content: start; }
.explorer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.explorer__cols ul { display: grid; gap: 8px; font-size: 15.5px; }
.explorer__cols a { color: var(--cobalt-mist); text-underline-offset: 3px; }
@media (max-width: 860px) { .explorer { grid-template-columns: minmax(0, 1fr); } .explorer__list { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 0; } .explorer__btn { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; } .explorer__btn[aria-selected="true"] { border-bottom-color: var(--cobalt); } .explorer__cols { grid-template-columns: minmax(0, 1fr); } }

/* Finder */
.finder { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-top: 3px solid var(--cobalt); background: var(--panel); }
.finder__row { display: flex; flex-wrap: wrap; gap: 10px; }
.finder__row .field__input { flex: 1 1 280px; }
.finder__out { font-size: 15.5px; color: var(--muted); min-height: 1.6em; }
.finder__out a { color: var(--cobalt-mist); font-weight: 600; }

/* Forms */
.form { display: grid; gap: 22px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-top: 3px solid var(--cobalt); background: var(--panel); min-width: 0; }
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.types legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
@media (max-width: 760px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type { position: relative; }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid #2A3456; border-radius: 3px; cursor: pointer; font-weight: 700; font-size: 15px; }
.type small { font-weight: 500; font-size: 13px; color: var(--muted); }
.type input:checked + span { border-color: var(--cobalt); background: rgba(61, 99, 230, .14); }
.type input:focus-visible + span { outline: 3px solid var(--cobalt-mist); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.opt { font-weight: 500; color: var(--muted); }
.field__input { width: 100%; min-height: 50px; padding: 12px 14px; font: 500 16px var(--font); color: var(--text); background: var(--ink); border: 1.5px solid #2A3456; border-radius: 3px; }
textarea.field__input { min-height: 130px; resize: vertical; line-height: 1.5; }
select.field__input { appearance: auto; }
.field__input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(61, 99, 230, .25); }
.field__input[aria-invalid="true"] { border-color: var(--cobalt-mist); border-width: 2px; }
.field__hint { font-size: 13.5px; color: var(--muted); }
.field__err { font-size: 14px; font-weight: 600; color: var(--cobalt-mist); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1.5px solid #2A3456; border-radius: 3px; font-weight: 600; font-size: 15px; cursor: pointer; }
.pill input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--cobalt-mist); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--cobalt); background: var(--ink); }
.info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); align-content: start; }
.info > div { background: var(--ink); padding: 22px 24px; display: grid; gap: 6px; }
.info .big { font-weight: 700; font-size: 1.2rem; user-select: all; word-break: break-word; }
.info a { color: var(--cobalt-mist); font-weight: 600; text-underline-offset: 3px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; font-variant-numeric: tabular-nums; font-size: 15.5px; }
.hours dt { color: var(--muted); } .hours dd { margin: 0; }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.phases li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line); }
.phases li.is-now { border-top-color: var(--cobalt); }
.phases h3 { font-size: 1.4rem; font-weight: 800; }
.phases p { color: var(--muted); }
@media (max-width: 820px) { .phases { grid-template-columns: minmax(0, 1fr); } }

/* Vision and mission */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vm > div { background: var(--panel); padding: clamp(26px, 4vw, 44px); display: grid; gap: 14px; }
.vm p { font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.4; }
@media (max-width: 760px) { .vm { grid-template-columns: minmax(0, 1fr); } }

/* Closing band on inner pages */
.page-close { position: relative; min-height: 92vh; display: flex; align-items: flex-end; padding-block: 0 96px; }
.page-close .closing__copy { gap: 22px; }

/* Approach step part label */
.step__part { display: none; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-mist); }
.approach.is-sticky .step__part { display: block; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }

/* Mobile sticky contact bar */
.actionbar { display: none; }
@media (max-width: 720px) {
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(4, 6, 12, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut-l); }
  .actionbar .btn { min-height: 48px; padding: 10px; font-size: 15px; }
  footer .base { padding-bottom: 96px; }
}

/* Fallback drawing when WebGL is unavailable: sits in the hero only */
.stage-fallback { position: absolute; z-index: 1; right: 6vw; left: auto; top: 50%; width: min(36vw, 440px); transform: translateY(-50%); }
@media (max-width: 760px) { .stage-fallback { right: 50%; top: 22vh; transform: translate(50%, -50%); width: 64vw; } }
.split--form { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
@media (max-width: 860px) { .split--form { grid-template-columns: minmax(0, 1fr); } }
.sel { user-select: all; color: var(--text); font-weight: 600; }
.foot address b { color: var(--text); }
.page-close .bigword { top: 10%; font-size: clamp(3.4rem, 13.6vw, 14rem); }
.hero, .closing, .page-close, .page-hero { overflow-x: clip; }
html { overflow-x: clip; }

[hidden] { display: none !important; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-open="true"] i { background: var(--cobalt); box-shadow: 0 0 0 4px rgba(61, 99, 230, .25); }
.status b { font-weight: 600; color: var(--text); }

/* ===== Footer v2: brand + links, contact strip, base line ===== */
footer { font-size: 14.5px; }
.foot { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 48px; padding-block: 72px 48px; }
.foot__brand { display: grid; gap: 16px; align-content: start; max-width: 340px; }
.foot__brand img { height: 52px; width: auto; margin: 0; }
.foot__brand p { line-height: 1.6; }
.foot__brand .status { font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; justify-self: start; }
.foot__brand .status b { font-weight: 600; }
.foot h2 { font-size: 11.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; }
.foot ul { gap: 10px; }
.foot a { color: #C9CFDD; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot__contact { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr 1fr; gap: 24px; margin: 0; padding-block: 28px; border-top: 1px solid var(--line); }
.foot__contact > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.foot__contact dt { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot__contact dd { margin: 0; color: var(--text); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.foot__contact .sel { font-weight: 600; }
footer .base { font-size: 12.5px; color: var(--muted); padding-block: 20px 28px; }
@media (max-width: 1100px) { .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; max-width: 520px; } .foot__contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__col:last-child { grid-column: 1 / -1; } .foot__contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__contact > div:first-child { grid-column: 1 / -1; } }
.foot__contact { border-bottom: 1px solid var(--line); }
@media (min-width: 1101px) { .foot__contact { grid-template-columns: 1.7fr 1fr 1fr 1.5fr 1.1fr; } }
footer .base { border-top: 0; }

/* real photos in asset slots */
.slot--photo { background: #070B17; }
.slot--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* form: honeypot, file input, success state */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field__file { padding: 10px 12px; min-height: auto; cursor: pointer; }
.field__file::file-selector-button { font: 600 14px var(--font); color: #fff; background: var(--cobalt); border: 0; border-radius: 3px; padding: 9px 14px; margin-right: 12px; cursor: pointer; }
.form-status--ok { border-left-color: #3BD18A; }
.form-status a { color: var(--cobalt-mist); }
#send-btn[disabled] { opacity: .7; cursor: progress; }

/* SEO/performance: hero text visible immediately so it can be the first paint (13 Nov 2026) */
.js .hero .reveal:not(.in), .js .page-hero .reveal:not(.in) { opacity: 1; filter: none; transform: none; }
.js .hero .reveal, .js .page-hero .reveal { transition: none; }

/* Tap-to-call, WhatsApp and email links (13 Nov 2026) */
a.tap, .foot a.tap, .info a.tap { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(157, 177, 245, .5); text-underline-offset: 4px; }
a.tap:hover, .foot a.tap:hover, .info a.tap:hover { color: var(--cobalt-mist); }
a.tap[href^="tel:"], a.tap[href*="wa.me"] { white-space: nowrap; }
