/* Armor Steel Building
   Palette from the v3 logo: ink #0A1D2B, signal orange #E8561F.
   Type: Archivo (expanded) for display, Source Serif 4 for reading, IBM Plex Mono for spec labels. */

@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-var.woff2) format("woff2"); font-weight: 500 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/assets/fonts/sourceserif4-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/assets/fonts/sourceserif4-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/plexmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0A1D2B;
  --night: #05101A;
  --ink-2: #0e1a25;
  --plate: #172430;
  --orange: #E8561F;
  --orange-deep: #a93b0d;
  --steel: #56616b;
  --steel-light: #9aa6b0;
  --zinc: #edeff0;
  --zinc-2: #e1e5e8;
  --rule: #c9d0d5;
  --paper: #ffffff;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --cut: 14px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.68 var(--serif); font-optical-sizing: auto; padding-bottom: var(--dock-h); overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute !important; 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(--orange); color: var(--ink); padding: 10px 16px; font: 700 0.95rem var(--display); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem); font-stretch: 118%; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.45rem); font-stretch: 108%; font-weight: 750; line-height: 1.2; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.lede { font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.32rem); line-height: 1.55; }
.center { text-align: center; }
.center .lede, .center > p { margin-inline: auto; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn { --c: var(--cut); display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 48px; padding: 0.8em 1.5em; font: 750 0.95rem/1.1 var(--display); font-stretch: 110%; letter-spacing: 0.01em; text-decoration: none; border: 0; cursor: pointer; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background-color .2s, color .2s, transform .2s; }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #ff7444; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--plate); color: #fff; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; }
.btn--line:hover { background: rgba(255,255,255,.08); color: inherit; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- Top line + translate ---------- */
.topline { background: var(--ink); color: var(--steel-light); }
.topline__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topline__note { margin: 0; font-size: 0.68rem; }
.lang { display: flex; align-items: center; gap: 6px; color: #fff; }
.lang__label { display: inline-flex; color: var(--orange); }
.lang__select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa6b0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center; color: #fff; border: 1px solid #2a3947; padding: 4px 26px 4px 10px; font: 500 0.74rem var(--mono); letter-spacing: 0.06em; min-height: 30px; cursor: pointer; }
.lang__select:hover { border-color: var(--orange); }
.lang__select option { color: var(--ink); background: #fff; }
/* Neutralise Google Translate's injected chrome so the site keeps its own UI */
.goog-te-banner-frame, .skiptranslate > iframe, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none !important; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); transition: box-shadow .25s; }
.masthead.is-scrolled { box-shadow: 0 8px 24px -16px rgba(6,16,25,.45); }
.masthead__in { display: flex; align-items: center; gap: 24px; min-height: 78px; transition: min-height .25s; }
.masthead.is-scrolled .masthead__in { min-height: 64px; }
.brand { flex: none; display: block; width: clamp(168px, 18vw, 214px); }
.brand img { width: 100%; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; background: none; border: 0; font: 700 0.92rem var(--display); font-stretch: 108%; color: var(--ink); text-decoration: none; cursor: pointer; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__link:hover::after, .nav__link[aria-current]::after, .nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__link:hover { color: var(--ink); }
.nav__trigger svg { transition: transform .2s; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { min-height: 44px; padding-inline: 1.2em; }

.nav__item--mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); color: #fff; border-top: 3px solid var(--orange); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; } /* invisible hover bridge over the trigger gap */
.mega__in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 36px; display: grid; grid-template-columns: 1fr 1fr 280px; gap: 40px; }
.mega__h { color: var(--orange); margin: 0 0 12px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega__col a { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding: 12px; color: #fff; text-decoration: none; border-left: 2px solid transparent; transition: background-color .15s, border-color .15s; }
.mega__col a:hover, .mega__col a:focus-visible, .mega__col a[aria-current] { background: var(--plate); border-color: var(--orange); }
.mega__sheet { color: var(--steel-light); grid-row: span 2; padding-top: 3px; }
.mega__t { font: 750 1rem/1.25 var(--display); font-stretch: 106%; }
.mega__d { font-size: 0.9rem; line-height: 1.45; color: var(--steel-light); }
.mega__feature { display: flex; flex-direction: column; gap: 6px; color: #fff; text-decoration: none; }
.mega__feature picture { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature-t { font: 800 1.1rem var(--display); font-stretch: 110%; color: var(--orange); }
.mega__feature-d { font-size: 0.92rem; color: var(--steel-light); line-height: 1.45; }

.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: var(--ink); cursor: pointer; position: relative; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { position: absolute; left: 13px; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-btn__bars { top: 23px; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; width: 14px; background: var(--orange); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); width: 22px; }

.drawer { position: fixed; inset: 0; z-index: 45; background: rgba(6,16,25,.5); }
.drawer[hidden] { display: none; }
.drawer__panel { position: absolute; left: 0; right: 0; top: 0; max-height: 100%; overflow-y: auto; background: var(--ink); color: #fff; padding: 132px var(--gut) calc(110px + env(safe-area-inset-bottom)); animation: drop .22s ease-out; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.drawer__h { color: var(--orange); margin: 0 0 8px; }
.drawer__list { list-style: none; margin: 0 0 24px; padding: 0; }
.drawer__list a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #22313e; color: #fff; text-decoration: none; font: 700 1.08rem var(--display); font-stretch: 106%; }
.drawer__list .mono { color: var(--steel-light); min-width: 52px; }
.drawer__list a[aria-current] { color: var(--orange); }
.drawer__small { margin-top: 20px; font-size: 0.9rem; color: var(--steel-light); }
.drawer__small a { color: #fff; }

/* ---------- Mobile dock ---------- */
.dock { display: none; }

/* ---------- Shared section devices ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--zinc { background: var(--zinc); }
.ribbed { background-color: var(--ink); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 46px, rgba(255,255,255,.035) 46px 50px, rgba(255,255,255,0) 50px 58px, rgba(0,0,0,.25) 58px 60px); color: #fff; }
.ribbed a:not(.btn) { color: #fff; }
.ribbed a:not(.btn):hover { color: var(--orange); }
.grid-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--steel); margin-bottom: 18px; }
.grid-tag__b { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid currentColor; border-radius: 50%; font: 800 0.95rem var(--display); color: var(--ink); }
.grid-tag::after { content: ""; width: 48px; height: 0; border-top: 2px dashed var(--rule); }
.ribbed .grid-tag, .dark .grid-tag { color: var(--steel-light); }
.ribbed .grid-tag__b, .dark .grid-tag__b { color: #fff; border-color: var(--orange); }
.center .grid-tag { justify-content: center; }
.center .grid-tag::before { content: ""; width: 48px; border-top: 2px dashed var(--rule); }
.plate { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.rivets { position: relative; }
.rivets::before { content: ""; position: absolute; inset: 10px; pointer-events: none; background:
  radial-gradient(circle, var(--rv, #9aa6b0) 0 2.5px, transparent 3px) left top / 8px 8px no-repeat,
  radial-gradient(circle, var(--rv, #9aa6b0) 0 2.5px, transparent 3px) right top / 8px 8px no-repeat,
  radial-gradient(circle, var(--rv, #9aa6b0) 0 2.5px, transparent 3px) left bottom / 8px 8px no-repeat,
  radial-gradient(circle, var(--rv, #9aa6b0) 0 2.5px, transparent 3px) right bottom / 8px 8px no-repeat; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,16,25,.25) 0%, rgba(6,16,25,.05) 35%, rgba(6,16,25,.86) 100%); }
.hero__in { padding-block: 120px 0; }
.hero__plate { --rv: #3a4a58; max-width: 820px; background: rgba(6,16,25,.9); padding: clamp(28px, 4vw, 52px); border-top: 4px solid var(--orange); }
.hero__plate .mono { color: var(--orange); display: block; margin-bottom: 16px; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__plate .lede { color: #d5dbe0; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.criteria { background: var(--orange); color: var(--ink); }
.criteria__in { display: grid; grid-template-columns: repeat(5, 1fr); }
.criteria a { display: flex; flex-direction: column; gap: 2px; padding: 18px 16px; color: var(--ink); text-decoration: none; border-left: 1px solid rgba(6,16,25,.25); transition: background-color .15s; }
.criteria a:last-child { border-right: 1px solid rgba(6,16,25,.25); }
.criteria a:hover { background: rgba(255,255,255,.18); }
.criteria b { font: 800 1.05rem var(--display); font-stretch: 112%; }
.criteria span { font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Threat explorer (tabs + elevation drawing) ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; margin-top: 48px; background: var(--paper); border: 1px solid var(--rule); }
.explorer__tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); }
.tab { min-height: 56px; padding: 10px 12px; background: var(--paper); border: 0; border-right: 1px solid var(--rule); font: 750 0.95rem var(--display); font-stretch: 108%; color: var(--steel); cursor: pointer; position: relative; }
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { color: var(--ink); background: var(--zinc); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--orange); }
.tab:hover { color: var(--ink); }
.explorer__fig { background: var(--zinc); padding: clamp(20px, 3vw, 40px); display: grid; place-items: center; border-right: 1px solid var(--rule); }
.explorer__fig svg { width: 100%; height: auto; }
.layer { opacity: 0; transition: opacity .35s; }
.layer.is-on { opacity: 1; }
.explorer__panel { padding: clamp(24px, 3.5vw, 48px); }
.explorer__panel[hidden] { display: none; }
.explorer__panel .mono { color: var(--orange-deep); }
.explorer__panel h3 { margin-top: 10px; }
.explorer__panel ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.explorer__panel li { margin-bottom: 0.4em; }
.textlink { font: 750 0.95rem var(--display); font-stretch: 108%; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.textlink:hover { color: var(--orange-deep); }
.textlink::after { content: "\2192"; }

/* ---------- Failure ledger ---------- */
.ledger { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid #2a3947; counter-reset: l; }
.ledger li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid #2a3947; align-items: start; }
.ledger__n { font: 900 3.2rem/0.9 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.ledger h3 { margin: 4px 0 0; color: #fff; }
.ledger p { margin: 0; color: #c6cdd3; }
.ledger p a { color: var(--orange) !important; }

/* ---------- Photo band ---------- */
.band { position: relative; }
.band picture { aspect-ratio: 21 / 8; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band__cap { position: absolute; right: var(--gut); bottom: 0; transform: translateY(50%); background: var(--paper); max-width: 440px; padding: 22px 26px; border-left: 4px solid var(--orange); box-shadow: 0 20px 40px -24px rgba(6,16,25,.4); }
.band__cap p { margin: 0; font-size: 1rem; }

/* ---------- Sheet index (guide library) ---------- */
.sheets { margin-top: 48px; border: 2px solid var(--ink); background: var(--paper); }
.sheets__head, .sheets a { display: grid; grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1.6fr) 150px; gap: 24px; align-items: center; padding: 18px 24px; }
.sheets__head { background: var(--ink); color: var(--steel-light); }
.sheets ol { list-style: none; margin: 0; padding: 0; }
.sheets li + li { border-top: 1px solid var(--rule); }
.sheets a { color: var(--ink); text-decoration: none; transition: background-color .15s; }
.sheets a:hover, .sheets a:focus-visible { background: var(--zinc); }
.sheets__no { font: 800 1.15rem var(--display); font-stretch: 118%; color: var(--orange-deep); }
.sheets__t { font: 800 1.12rem/1.2 var(--display); font-stretch: 108%; }
.sheets__d { color: var(--steel); font-size: 0.98rem; line-height: 1.45; }
.sheets__g { justify-self: end; color: var(--steel); }
.sheets a:hover .sheets__g { color: var(--orange-deep); }

/* ---------- Timeline ---------- */
.timeline { margin-top: 48px; position: relative; }
.timeline__track { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 20px) / 6); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.timeline__track::-webkit-scrollbar { display: none; }
.step { scroll-snap-align: start; position: relative; padding-top: 44px; }
.step::before { content: ""; position: absolute; top: 15px; left: 0; right: -20px; border-top: 2px dashed var(--rule); }
.step:last-child::before { right: 0; }
.step__dot { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 0.85rem var(--display); z-index: 1; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.step p { font-size: 0.97rem; color: #33404b; margin: 0; }
.timeline__ctrl { display: none; gap: 8px; justify-content: center; margin-top: 18px; }
.timeline__ctrl button { width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-size: 1.1rem; }
.timeline__ctrl button:disabled { opacity: .35; cursor: default; }

/* ---------- Brief CTA ---------- */
.brief-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink); color: #fff; }
.brief-cta picture { height: 100%; }
.brief-cta img { width: 100%; height: 100%; object-fit: cover; }
.brief-cta__body { padding: clamp(36px, 6vw, 80px); align-self: center; }
.brief-cta__body p { color: #c6cdd3; }
.brief-cta__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.brief-cta__list li { display: flex; gap: 12px; align-items: baseline; color: #e6eaed; }
.brief-cta__list li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg) translateY(-1px); }

/* ---------- Guide pages ---------- */
.ghead { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.ghead__bg { position: absolute; inset: 0; z-index: -1; }
.ghead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.ghead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,16,25,.95) 0%, rgba(6,16,25,.75) 55%, rgba(6,16,25,.35) 100%); }
.ghead__in { padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: end; }
.crumbs { margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--steel-light); }
.crumbs a { color: var(--steel-light); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--orange); }
.ghead h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); max-width: 22ch; }
.ghead .lede { color: #d5dbe0; max-width: 60ch; margin-bottom: 0; }
.titleblock { --rv: #3a4a58; border: 2px solid #3a4a58; padding: 18px 20px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-light); background: rgba(6,16,25,.6); }
.titleblock dl { margin: 0; display: grid; gap: 10px; }
.titleblock dt { color: var(--steel-light); }
.titleblock dd { margin: 0; color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: 0; font-stretch: 118%; text-transform: none; }
.titleblock dd.small { font-size: 0.95rem; }

.gbody { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 0.95rem; }
.toc p { color: var(--steel); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(t, decimal-leading-zero) "  "; font: 500 0.72rem var(--mono); color: var(--steel-light); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-color: var(--orange); font-weight: 600; }
.prose { max-width: 72ch; }
.prose > h2 { margin-top: 2.2em; padding-top: 0.8em; border-top: 1px solid var(--rule); font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose figure { margin: 2em 0; }
.prose figure picture { overflow: hidden; }
.prose figcaption { font-size: 0.88rem; color: var(--steel); margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--orange); }

.callout { margin: 2em 0; padding: 22px 26px 22px 24px; background: var(--zinc); border-left: 5px solid var(--orange); }
.callout__label { display: block; color: var(--orange-deep); margin-bottom: 8px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--ink { background: var(--ink); color: #e6eaed; border-left-color: var(--orange); }
.callout--ink .callout__label { color: var(--orange); }
.callout--ink a { color: #fff; }
.callout--spec { background: var(--paper); border: 2px dashed var(--rule); border-left: 5px solid var(--ink); font-size: 0.98rem; }

.table-wrap { margin: 2em 0; overflow-x: auto; border: 1px solid var(--rule); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; line-height: 1.45; }
.spec-table caption { text-align: left; padding: 14px 16px; font: 750 1rem var(--display); font-stretch: 106%; background: var(--zinc); border-bottom: 1px solid var(--rule); }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.spec-table thead th { background: var(--ink); color: #fff; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.spec-table tbody th { font-family: var(--display); font-weight: 750; font-stretch: 104%; width: 26%; }
.spec-table tr:last-child > * { border-bottom: 0; }
.spec-table tr.is-hl > * { background: #fff3ec; }

.matrix { margin: 2em 0; display: grid; gap: 0; border: 2px solid var(--ink); }
.matrix__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.matrix__row + .matrix__row { border-top: 1px solid var(--rule); }
.matrix__if, .matrix__then { padding: 16px 20px; }
.matrix__if { background: var(--zinc); font-weight: 600; }
.matrix__if::before { content: "If "; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; color: var(--orange-deep); text-transform: uppercase; margin-right: 6px; }
.matrix__then::before { content: "Then "; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; color: var(--steel); text-transform: uppercase; margin-right: 6px; }

/* Interactive: generic tool frame */
.tool { margin: 2.4em 0; border: 2px solid var(--ink); background: var(--paper); }
.tool__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--ink); color: #fff; }
.tool__head .mono { color: var(--orange); }
.tool__body { padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { min-height: 44px; padding: 8px 16px; border: 2px solid var(--rule); background: var(--paper); font: 700 0.92rem var(--display); font-stretch: 106%; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool__panel[hidden] { display: none; }
.tool__panel h3 { margin-top: 0; }

/* Spec decoder */
.decoder { font-family: var(--mono); font-size: 0.86rem; }
.decoder__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; width: 100%; padding: 12px 20px; border: 0; border-bottom: 1px solid var(--rule); background: var(--paper); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.decoder__row:hover { background: var(--zinc); }
.decoder__row[aria-expanded="true"] { background: #fff3ec; }
.decoder__row b { font-weight: 500; color: var(--orange-deep); }
.decoder__exp { padding: 14px 20px 18px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1rem; background: #fffaf7; }
.decoder__exp[hidden] { display: none; }
.decoder__exp p:last-child { margin: 0; }

/* Layer cutaway */
.cutaway { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cutaway__fig { background: var(--zinc); padding: 20px; display: grid; place-items: center; }
.cutaway__list { list-style: none; margin: 0; padding: 0; }
.cutaway__btn { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 52px; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--rule); background: var(--paper); font: 700 0.95rem var(--display); font-stretch: 104%; text-align: left; cursor: pointer; color: var(--ink); }
.cutaway__btn .mono { color: var(--steel); min-width: 26px; }
.cutaway__btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.cutaway__btn[aria-selected="true"] .mono { color: var(--orange); }
.cutaway__desc { padding: 18px; font-size: 0.98rem; }
.cutaway svg .lay { transition: opacity .25s, transform .25s; }
.cutaway svg.has-focus .lay { opacity: .25; }
.cutaway svg.has-focus .lay.is-on { opacity: 1; }

/* Checklist */
.checklist__meter { display: flex; align-items: center; gap: 14px; }
.checklist__bar { width: 160px; height: 8px; background: #2a3947; }
.checklist__bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s; }
.checklist__count { color: #fff; }
.checklist fieldset { border: 0; margin: 0; padding: 0; }
.checklist legend { font: 800 1.1rem var(--display); font-stretch: 110%; padding: 18px 22px 8px; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 22px; border-top: 1px solid var(--zinc-2); cursor: pointer; }
.check:hover { background: var(--zinc); }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--orange-deep); }
.check strong { display: block; font-family: var(--display); font-stretch: 104%; font-weight: 700; line-height: 1.3; }
.check span { font-size: 0.94rem; color: var(--steel); }
.check input:checked + span strong { text-decoration: line-through; text-decoration-color: var(--orange); }
.checklist__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 22px; background: var(--zinc); }

/* FAQ */
.faq-search { display: flex; gap: 10px; align-items: center; margin: 1.4em 0; }
.faq-search input { flex: 1; min-height: 50px; padding: 10px 14px; border: 2px solid var(--ink); font: 1rem var(--serif); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font: 750 1.08rem/1.3 var(--display); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.7rem var(--display); color: var(--orange-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; }
.faq__none { color: var(--steel); }

.related { margin-top: 3.2em; }
.related h2 { font-size: 1.5rem; }
.related__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.related__list a { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.related__list a:hover .related__title { color: var(--orange-deep); }
.related__sheet { grid-row: span 2; font: 500 0.78rem var(--mono); letter-spacing: 0.1em; color: var(--orange-deep); padding-top: 4px; }
.related__title { font: 800 1.08rem var(--display); font-stretch: 106%; }
.related__blurb { color: var(--steel); font-size: 0.95rem; }

.endcta { margin-top: 3em; padding: clamp(26px, 4vw, 40px); }
.endcta h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.endcta p { color: #c6cdd3; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); align-items: start; }
.contact-aside { position: sticky; top: 100px; }
.contact-aside ol { padding-left: 1.2em; }
.contact-aside li { margin-bottom: 0.6em; }
.brief { border: 2px solid var(--ink); background: var(--paper); }
.brief__steps { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); }
.brief__steps li { list-style: none; padding: 14px 16px; color: var(--steel-light); font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border-right: 1px solid #22313e; }
.brief__steps li:last-child { border-right: 0; }
.brief__steps li.is-current { color: #fff; box-shadow: inset 0 -4px 0 var(--orange); }
.brief__steps li.is-done { color: var(--orange); }
.brief__steps { margin: 0; padding: 0; }
.brief fieldset { border: 0; margin: 0; padding: 26px clamp(18px, 3vw, 32px) 8px; }
.brief legend { font: 800 1.3rem var(--display); font-stretch: 110%; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.brief legend + * { clear: both; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font: 700 0.95rem var(--display); font-stretch: 104%; }
.field .hint { font-size: 0.88rem; color: var(--steel); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--rule); background: var(--paper); font: 1rem var(--serif); color: var(--ink); border-radius: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--orange); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: 0.9rem; font-weight: 600; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border: 2px solid var(--rule); cursor: pointer; font-size: 0.97rem; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--zinc); }
.opt input { width: 20px; height: 20px; accent-color: var(--orange-deep); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--orange-deep); flex: none; }
.brief__nav { display: flex; justify-content: space-between; gap: 10px; padding: 18px clamp(18px, 3vw, 32px) 26px; border-top: 1px solid var(--rule); clear: both; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 20px; padding: 18px 20px; border-left: 5px solid; }
.form-status--ok { background: #e9f4ec; border-color: #2e7d4a; }
.form-status--err { background: #fbeceb; border-color: #b3261e; }
.js .brief fieldset[data-step]:not(.is-active) { display: none; }
.no-js-note { font-size: 0.9rem; color: var(--steel); }

/* ---------- Plain pages ---------- */
.plain { padding-block: clamp(48px, 7vw, 96px); }
.plain .prose { margin-inline: auto; }
.phead { background: var(--zinc); padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.phead h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(56px, 7vw, 88px); }
.footer__in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 220px; margin-bottom: 20px; }
.footer__brand p { color: #c6cdd3; font-size: 0.98rem; max-width: 44ch; }
.footer__h { color: var(--orange); margin: 6px 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.96rem; }
.footer ul a { text-decoration: none; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px 28px; border-top: 1px solid #22313e; font-size: 0.88rem; color: var(--steel-light); }
.footer__base p { margin: 0; max-width: 80ch; }

/* Reveals now come from the Motion Kit (/assets/motion/). */

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mega__in { grid-template-columns: 1fr 1fr; }
  .mega__feature { display: none; }
  .sheets__head, .sheets a { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr); }
  .sheets__g { display: none; }
  .timeline__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .timeline__ctrl { display: flex; }
}
@media (max-width: 960px) {
  :root { --dock-h: calc(64px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .menu-btn { display: block; }
  .masthead { z-index: 60; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); border-top: 3px solid var(--orange); }
  .dock__a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: #fff; text-decoration: none; font: 500 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
  .dock__a:active { background: var(--plate); }
  .dock__a--main { background: var(--orange); color: var(--ink); }
  .criteria__in { grid-template-columns: repeat(5, minmax(140px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 0; }
  .criteria a { scroll-snap-align: start; }
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .explorer__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 1 0 auto; padding-inline: 18px; }
  .explorer__fig { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ledger li { grid-template-columns: 70px minmax(0, 1fr); gap: 8px 20px; }
  .ledger p { grid-column: 2; }
  .ledger__n { font-size: 2.3rem; grid-row: span 2; }
  .band picture { aspect-ratio: 16 / 9; }
  .band__cap { position: static; transform: none; max-width: none; margin: -32px var(--gut) 0; position: relative; }
  .brief-cta { grid-template-columns: 1fr; }
  .brief-cta picture { aspect-ratio: 16 / 9; }
  .ghead__in { grid-template-columns: 1fr; }
  .titleblock { display: none; }
  .gbody { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--zinc); padding: 18px 20px; }
  .toc ol { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cutaway { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .topline__note { display: none; }
  .topline__in { justify-content: flex-end; }
  .masthead__in { min-height: 66px; }
  .hero { min-height: auto; }
  .hero__in { padding: 160px 0 0; }
  .hero__plate { padding: 26px var(--gut) 30px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .sheets__head { display: none; }
  .sheets a { grid-template-columns: 1fr; gap: 4px; padding: 18px; }
  .timeline__track { grid-auto-columns: 82%; }
  .matrix__row { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .row2, .opts { grid-template-columns: 1fr; }
  .brief__steps li { padding: 12px 8px; font-size: 0.62rem; text-align: center; }
  .footer__in { grid-template-columns: 1fr; }
  .spec-table.stack thead { display: none; }
  .spec-table.stack, .spec-table.stack tbody, .spec-table.stack tr, .spec-table.stack th, .spec-table.stack td { display: block; width: 100%; }
  .spec-table.stack tr { border-bottom: 2px solid var(--ink); }
  .spec-table.stack tbody th { background: var(--zinc); width: 100%; }
  .spec-table.stack td { border-bottom: 1px solid var(--zinc-2); }
  .spec-table.stack td::before { content: attr(data-label); display: block; font: 500 0.68rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 2px; }
  .checklist__bar { width: 80px; }
  .tool__head { flex-wrap: wrap; }
  .brief__nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  .topline, .masthead, .dock, .footer, .toc, .ghead__bg, .checklist__foot, .endcta { display: none !important; }
  .ghead { color: #000; background: none; }
  .ghead::after { display: none; }
  .gbody { display: block; }
}

[hidden] { display: none !important; }
.field .opt { font: 400 0.98rem/1.3 var(--serif); }


/* =====================================================================
   v3 retrofit (2026-11): cinematic dark surfaces, huge expanded display
   type, full-bleed heroes, section-12 patterns, Motion Kit hooks.
   ===================================================================== */
:root { --mk-accent: var(--orange); --mk-arrival-bg: var(--night); --mk-toggle-ink: var(--ink); --orange-hi: #FF8A5C; }
h1 { text-transform: uppercase; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; line-height: .92; }
.section h2, .forces h2, .brief-cta h2, .related__h { text-transform: uppercase; font-weight: 900; font-stretch: 122%; letter-spacing: -.015em; line-height: .95; font-size: clamp(1.9rem, 1rem + 3vw, 3.8rem); }
.slogan { font: italic 400 clamp(1.2rem, 1rem + .8vw, 1.7rem)/1.3 var(--serif); color: var(--orange-hi); margin: .1em 0 .8em; }
.slogan em { color: #fff; }
.btn--line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; clip-path: none; }
.btn--line-light:hover { background: #fff; color: var(--ink); }

/* Masthead: dark, persistent across view transitions */
.masthead { background: rgba(10, 29, 43, .95); border-bottom: 1px solid #1d3242; }
.masthead.is-scrolled { box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .8); }
.nav__link, .nav__link:hover { color: #fff; }
.menu-btn { background: var(--plate); }
.topline { background: var(--night); }

/* ---------- Home hero: full-bleed video, huge expanded headline ---------- */
.hero { min-height: clamp(560px, calc(100svh - 116px), 940px); display: grid; align-items: center; align-content: center; padding-block: clamp(56px, 8vw, 112px); background: var(--night); }
.hero::before { content: none; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__layer { position: absolute; inset: 0; }
.hero__layer picture, .hero__layer img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 16, 26, .9) 0%, rgba(5, 16, 26, .66) 48%, rgba(5, 16, 26, .18) 100%),
  linear-gradient(0deg, rgba(5, 16, 26, .7) 0%, transparent 42%); }
.hero__in, .hero .hero__in { padding: 0 var(--gut); position: relative; }
.hero__kicker { color: var(--orange-hi); margin: 0 0 18px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, .6rem + 4.6vw, 5.6rem); max-width: 15ch; margin: 0 0 .25em; }
.hero__lede { color: #d5dbe0; max-width: 58ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); }
.hero__actions { margin-top: 28px; }
.hero__note, .ghead__note { position: absolute; right: var(--gut); bottom: 14px; margin: 0; font-size: .62rem; color: rgba(255, 255, 255, .55); }

/* ---------- Pattern: scroll-filled giant words (five forces) ---------- */
.forces { background: var(--night); color: #fff; padding-block: clamp(72px, 10vw, 150px); overflow: hidden; }
.forces__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.forces__head .grid-tag { color: var(--steel-light); }
.forces__head .grid-tag__b { color: #fff; border-color: var(--orange); }
.forces__head p { color: #c6cdd3; font-size: 1.1rem; }
.words { list-style: none; margin: 0; padding: 0; border-top: 1px solid #1d3242; }
.words__row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 18rem); gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(20px, 2.6vw, 40px) 0; border-bottom: 1px solid #16293a; }
.words__n { font: 500 1rem/1 var(--mono); color: var(--orange); letter-spacing: .08em; }
.words__w { position: relative; display: block; font: 900 clamp(2.2rem, 1rem + 4.4vw, 6.6rem)/.86 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.03em; white-space: nowrap; }
.words__out { display: block; color: #fff; }
.words__fill { display: none; }
.words__p { margin: 0; color: #aeb8c1; font-size: .95rem; line-height: 1.55; justify-self: end; }
.words__p a { color: var(--orange-hi) !important; white-space: nowrap; }
.mk-on .words__out { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); }
.mk-on .words__fill { display: block; position: absolute; inset: 0; color: #fff;
  --f: clamp(0, (var(--p, 0) - .2) * 2.8, 1); clip-path: inset(-10% calc((1 - var(--f)) * 100%) -10% 0); }
.mk-on .words__row:nth-child(5) .words__fill { color: var(--orange); }
.mk-cine .words__w { translate: calc((.5 - var(--p, .5)) * 8%) 0; }
.mk-cine .words__row:nth-child(even) .words__w { translate: calc((var(--p, .5) - .5) * 8%) 0; }

/* Technical drawing sheet: elevation lines draw in, figure drifts with --p */
.mk-cine .sheetsec .explorer__fig svg { translate: 0 calc((.5 - var(--p, .5)) * 30px); }

/* Failure ledger: giant outlined numerals drift with --p */
.ledger__n { font-size: clamp(3rem, 2rem + 3vw, 5.4rem); }
.mk-cine .ledgersec .ledger li .ledger__n { translate: 0 calc((.5 - var(--p, .5)) * var(--k, 30px)); }
.ledger li:nth-child(2) { --k: 45px; } .ledger li:nth-child(3) { --k: 60px; } .ledger li:nth-child(4) { --k: 75px; } .ledger li:nth-child(5) { --k: 90px; }
.ledger li { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr); }

/* Photo band with parallax */
.band__media { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--ink); }
.band__layer { position: absolute; inset: 0; }
.band picture { aspect-ratio: auto; height: 100%; }
.mk-cine .band__cap { translate: 0 calc((.5 - var(--p, .5)) * 40px); }

/* ---------- Pattern: expanding accordion gallery (guide library + related) ---------- */
.library__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.library__head h2 { margin: 0; }
.library__head .lede { margin: 0; color: #33404b; font-size: 1.05rem; }
.accord { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; height: clamp(420px, 44vw, 560px); }
.accord__item { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: var(--ink); transition: flex .75s cubic-bezier(.2, .7, .2, 1);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.accord__item:first-child { flex-grow: 3.4; }
.accord:hover .accord__item, .accord:focus-within .accord__item { flex-grow: 1; }
.accord .accord__item:hover, .accord .accord__item:focus-within { flex-grow: 3.4; }
.accord__item a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.accord__img, .accord__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.accord__img img { transition: scale 1.2s ease, filter .6s; filter: saturate(.8) brightness(.78); }
.accord__item:hover .accord__img img, .accord__item:focus-within .accord__img img { scale: 1.05; filter: none; }
.accord__item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 16, 26, .94) 0%, rgba(5, 16, 26, .3) 55%, rgba(5, 16, 26, .08) 100%); }
.accord__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(14px, 2vw, 28px); display: grid; gap: 8px; }
.accord__tag { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); }
.accord__label { font: 900 clamp(1rem, .85rem + .6vw, 1.55rem)/1.02 var(--display); font-stretch: 112%; text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto; }
.accord__blurb, .accord__go { max-width: 40ch; font-size: .95rem; line-height: 1.5; color: #c6cdd3; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s ease; }
.accord__go { color: var(--orange-hi); font: 700 .9rem var(--display); }
.accord__item:first-child .accord__blurb, .accord__item:first-child .accord__go { opacity: 1; transform: none; }
.accord:hover .accord__item .accord__blurb, .accord:hover .accord__item .accord__go,
.accord:focus-within .accord__item .accord__blurb, .accord:focus-within .accord__item .accord__go { opacity: 0; }
.accord .accord__item:hover .accord__blurb, .accord .accord__item:hover .accord__go,
.accord .accord__item:focus-within .accord__blurb, .accord .accord__item:focus-within .accord__go { opacity: 1; transform: none; transition-delay: .2s; }
.library .photo-note { text-align: right; color: var(--steel); margin: 14px 0 0; font-size: .64rem; }
[data-motion-tier="essential"] .accord__item, [data-motion-tier="essential"] .accord__blurb, [data-motion-tier="essential"] .accord__go, [data-motion-tier="essential"] .accord__img img { transition: none; }
.related { margin-top: 0; background: var(--night); color: #fff; padding-block: clamp(64px, 9vw, 120px); }
.related .grid-tag { color: var(--steel-light); }
.related .grid-tag__b { color: #fff; border-color: var(--orange); }
.related__h { color: #fff; margin-bottom: clamp(24px, 3vw, 40px); }
.related .accord { height: clamp(360px, 36vw, 480px); }

/* ---------- Pattern: sticky stacking process cards ---------- */
.process__wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.process__intro { position: sticky; top: 120px; }
.stack { list-style: none; margin: 0; padding: 0 0 4vh; display: grid; gap: 22px; }
.stack__card { --k: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; min-height: 220px;
  background: var(--paper); border-top: 5px solid var(--ink); padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 50px -40px rgba(5, 16, 26, .7); }
.stack__card:last-child { border-top-color: var(--orange); }
.mk-on .stack__card { position: sticky; top: calc(110px + var(--k) * 16px); }
.stack__n { font: 900 clamp(3.2rem, 2rem + 3.6vw, 5.6rem)/.8 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.stack__card h3 { margin-top: 4px; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); text-transform: uppercase; }
.stack__card p { margin: 0; color: #33404b; }
.mk-cine .stack__n { translate: 0 calc((.5 - var(--p, .5)) * 24px); }

/* ---------- Pattern: backdrop-video brief ---------- */
.brief-cta { display: block; position: relative; overflow: hidden; isolation: isolate; background: var(--night); }
.brief-cta__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.brief-cta__layer { position: absolute; inset: 0; }
.brief-cta__video { width: 100%; height: 100%; object-fit: cover; }
.brief-cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 16, 26, .94) 0%, rgba(5, 16, 26, .8) 55%, rgba(5, 16, 26, .45) 100%); }
.brief-cta__in { padding-block: clamp(72px, 10vw, 150px); }
.brief-cta__body { padding: 0; max-width: 640px; }
.brief-cta .grid-tag { color: var(--steel-light); }
.brief-cta .grid-tag__b { color: #fff; border-color: var(--orange); }
.mk-cine .brief-cta__body { translate: 0 calc((.5 - var(--p, .5)) * 30px); }

/* ---------- Guide and contact heads: full-bleed photo with parallax ---------- */
.ghead { min-height: clamp(460px, 64svh, 680px); display: grid; align-content: center; padding-block: clamp(56px, 8vw, 104px); background: var(--night); }
.ghead::after { z-index: -1; background: linear-gradient(90deg, rgba(5, 16, 26, .94) 0%, rgba(5, 16, 26, .78) 55%, rgba(5, 16, 26, .4) 100%); }
.ghead__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ghead__layer { position: absolute; inset: 0; }
.ghead__layer picture, .ghead__layer img { width: 100%; height: 100%; object-fit: cover; }
.ghead__in { padding-block: 0; align-items: center; }
.ghead h1 { color: #fff; font-size: clamp(2rem, .9rem + 3.6vw, 4.6rem); max-width: 18ch; margin-bottom: .25em; }
.ghead .crumbs { margin-bottom: 22px; }
.ghead__label { color: var(--orange-hi); margin: 0 0 14px; }
.ghead--center { text-align: center; }
.ghead--center .ghead__in { grid-template-columns: 1fr; }
.ghead--center h1, .ghead--center .lede { margin-inline: auto; }
.ghead--center .crumbs ol { justify-content: center; }
.ghead--center::after { background: radial-gradient(120% 90% at 50% 50%, rgba(5, 16, 26, .7) 0%, rgba(5, 16, 26, .9) 100%); }
.phead h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); }

/* Reading progress on guides, footer accent */
.toc ol { position: relative; }
.mk-on .toc ol::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--orange); transform-origin: 50% 0; scale: 1 var(--p, 0); }
.mk-on .footer__brand img { translate: 0 calc((var(--p, .5) - .5) * -20px); }
.footer__motion { color: #fff; }
.phead { position: relative; }
.mk-on .phead::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--orange); transform-origin: 0 50%; scale: min(1, calc(var(--p, 0) * 3)) 1; }

@media (max-width: 1080px) {
  .process__wrap, .library__head { grid-template-columns: 1fr; }
  .process__intro { position: static; }
  .accord--six .accord__label { font-size: 1rem; }
}
@media (max-width: 960px) {
  .ledger li { grid-template-columns: 90px minmax(0, 1fr); }
  .band__media { aspect-ratio: 16 / 9; }
  .ghead { min-height: 0; }
}
@media (max-width: 860px) {
  .words__row { grid-template-columns: 1fr; gap: 10px; }
  .words__p { justify-self: start; }
}
@media (max-width: 760px) {
  .hero { min-height: clamp(560px, calc(100svh - 104px - var(--dock-h)), 820px); }
  .hero__media::after { background: linear-gradient(0deg, rgba(5, 16, 26, .94) 0%, rgba(5, 16, 26, .72) 55%, rgba(5, 16, 26, .45) 100%); }
  .accord, .related .accord { flex-direction: column; height: auto; gap: 8px; }
  .accord__item, .accord__item:first-child, .accord .accord__item:hover, .accord .accord__item:focus-within { flex: none; min-height: 220px; }
  .accord__blurb, .accord__go, .accord:hover .accord__item .accord__blurb, .accord:hover .accord__item .accord__go,
  .accord:focus-within .accord__item .accord__blurb, .accord:focus-within .accord__item .accord__go { opacity: 1; transform: none; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .mk-on .stack__card { top: calc(80px + var(--k) * 10px); }
}

/* Accordion: collapsed panels show a vertical spine label; the open panel shows the full body */
.accord__spine { position: absolute; left: 50%; bottom: clamp(16px, 2vw, 26px); z-index: 1; writing-mode: vertical-rl; rotate: 180deg; translate: -50% 0; white-space: nowrap;
  font: 600 .95rem/1 var(--display); letter-spacing: .04em; font-stretch: 110%; text-transform: uppercase; color: #fff; opacity: 1; transition: opacity .3s; max-height: calc(100% - 40px); overflow: hidden; }
.accord__body { opacity: 0; transition: opacity .35s; min-width: 15rem; }
.accord__item:first-child .accord__body { opacity: 1; }
.accord__item:first-child .accord__spine { opacity: 0; }
.accord:hover .accord__item .accord__body, .accord:focus-within .accord__item .accord__body { opacity: 0; transition-delay: 0s; }
.accord:hover .accord__item .accord__spine, .accord:focus-within .accord__item .accord__spine { opacity: 1; }
.accord .accord__item:hover .accord__body, .accord .accord__item:focus-within .accord__body { opacity: 1; transition-delay: .28s; }
.accord .accord__item:hover .accord__spine, .accord .accord__item:focus-within .accord__spine { opacity: 0; }
@media (max-width: 760px) {
  .accord__spine, .accord__item:first-child .accord__spine, .accord:hover .accord__item .accord__spine { display: none; }
  .accord__body, .accord:hover .accord__item .accord__body, .accord:focus-within .accord__item .accord__body { opacity: 1; min-width: 0; }
}
.mk-cine .contact-aside { translate: 0 calc((.5 - var(--p, .5)) * 20px); }

/* ---------- Layout fixes (owner: no overlap, no blank half) ---------- */
/* Motion kit contract: hidden states only under html.mk-on, so split words rest in place without it */
html:not(.mk-on) .mk-wi { translate: none !important; animation: none !important; }
html:not(.mk-on) [data-split]:not([data-mk-split]) { opacity: 1; }
.accord__tag, .accord__label, .accord__blurb { margin: 0; }
/* Section heads: label + heading left, intro right (no empty right half on desktop) */
@media (min-width: 761px) {
  .forces__head, .center:has(> .grid-tag), .brief-cta__body { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; text-align: left; }
  .forces__head > .grid-tag, .center:has(> .grid-tag) > .grid-tag, .brief-cta__body > .grid-tag { grid-column: 1; grid-row: 1; justify-content: flex-start; justify-self: start; }
  .center:has(> .grid-tag) > .grid-tag::before { display: none; }
  .forces__head > h2, .center:has(> .grid-tag) > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .forces__head > p, .center:has(> .grid-tag) > .lede { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; border-top: 2px solid var(--orange); padding-top: 1rem; }
  .center:has(> .grid-tag) { margin-bottom: clamp(28px, 4vw, 48px); }
  .brief-cta__body > h2 { grid-column: 1; grid-row: 2 / span 3; margin-bottom: 0; }
  .brief-cta__body > p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .brief-cta__body > .brief-cta__list { grid-column: 2; grid-row: 3; }
  .brief-cta__body > .btn { grid-column: 2; grid-row: 4; justify-self: start; }
  .library__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (min-width: 1200px) {
  .forces__head > p, .center:has(> .grid-tag) > .lede { align-self: end; }
  .library__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
  .library__head h2 { text-wrap: pretty; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .process__intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; }
  .process__intro > .grid-tag { grid-column: 1; grid-row: 1; justify-self: start; }
  .process__intro > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; text-wrap: pretty; }
  .process__intro > .lede { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
}
@media (min-width: 761px) and (max-width: 1199px) { .library__head { align-items: start; } }
