:root {
  color-scheme: dark;
  --night: #0b1114;
  --text: #f6f3ec;
  --accent: #b8dce8;
  --bar-height: 3.75rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--bar-height);
  margin-bottom: calc(-1 * var(--bar-height));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-inline: clamp(1rem, 5vw, 5rem);
  background: transparent;
  font-size: .88rem;
}
.site-bar :is(a, label) {
  min-height: 2.5rem;
  padding: .45rem .8rem;
  border: 1px solid rgb(210 187 145 / 48%);
  border-radius: 999px;
  background: rgb(18 29 36 / 78%);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
  transition: background-color .2s, border-color .2s;
}
.site-bar :is(a, label):hover { background: rgb(29 42 49 / 94%); border-color: rgb(223 200 159 / 75%); }
.site-bar a { display: inline-flex; align-items: center; text-decoration: none; }
.site-bar label { display: flex; align-items: center; gap: .5rem; padding-block: 0; cursor: pointer; }
#language-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language-globe {
  position: relative;
  flex: 0 0 1rem;
  height: 1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #dfc89f;
}
.language-globe::before, .language-globe::after { position: absolute; content: ''; }
.language-globe::before { inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.language-globe::after { inset: 50% 0 auto; border-top: 1px solid currentColor; }
.site-bar select {
  min-height: 2.4rem;
  max-width: 34vw;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-bar option { background: var(--night); }
.story {
  --stage-height: 100svh;
  position: relative;
  isolation: isolate;
}
.stage {
  position: sticky;
  z-index: -1;
  top: 0;
  height: var(--stage-height);
  margin-bottom: calc(-1 * var(--stage-height));
  overflow: hidden;
  background: #18262c;
}
.stage video, .shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: cover; opacity: 0; }
.stage video.outgoing { z-index: 1; opacity: 1; }
.stage video.active {
  z-index: 2;
  opacity: 1;
  transition: opacity 1.4s ease-in-out;
}
.shade { z-index: 3; background: linear-gradient(90deg, #080e12f0, #080e12b5 42%, #080e121a 85%); }
.scene {
  display: flex;
  align-items: flex-end;
  min-height: var(--stage-height);
  padding: calc(var(--bar-height) + 1rem) clamp(1.25rem, 8vw, 9rem) clamp(2rem, 8svh, 6rem);
}
.scene-copy { width: min(100%, 39rem); }
h1, .scene h2 { font-family: ui-serif, Georgia, serif; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.55rem, 6vw, 5.5rem); margin: .2em 0 .42em; }
.scene h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: .25em 0 .4em; }
.scene p:is([data-description], [data-detail]) { line-height: 1.7; font-size: clamp(1rem, 1.6vw, 1.18rem); }
footer { padding: 2.5rem clamp(1.25rem, 8vw, 9rem); background: #eae5dc; color: #18262c; }
.building-address { margin: 0 0 1.5rem; line-height: 1.6; }
footer h2 { margin: 0 0 .6rem; font-size: 1rem; }
footer a { display: inline-block; margin: .35rem 1rem .35rem 0; }
@media (max-width: 650px) {
  .shade { background: linear-gradient(0deg, #080e12fa, #080e12b3 45%, #080e121a 92%); }
  .scene { padding-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage video.active { transition: none; }
}
