/* Pro Tech Consulting Group. The rack: a unit index (U1 to U6), faceplate headers, and one WebGL moment on the homepage.
   Ground paper, ink text, one blue. Display Epilogue, body Manrope, labels Sono. Two eases only. */
:root {
  --paper: #EDF0F5; --paper-2: #E2E7EF; --white: #FFFFFF; --ink: #0D1424; --ink-2: #44506A;
  --blue: #2D5BC4; --blue-deep: #1B3A8C; --cyan: #19B8DC; --cyan-ink: #08718B; --lav: #8C7FC4;
  --graphite: #151A24; --line: #C9D1DE; --line-2: #B3BECF; --ok: #15753F; --warn: #8A5A00; --err: #B3261E;
  --ease-travel: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --d1: 150ms; --d2: 300ms; --d3: 600ms; --d4: 1200ms;
  --font-display: 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Sono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px; --gut: clamp(20px, 4vw, 56px); --hdr: 68px; --u: min(1vw, 1.6vh);
  --sa-accent: #2D5BC4; --sa-accent-ink: #FFFFFF;
}
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.62 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 4px; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.mono { font: 500 12.5px/1.45 var(--font-mono); letter-spacing: 0.01em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons: solid, rectangular ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: var(--white); font: 500 16px/1 var(--font-display); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background var(--d2) var(--ease-arrive), border-color var(--d2) var(--ease-arrive), transform var(--d2) var(--ease-arrive); }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: #1f2a44; border-color: #1f2a44; }
.btn--plate { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn--plate:hover { background: var(--paper-2); border-color: var(--ink-2); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--paper-2); border-color: var(--line); color: #6c7890; cursor: not-allowed; }
.textlink { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ---------- the header: logo, the unit index, and the actions ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--hdr); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 0 var(--gut); background: var(--paper); box-shadow: 0 1px 0 rgba(13, 20, 36, 0.06); }
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
/* the unit index: U1 to U6, the rack's own numbering. Quiet; the lamp lights when the unit is out, or is this page's company. */
.uidx { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.uidx a { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; font: 500 14px/1 var(--font-mono); letter-spacing: 0.02em; color: var(--ink-2); text-decoration: none; transition: color var(--d2) var(--ease-arrive); }
.uidx li + li a::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: var(--line); }
.uidx a i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #B6C0D1; }
.uidx a i::before, .uidx a i::after { content: ""; position: absolute; border-radius: 50%; opacity: 0; transition: opacity var(--d2) var(--ease-arrive), transform var(--d2) var(--ease-arrive); }
.uidx a i::before { inset: -4px; background: color-mix(in srgb, var(--lit, var(--cyan)) 26%, transparent); transform: scale(0.45); }
.uidx a i::after { inset: 0; background: var(--lit, var(--cyan)); }
.uidx a:hover, .uidx a:focus-visible { color: var(--ink); }
.uidx a.is-lit i::before, .uidx a[aria-current="page"] i::before { opacity: 1; transform: scale(1); }
.uidx a.is-lit i::after, .uidx a[aria-current="page"] i::after { opacity: 1; }
.uidx a.is-lit, .uidx a[aria-current="page"] { color: var(--ink); }
.uidx__tip { position: absolute; top: calc(100% + 2px); left: 50%; transform: translate(-50%, 6px); padding: 9px 13px; background: var(--ink); color: var(--paper); border-radius: 3px; font: 500 14px/1 var(--font-mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--d2) var(--ease-arrive), transform var(--d2) var(--ease-arrive); }
.uidx a:hover .uidx__tip, .uidx a:focus-visible .uidx__tip { opacity: 1; transform: translate(-50%, 0); }
.top__actions { display: flex; align-items: center; gap: 18px; }
.top__link, .top__tel { font: 500 14px/1 var(--font-body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.top__link:hover, .top__tel:hover { color: var(--blue); text-decoration: underline; }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; }
@media (max-width: 1180px) { .top > nav { display: none; } .top { grid-template-columns: 1fr auto; } .menu-btn { display: inline-flex; } }
@media (max-width: 760px) { .top__link, .top__tel { display: none; } .brand img { height: 28px; } :root { --hdr: 60px; } .top .btn--talk { display: none; } }

/* the full-screen index (menu) */
.index { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper); overflow: auto; padding: calc(var(--hdr) + 12px) var(--gut) 48px; }
.index[hidden] { display: none; }
.index__close { position: absolute; top: 14px; right: var(--gut); }
.index__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: calc(var(--wrap)); margin: 24px auto 0; }
.index h2 { font: 500 12.5px/1.4 var(--font-mono); letter-spacing: 0.02em; color: #A9B4C8; margin: 0 0 14px; }
.index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.index a { color: var(--paper); text-decoration: none; font: 500 20px/1.35 var(--font-display); letter-spacing: -0.01em; }
.index a:hover { color: var(--cyan); }
.index .btn { margin-top: 22px; }
@media (max-width: 980px) { .index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .index__grid { grid-template-columns: 1fr; } }

/* ---------- the faceplate header on every inner page ---------- */
.faceplate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin-top: calc(var(--hdr) + 28px); padding: 14px 22px 14px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 rgba(13, 20, 36, 0.04); border-left: 6px solid var(--unit, var(--blue)); }
.faceplate__logo { display: flex; align-items: center; height: 64px; }
.faceplate__logo img { height: 100%; width: auto; max-width: 220px; object-fit: contain; }
.faceplate__word { font: 500 26px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.faceplate__what { font: 500 13px/1.45 var(--font-mono); color: var(--ink-2); }
.faceplate__what b { display: block; font-weight: 500; color: var(--ink); }
.faceplate__site { font: 500 13px/1 var(--font-mono); white-space: nowrap; }
@media (max-width: 760px) { .faceplate { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px 16px; padding-right: 14px; } .faceplate__logo img { max-width: 150px; } .faceplate__what { min-width: 0; overflow-wrap: anywhere; } .faceplate__site { grid-column: 1 / -1; } }
.crumbs { margin: 22px 0 0; font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.page-head { padding-top: 28px; padding-bottom: 56px; }
.page-head--plain { padding-top: calc(var(--hdr) + 28px); }
.page-head h1 { max-width: 18ch; margin-bottom: 22px; }
.page-head .lede { margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- generic sections ---------- */
.band { padding: clamp(64px, 8vw, 112px) 0; }
.band--alt { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .lede, .band--ink p { color: #C5CEDD; }
.band--ink a { color: #8FD0E6; }
.band--ink .btn { color: var(--white); }
.band--white { background: var(--white); }
.band__head { max-width: 760px; margin-bottom: 40px; }
.band__head h2 { margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols, .cols--even { grid-template-columns: 1fr; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.rows h3, .rows h4 { font-size: 20px; }
.rows p { margin: 0; color: var(--ink-2); }
.rows a.row-link { color: inherit; text-decoration: none; display: contents; }
@media (max-width: 700px) { .rows > li { grid-template-columns: 1fr; } }
.plain-list { margin: 0 0 1.2em; padding-left: 1.1em; max-width: 64ch; }
.plain-list li { margin: 0 0 0.5em; padding-left: 0.2em; }
.spec { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
/* sticky only once its column is in the top 40% of the screen (js/site.js adds .is-pinned): a sticky card
   that loads low on the screen sits in the assistant's corner */
.spec.is-pinned { position: sticky; top: calc(var(--hdr) + 20px); }
.spec h2 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 14px; }
.spec dl { margin: 0; display: grid; gap: 14px; }
.spec dt { font: 500 12px/1.4 var(--font-mono); color: var(--ink-2); }
.spec dd { margin: 2px 0 0; font-size: 16px; line-height: 1.5; }
.spec .btn { margin-top: 20px; width: 100%; }
.quote { margin: 0; padding: 28px 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; border-left: 6px solid var(--unit, var(--blue)); }
.quote p { font: 500 clamp(20px, 2vw, 26px)/1.35 var(--font-display); letter-spacing: -0.015em; max-width: 46ch; margin: 0 0 14px; }
.quote cite { font: 500 13px/1.4 var(--font-mono); font-style: normal; color: var(--ink-2); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quotes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .quotes, .quotes--two { grid-template-columns: 1fr; } }
.nextunit { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.nextunit a { display: flex; flex-direction: column; gap: 4px; padding: 26px var(--gut); text-decoration: none; color: var(--ink); background: var(--paper); transition: background var(--d2) var(--ease-arrive); }
.nextunit a:hover { background: var(--white); }
.nextunit a + a { border-left: 1px solid var(--line-2); text-align: right; align-items: flex-end; }
.nextunit small { font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-2); }
.nextunit b { font: 500 clamp(20px, 2.4vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.tiles { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tiles li { width: 120px; }
.tiles a, .tiles .tile { display: grid; place-items: center; height: 120px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px; transition: border-color var(--d2) var(--ease-arrive), transform var(--d2) var(--ease-arrive); }
.tiles a:hover { border-color: var(--blue); transform: translateY(-2px); }
.tiles img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.tiles .tile--wide { width: 100%; }
.tiles figcaption, .tiles span.cap { display: block; margin-top: 8px; font: 500 12px/1.3 var(--font-mono); color: var(--ink-2); text-align: center; }
.portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 24%; border-radius: 4px; background: #46574c; }
.portrait b { display: block; margin-top: 12px; font: 500 18px/1.25 var(--font-display); letter-spacing: -0.01em; }
.portrait span { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.portrait--lead { grid-column: span 2; }
@media (max-width: 1000px) { .portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } }
.person { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 40px 0; border-top: 1px solid var(--line-2); align-items: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 4px; background: #46574c; }
.person h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 4px; }
.person .role { font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); margin-bottom: 18px; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person img { max-width: 340px; } }
.badge { display: flex; align-items: center; gap: 22px; }
.badge img { height: 84px; width: auto; }
.partner-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.partner-rows li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.partner-rows img { width: 88px; height: 56px; object-fit: contain; }
.partner-rows h3 { font-size: 19px; }
.partner-rows p { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
@media (max-width: 640px) { .partner-rows li { grid-template-columns: 64px minmax(0, 1fr); } .partner-rows li > :last-child { grid-column: 2; } .partner-rows img { width: 64px; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.timeline b { display: block; font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { margin: 0; color: var(--ink-2); }
.privacy h2 { font-size: 24px; margin: 36px 0 12px; }
.privacy ul { max-width: 66ch; }
.map { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); }
address { font-style: normal; }

/* ---------- reveal (only when JS runs; the page reads without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--d3) var(--ease-arrive), transform var(--d3) var(--ease-arrive); transition-delay: var(--rd, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln__in { display: block; transform: translateY(108%); transition: transform var(--d4) var(--ease-arrive); transition-delay: calc(var(--i, 0) * 60ms); }
.is-in .ln__in, .ln.is-in .ln__in { transform: none; }

/* ---------- the homepage journey: the canvas is fixed behind real HTML ---------- */
#world { display: none; }
.has-3d #world { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; pointer-events: none; transition: opacity var(--d1) linear; }
.has-3d.world-live #world { opacity: 1; }
.has-3d body { background: var(--paper); }
.journey { position: relative; z-index: 2; }
.beat { position: relative; display: flex; align-items: center; min-height: 76vh; padding: calc(var(--hdr) + 28px) var(--gut) 40px; }
.beat--0 { min-height: 100vh; min-height: 100svh; align-items: stretch; padding-top: calc(var(--hdr) + 44px); padding-bottom: 44px; }
.has-3d .beat--0 .beat__copy { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.beat--0 h1 { font-size: clamp(44px, calc(var(--u) * 5.6), 120px); line-height: 0.98; letter-spacing: -0.042em; max-width: 9.6em; margin: 0; }
.hero__foot { max-width: clamp(420px, calc(var(--u) * 33), 640px); }
html:not(.has-3d) .beat--0 h1 { font-size: clamp(40px, calc(var(--u) * 4.4), 84px); }
html:not(.has-3d) .hero__foot { margin-top: 26px; }
.hero__foot .lede { font-size: clamp(17px, calc(var(--u) * 1.25), 22px); line-height: 1.58; margin-bottom: 20px; }
.beat--4 { min-height: 52vh; }
.beat__copy { width: min(580px, 44vw); }
.beat--pair .beat__copy { width: clamp(270px, calc(var(--u) * 25.5), 560px); }
.beat--pair .unit-block { grid-template-columns: clamp(64px, calc(var(--u) * 6.2), 100px) minmax(0, 1fr); gap: 4px clamp(14px, calc(var(--u) * 1.2), 22px); padding: clamp(14px, calc(var(--u) * 1.2), 22px) 0; }
.beat--pair .unit-block p { font-size: clamp(15px, calc(var(--u) * 1.1), 19px); }
.beat--pair .unit-block h3 { font-size: clamp(18px, calc(var(--u) * 1.5), 25px); }
.beat--pair h2 { font-size: clamp(30px, calc(var(--u) * 3.3), 60px); max-width: 8.6em; }
.beat--4 .beat__copy { width: clamp(340px, calc(var(--u) * 36), 640px); }
.beat--4 h2 { font-size: clamp(32px, calc(var(--u) * 3.6), 66px); }
.beat--4 .lede { font-size: clamp(17px, calc(var(--u) * 1.25), 22px); }
.beat h1 { margin-bottom: 26px; }
.beat--0 h1 { margin-bottom: 0; }
.beat h2 { margin-bottom: 22px; }
.beat .lede { margin-bottom: 18px; }
.beat__note { font: 500 14px/1.5 var(--font-mono); color: var(--ink-2); margin: 0 0 28px; }
.unit-block { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 22px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line-2); }
.unit-block:last-of-type { border-bottom: 1px solid var(--line-2); }
.unit-block img { width: 100%; height: 52px; object-fit: contain; object-position: left center; }
.unit-block h3 { font-size: 19px; margin-bottom: 4px; }
.unit-block h3 i { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 2px; background: var(--unit, var(--blue)); vertical-align: 1px; }
.unit-block p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.unit-block a { font-size: 15px; font-weight: 600; }
.beat__still { display: none; }
html:not(.has-3d) .beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--paper); }
html:not(.has-3d) .beat:nth-child(even) { background: var(--paper-2); }
html:not(.has-3d) .beat__copy { width: auto; }
html:not(.has-3d) .beat__still { display: block; }
html:not(.has-3d) .beat__still img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.beat__cue { margin-top: 30px; font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); }
@media (max-aspect-ratio: 1/1) {
  .beat--0 h1 { font-size: 34px; line-height: 1.02; margin-bottom: 12px; max-width: none; }
  .hero__foot .lede { font-size: 16px; line-height: 1.55; margin-bottom: 12px; }
  .hero__foot .calm-toggle { margin-top: 10px; }
  .has-3d .beat--0 .beat__copy { display: block; }
  .beat--0 { min-height: 0; }
  .unit-block, .beat--pair .unit-block { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; }
  .beat--pair .unit-block p { font-size: 15px; }
  /* the live rack on a phone or an upright tablet: the rack has its own stage under the header, and the words scroll up beneath it */
  .has-3d { --stage: max(250px, min(88.5vw, 44vh)); --stage: max(250px, min(88.5vw, 44svh)); --words: calc(100vh - var(--hdr) - var(--stage)); --words: calc(100svh - var(--hdr) - var(--stage)); scroll-padding-top: calc(var(--hdr) + var(--stage) + 16px); }
  .has-3d #world { inset: var(--hdr) 0 auto 0; width: 100%; height: var(--stage); z-index: 3; }
  .has-3d .poster { display: block; position: fixed; inset: var(--hdr) 0 auto 0; height: var(--stage); z-index: 3; background: var(--paper) url(../img/poster-m.webp) center / cover no-repeat; transition: opacity var(--d1) linear; }
  .has-3d.world-live .poster { opacity: 0; transition: opacity 0s linear var(--d2); }
  .has-3d .stage-fade { display: block; position: fixed; left: 0; right: 0; top: calc(var(--hdr) + var(--stage) - 42px); height: 42px; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(237, 240, 245, 0), var(--paper)); }
  .has-3d.stage-out #world, .has-3d.stage-out .poster, .has-3d.stage-out .stage-fade { opacity: 0; visibility: hidden; transition: opacity var(--d2) linear, visibility 0s linear var(--d2); }
  .has-3d .beat { min-height: 0; align-items: flex-start; padding: 14px var(--gut) 0; }
  .has-3d .beat--0 { padding-top: calc(var(--hdr) + var(--stage) + 20px); padding-bottom: 18px; }
  .has-3d .beat--pair, .has-3d .beat--4 { min-height: calc(var(--words) - 30px); }
  .has-3d .calm-toggle .cue { display: none; }
  .has-3d .beat__copy, .has-3d .beat--pair .beat__copy { width: 100%; margin: 0; padding: 0; background: none; }
  .has-3d .beat--pair .unit-block p { display: none; }    /* the same sentences sit in "The stack" lower down, and on each company page */
  .has-3d .check { padding-top: 16px; min-height: 0; }
  .has-3d .check__panel { width: min(680px, 100%); margin: 0 auto; }
  /* no 3D: words, then the still, one column, no empty space */
  html:not(.has-3d) .beat { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding-top: 44px; padding-bottom: 36px; }
  html:not(.has-3d) .beat--0 { padding-top: calc(var(--hdr) + 28px); }
  html:not(.has-3d) .beat__copy { margin: 0; padding: 0; background: none; }
}
.stage-fade { display: none; }

@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .has-3d { --stage: clamp(300px, 41vh, 460px); --stage: clamp(300px, 41svh, 460px); --words: calc(100vh - var(--hdr) - var(--stage)); --words: calc(100svh - var(--hdr) - var(--stage)); }
  .has-3d .poster { display: none; }
}

@media (min-aspect-ratio: 11/10) and (max-width: 1100px) { .beat--pair .unit-block p { display: none; } }
@media (min-aspect-ratio: 11/10) and (max-height: 800px) {
  .beat--pair, .beat--4 { padding-top: calc(var(--hdr) + 12px); padding-bottom: 22px; }
  .beat--pair .unit-block { padding-top: 10px; padding-bottom: 10px; }
  .beat--pair .unit-block p { font-size: 14px; line-height: 1.42; }
  .beat--pair h2 { margin-bottom: 14px; }
}
/* a very small phone (320 wide): the same words, set a little smaller, so the sequence still fits in three screens */
@media (max-aspect-ratio: 1/1) and (max-width: 345px) {
  .beat--0 h1 { font-size: 30px; }
  .hero__foot .lede { font-size: 15px; line-height: 1.5; }
  .has-3d .beat--pair h2 { font-size: 25px; margin-bottom: 10px; }
  .beat--pair .unit-block, .unit-block { grid-template-columns: 60px minmax(0, 1fr); padding: 9px 0; gap: 2px 12px; }
  .unit-block img { height: 40px; }
  .unit-block h3 { font-size: 17px; margin-bottom: 1px; }
  .unit-block a { font-size: 14px; }
}
/* a short phone (an iPhone SE): the finale keeps its heading and its button, and the check below explains itself */
@media (max-aspect-ratio: 1/1) and (max-height: 720px) { .has-3d .beat--4 .lede { display: none; } .has-3d .beat--4 h2 { margin-bottom: 14px; } }

/* tags: a small pill on the unit itself, in the check and on hover (aria-hidden; the words beside say the same) */
.tags { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity var(--d3) var(--ease-arrive); }
.has-3d.world-live .tags { opacity: 1; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity var(--d2) var(--ease-arrive); will-change: transform; }
.tag.is-on { opacity: 1; }
.tag__dot, .tag__line { display: none; }
.tag__chip { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 7px 11px 8px; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--line-2); border-left: 4px solid var(--unit, var(--blue)); border-radius: 3px; font: 500 12px/1.35 var(--font-mono); color: var(--ink-2); white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(13, 20, 36, 0.45); }
.tag__chip b { display: block; font-weight: 500; color: var(--ink); font-size: 12.5px; }
@media (max-width: 760px) { .tag__chip { font-size: 10.5px; padding: 5px 8px; } .tag__chip b { font-size: 11px; } }

/* ---------- the check (lead tool), paired with the rack ---------- */
.check { position: relative; z-index: 2; padding: calc(var(--hdr) + 40px) var(--gut) 90px; min-height: 100vh; }
.check__panel { width: clamp(560px, calc(var(--u) * 45.8), 940px); background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line); border-radius: 6px; padding: 30px; box-shadow: 0 24px 60px -30px rgba(13, 20, 36, 0.35); }
html:not(.has-3d) .check__panel, .tool-page .check__panel { width: min(760px, 100%); background: var(--white); backdrop-filter: none; margin: 0 auto; }
.check__panel h2 { margin-bottom: 12px; }
.check__panel .lede { font-size: 17px; margin-bottom: 22px; }
.q { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; }
.q__what { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 2px 16px; align-items: center; }
.q__logo { grid-row: span 2; width: 88px; height: 44px; display: grid; place-items: center start; }
.q__logo img { max-width: 88px; max-height: 40px; width: auto; height: auto; object-fit: contain; object-position: left center; }
.q__what b { font: 500 17px/1.2 var(--font-display); letter-spacing: -0.01em; }
.q__what small { grid-column: 2; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.seg { display: inline-grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; background: var(--white); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 13px; min-height: 44px; font: 500 13.5px/1.25 var(--font-body); color: var(--ink); white-space: nowrap; transition: background var(--d1) var(--ease-arrive), color var(--d1) var(--ease-arrive); }
.seg label:hover span { background: var(--paper-2); }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (max-width: 1180px) { .q { grid-template-columns: 1fr; } .seg { width: 100%; grid-template-columns: repeat(3, 1fr); } .seg span { text-align: center; padding: 11px 6px; font-size: 13px; white-space: normal; } }
@media (max-width: 760px) { .check__panel { width: 100%; padding: 20px 16px; } }
.result { margin-top: 22px; padding-top: 22px; border-top: 2px solid var(--ink); }
.result[hidden] { display: none; }
.result h3 { font-size: 22px; margin-bottom: 4px; }
.result .tally { font: 500 14px/1.45 var(--font-mono); color: var(--ink-2); margin: 0 0 18px; }
.result .tally b { color: var(--ink); font-weight: 500; }
.result ol, .result ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.result li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 0 12px; align-items: start; }
.result li i { width: 12px; height: 12px; margin-top: 6px; border-radius: 2px; background: var(--unit, var(--blue)); }
.result li b { font: 500 17px/1.3 var(--font-display); }
.result li span { display: block; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.result .group-label { font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-2); margin: 16px 0 8px; }
.result .actions { margin-top: 18px; }
.note { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }

/* ---------- shared tool controls ---------- */
.tool-page .page-head { padding-bottom: 28px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label, .field .lbl { font: 600 15px/1.3 var(--font-body); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); color: var(--ink); font: 500 17px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.field textarea { padding: 13px 14px; line-height: 1.5; min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.field .hint { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.field .err { font-size: 14px; line-height: 1.4; color: var(--err); font-weight: 600; min-height: 0; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field .with-unit { position: relative; }
.field .with-unit span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 500 17px/1 var(--font-body); color: var(--ink-2); pointer-events: none; }
.field .with-unit input { padding-left: 32px; }
.field .with-unit.after input { padding-left: 14px; padding-right: 40px; }
.field .with-unit.after span { left: auto; right: 14px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.out { margin-top: 30px; background: var(--ink); color: var(--paper); border-radius: 6px; padding: clamp(22px, 3vw, 36px); }
.out[hidden] { display: none; }
.out__lead { font: 500 clamp(36px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 6px 0 8px; }
.out__label { font: 500 13px/1.4 var(--font-mono); color: #A9B4C8; }
.out__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #2c3750; }
.out__grid b { display: block; font: 500 24px/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.out__grid span { display: block; font: 500 12.5px/1.45 var(--font-mono); color: #A9B4C8; margin-top: 4px; }
.out p { color: #C5CEDD; font-size: 15.5px; line-height: 1.55; margin: 18px 0 0; }
.out .actions { margin-top: 22px; }
.out .btn--plate { background: transparent; border-color: #55627f; color: var(--paper); }
.out .btn--plate:hover { background: #1f2a44; border-color: var(--paper); color: var(--white); }
@media (max-width: 760px) { .out__grid { grid-template-columns: 1fr 1fr; } }
details.how { margin-top: 26px; border-top: 1px solid var(--line-2); padding-top: 4px; }
details.how summary { cursor: pointer; padding: 14px 0; font: 600 16px/1.3 var(--font-body); list-style: none; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::before { content: "+"; display: inline-block; width: 26px; font: 500 20px/1 var(--font-mono); vertical-align: -1px; }
details.how[open] summary::before { content: "\2212"; }
details.how summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
details.how .how__body { padding: 0 0 12px 22px; max-width: 70ch; }
details.how table { border-collapse: collapse; width: 100%; max-width: 560px; margin: 8px 0 14px; font-size: 15px; }
details.how th, details.how td { border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; text-align: left; font-variant-numeric: tabular-nums; }
details.how code { font: 500 14px/1.5 var(--font-mono); background: var(--paper-2); padding: 1px 6px; border-radius: 3px; }
.nojs-note { margin: 0 0 22px; padding: 14px 16px; background: var(--paper-2); border-left: 4px solid var(--blue); font-size: 16px; }
.js .nojs-note { display: none; }
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .hub { grid-template-columns: 1fr; } }
.hub a { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; transition: transform var(--d2) var(--ease-arrive), border-color var(--d2) var(--ease-arrive); }
.hub a:hover { transform: translateY(-3px); border-color: var(--blue); }
.hub h3 { font-size: 24px; }
.hub p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.hub .mono { color: var(--ink-2); margin-top: auto; }

/* ---------- after the journey: opaque from here ---------- */
.after { position: relative; z-index: 3; background: var(--paper); }
.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.stack li { border-bottom: 1px solid var(--line-2); transition: transform var(--d2) var(--ease-arrive), background var(--d2) var(--ease-arrive); border-left: 5px solid var(--unit, var(--blue)); }
.stack li:hover, .stack li:focus-within { transform: translateX(12px); background: var(--white); }
.stack a { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 20px 20px; text-decoration: none; color: var(--ink); }
.stack img { height: 52px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.stack p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.stack .mono { color: var(--ink-2); }
@media (max-width: 800px) { .stack a { grid-template-columns: 1fr; } .stack li:hover { transform: none; } }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.proof h3 { margin-bottom: 8px; }
.proof p { margin: 0 0 8px; color: var(--ink-2); font-size: 17px; }
.proof .badge img { height: 78px; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }
.tool-teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .tool-teasers { grid-template-columns: 1fr; } }
.closer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.closer h2 { margin-bottom: 18px; max-width: 14ch; }
.closer dl { margin: 0; display: grid; gap: 16px; }
.closer dt { font: 500 12.5px/1.4 var(--font-mono); color: #A9B4C8; }
.closer dd { margin: 2px 0 0; font-size: 18px; line-height: 1.5; }
.closer a { color: #8FD0E6; }
@media (max-width: 860px) { .closer { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); border-top: 1px solid var(--line-2); padding: 56px 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.foot h2 { font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-2); margin: 0 0 12px; letter-spacing: 0.01em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--ink); text-decoration: none; font-size: 16px; }
.foot a:hover { color: var(--blue); text-decoration: underline; }
.foot address { font-size: 16px; line-height: 1.55; }
.foot__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.foot__brand p { font-size: 15.5px; color: var(--ink-2); max-width: 32ch; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-2); font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-2); }
.foot__base a { font: inherit; }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- print: only the tool's result, through #print-root ---------- */
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; background: #fff; color: #000; font: 11pt/1.5 var(--font-body); padding: 0; }
  #print-root header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 10pt; margin-bottom: 14pt; }
  #print-root img { height: 34pt; width: auto; }
  #print-root h1 { font-size: 20pt; margin: 0 0 8pt; }
  #print-root h2 { font-size: 13pt; margin: 14pt 0 4pt; }
  #print-root .big { font: 500 26pt/1.1 var(--font-display); margin: 4pt 0; }
  #print-root footer { margin-top: 18pt; padding-top: 8pt; border-top: 1px solid #000; font-size: 9.5pt; }
  #print-root table { border-collapse: collapse; width: 100%; } #print-root td, #print-root th { border-bottom: 1px solid #bbb; padding: 4pt 6pt 4pt 0; text-align: left; }
  /* the result panels are dark on screen; on paper every label, figure and list must read in black on white */
  html, body { background: #fff !important; }
  #print-root h3 { font-size: 14pt; margin: 10pt 0 4pt; }
  #print-root p { margin: 6pt 0; }
  #print-root .out__label { font: 500 9pt/1.4 var(--font-mono); color: #333; margin: 6pt 0 0; }
  #print-root .out__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8pt 16pt; margin: 10pt 0; padding-top: 8pt; border-top: 1px solid #000; }
  #print-root .out__grid b { display: block; font: 500 15pt/1.2 var(--font-display); color: #000; }
  #print-root .out__grid span { display: block; font: 500 8.5pt/1.35 var(--font-mono); color: #333; margin-top: 2pt; }
  #print-root ol, #print-root ul { list-style: none; margin: 0 0 8pt; padding: 0; }
  #print-root li { display: grid; grid-template-columns: 9pt minmax(0, 1fr); gap: 0 8pt; margin: 0 0 7pt; break-inside: avoid; }
  #print-root li i { width: 8pt; height: 8pt; margin-top: 4pt; background: var(--unit, #000); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root li b { display: block; font: 600 11.5pt/1.3 var(--font-display); }
  #print-root li b a { color: #000; text-decoration: none; }
  #print-root li span { display: block; }
  #print-root .group-label { font: 600 9pt/1.4 var(--font-mono); margin: 10pt 0 4pt; }
  #print-root .tally { font: 500 10pt/1.45 var(--font-mono); margin: 0 0 10pt; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ln__in { transform: none; }
  .stack li:hover { transform: none; }
}

/* QA: ?still=N renders the canvas alone */
body.still-mode > *:not(#world) { visibility: hidden !important; }

/* the poster: the live hero as a still, so the first paint already shows the rack (wide screens) */
.poster { display: none; }
@media (min-aspect-ratio: 8/5) and (max-aspect-ratio: 9/5) { .has-3d .poster { display: block; position: fixed; inset: 0; z-index: 0; background: #EDF0F5 url(../img/poster-0.webp) center / cover no-repeat; transition: opacity var(--d1) linear; } .has-3d.world-live .poster { opacity: 0; transition: opacity 0s linear var(--d2); } }
.calm-toggle { margin: 18px 0 0; font: 500 13px/1.4 var(--font-mono); }
.calm-toggle .cue { display: block; margin-bottom: 4px; color: var(--ink-2); }
.calm-toggle button { all: unset; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.calm-toggle button:hover { color: var(--blue); }
.calm-toggle button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
html:not(.has-3d) .calm-toggle { display: none; }
