/*
 * Exhale Studios
 *
 * The site is a front hall (#top) with a door for each game, and a page for
 * each game. With scripts on, one of those "views" shows at a time and moving
 * between them is a walk through smoke. Without scripts every view sits on
 * one long page.
 */

@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --ash: #f2f0ec;
  --ash-soft: #d0cdc6;
  --ash-dim: #8d8a84;
  --hair: rgba(242, 240, 236, 0.2);
  --accent: var(--ash);
  --glow: 242, 240, 236;

  --serif: "EB Garamond", "Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bar-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --gap: clamp(64px, 13vh, 150px);   /* the stretch of smoke between two rooms */
}

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

html {
  background: var(--black);
  color: var(--ash);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #3a3936 #000;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ash);
  outline-offset: 4px;
  border-radius: 2px;
}
.view:focus { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 60;
  padding: 8px 14px; background: var(--ash); color: #000; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Bar ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.bar-mark { display: block; padding: 10px 0; opacity: 0.92; transition: opacity 0.4s; }
.bar-mark img { height: 15px; width: auto; }
.at-start .bar-mark { opacity: 0; pointer-events: none; }

.bar-nav ul { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.bar-nav a {
  position: relative;
  display: block; padding: 10px 0;
  font-size: 0.9375rem; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ash-soft);
  transition: color 0.25s;
}
.bar-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--ash); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.bar-nav a:hover { color: var(--ash); }
.bar-nav a[aria-current] { color: var(--ash); }
.bar-nav a[aria-current]::after { transform: scaleX(1); }

/* The page scrolls under the bar. This fades it out before it gets there. It
   sits beneath the smoke, so the smoke still drifts across the top. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; z-index: 15;
  height: calc(var(--bar-h) + 36px);
  background: linear-gradient(#000 52%, rgba(0, 0, 0, 0.6) 76%, transparent);
  pointer-events: none;
}

/* ---------- Smoke and the name in it ---------- */

#smoke {
  position: fixed; inset: 0; z-index: 20;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Without WebGL: the studio's own smoke photograph, faded up during a walk. */
.no-gl #smoke {
  background: url("../assets/brand/smoke-still.webp") center / cover no-repeat;
  opacity: var(--veil, 0.18);
}

#gates {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; text-align: center;
  pointer-events: none; visibility: hidden;
}
.gate-text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 8.6vw, 9.4rem);
  line-height: 1.12;
  letter-spacing: 0.26em; margin-right: -0.26em;
  text-transform: uppercase;
  color: var(--ash);
  text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.55);
}
.gate-text span { display: block; white-space: nowrap; }
.gate-text.is-long { font-size: clamp(1.5rem, 6.2vw, 6rem); }

.exhale {
  position: fixed; inset: 0; z-index: 50;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; pointer-events: none;
  transition: opacity 1.2s ease;
}
.exhale.is-done { opacity: 0; }

/* ---------- Views and rooms ---------- */

.view { position: relative; z-index: 10; }
.js .view { display: none; }
.js[data-view="top"] #top,
.js[data-view="alembic"] #alembic,
.js[data-view="library"] #library,
.js[data-view="sonar-lock"] #sonar-lock,
.js[data-view="disparate-destiny"] #disparate-destiny,
.js[data-view="studio"] #studio { display: block; }
.walking .view { pointer-events: none; will-change: transform, opacity; }

.room { position: relative; padding: var(--gap) var(--gutter); }
.room-hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding-top: calc(var(--bar-h) + 24px);
}
.room-grid {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.copy { max-width: 34rem; }
.copy > * + * { margin-top: 1.05rem; }
.copy p { color: var(--ash-soft); max-width: 60ch; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -0.01em;
  text-wrap: balance;
}
h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }

