/* Doclume light luxe. System fonts only. Shared colour tokens below.
   --ground #F5F1E8 main background (warm ivory); --panel #E8DECC / --panel-2
   #EDE4CF alternate champagne surfaces; --dark #181818 dark sections, nav,
   footer; --ink #181818 primary text on light; --paper #F5F1E8 text on dark;
   --accent #B78B45 restrained bronze (fills, markers, large text on dark);
   --bronze-ink #6E5626 bronze-brown for small text/links on light (bronze
   fails 4.5:1 on pale); --beige #D8C19A detail on dark only.
   CTA text on bronze is --on-accent #181818 (charcoal). */
:root {
  --ground: #F5F1E8;
  --panel: #E8DECC;
  --panel-2: #EDE4CF;
  --dark: #181818;
  --dark-2: #232323;
  --lined: #C9BC9C;
  --lined-d: #3A3A3A;
  --lined-d: #3A3A3A;
  --paper: #F5F1E8;
  --paper-2: #EFE7D3;
  --ink: #181818;
  --muted: #5A5347;
  --muted-d: #C9C0AC;
  --line: #C9BC9C;
  --accent: #B78B45;
  --accent-deep: #6E5626;
  --accent-visited: #54431F;
  --accent-dark-bg: #C79A52;
  --heading: #123B2C;
  --forest: #08251D;
  --on-accent: #181818;
  --beige: #D8C19A;
  --ok: #43A86B;
  --focus: #181818;
  --focus-dark: #F5F1E8;
  --r: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-settle: cubic-bezier(0.2, 0.9, 0.25, 1.04);
  --max: 1180px;
  --measure: 44rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
}
/* Explicit link states on light surfaces. Specificity beats bare `a` so
   button labels below always win for buttons. */
