/* Approved editorial palette. Opaque light/dark pairs are tested in
   tests/editorial-contrast.test.mjs; keep supporting text on these surfaces. */
html.editorial-site {
  --bg: #f8f7f4;
  --text: #17191e;
  --muted: #555b66;
  --accent: #4a5eea;
  --border: #d8d9dd;
  color-scheme: light;
}
html.editorial-site[data-theme="dark"] {
  --bg: #111318;
  --text: #f3f4f6;
  --muted: #a8afbb;
  --accent: #9ba9ff;
  --border: #444b59;
  color-scheme: dark;
}
.editorial-site body { background: var(--bg) !important; color: var(--text) !important; }
.editorial-site body::before, .editorial-site body::after,
.editorial-site .ambient-smoke-stage, .editorial-site .boot-glow,
.editorial-site .mp-field { display: none !important; }
.editorial-site .cinematic-header,
.editorial-site .cinematic-header.is-light {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.editorial-site .cinematic-header a,
.editorial-site .cinematic-header button { color: var(--text) !important; opacity: 1 !important; }
.editorial-site .theme-toggle { background: var(--bg) !important; border-color: var(--muted) !important; }
.editorial-site .cinematic-hero-scroll { height: auto !important; min-height: 0 !important; background: var(--bg); color: var(--text); }
.editorial-site .cinematic-hero-sticky { position: relative; height: auto; min-height: 850px; background: var(--bg); overflow: visible; }
.editorial-site .cinematic-hero-sticky::before { display: none; }
.editorial-site .cinematic-hero-stage {
  padding: 150px 6vw 100px;
  min-height: 850px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  align-content: center;
  align-items: center;
  row-gap: 28px;
}
.editorial-site .cinematic-hero-copy { grid-column: 1; grid-row: 1; max-width: 740px; }
.editorial-site .cinematic-hero-copy h1 { font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.05; white-space: normal; color: var(--text); max-width: 700px; letter-spacing: -.025em; text-wrap: balance; }
.editorial-site .hero-proposition { font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.3; max-width: 620px; margin: 30px 0 22px; color: var(--text) !important; text-wrap: pretty; }
.editorial-site .cinematic-deck { font-size: 15px; line-height: 1.6; color: var(--muted) !important; margin: 0; max-width: 550px; }
.editorial-site .cinematic-button-primary { background: var(--accent); color: var(--bg); }
.editorial-site .cinematic-button-ghost { background: transparent; border-color: var(--muted); color: var(--text); }
.editorial-site .cinematic-button:hover { text-decoration: underline; }
.editorial-site .cinematic-links { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; }
.editorial-site .cinematic-links a { color: var(--muted); font-size: 13px; text-decoration: underline; }
.headset-viewer { grid-column: 2; grid-row: 1 / 3; width: 100%; margin: 0; text-align: center; }
.headset-stage { position: relative; height: 350px; }
.headset-stage img, .headset-stage canvas { width: 100%; height: 100%; display: block; border: 0; border-radius: 0; box-shadow: none; }
.headset-stage img { object-fit: cover; }
.headset-stage canvas { touch-action: pan-y; cursor: grab; }
.headset-stage canvas:active { cursor: grabbing; }
.headset-viewer [hidden] { display: none !important; }
.headset-actions { min-height: 44px; display: flex; justify-content: center; }
.headset-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--muted); border-radius: 999px; background: var(--bg); color: var(--text); font: 500 13px var(--font-body); cursor: pointer; }
.headset-actions button:hover { border-color: var(--accent); text-decoration: underline; }
.headset-actions button:disabled { cursor: progress; }
.editorial-site .headset-status { min-height: 36px; font: 12px/1.5 var(--font-body); color: var(--muted) !important; margin: 8px 0 0; }
.editorial-site :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.editorial-site .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.editorial-site #publications { background: var(--bg) !important; padding-top: 64px; padding-bottom: 64px; }
.editorial-site #publications::before, .editorial-site #publications::after,
.editorial-site #publications .section-block::before, .editorial-site #publications .section-block::after { display: none !important; }
.editorial-site #publications .section-title { text-transform: none; letter-spacing: -.025em; font-size: clamp(2rem, 4vw, 3rem); }
.editorial-site #publications .section-block, .editorial-site #publications .pub-group,
.editorial-site #publications .pub-list, .editorial-site #publications .pub-list li { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.editorial-site #publications .section-block { padding: 0 !important; border: 0 !important; opacity: 1; transform: none; filter: none; transition: none; }
.editorial-site #publications .pub-group { border: 0 !important; border-top: 1px solid var(--border) !important; margin: 0 !important; padding: 0 !important; }
.editorial-site #publications .pub-group summary { background: transparent !important; color: var(--text) !important; padding: 22px 0 !important; font-family: var(--font-display); font-size: 25px; }
.editorial-site #publications .pub-list { padding: 0 !important; }
.editorial-site #publications .pub-list li { padding: 22px 0 !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; margin: 0 !important; opacity: 1; transform: none; }
.editorial-site #publications .pub-title { font-size: 18px; line-height: 1.4; max-width: 70ch; }
.editorial-site #publications .pub-title a { color: var(--text) !important; }
.editorial-site #publications .pub-meta, .editorial-site #publications .pub-tags { color: var(--muted) !important; line-height: 1.6; }
.editorial-site #publications .pub-meta { font-size: 14px; }
.editorial-site #publications .pub-tags { font-size: 12px; letter-spacing: .06em; }
.editorial-site #publications .section-subtitle a { color: var(--accent) !important; }
@media (max-width: 1050px) and (min-width: 821px) {
  .editorial-site .cinematic-hero-stage { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding-inline: 32px; }
  .editorial-site .cinematic-hero-copy h1 { font-size: 54px; }
}
@media (max-width: 1120px) {
  .editorial-site body:not(.nav-open) .cinematic-nav { box-shadow: none !important; }
}
@media (max-width: 820px) {
  .editorial-site .cinematic-hero-sticky { min-height: 0; }
  .editorial-site .cinematic-hero-stage { min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 112px 24px 32px; row-gap: 14px; }
  .editorial-site .cinematic-hero-copy h1 { font-size: 42px; max-width: 330px; }
  .editorial-site .hero-proposition { font-size: 23px; line-height: 1.3; margin: 20px 0 16px; }
  .editorial-site .cinematic-deck { font-size: 13px; }
  .editorial-site .cinematic-cta { flex-direction: row; flex-wrap: wrap; margin-top: 22px; gap: 9px; }
  .headset-viewer { grid-column: 1; grid-row: 2; }
  .headset-stage { height: 180px; }
  .editorial-site .cinematic-links { grid-column: 1; grid-row: 3; gap: 18px; }
  .editorial-site #publications { padding-top: 40px; }
  .editorial-site #publications .pub-group summary { font-size: 21px; }
}
@media (forced-colors: active) {
  .editorial-site :focus-visible { outline-color: Highlight; }
  .editorial-site .cinematic-button, .headset-actions button { border: 1px solid ButtonText; }
}
/* One desktop turn, then release. No wheel interception or mobile pinning. */
@media (min-width: 821px) {
  .editorial-site .cinematic-hero-scroll.headset-pinned { height: calc(100svh + 140vh) !important; }
  .editorial-site .headset-pinned .cinematic-hero-sticky { position: sticky; top: 76px; height: calc(100svh - 76px); min-height: 0; }
  .editorial-site .headset-pinned .cinematic-hero-stage { min-height: 0; height: 100%; padding-block: 36px; row-gap: 20px; }
  .editorial-site .headset-stage { height: clamp(280px, 45vh, 500px); }
  .editorial-site .headset-viewer .headset-actions { min-height: 0; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .editorial-site .headset-pinned .cinematic-hero-copy h1 { font-size: 44px; }
  .editorial-site .headset-pinned .hero-proposition { font-size: 25px; margin-block: 16px; }
  .editorial-site .headset-pinned .cinematic-deck { font-size: 13px; }
}
