:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --ink: #202c25;
  --muted: #566359;
  --line: #d5d9cf;
  --green: #28483b;
  --font-body: 'Satoshi', system-ui, sans-serif;
  --font-display: 'Boska', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #587d62; outline-offset: 3px; }
svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icons { position: absolute; width: 0; height: 0; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; transform: translateY(-160%); padding: 12px; background: white; color: var(--ink); }
.skip:focus { transform: none; }
.shell { width: min(100% - 64px, 1140px); margin: auto; }
.masthead { min-height: 65px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand svg { width: 19px; height: 19px; color: var(--green); }
.duration { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.duration span { margin-inline: 4px; }
.intro { margin: 25px 0 22px; }
h1, h2, p { margin: 0; }
h1 { font: 500 clamp(36px, 5.1vw, 64px)/1.04 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.intro p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.viewer { border-radius: 13px; overflow: hidden; border: 1px solid var(--line); background: #fbfaf6; }
.stage { position: relative; height: clamp(330px, 54vh, 610px); isolation: isolate; overflow: hidden; background: #222d27; }
.slide { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
#cover { opacity: 1; }
.slide[aria-hidden="true"] { pointer-events: none; }
#image-error { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: #222d27; z-index: 2; }
.expand { position: absolute; z-index: 3; right: 15px; top: 15px; color: white; background: #19251ee8; border: 1px solid #ffffff55; border-radius: 6px; display: grid; place-items: center; width: 44px; height: 44px; }
.expand:hover { background: #101812; }
.timeline { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; background: #fbfaf6; height: 4px; }
.segment { position: relative; background: #dfe4d9; }
.segment i { position: absolute; inset: 0; background: #64846e; transform: scaleX(0); transform-origin: left; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 19px 14px; min-height: 86px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
#room { font: 500 clamp(25px, 3.6vw, 36px)/1.02 var(--font-display); letter-spacing: -.025em; }
.controls { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.icon-button, .play-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; min-width: 44px; border-radius: 7px; border: 1px solid var(--line); background: transparent; transition: background-color 160ms ease; }
.icon-button:not(:disabled):hover { background: #e8ede4; }
.play-button { background: var(--green); color: #fff; padding: 0 12px; min-width: 95px; gap: 5px; border-color: var(--green); font-size: 14px; font-weight: 700; }
.play-button:hover { background: #38604e; }
.gallery { margin-top: 15px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.gallery-heading h2 { font-size: 15px; font-weight: 700; }
.rail-controls { display: flex; gap: 5px; }
.rail-controls .icon-button { border-color: transparent; }
.rail { display: flex; overflow-x: auto; gap: 9px; padding: 4px 4px 9px; scrollbar-width: thin; scrollbar-color: #a7b5a9 transparent; overscroll-behavior-x: contain; }
.thumb { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 122px; padding: 4px; text-align: left; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.thumb:hover { background: #e9ede5; }
.thumb[aria-current="step"] { border-color: #52735e; background: #e9eee6; }
.thumb-photo { position: relative; background: #dfe4d9; }
.thumb img { width: 100%; height: auto; display: block; border-radius: 4px; }
.thumb-index { position: absolute; top: 4px; left: 4px; padding: 2px 5px; background: #17251ee8; color: white; border-radius: 3px; font-size: 12px; font-weight: 700; }
.thumb-name { display: block; padding: 5px 2px 2px; font-size: 12px; font-weight: 700; line-height: 1.2; }
footer { padding: 15px 0 23px; font-size: 12px; color: var(--muted); }
dialog { border: 0; padding: 0; max-width: min(96vw, 1330px); max-height: 94dvh; background: #202c25; color: white; border-radius: 9px; }
dialog::backdrop { background: #101612ec; }
.dialog-body { position: relative; }
.dialog-body img { display: block; width: auto; height: auto; max-width: 100%; max-height: 84dvh; margin: auto; }
.dialog-body p { padding: 10px 14px; font-size: 14px; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .masthead { min-height: 55px; }
  .brand { font-size: 12px; letter-spacing: .045em; gap: 6px; }
  .duration { font-size: 12px; }
  .duration span { margin-inline: 1px; }
  .intro { margin: 24px 0 17px; }
  .stage { height: auto; aspect-ratio: 1256 / 832; }
  .expand { top: 8px; right: 8px; }
  .toolbar { padding: 10px; }
  .controls { gap: 3px; }
  .play-button { min-width: 44px; padding: 0; }
  .play-button span { display: none; }
  .thumb { flex-basis: 108px; }
}
@media (pointer: coarse) { footer { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