a:link { color: var(--accent-deep); }
a:visited { color: var(--accent-visited); }
a:hover { color: #7F6530; }
a:active { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Links on dark surfaces. */
.masthead a:link, .colophon a:link, .demo a:link, .band-ink a:link { color: var(--accent-dark-bg); }
.masthead a:visited, .colophon a:visited, .demo a:visited, .band-ink a:visited { color: #A98A4E; }
.masthead a:hover, .colophon a:hover, .demo a:hover, .band-ink a:hover { color: var(--beige); }
.masthead a:active, .colophon a:active, .demo a:active, .band-ink a:active { color: var(--paper); }
/* Buttons always beat link states: later source order + equal-or-higher specificity. */
.btn, .btn:link, .btn:visited, .btn:hover, .btn:active { text-decoration: none; }
.btn-gold, .btn-gold:link, .btn-gold:visited { color: var(--paper); }
.btn-gold:hover, .btn-gold:active { color: var(--paper); }
.btn-line, .btn-line:link, .btn-line:visited { color: var(--ink); border-color: var(--ink); }
.btn-line:hover, .btn-line:active { color: var(--ink); border-color: var(--ink); }
.demo .btn-line, .demo .btn-line:link, .demo .btn-line:visited,
.masthead .btn-line, .masthead .btn-line:link, .masthead .btn-line:visited { color: var(--paper); border-color: var(--paper); }
.btn-link, .btn-link:link, .btn-link:visited { color: var(--ink); }
.btn-link:hover, .btn-link:active { color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--accent); color: var(--forest);
  padding: 0.7rem 1.1rem; border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.masthead :focus-visible, .demo :focus-visible, .colophon :focus-visible { outline-color: var(--focus-dark); }
::selection { background: var(--heading); color: var(--beige); }
img { max-width: 100%; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 24, 24, 0.97);
  border-bottom: 1px solid var(--lined-d, #3A3A3A);
}
.masthead-inner { display: flex; align-items: center; gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--paper); text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; align-self: center; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-by { font-size: 0.78rem; color: var(--muted-d); }
.site-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--paper); text-decoration: none; font-size: 0.95rem;
  padding: 0.6rem 0.85rem; border-radius: 999px; display: inline-block; min-height: 44px; line-height: 1.5;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.site-nav a:hover { background: #2B2B2B; }
.site-nav a[aria-current="page"] { background: #2B2B2B; box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav a:active { transform: scale(0.97); }
.nav-toggle {
  display: none; background: transparent; color: var(--paper); font: inherit;
  border: 1px solid var(--lined); border-radius: 999px; padding: 0.6rem 1.1rem; min-height: 44px;
  transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.97); }

/* ---------- Controls ---------- */
.btn {
  display: inline-block; min-height: 52px; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; text-align: center;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--dark); color: var(--paper); box-shadow: 0 10px 28px rgba(24, 24, 24, 0.25); }
.btn-gold:hover { background: #303030; box-shadow: 0 14px 32px rgba(24, 24, 24, 0.3); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: rgba(24, 24, 24, 0.06); }
.btn-line:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { transform: translateY(-1px); }
  .btn-gold:active { transform: scale(0.97); }
}

/* ---------- Hero: studio launch, copy + product visual side by side ---------- */
.hero { position: relative; overflow: clip; padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(2.5rem, 6vh, 4rem); text-align: left; background: radial-gradient(120% 70% at 50% -10%, #FFFFFF 0%, var(--ground) 60%), var(--ground); color: var(--ink); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow::before {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: -30vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(183, 139, 69, 0.10), transparent);
}
.hero-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; grid-template-columns: 1fr 1.05fr; }
.hero-copy { min-width: 0; }
.hero .kicker { color: var(--accent-deep); }
h1.display { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.0; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 1rem; text-wrap: balance; color: var(--heading); }
h1.display .thin { font-weight: 300; color: var(--muted); }
.hero .lede { color: var(--ink); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 33rem; margin: 0 0 1.5rem; }
.hero .lede strong { color: var(--ink); }
.hero .cta-row { justify-content: flex-start; align-items: center; }
/* Subordinate controls: secondary link + quiet replay sit below the Store CTA. */
.btn-link { color: var(--ink); font-weight: 700; padding: 0.85rem 0.4rem; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }
/* Replay control: quiet tertiary action, only offered when motion will run. */
.replay { display: none; background: none; border: none; padding: 0.4rem 0.2rem; margin: 0; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.playable .replay { display: inline-block; }
.replay:hover { color: var(--ink); }
.replay:active { transform: scale(0.97); }
/* Folio product scene: dimensional WebGL book over a composed static fallback.
   The genuine screenshot sits clear of the 3D with no decorative overlay. */
.folio-scene { position: relative; min-width: 0; min-height: 440px; }
.folio-fallback { position: relative; z-index: 0; height: 300px; }
.folio-book { position: absolute; left: 50%; top: 8px; width: min(72%, 300px); height: 250px; transform: translateX(-50%) rotateX(12deg) rotateZ(-4deg); border-radius: 10px;
  background: linear-gradient(135deg, #2A2A2A 0%, #181818 70%);
  border: 1px solid #3A3A3A;
  box-shadow: 0 40px 80px rgba(24,24,24,0.35), inset 0 1px 0 rgba(245,241,232,0.12); }
.folio-book::before { content: ""; position: absolute; inset: 14px 0 14px 26px; border-radius: 0 6px 6px 0;
  background: repeating-linear-gradient(to bottom, #CBB489 0 3px, #A98F5F 3px 4px); opacity: 0.9; }
.folio-ribbon { position: absolute; left: 52px; top: -6px; width: 14px; height: 120px; background: var(--accent); border-radius: 2px; }
.folio-shot { position: relative; z-index: 1; width: min(100%, 560px); margin: -70px auto 0; }
.folio-shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--lined); box-shadow: 0 30px 70px rgba(24,24,24,0.28); background: #fff; }
.folio-shot figcaption, .figure-wide figcaption { color: var(--muted); font-size: 0.85rem; padding-top: 0.6rem; }
.demo-shot figcaption { color: var(--muted-d); font-size: 0.85rem; padding-top: 0.6rem; }
/* Entrance: preset state while the hero has no .played flag (cinematic tier). */
html.playable .hero:not(.played) .folio-fallback { opacity: 0; transform: translateY(30px); }
html.playable .hero:not(.played) .hero-copy .rv { opacity: 0; transform: translateY(26px); }
.folio-fallback { transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out); }
.hero.played .folio-fallback { opacity: 1; transform: none; }

/* Shared type primitives (used on every page) */
.kicker { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--heading); font-weight: 700; margin: 0 0 1rem; }
.demo .kicker { color: var(--accent); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36rem; margin: 0 0 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0 0 1.6rem; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; padding: 1.2rem 0 0; font-size: 0.9rem; }
.hero-meta li { display: flex; gap: 0.45rem; align-items: baseline; }

/* ---------- WebGL layers (progressive enhancement) ---------- */
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; visibility: hidden; transition: opacity 900ms var(--ease-out); }
html.webgl .gl { opacity: 1; visibility: visible; }
.folio-scene .gl { z-index: 1; }
.folio-scene .folio-fallback { position: relative; z-index: 0; }
html.webgl .folio-scene .folio-fallback { visibility: hidden; }
html.webgl .folio-scene .folio-shot { visibility: visible; }

/* ---------- Reveal choreography (UI tier: fast, interruptible; never traps content) ----------
   Content is visible by default. Hidden pre-state applies only when JS confirms
   IntersectionObserver + motion allowed (html.anim). A safety timer in site.js
   forces .in so fast scroll or capture never leaves sections empty. */
.rv { opacity: 1; transform: none; }
html.anim .rv { opacity: 0; transform: translateY(14px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); transition-delay: var(--d, 0ms); }
html.anim .rv.in { opacity: 1; transform: none; }
/* Grid blowout guards: children may not force a track wider than the viewport. */
.hero-grid > *, .demo-row > *, .split > *, .wrap { min-width: 0; }
.hero-copy p, .demo-text p, .prose p, figcaption { overflow-wrap: break-word; }

/* ---------- Demonstration: real screenshots carry the explanation ---------- */
.demo { position: relative; background: var(--dark); border-top: 1px solid var(--lined-d); border-bottom: 1px solid var(--lined-d); padding: clamp(2.5rem, 6vh, 4rem) 0; color: var(--paper); }
.demo h2.big { color: var(--paper); }
.demo-rows { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: clamp(2rem, 5vh, 3.5rem); }
.demo-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; min-width: 0; }
.demo-row:nth-child(even) .demo-text { order: 2; }
.demo-row:nth-child(even) .demo-shot { order: 1; }
.demo-text { min-width: 0; }
.demo-text h3 { margin: 0 0 0.5rem; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--paper); }
.demo-text p { margin: 0; color: var(--muted-d); }
.demo-shot { margin: 0; min-width: 0; }
.demo-shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--lined-d); box-shadow: 0 24px 60px rgba(0,0,0,0.5); background: #fff; }
.demo-shot figcaption { color: var(--muted-d); }

