/* Hallmark · Nacréide · The dawn photograph carries the warm half of a two-material composition. */
:root {
  --ecrin-ink: #101927;
  --ecrin-pearl: #fff7eb;
  --ecrin-silver: #e7e1df;
  --ecrin-line: #f7e8d36b;
  --ecrin-shade: #101929f0;
  --ecrin-haze: #182034ab;
  --ecrin-glass: #1823373b;
}
.chapter-01 {
  --dawn-bg: var(--ecrin-ink);
  --dawn-ink: var(--ecrin-pearl);
  --dawn-muted: var(--ecrin-silver);
  --dawn-line: var(--ecrin-line);
  --dawn-focus: var(--ecrin-pearl);
}
body:is(:not([data-sky]),[data-sky="1"]) {
  --ink: var(--ecrin-pearl);
  --nav-muted: var(--ecrin-silver);
  --nav-line: var(--ecrin-line);
  --focus: var(--ecrin-pearl);
  --ascent-film: var(--ecrin-shade);
}
body:is(:not([data-sky]),[data-sky="1"]) .mast {
  color: var(--ecrin-pearl);
  background: linear-gradient(var(--ecrin-shade), transparent);
}
body:is(:not([data-sky]),[data-sky="1"]) .mast .brand img { filter: brightness(0) invert(1); }
.chapter-01 .chapter-shade,
.journey-enhanced .scene-layer.chapter-01 .chapter-shade {
  background: linear-gradient(90deg, var(--ecrin-shade), var(--ecrin-haze) 48%, var(--ecrin-glass) 75%),
    linear-gradient(0deg, var(--ecrin-shade), transparent 34%);
}
.chapter-01 .chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  column-gap: clamp(16px, 3vw, 52px);
  padding: clamp(108px, 15vh, 175px) clamp(60px, 8vw, 124px) clamp(90px, 11vh, 130px);
}
.chapter-01 .coordinates { grid-area: 1 / 1; align-self: end; margin-bottom: clamp(18px, 3vh, 34px); }
.chapter-01 .chapter-content { grid-area: 2 / 1 / 4; min-width: 0; align-self: start; }
.chapter-01 h1 { font-size: clamp(48px, 5.2vw, 82px); line-height: 1.01; max-width: 12ch; letter-spacing: -.055em; }
.chapter-01 .title-emphasis { margin-top: .12em; font-family: var(--horizon-thought); font-style: italic; line-height: 1.04; letter-spacing: -.035em; }
.chapter-01 .chapter-description { max-width: 43ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.chapter-01 .hero-orbe {
  grid-area: 1 / 2 / 3;
  position: relative; inset: auto; width: min(100%, 480px); aspect-ratio: 1;
  align-self: center; justify-self: center; opacity: 1;
}
.chapter-01 .hero-orbe .fg-orb { width: 100%; max-width: none; }
.chapter-01 .hero-orbe .orb-preview {
  width: 100%; margin: 0; border-radius: 0; background: transparent url('/assets/orbe-ecrin.webp') center / contain no-repeat;
}
.chapter-01 .cosmos-preview { grid-area: 3 / 2; justify-self: center; min-height: 44px; margin: 0; text-underline-offset: 5px; }
.chapter-01 .actions { margin-top: 24px; }
.chapter-01 .hero-footnote { margin-top: 13px; }
.decision-excerpt {
  max-width: 54ch; margin: clamp(28px, 4vw, 48px) 0 0;
  border-inline-start: 2px solid currentColor; padding-inline-start: clamp(16px, 2.4vw, 30px);
}
.decision-excerpt .decision-context, .decision-excerpt figcaption { font-size: 13px; line-height: 1.55; color: var(--chapter-muted); }
.decision-excerpt .decision-question { font-weight: 600; margin-top: 14px; }
.decision-excerpt blockquote { margin: 14px 0; font: italic 400 clamp(26px, 3vw, 40px)/1.16 var(--horizon-thought); letter-spacing: -.018em; }
.decision-excerpt .decision-action { margin-top: 9px; }
@media (min-width: 1050px) {
  :is(#identite, #evolution) .chapter-content { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 90px); max-width: none; width: 100%; margin: 0; }
  :is(#identite, #evolution) .chapter-content > * { grid-column: 1; }
  :is(#identite, #evolution) .chapter-content > .narrative-object { grid-area: 1 / 2 / 6; align-self: center; margin: 0; }
}
@media (max-width: 720px) and (orientation: portrait) {
  .chapter-01 .chapter-inner {
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    padding: max(72px, env(safe-area-inset-top)) 24px 54px;
  }
  .chapter-01 .hero-orbe { order: -2; width: clamp(150px, min(55vw, 28svh), 230px); margin: 0 auto 10px; }
  .chapter-01 .coordinates { align-self: start; margin: 0 0 12px; }
  .chapter-01 h1 { font-size: clamp(34px, 10.1vw, 62px); line-height: 1.02; max-width: 14ch; }
  .chapter-01 .title-emphasis { margin-top: .05em; }
  .chapter-01 .chapter-description { font-size: 16px; max-width: 36ch; margin-top: 17px; }
  .chapter-01 .actions { gap: 5px 16px; margin-top: 15px; }
  .chapter-01 .hero-footnote { margin-top: 6px; }
  .chapter-01 .cosmos-preview { align-self: start; font-size: 12px; }
  .journey-enhanced .scene-layer.chapter-01 .chapter-shade, .chapter-01 .chapter-shade {
    background: linear-gradient(0deg, var(--ecrin-shade) 10%, var(--ecrin-haze) 63%, var(--ecrin-glass));
  }
}
@media (max-width: 360px) {
  .chapter-01 .chapter-inner { padding-inline: 18px; }
  .chapter-01 .chapter-description { font-size: 15px; }
  .chapter-01 .hero-orbe { width: min(50vw, 24svh); }
}
@media (orientation: landscape) and (max-height: 525px) and (max-width: 1000px) {
  .chapter-01 .chapter-inner { padding: 66px 8vw 30px; grid-template-columns: 1.38fr 1fr; }
  .chapter-01 .coordinates { margin-bottom: 5px; }
  .chapter-01 h1 { font-size: clamp(28px, 4vw, 40px); max-width: 20ch; }
  .chapter-01 .chapter-description { font-size: 14px; margin-top: 8px; line-height: 1.4; }
  .chapter-01 .hero-orbe { width: min(47svh, 225px); }
  .chapter-01 .actions, .chapter-01 .hero-footnote { margin-top: 4px; }
}

/* The photographic set stays behind the live HTML and remains available while a frame decodes. */
.film-surface { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; visibility: hidden; }
.film-visible .film-surface { visibility: visible; }
.film-surface .scroll-film { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.film-surface .scroll-film[hidden] { display: none; }
.film-surface::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #081120d9, #08112099 43%, #08112018 78%), linear-gradient(0deg, #060c1870, transparent 30%); }
.film-visible .chapter {
  --chapter-ink: var(--ecrin-pearl); --chapter-muted: var(--ecrin-silver);
  --chapter-line: var(--ecrin-line); --chapter-bg: var(--ecrin-ink);
  --chapter-focus: var(--ecrin-pearl);
}
body.film-visible { --ink: var(--ecrin-pearl); --nav-muted: var(--ecrin-silver); --nav-line: var(--ecrin-line); --ascent-film: var(--ecrin-shade); }
.film-visible .mast .brand img { filter: brightness(0) invert(1); }
.film-visible .mast { color: var(--ecrin-pearl); background: linear-gradient(var(--ecrin-shade), transparent); }
.film-visible .offers-section, .film-visible .questions, .film-visible .orbit-model-credits, .film-visible .footer { background-color: #071120d6; }
.film-visible .chapter-01 .hero-orbe, .film-visible #apercu-cosmos { visibility: hidden; }
.film-visible .object-stage, .film-visible .vault-sculpture { visibility: hidden; }
.film-visible #voyage-atmosphere { display: none; }
.film-visible .chapter .image-credit { visibility: hidden; }
#evolution .trust-station { width: min(100%, 950px); }
.film-visible :is(h2,h3)[data-film-cue] { opacity: var(--film-copy-opacity, 1); }
@media (max-width: 900px) and (orientation: portrait) {
  .film-surface[data-portrait-fallback] .scroll-film { object-position: 62% center; }
  .film-surface::after { background: linear-gradient(0deg, #060d1bf5, #0b1425bd 42%, #0c152895 66%, #07102168 88%); }
}
@media (prefers-reduced-motion: reduce) {
  .film-visible :is(h2,h3)[data-film-cue] { opacity: 1; }
}
