:root {
  --ink: #11100f;
  --ink-warm: #1b1815;
  --paper: #fff8ee;
  --paper-muted: #e7ddd0;
  --orange: #ff8a1a;
  --orange-deep: #c75000;
  --focus: #ffb15f;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--ink);
  color-scheme: dark;
  font-synthesis: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-kerning: normal;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.scene,
.scene-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.scene__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.02);
  animation: scene-drift 18s alternate infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.scene-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, #11100f 0%, #11100f 25%, rgb(17 16 15 / 94%) 38%, rgb(17 16 15 / 30%) 70%, rgb(17 16 15 / 12%) 100%),
    linear-gradient(0deg, rgb(17 16 15 / 70%) 0%, transparent 30%);
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  animation: reveal-down 700ms var(--ease-out) both;
}

.brand {
  display: block;
  width: clamp(9rem, 31vw, 13rem);
  padding: 0.35rem 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.language-switch {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.language-switch::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 0.12rem solid var(--orange);
  border-bottom: 0.12rem solid var(--orange);
  pointer-events: none;
  transform: translateY(-0.15rem) rotate(45deg);
}

.language-switch select {
  min-width: 8.6rem;
  min-height: 2.75rem;
  appearance: none;
  padding: 0 2.25rem 0 0.9rem;
  border: 1px solid #6b513d;
  border-radius: 0;
  background: #17130f;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: border-color 120ms linear, color 120ms linear;
}

.hero {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2.5rem max(1.25rem, env(safe-area-inset-right)) 2.5rem max(1.25rem, env(safe-area-inset-left));
}

.hero__copy {
  width: min(100%, 47rem);
}

.eyebrow,
.status,
.motion-toggle {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  animation: reveal-up 650ms 80ms var(--ease-out) both;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, Charter, "Iowan Old Style", serif;
  font-size: clamp(3.35rem, 15.4vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.064em;
  line-height: 0.86;
  text-wrap: balance;
  animation: reveal-up 800ms 130ms var(--ease-out) both;
}

h1 em {
  color: var(--orange);
  font-weight: inherit;
}

.intro {
  max-width: 35ch;
  margin: 1.8rem 0 0;
  color: var(--paper);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
  animation: reveal-up 700ms 210ms var(--ease-out) both;
}

.explain {
  max-width: 42ch;
  margin: 0.8rem 0 0;
  color: var(--paper-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
  animation: reveal-up 700ms 245ms var(--ease-out) both;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  color: var(--paper-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.5;
  animation: reveal-up 700ms 280ms var(--ease-out) both;
}

.status__mark {
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.28rem rgb(255 138 26 / 18%);
}

.city-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  min-height: 3.75rem;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #5c4432;
  background: #17130f;
  animation: reveal-up 700ms 340ms var(--ease-out) both;
}

.motion-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-right: 1px solid #5c4432;
  background: #17130f;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
  transition: background 150ms linear, color 150ms linear;
}

.motion-toggle__icon {
  width: 0.55rem;
  height: 0.55rem;
  border-left: 0.18rem solid var(--orange);
  border-right: 0.18rem solid var(--orange);
}

html[data-motion="paused"] .motion-toggle__icon {
  width: 0;
  height: 0;
  border: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.55rem solid var(--orange);
}

.ticker {
  min-width: 0;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 3.75rem;
  color: var(--paper-muted);
  font-family: Georgia, Charter, "Iowan Old Style", serif;
  font-size: 0.92rem;
  font-style: italic;
  white-space: nowrap;
  animation: city-roll 34s linear infinite;
}

.ticker__track span {
  padding-inline: 1.35rem;
}

.ticker__track i {
  color: var(--orange);
  font-style: normal;
}

html[data-motion="paused"] .scene__image,
html[data-motion="paused"] .ticker__track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .language-switch select:hover,
  .motion-toggle:hover {
    color: var(--orange);
  }

  .language-switch select:hover {
    border-color: var(--orange);
  }

  .motion-toggle:hover {
    background: #211a14;
  }
}

@media (min-width: 45rem) {
  .site-header {
    padding: max(2rem, env(safe-area-inset-top)) max(2.5rem, env(safe-area-inset-right)) 0 max(2.5rem, env(safe-area-inset-left));
  }

  .hero {
    padding: 3rem max(2.5rem, env(safe-area-inset-right)) 3rem max(2.5rem, env(safe-area-inset-left));
  }

  h1 {
    font-size: clamp(5.4rem, 8.3vw, 9.3rem);
  }
}

@media (max-width: 44.99rem) {
  .scene {
    inset: 48% 0 0;
  }

  .scene__image {
    object-position: 65% center;
  }

  .scene-shade {
    background:
      linear-gradient(180deg, #11100f 0%, #11100f 42%, rgb(17 16 15 / 96%) 53%, rgb(17 16 15 / 38%) 76%, rgb(17 16 15 / 80%) 100%);
  }

  .hero {
    align-items: flex-start;
    padding-top: clamp(2.75rem, 8vh, 5rem);
    padding-bottom: clamp(8.5rem, 22vh, 12rem);
  }

  .intro {
    max-width: 29ch;
  }

  .explain {
    max-width: 32ch;
  }

  .status {
    margin-top: 2rem;
  }

  .city-strip {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .motion-toggle {
    justify-content: center;
    width: 3.75rem;
    padding: 0;
  }

  .motion-toggle [data-motion-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-height: 43rem) and (min-width: 45rem) {
  .hero {
    padding-block: 1.5rem;
  }

  h1 {
    font-size: clamp(4.4rem, 10.5vh, 6.4rem);
  }

  .status {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .eyebrow,
  h1,
  .intro,
  .explain,
  .status,
  .city-strip {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.045) translate3d(-0.35%, -0.15%, 0);
  }
}

@keyframes city-roll {
  to {
    transform: translateX(-50%);
  }
}
