* { box-sizing: border-box; }
body { margin: 0; background: #f4f1e9; color: #162138; font: 400 16px/1.55 RreakoBar, Arial, sans-serif; }
p, h1, h2, dl, dd { margin: 0; }
a, button { color: inherit; }
a { text-underline-offset: .22em; }
button { font: inherit; }
.skip { position: absolute; left: 10px; top: -100px; background: white; padding: 10px; }
.skip:focus { top: 4px; }
/* Native fragment links still work; do not anchor the browser to a translated plate. */
.tour { position: relative; isolation: isolate; overflow-anchor: none; }
.scene {
  --scene-accent: #ff8352;
  --scene-rule: #ffffff54;
  --scene-inset: clamp(18px, 4.4vw, 74px);
  --scene-ratio: 3 / 2;
  --scene-bg: #111d24;
  position: relative;
}
.scene-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .48fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 3svh, 32px) clamp(22px, 4.2vw, 66px);
  min-block-size: max(440px, calc(100svh - var(--bar-height)));
  padding: clamp(22px, 5svh, 56px) var(--scene-inset);
  isolation: isolate;
  overflow: clip;
  background: var(--scene-bg);
  color: #fffdf7;
}
.scene-line { z-index: 1; }
.scene-belt { z-index: 2; --scene-bg: #102d2a; --scene-accent: #d2f58a; }
.scene-workshop { z-index: 3; --scene-bg: #151f34; --scene-accent: #c8f987; }
.scene-belt, .scene-workshop { --scene-ratio: 1280 / 744; }
.film {
  position: relative;
  grid-area: 1 / 2 / -1 / 3;
  min-block-size: 0;
  min-inline-size: 0;
  pointer-events: none;
}
.film picture, .film img, .film video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* The frame, not the camera angle, changes on narrow viewports. */
.film img, .film video { object-fit: contain; }
.film video { opacity: 0; }
.film[data-ready] video { opacity: 1; }
.shade { display: none; }
.eyeline, .credit, .scene-copy > a, .company-notes .label {
  font: 500 .74rem/1.4 ui-monospace, monospace;
  letter-spacing: .07em;
}
.eyeline {
  grid-area: 1 / 1;
  text-transform: uppercase;
  display: flex;
  gap: .7em;
  align-items: center;
  border-block-start: 1px solid var(--scene-rule);
  padding-block-start: 12px;
}
.eyeline::before { flex: 0 0 1.8em; block-size: 4px; background: var(--scene-accent); content: ''; }
.scene-copy {
  grid-area: 2 / 1;
  align-self: center;
  min-inline-size: 0;
}
.scene-copy h1, .scene-copy h2 {
  font-size: clamp(35px, 3.52vw, 66px);
  font-weight: 520;
  letter-spacing: -.064em;
  line-height: .99;
  text-wrap: balance;
}
.scene-copy strong { font-weight: 810; }
.scene-copy h2 em { font: italic 1em/1 Georgia, serif; }
.scene-copy p { max-inline-size: 33ch; margin-block-start: .8rem; line-height: 1.45; }
.scene-copy > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-block-start: .95rem;
}
.credit {
  grid-area: 3 / 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.credit button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--scene-rule);
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.credit button:hover { background: #ffffff18; }
.scene-copy > a, .credit button { touch-action: manipulation; }

@media (max-width: 780px) {
  .scene-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, .55fr) auto auto minmax(0, 1fr) auto;
    gap: clamp(10px, 1.8svh, 21px);
    min-block-size: max(430px, calc(100svh - var(--bar-height)));
    padding-block: clamp(22px, 5svh, 44px);
  }
  .film {
    grid-area: 3 / 1;
    aspect-ratio: var(--scene-ratio);
    max-block-size: clamp(144px, 44svh, 465px);
    margin-inline: calc(-1 * var(--scene-inset));
  }
  .scene-copy { grid-area: 4 / 1; align-self: start; }
  .scene-copy h1, .scene-copy h2 { font-size: clamp(31px, 10vw, 60px); }
  .scene-copy > a { margin-block-start: .45rem; }
  .credit { grid-area: 6 / 1; }
  .eyeline, .credit { font-size: .68rem; }
}

@media (max-width: 360px) {
  .eyeline { font-size: .625rem; letter-spacing: .045em; }
}

.company-notes, footer { padding: clamp(38px, 7vw, 95px) 5vw; }
.company-notes { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6vw; }
.company-notes h2 { font-size: clamp(40px, 5.6vw, 88px); letter-spacing: -.065em; line-height: 1.1; }
.company-notes .label { text-transform: uppercase; }
.company-notes dl > div { padding: 14px 0; border-top: 1px solid #9c9e98; }
.company-notes dt { font-weight: 720; }
.company-notes dd { margin-top: .45rem; }
footer { border-top: 1px solid #b4b2aa; padding-block: 20px; display: flex; justify-content: space-between; gap: 15px; font-size: 13px; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (max-width: 700px) { .company-notes { grid-template-columns: 1fr; } }

/* Hold the outgoing plate; two staggered shoulders release into a flat edge as the next scene arrives. */
@media (min-height: 540px) and (prefers-reduced-motion: no-preference) {
  .tour.flow { --scene-window: calc(100svh - var(--bar-height)); }
  .tour.flow :is(.scene-line, .scene-belt) .scene-stage {
    transform: translateY(calc(var(--scene-exit, 0) * var(--scene-window)));
  }
  .tour.flow :is(.scene-line, .scene-belt) .scene-copy:not(:focus-within) {
    opacity: clamp(0, calc(1 - var(--scene-exit, 0) * 2.2), 1);
    transform: translateY(calc(var(--scene-exit, 0) * -44px));
  }
  .tour.flow :is(.scene-belt, .scene-workshop) .scene-stage {
    --cut-open: clamp(0, calc((var(--scene-progress, 1) - .14) * 1.54), 1);
    --cut-drop: calc((1 - var(--cut-open)) * min(33svh, 280px));
  }
  .tour.flow .scene-belt .scene-stage {
    clip-path: polygon(0 0, 19% 0, 36% calc(var(--cut-drop) * .46), 62% calc(var(--cut-drop) * .46), 79% var(--cut-drop), 100% var(--cut-drop), 100% 100%, 0 100%);
  }
  .tour.flow .scene-workshop .scene-stage {
    --cut-open: clamp(0, calc((var(--scene-progress, 1) - .11) * 1.9), 1);
    clip-path: polygon(0 0, 22% 0, 38% calc(var(--cut-drop) * .6), 56% calc(var(--cut-drop) * .6), 78% calc(var(--cut-drop) * .16), 100% calc(var(--cut-drop) * .16), 100% 100%, 0 100%);
  }
}