.copy .status {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.9rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 0.6rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--hair); border-radius: 2px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ash);
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.button:hover { border-color: var(--ash); }
.button-solid { background: var(--ash); border-color: var(--ash); color: #000; }
.button-solid:hover { background: #fff; border-color: #fff; }

/* ---------- The front hall ---------- */

.lobby {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding-top: calc(var(--bar-h) + 8px);
  padding-bottom: clamp(28px, 6vh, 64px);
}
.lobby-head { text-align: center; }
.home-mark img { width: min(64vw, 400px, 46vh); margin: 0 auto; }
.home-line {
  margin-top: clamp(8px, 1.6vh, 16px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ash-soft);
}

.doors {
  width: 100%; max-width: 1180px;
  margin: clamp(20px, 4.4vh, 52px) auto 0;
  display: grid; grid-template-columns: repeat(var(--doors, 4), minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 38px);
}
.doors > li { display: flex; }
/* A column, so every status line sits on the same baseline however many
   lines the name above it takes. */
.door {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  text-align: center; text-decoration: none; border-radius: 4px;
}
/* An arch that dissolves into the smoke at its foot. */
.door-arch {
  position: relative; display: block; overflow: hidden;
  height: clamp(180px, 41vh, 460px);
  border-radius: 999px 999px 0 0;
  background: #000;
  -webkit-mask-image: linear-gradient(#000 58%, transparent 98%);
  mask-image: linear-gradient(#000 58%, transparent 98%);
}
.door-arch > img, .door-arch > video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.66) saturate(0.85);
  transition: filter 0.6s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.door-arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.55), inset 0 0 70px rgba(var(--glow), 0.28);
  transition: box-shadow 0.6s ease;
}
.door:hover .door-arch > *, .door:focus-visible .door-arch > * { filter: none; transform: scale(1.05); }
.door:hover .door-arch::after, .door:focus-visible .door-arch::after {
  box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.95), inset 0 0 90px rgba(var(--glow), 0.4);
}
.door-name {
  position: relative; display: block;
  margin-top: clamp(-34px, -3.4vh, -14px);
  font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.72rem); line-height: 1.1;
  text-wrap: balance;
}
.door-state { display: block; margin-top: auto; padding-top: 6px; font-size: 0.875rem; line-height: 1.3; color: rgb(var(--glow)); }

/* Beneath the doors, apart from them: the way to the studio's own page. */
.lobby-foot {
  margin-top: clamp(20px, 4vh, 44px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 18px;
  text-align: center;
}
.lobby-foot span { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ash-soft); }
.lobby-foot a {
  padding: 6px 0; font-size: 0.9375rem;
  text-decoration: underline; text-decoration-color: rgba(242, 240, 236, 0.4);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color 0.25s;
}
.lobby-foot a:hover { text-decoration-color: var(--ash); }

/* ---------- The studio's own page ---------- */

.scene-studio .room-hero { min-height: 64vh; min-height: 64svh; }
.scene-studio .room-hero h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.tenets { display: grid; gap: clamp(56px, 11vh, 130px); }
.tenet { display: grid; gap: 22px; align-items: center; }
.tenet-copy { max-width: 34rem; }
.tenet-copy p { margin-top: 0.9rem; color: var(--ash-soft); max-width: 56ch; }
.tenet-link {
  display: inline-block; margin-top: 1rem; padding: 6px 0; font-size: 0.9375rem; color: rgb(var(--glow));
  text-decoration: underline; text-decoration-color: rgba(var(--glow), 0.4);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color 0.25s;
}
.tenet-link:hover { text-decoration-color: rgb(var(--glow)); }
.tenet-media > * {
  display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; background: #000;
  border: 1px solid rgba(var(--glow), 0.28); box-shadow: 0 30px 70px -34px #000;
}
.scene-studio .copy { max-width: 42rem; }
.lede {
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.62rem); line-height: 1.38;
}
.copy .lede { color: var(--ash); max-width: 46ch; }
.links { display: grid; gap: 2px; }
.links a {
  display: inline-block; padding: 7px 0;
  text-decoration: underline; text-decoration-color: var(--hair);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color 0.25s;
}
.links a:hover { text-decoration-color: var(--ash); }
.publisher { display: flex; align-items: center; gap: 16px; padding-top: 1.4rem; font-size: 0.875rem; color: var(--ash-soft); }
.publisher img { height: 40px; width: auto; }
.fine { font-size: 0.8125rem; color: var(--ash-dim); margin-top: 1.4rem; }

/* ---------- Media ---------- */

