/* MARTENSIA · product chapters: dark sections for the product moments on the light site (Recon, Seal),
 * the hero film, Recon's "pick a requirement" view, and the moments (tabs over one frame). */
/* ── Recon page, November 2026: dark product chapters on the light site, one idea per screen ─────────────────────
   .dk re-declares the site's dark values (brand-tokens.css, brand.css: the dark theme) on the section, so everything
   inside it, buttons, captions, stages, takes the dark look without rules of its own; the ground is the navy of
   the Recon panel on the home page (home.css, .hslide--recon) with a faint drawing grid. The nav takes the same values
   while it sits unscrolled over a dark hero (and no menu of it is open), so the mark and the links stay readable. ── */
.dk, html:has(.rx--hero) nav.site-nav:not(.scrolled):not(:has(details[open], [aria-expanded="true"])) {
  --bg-0: #0a0d14; --bg-1: #11151e; --bg-2: #181d28; --bg-3: #212735; --bg: var(--bg-0); --bg2: var(--bg-1); --site-card: var(--bg-1);
  --line: oklch(100% 0 0 / 0.09); --line-strong: oklch(100% 0 0 / 0.16); --edge: oklch(100% 0 0 / 0.36); --frame: oklch(100% 0 0 / 0.14); --hover: oklch(100% 0 0 / 0.06);
  --fg-0: #ffffff; --fg-1: rgb(255 255 255 / 0.74); --fg-2: rgb(255 255 255 / 0.55); --fg-3: rgb(255 255 255 / 0.42);
  --fg: var(--fg-0); --fg2: var(--fg-1); --fg3: var(--fg-2); --border: rgb(255 255 255 / 0.1); --border-med: rgb(255 255 255 / 0.16);
  --c-fg: #ffffff; --c-fg2: rgb(255 255 255 / 0.72); --c-fg3: rgb(255 255 255 / 0.5); --c-line: rgb(255 255 255 / 0.1);
  --ink: #ffffff; --ink-hover: #e6e6e3; --ink-fg: #0b0c0e; --c-cta: #ffffff; --c-cta-fg: #0b0c0e;
  --accent: oklch(74% 0.15 256); --accent-hover: oklch(80% 0.13 256); --accent-soft: oklch(74% 0.15 256 / 0.15); --accent-line: oklch(74% 0.15 256 / 0.5);
  --ok: oklch(75% 0.13 152); --ok-text: oklch(80% 0.12 152); --warn: oklch(80% 0.12 78); --warn-text: oklch(84% 0.11 78);
  --cv-accent: #6aa5ff; --cv-mark: #2a78ff;
  --c-stage: radial-gradient(120% 95% at 56% 42%, #252a35 0%, #141821 55%, #0b0e14 100%);
  color-scheme: dark;
}
.dk { position: relative; isolation: isolate; color: var(--fg-0); background: radial-gradient(70% 55% at 80% 0%, rgb(41 112 230 / 0.2), transparent 70%), #0b0f17; }
html:not([data-theme="dark"]):has(.rx--hero) nav.site-nav:not(.scrolled):not(:has(details[open], [aria-expanded="true"])) img.mark { filter: invert(1) brightness(1.1); }
/* the phone menu button inherits the light nav's ink; over the dark hero it takes the hero's */
html:has(.rx--hero) nav.site-nav:not(.scrolled):not(:has(details[open], [aria-expanded="true"])) .kmn-hamburger { color: var(--fg-0); }
/* a menu opened over the dark hero (the Products menu, the phone drawer): the nav takes its solid, scrolled look */
html[data-brand="next"]:has(.rx--hero) nav.site-nav:not(.scrolled):has(details[open], [aria-expanded="true"]) { background: color-mix(in oklch, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line); }
.dk::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(90% 70% at 50% 25%, #000 25%, transparent 85%); mask-image: radial-gradient(90% 70% at 50% 25%, #000 25%, transparent 85%); }
.rx { padding: 120px 0; }
.dk + .dk { padding-top: 24px; }                        /* a run of dark chapters reads as one band */
.rx__in { max-width: 1280px; margin: 0 auto; padding: 0 44px; }
.rx__in--center { display: grid; justify-items: center; text-align: center; }
.rx .section-mono { color: var(--accent); }
.rx__head { max-width: 760px; margin-bottom: 52px; }
.rx__h2 { margin: 0; font: 600 clamp(32px, 4.2vw, 56px)/1.04 var(--font-display, var(--font)); letter-spacing: -0.035em; color: var(--fg-0); text-wrap: balance; }
.rx__p { margin: 20px 0 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--fg-1); }

/* the hero: the promise large, the product larger */
.rx--hero { padding: 136px 0 80px; overflow: hidden; }
.rx--hero .hero-eyebrow { margin: 0 0 24px; color: var(--fg-2); }
.rx__h1 { margin: 0; max-width: 15ch; font: 600 clamp(44px, 6.6vw, 92px)/0.98 var(--font-display, var(--font)); letter-spacing: -0.045em; color: var(--fg-0); text-wrap: balance; }
.rx__lede { margin: 26px 0 0; max-width: 640px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--fg-1); text-wrap: pretty; }
.rx__actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.rx--hero .hero-meta-row { margin-top: 22px; }
.rx__film { max-width: 1280px; margin: 64px auto 0; padding: 0 44px; }
.rx__frame { border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 50px 120px -50px rgb(41 112 230 / 0.55), 0 30px 60px -30px rgb(0 0 0 / 0.85); }
.rx__frame :is(img, video) { display: block; width: 100%; height: auto; }
.rx__film .stage-caption { margin-top: 14px; text-align: center; }

/* "pick a requirement": the sheet and the part side by side, the list under them */
.cv { display: grid; gap: 22px; }
.cv__panes { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 16px; }
.cv__sheet { position: relative; aspect-ratio: 3308 / 2339; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.cv__sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cv__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv__balloon { cursor: pointer; }
.cv__balloon > circle:not(.cv__halo) { fill: #fff; stroke: #1f8a4c; stroke-width: 1.6; transition: stroke 0.2s; }
.cv__balloon.is-open > circle:not(.cv__halo) { stroke: #b7791f; }
.cv__balloon text { font: 600 11px var(--font); fill: #1d2129; pointer-events: none; }
.cv__halo { fill: rgb(41 112 230 / 0.16); stroke: #2970e6; stroke-width: 2; opacity: 0; transition: opacity 0.2s; }
.cv__balloon:hover .cv__halo { opacity: 0.55; }
.cv__balloon.is-sel .cv__halo { opacity: 1; }
.cv__balloon.is-sel > circle:not(.cv__halo) { stroke: #2970e6; stroke-width: 2.4; }
.cv__model { position: relative; min-height: 300px; overflow: hidden; border-radius: 12px;
  background: radial-gradient(120% 95% at 56% 42%, #252a35 0%, #141821 55%, #0b0e14 100%); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.cv__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.cv__hint { position: absolute; left: 14px; bottom: 12px; z-index: 1; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); pointer-events: none; }
.cv__chip { position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 10px; border-radius: 6px; background: rgb(11 14 20 / 0.9); box-shadow: 0 0 0 1px rgb(106 165 255 / 0.6);
  font: 500 12.5px/1.2 var(--mono); color: #fff; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.cv__chip.is-on { opacity: 1; }
.cv__side { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px 40px; align-items: start; }
.cv__head { display: grid; gap: 6px; }
.cv__head b { font: 600 15px/1.2 var(--font-display, var(--font)); color: var(--fg-0); }
.cv__head > span { font: 400 12px/1.4 var(--mono); color: var(--fg-2); }
.cv__readout { grid-column: 1; margin: 0; display: grid; align-content: start; gap: 6px; min-height: 96px; }
.cv__rk { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cv__readout b { font: 500 16px/1.35 var(--mono); color: var(--fg-0); }
.cv__rv { font-size: 14px; line-height: 1.5; color: var(--fg-1); }
.cv__rv.is-found::before { content: "✓ "; color: var(--ok-text); }
.cv__rv.is-open::before { content: "? "; color: var(--warn-text); }
.cv__list { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.cv__item { width: 100%; min-height: 38px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 8px; align-items: center; padding: 0 8px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--fg-1); font: 500 12.5px/1.2 var(--mono); text-align: left; cursor: pointer;
  transition: background-color 0.15s, color 0.15s; }
.cv__item:hover { background: var(--hover); color: var(--fg-0); }
.cv__item.is-sel { background: rgb(106 165 255 / 0.14); color: var(--fg-0); box-shadow: inset 2px 0 0 var(--cv-accent); }
.cv__item:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: -2px; }
.cv__n { color: var(--fg-3); }
.cv__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv__v { text-align: center; }
.cv__item.is-found .cv__v { color: var(--ok-text); }
.cv__item.is-open .cv__v { color: var(--warn-text); }
.cv__cap { margin-top: 18px; }
.cv.no-webgl .cv__panes { grid-template-columns: minmax(0, 1fr); }
.cv.no-webgl .cv__model { display: none; }

/* the 3D stages in a dark chapter: the drawing side draws white on the stage's own dark paper */
html[data-brand="next"] .dk.rx .stage .split3d, .dk .split3d { background-color: #141821; background-image: var(--c-stage); color: #e6e9ee; }
.dk .split3d__poster--light { display: none; }
.dk .split3d__poster--dark { display: block; }

/* detail, folded: the steps of a build, the standards behind a scan */
.rx__more { margin-top: 40px; border-top: 1px solid var(--line); }
.rx__more > summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font: 500 15px/1.3 var(--font); color: var(--fg-0); }
.rx__more > summary::-webkit-details-marker { display: none; }
.rx__more > summary::after { content: "+"; flex: none; font: 400 20px/1 var(--mono); color: var(--fg-2); transition: rotate 0.2s; }
.rx__more[open] > summary::after { rotate: 45deg; }
.rx__more > summary:hover { color: var(--accent-hover); }
.rx__more > summary:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 4px; border-radius: 4px; }
.rx__more .steps { margin: 4px 0 8px; }
.rx__more > p { max-width: 640px; margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.rx__more .chips { margin: 4px 0 12px; }
.rx__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.rx__grid .rx__p { max-width: none; }

@media (max-width: 1100px) {
  .cv__side { grid-template-columns: minmax(0, 1fr); }
  .cv__list { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rx { padding: 72px 0; }
  .dk + .dk { padding-top: 8px; }
  .rx__in, .rx__film { padding: 0 16px; }
  .rx--hero { padding: 112px 0 48px; }
  .rx__film { margin-top: 40px; }
  .rx__head { margin-bottom: 32px; }
  .cv__panes { grid-template-columns: minmax(0, 1fr); }
  .cv__model { min-height: 0; aspect-ratio: 4 / 3; }
  .rx__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .cv__list { grid-template-columns: minmax(0, 1fr); }
  .rx__actions .btn-hero { width: 100%; justify-content: center; }
}
.rx__grid .rx__h2 { font-size: clamp(30px, 3.3vw, 44px); }

/* the hero film: the app itself, with a pause button in its corner (film.js) */
.rx__frame { position: relative; }
.rx__video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1000; background: #f4f4f2; }
.rx__pause { position: absolute; right: 12px; bottom: 12px; z-index: 1; height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 12px;
  border: 0; border-radius: 16px; background: rgb(11 14 20 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 12px/1 var(--font); color: #fff; cursor: pointer; transition: background-color 0.15s; }
.rx__pause:hover { background: rgb(11 14 20 / 0.86); }
.rx__pause:focus-visible { outline: 2px solid var(--cv-accent, #6aa5ff); outline-offset: 2px; }
.rx__pause::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor;
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.rx__pause[data-state="paused"]::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 560px) { .rx__pause { right: 8px; bottom: 8px; } }

/* moments: one frame, a few tabs over it (Seal: what the client sees); moments.js switches them, nothing turns by itself */
.rx__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rx__head--center .rx__p { margin-left: auto; margin-right: auto; }
.mo { display: grid; justify-items: center; gap: 22px; }
.mo__tabs { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 12px;
  background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.mo__tabs::-webkit-scrollbar { display: none; }
.mo__tab { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: none; color: var(--fg-1); font: 500 14px/1 var(--font); cursor: pointer;
  transition: background-color 0.15s, color 0.15s; }
.mo__tab:hover { color: var(--fg-0); }
.mo__tab[aria-selected="true"] { background: #fff; color: #0b0c0e; }
.mo__tab:focus-visible { outline: 2px solid var(--cv-accent, #6aa5ff); outline-offset: 2px; }
.mo__frame { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #f4f4f2;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 50px 120px -50px rgb(41 112 230 / 0.45), 0 30px 60px -30px rgb(0 0 0 / 0.85); }
.mo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.mo__img.is-on { opacity: 1; }
.mo__line { margin: 0; max-width: 640px; min-height: 3em; text-align: center; font-size: 17px; line-height: 1.5; color: var(--fg-1); }
@media (prefers-reduced-motion: reduce) { .mo__img { transition: none; } }
@media (max-width: 560px) { .mo__tab { padding: 0 12px; font-size: 13px; } .mo__line { font-size: 15px; } }