/* ---------- Editorial sections ---------- */
.band-paper { background: var(--panel); color: var(--ink); }
.band-paper .kicker { color: var(--accent-deep); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(3.5rem, 9vh, 6rem) 0; align-items: start; }
h2.big { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 1.2rem; text-wrap: balance; }
.band-paper h2.big { color: var(--heading); }
.band-ink h2.big { color: var(--heading); }
.prose p { margin: 0 0 1rem; }
.prose { max-width: var(--measure); }
.fact-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--heading); }
.fact-rows li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--heading); align-items: baseline; }
.fact-rows .n { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--accent-deep); }
.fact-rows h3 { margin: 0 0 0.25rem; font-size: 1.15rem; color: var(--heading); }
.fact-rows p { margin: 0; color: var(--muted); }
.band-ink { background: var(--ground); }
.limit-band { border-top: 1px solid var(--lined); padding: clamp(3rem, 8vh, 5rem) 0; }
.limit-band .note-card { border: 1px solid var(--lined); border-radius: var(--r); padding: 1.6rem 1.8rem; background: var(--panel-2); max-width: var(--measure); }
.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 1.6rem; font-weight: 700; }
.link-row a { color: var(--accent-deep); text-underline-offset: 3px; }
.link-row a:hover { color: var(--accent-deep); }
.band-paper a { color: var(--accent-deep); }
.cta-band a, .sysreq a { color: var(--accent-deep); }
.cta-band .sysreq, .sysreq { color: var(--ink); }
.figure-wide { margin: 0; padding: 0 0 clamp(3rem, 8vh, 5rem); }
.figure-wide img { width: 100%; height: auto; display: block; border-radius: var(--r); border: 1px solid var(--lined); }
.figure-wide figcaption { color: var(--muted); font-size: 0.9rem; padding-top: 0.7rem; }
.cta-band { text-align: left; padding: 0 0 clamp(3.5rem, 9vh, 6rem); }
.cta-band .cta-row { margin-bottom: 1rem; }