.frame { position: relative; aspect-ratio: 16 / 10; background: #000; }
.frame-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame-wide { aspect-ratio: 7 / 4; }

.gallery .frame {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumb {
  flex: 1 1 0; min-width: 0; max-width: 112px;
  aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid transparent; border-radius: 2px;
  opacity: 0.5; transition: opacity 0.25s, border-color 0.25s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb[aria-pressed="true"] { opacity: 1; border-color: var(--accent); }

/* A single large screenshot you can open. */
.plate {
  display: block; width: 100%;
  border: 1px solid rgba(var(--glow), 0.24); box-shadow: 0 30px 70px -30px #000;
  transition: border-color 0.25s;
}
.plate:hover { border-color: rgba(var(--glow), 0.75); }
.plate img { width: 100%; }

/* ---------- Rooms past the first ---------- */

.room-head { max-width: 44rem; }
.room-head p { margin-top: 0.8rem; color: var(--ash-soft); max-width: 58ch; }
.room-foot { display: grid; gap: 14px; justify-items: start; }
.facts { font-size: 0.9375rem; color: var(--ash-soft); max-width: 60ch; }

.features { display: grid; gap: 28px clamp(14px, 1.8vw, 26px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature > video {
  display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; background: #000;
  border-radius: 2px;
}
.feature h4, .calling h4, .epoch h4 { margin-top: 14px; }
.feature p, .calling p, .epoch p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--ash-soft); }

.callings { display: grid; gap: 26px clamp(14px, 1.8vw, 26px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calling > video { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: #000; border-radius: 2px; }
.calling h4 { margin-top: 10px; font-size: 1.2rem; }
.calling p { margin-top: 2px; }

.epochs { display: grid; gap: 28px clamp(14px, 1.8vw, 26px); }
.epoch > button {
  display: block; width: 100%;
  border: 1px solid rgba(var(--glow), 0.22); box-shadow: 0 30px 70px -34px #000;
  transition: border-color 0.25s;
}
.epoch > button:hover { border-color: rgba(var(--glow), 0.75); }
.epoch img { width: 100%; }

/* ---------- Each game ---------- */

/* Alembic: black-backed art with no frame, so the game glows straight out of the dark. */
.scene-alembic { --accent: #ffb765; --glow: 255, 183, 101; }
.sign video { width: min(100%, 420px); margin-left: -10px; }

.scene-library { --accent: #e4c77d; --glow: 228, 199, 125; }
.scene-library h2 { font-style: italic; font-size: clamp(2.2rem, 4.2vw, 3.7rem); letter-spacing: -0.005em; }

.scene-sonar { --accent: #ffd04a; --glow: 160, 205, 255; }
.scene-sonar h2 img { width: min(100%, 380px); margin-left: -8px; }
.phones { display: flex; justify-content: center; }
.phone {
  display: block; width: 100%;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(160, 205, 255, 0.28);
  box-shadow: 0 30px 80px -30px rgba(0, 20, 60, 0.9);
  transition: border-color 0.25s;
}
.phone:hover { border-color: rgba(200, 228, 255, 0.75); }
.phone img { width: 100%; }
.phones .phone { max-width: min(300px, 34vh); max-width: min(300px, 34svh); }
.features-phones .feature { max-width: 250px; }

.scene-destiny { --accent: #f2c14e; --glow: 255, 104, 84; }
.scene-destiny h2 img { width: min(100%, 400px); }
.narration {
  padding-left: 18px; border-left: 1px solid var(--hair);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.36rem); line-height: 1.42;
}
.copy .narration p { color: var(--ash); max-width: 46ch; }

/* ---------- The way on ---------- */

.onward { padding-bottom: calc(var(--gap) * 1.3); }
.onward .room-grid { justify-items: start; gap: 28px; }
.next { display: block; text-decoration: none; border-radius: 4px; }
.next-label { display: block; font-size: 0.9375rem; color: var(--ash-dim); }
.next-name {
  display: block; margin-top: 6px;
  font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.012em;
  text-wrap: balance;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em;
  text-decoration-color: rgba(var(--glow), 0.35);
  transition: text-decoration-color 0.3s, color 0.3s;
}
.next:hover .next-name, .next:focus-visible .next-name { text-decoration-color: rgb(var(--glow)); }
.next-state { display: block; margin-top: 12px; font-size: 0.9375rem; color: rgb(var(--glow)); }
.back {
  padding: 7px 0; font-size: 0.9375rem; color: var(--ash-soft);
  text-decoration: underline; text-decoration-color: var(--hair);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color 0.25s, color 0.25s;
}
.back:hover { color: var(--ash); text-decoration-color: var(--ash); }

/* ---------- Lightbox ---------- */

.lightbox {
  max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh;
  margin: 0; padding: clamp(16px, 4vw, 48px); border: 0;
  background: rgba(0, 0, 0, 0.9); color: var(--ash);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; justify-items: center; align-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
  .epochs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .callings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; }
}

@media (min-width: 900px) {
  .room-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .room-grid > * { grid-column: 1 / -1; }

  .scene-alembic .room-hero .media { grid-column: 1 / 8; }
  .scene-alembic .room-hero .copy { grid-column: 8 / 13; }
  .scene-alembic .plate { grid-column: 1 / 8; }
  .scene-alembic .plate + .copy { grid-column: 8 / 13; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .scene-library .room-hero .copy { grid-column: 1 / 6; grid-row: 1; }
  .scene-library .room-hero .media { grid-column: 6 / 13; grid-row: 1; }

  .scene-sonar .room-hero .copy { grid-column: 1 / 7; }
  .scene-sonar .room-hero .phones { grid-column: 8 / 13; }

  .scene-destiny .room-hero .copy { grid-column: 1 / 6; }
  .scene-destiny .room-hero .media { grid-column: 6 / 13; }

  .scene-studio .copy { grid-column: 1 / 8; align-self: start; }
  .scene-studio .room-hero .copy { grid-column: 1 / 9; align-self: center; }
  .scene-studio .studio-side { grid-column: 9 / 13; align-self: start; padding-top: 0.4rem; }
  .tenets { grid-column: 1 / -1; }
  .tenet { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tenet-copy { grid-column: 1 / 7; grid-row: 1; }
  .tenet-media { grid-column: 8 / 13; grid-row: 1; }
  .tenet:nth-child(even) .tenet-copy { grid-column: 7 / 13; }
  .tenet:nth-child(even) .tenet-media { grid-column: 1 / 6; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 899px) {
  :root { --bar-h: 56px; }
  .bar-nav {
    position: fixed; inset: auto 0 0 0;
    padding: 0 var(--gutter) env(safe-area-inset-bottom, 0);
    background: none;
  }
  /* The page scrolls under the bottom bar too. Faded out beneath the smoke,
     the same way as at the top. */
  body::after {
    content: ""; position: fixed; inset: auto 0 0 0; z-index: 15;
    height: calc(84px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #000 50%, rgba(0, 0, 0, 0.6) 76%, transparent);
    pointer-events: none;
  }
  .bar-nav ul { justify-content: space-between; gap: 6px; }
  .bar-nav a { padding: 14px 0 16px; font-size: 0.8125rem; }
  .bar-nav a::after { bottom: 11px; }

  body { font-size: 1rem; }
  .view { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .room-grid { gap: 22px; }
  .copy > * + * { margin-top: 0.8rem; }
  .room-hero { padding-bottom: 40px; }
  .room-hero .media, .room-hero .phones { order: -1; }

  .lobby { padding-bottom: 72px; }
  .lobby-foot { flex-direction: column; align-items: center; }
  .door-state { font-size: 0.8125rem; padding-top: 3px; }
  .home-mark img { width: min(58vw, 300px); }

  .thumb { max-width: 72px; }
  /* Anything you tap gets a finger's worth of height. */
  .bar-mark { padding: 15px 0; }
  .bar-nav a { padding-left: 3px; padding-right: 3px; }
  .lobby-foot a, .tenet-link, .back, .links a { padding-top: 12px; padding-bottom: 12px; }
  .tenet-link { margin-top: 0.3rem; }
  .sign video { width: min(72%, 300px); }
  .scene-sonar h2 img { width: min(64%, 260px); }
  .scene-destiny h2 img { width: min(70%, 300px); }
  .phone { border-radius: 14px; }
  .phones .phone { max-width: 210px; }
  .narration { font-size: 1.1rem; padding-left: 14px; }
  .button { min-height: 44px; }
}

@media (hover: none) {
  .door-arch > img, .door-arch > video { filter: brightness(0.92); }
}

@media (max-width: 699px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; margin-top: clamp(16px, 3vh, 32px); }
  .door-arch { height: clamp(120px, 23vh, 300px); height: clamp(120px, 23svh, 300px); }
  .door-name { margin-top: -12px; font-size: 1.12rem; }
  .lobby-foot { gap: 0; }
  .thumb { max-width: 68px; aspect-ratio: 4 / 3; }
  .features-3 { grid-template-columns: minmax(0, 1fr); }
  /* Screenshot beside its caption, so three of them don't run to three screens. */
  .features-phones .feature {
    max-width: none; display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    column-gap: 18px; align-content: center;
  }
  .features-phones .feature > .phone { grid-row: 1 / 4; }
  .features-phones .feature h4 { align-self: end; margin-top: 0; }
  .features-phones .feature p { align-self: start; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .features-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Arrival ---------- */

.arriving .home-mark, .arriving .home-line, .arriving .doors, .arriving .bar { opacity: 0; }
.arrived:not(.settled) .home-mark, .arrived:not(.settled) .home-line,
.arrived:not(.settled) .doors, .arrived:not(.settled) .bar { transition: opacity 2.4s ease; }
.arrived:not(.settled) .home-line { transition-delay: 0.9s; }
.arrived:not(.settled) .doors { transition-delay: 1.5s; }
.arrived:not(.settled) .bar { transition-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