/* ---------- Docs / download / legal pages: dark luxe ---------- */
.page-ink { background: radial-gradient(90% 40% at 50% 0%, #FFFFFF 0%, var(--ground) 60%), var(--ground); color: var(--ink); }
.page-ink .crumbs { color: var(--muted); padding-top: 1.6rem; }
.page-ink .crumbs a { color: var(--accent-deep); }
.sheet { max-width: var(--measure); margin: 0 auto; padding: 0 0 4rem; }
.page-hero { border: 1px solid var(--lined); border-radius: 20px; background: linear-gradient(180deg, rgba(183,139,69,0.10), rgba(183,139,69,0) 55%), var(--panel-2); padding: clamp(1.6rem, 4vw, 2.6rem); margin: 1.2rem 0 0.4rem; box-shadow: 0 20px 50px rgba(24,24,24,0.12); }
.page-hero .kicker { margin-bottom: 0.6rem; }
.sheet h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.02; margin: 0.4rem 0 1rem; color: var(--heading); text-wrap: balance; }
.sheet .lede { color: var(--ink); }
.sheet h2 { color: var(--heading); font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 2.2rem 0 0.7rem; letter-spacing: -0.015em; padding-top: 1.4rem; border-top: 1px solid var(--lined); }
.sheet h2:first-of-type { border-top: 0; padding-top: 0; }
.sheet h3 { color: var(--ink); margin: 1.4rem 0 0.4rem; }
.sheet p { color: var(--muted); }
.sheet li { color: var(--muted); }
.sheet a { color: var(--accent-deep); }
.sheet a:visited { color: var(--accent-visited); }
.sheet code { background: var(--panel); border: 1px solid var(--lined); color: var(--accent-deep); padding: 0.15em 0.45em; border-radius: 6px; }
.sheet strong { color: var(--ink); }
.facts { width: 100%; border-collapse: collapse; margin: 1.2rem 0; background: var(--panel); border-radius: var(--r); overflow: hidden; border: 1px solid var(--lined); color: var(--ink); }
.facts caption { text-align: left; padding: 0.6rem 0; color: var(--muted); }
.facts th, .facts td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--lined); vertical-align: top; }
.facts thead th { background: #232323; color: var(--paper); }
.facts tbody th { color: var(--paper); }
.note { background: rgba(183, 139, 69, 0.10); border: 1px solid #7A5F2A; border-radius: 12px; padding: 0.9rem 1.1rem; color: var(--ink); }
.note a { color: var(--accent-deep); }
.faq { border: 1px solid var(--lined); border-radius: var(--r); overflow: hidden; background: var(--panel-2); }
.faq h3 { margin: 0; padding: 1.1rem 1.3rem 0.2rem; font-size: 1.08rem; }
.faq h3 + p { margin: 0; padding: 0 1.3rem 1.1rem; border-bottom: 1px solid var(--lined); }
.faq h3:last-of-type + p, .faq p:last-child { border-bottom: 0; }
.steps { list-style: none; counter-reset: step; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.7rem; }
.steps li { counter-increment: step; position: relative; background: var(--panel-2); border: 1px solid var(--lined); border-radius: 14px; padding: 1rem 1.2rem 1rem 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--forest); font-weight: 800; font-size: 0.9rem; display: grid; place-items: center; }
.page-cta { margin: 2.4rem 0 0; border: 1px solid var(--lined); border-radius: var(--r); padding: 1.6rem; background: var(--panel); display: grid; gap: 0.8rem; color: var(--ink); }
.page-cta p { margin: 0; }
.fourohfour-num { font-size: clamp(4rem, 18vw, 9rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--heading); margin: 0; }
.fourohfour-num span { color: var(--accent-deep); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; }

/* ---------- Colophon ---------- */
.colophon { background: var(--dark); color: var(--muted-d); border-top: 1px solid var(--lined); }
.colophon a { color: var(--beige); }
.colophon-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 1.5rem; padding-top: 2.4rem; padding-bottom: 1rem; }
.colophon-brand { color: var(--paper); font-weight: 800; font-size: 1.2rem; }
.colophon-brand span { font-weight: 400; color: var(--muted-d); font-size: 0.95rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.colophon-head { color: var(--paper); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.6rem; }
.colophon-base { border-top: 1px solid var(--lined); padding-top: 1rem; padding-bottom: 1.4rem; font-size: 0.9rem; }

/* ---------- Responsive recomposition ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .cta-row { justify-content: center; }
  .folio-scene { min-height: 0; }
  .demo-row { grid-template-columns: 1fr; }
  .demo-row:nth-child(even) .demo-text { order: 0; }
  .demo-row:nth-child(even) .demo-shot { order: 0; }
  .split { grid-template-columns: 1fr; }
  .colophon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; flex: none; }
  .masthead-inner { flex-wrap: nowrap; gap: 0.6rem; }
  .brand { margin-right: auto; min-width: 0; }
  .brand-by { display: none; }
  .brand-name { font-size: 1.1rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--lined); box-shadow: 0 24px 50px rgba(24,24,24,0.25); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.6rem 1.25rem 1rem; }
  .site-nav a { color: var(--ink); }
  .site-nav a:hover { background: var(--panel); }
  .site-nav a[aria-current="page"] { background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent-deep); }
  .hero { padding-top: 1.6rem; text-align: center; }
  .hero-grid { gap: 1rem; }
  h1.display { font-size: clamp(2.1rem, 10.5vw, 2.7rem); line-height: 1.02; margin-bottom: 0.7rem; }
  .hero .lede { font-size: 1rem; margin-bottom: 1rem; }
  .hero .cta-row { margin-bottom: 0; gap: 0.4rem 0.8rem; }
  .hero .btn { min-height: 48px; font-size: 1rem; padding: 0.75rem 1.4rem; }
  .folio-scene { min-height: 0; }
  .folio-fallback { height: 190px; }
  .folio-book { width: min(56%, 190px); height: 160px; }
  .folio-shot { margin-top: -46px; width: min(100%, 520px); }
  .demo-rows { gap: 2.2rem; }
  .demo-text h3 { font-size: 1.2rem; }
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; width: 100%; }
  .facts thead { position: absolute; left: -9999px; }
  .facts tr { border-bottom: 2px solid var(--lined); }
  .fact-rows li { grid-template-columns: 1fr; gap: 0.2rem; }
  figure, .demo-shot, .folio-shot, .figure-wide { margin-left: 0; margin-right: 0; min-width: 0; max-width: 100%; }
  img { max-width: 100%; height: auto; }
}
@media (min-width: 1700px) {
  :root { --max: 1340px; }
  body { font-size: 1.15rem; }
}
@media print {
  .masthead, .colophon, .nav-toggle, .cta-row { display: none; }
  .gl { display: none !important; }
}

/* ---------- Reduced motion and no-JS: deliberately composed static states ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .rv { opacity: 1; transform: none; }
  .gl { display: none !important; }
}
html:not(.js) .rv { opacity: 1; transform: none; }
html:not(.js) .gl { display: none !important; }
