/* Project Red String, the website. The colours, type and comic panels are the game's own
   (web/src/styles/tokens.css): night ink, lamp yellow, red for the string and the main action. */
:root {
  --ink-950: #05070c;
  --ink-900: #080b12;
  --ink-800: #10151f;
  --ink-700: #161d2a;
  --ink-500: #2a3549;
  --ink-400: #3a475e;
  --ink-line: #040508;

  --text: #ebe5d8;
  --text-strong: #faf6ec;
  --text-muted: #aab3c3;

  --lamp-300: #f2cd7a;
  --lamp-200: #f8e2ae;
  --lamp-glow: rgba(232, 181, 74, 0.22);
  --lamp-glow-strong: rgba(232, 181, 74, 0.45);

  --red-700: #8e1f28;
  --red-600: #a8262f;
  --red-500: #c8323c;
  --red-400: #e04a53;
  --red-glow: rgba(200, 50, 60, 0.35);

  --paper-100: #f1e8d4;
  --paper-200: #e4d6b8;
  --paper-ink: #2a2218;
  --paper-rim: rgba(241, 232, 212, 0.9);
  --caption-bg: #f4dc93;
  --caption-ink: #120e08;

  --font-display: 'Limelight', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-type: 'Courier Prime', 'Courier New', monospace;

  --drop: rgba(0, 0, 0, 0.72);
  --panel-shadow: 0 0 0 2px var(--paper-rim), 6px 7px 0 var(--drop);
  --bar-h: 56px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --content: 1180px;

  color-scheme: dark;
}

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

html {
  scroll-padding-top: calc(var(--bar-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 0.9px, transparent 1.3px) 0 0 / 5px 5px,
    var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  accent-color: var(--red-500);
}

::selection {
  background: var(--caption-bg);
  color: var(--caption-ink);
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--lamp-300);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--lamp-200);
}

:focus-visible {
  outline: 3px solid var(--lamp-300);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  background: var(--caption-bg);
  color: var(--caption-ink);
  border: 3px solid var(--ink-line);
  font-family: var(--font-type);
  font-weight: 700;
}
.skip:focus {
  top: 0.75rem;
}

/* Buttons: lettered blocks from the strips, with a hard shadow the button sinks into. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--ink-line);
  border-radius: 2px;
  background: var(--ink-700);
  color: var(--text-strong);
  box-shadow: 3px 3px 0 var(--ink-line);
  font-family: var(--font-type);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms, transform 140ms, box-shadow 140ms;
}
.btn:hover {
  color: var(--text-strong);
  background: var(--ink-500);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink-line);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink-line);
}
.btn-red {
  background: var(--red-600);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-500);
  color: #fff;
}
.btn-big {
  min-height: 52px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
}

/* The bar at the top, like the game's own. Over the opening picture it has no background. */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.98), rgba(11, 15, 23, 0.95));
  box-shadow: 0 2px 0 var(--paper-rim), 0 6px 0 rgba(0, 0, 0, 0.55);
  transition: background-color 260ms, box-shadow 260ms;
}
.bar-name {
  margin-right: auto;
  color: var(--lamp-200);
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
  transition: opacity 260ms;
}
.bar-nav {
  display: none;
  gap: 1.5rem;
}
.bar-nav a,
.bar-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-family: var(--font-type);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.bar-nav a:hover,
.bar-lang:hover {
  color: var(--lamp-300);
}
.bar-lang {
  justify-content: center;
  min-width: 44px;
}
.bar-play {
  min-height: 40px;
  padding: 0.3rem 1rem;
}
.js .bar:not([data-solid]) {
  background: transparent;
  box-shadow: none;
}
.js .bar:not([data-solid]) .bar-name {
  opacity: 0;
  visibility: hidden;
}
.js .bar:not([data-solid]) .bar-play {
  display: none;
}
@media (min-width: 760px) {
  .bar-nav {
    display: flex;
  }
}

main {
  position: relative;
}

/* ---------------------------------------------------------------------------------------------
   The opening picture: the game's main menu, layer by layer, with its rain. */
.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--bar-h) + 1.5rem) var(--gutter) 2.25rem;
  overflow: hidden;
  isolation: isolate;
}
.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #070a12;
  container-type: size;
  --focus-x: 0.76;
}
.stage {
  --w: max(100cqw, calc(100cqh * 16 / 9));
  --h: max(100cqh, calc(100cqw * 9 / 16));
  position: absolute;
  width: var(--w);
  height: var(--h);
  left: calc((100cqw - var(--w)) * var(--focus-x));
  top: calc((100cqh - var(--h)) / 2);
}
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
}
.sky {
  scale: 1.06;
  animation: pan 80s ease-in-out infinite alternate;
}
@keyframes pan {
  from { translate: -2% 0; }
  to { translate: 2% 0; }
}
.fog {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 65%, transparent 100%);
}
.fog span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  background:
    radial-gradient(ellipse 9% 46% at 8% 55%, rgba(170, 186, 212, 0.55), transparent 70%),
    radial-gradient(ellipse 12% 38% at 22% 40%, rgba(150, 168, 198, 0.45), transparent 70%),
    radial-gradient(ellipse 8% 50% at 35% 60%, rgba(170, 186, 212, 0.5), transparent 70%),
    radial-gradient(ellipse 11% 42% at 44% 45%, rgba(140, 160, 190, 0.4), transparent 70%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: fog-drift var(--seconds, 80s) linear infinite;
}
.fog span + span {
  opacity: 0.7;
  background-position: 23% 0;
  animation-duration: calc(var(--seconds, 80s) * 1.6);
  animation-direction: reverse;
}
@keyframes fog-drift {
  to { transform: translateX(-50%); }
}
.glow {
  position: absolute;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.glow.lamp {
  background: radial-gradient(circle, rgba(255, 196, 110, 0.55) 0%, transparent 68%);
  animation: lamp 5s ease-in-out infinite alternate;
}
.glow.neon {
  background: radial-gradient(circle, rgba(255, 50, 70, 0.55) 0%, transparent 68%);
  animation: neon 6s steps(1, end) infinite;
}
@keyframes lamp {
  from { opacity: 0.75; scale: 0.96; }
  to { opacity: 1; scale: 1.04; }
}
@keyframes neon {
  0%, 100% { opacity: 1; }
  37% { opacity: 0.25; }
  38% { opacity: 1; }
  40% { opacity: 0.35; }
  42% { opacity: 1; }
  77% { opacity: 0.55; }
  78% { opacity: 1; }
}
.smoke {
  position: absolute;
  width: 3%;
  aspect-ratio: 1;
  translate: -50% -100%;
}
.smoke i {
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 225, 235, 0.32), transparent 70%);
  filter: blur(3px);
  opacity: 0;
  animation: smoke 6s ease-out infinite;
}
.smoke i:nth-child(2) { animation-delay: -2s; }
.smoke i:nth-child(3) { animation-delay: -4s; }
@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-60%, -320%) scale(2.4); }
}
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.32) 0.9px, transparent 1.3px);
  background-size: 4px 4px;
  opacity: 0.35;
}
/* The picture steps back where the words are, and runs out into the page at the bottom. */
.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.82) 0%, rgba(5, 8, 14, 0.45) 26%, rgba(5, 8, 14, 0.05) 42%, rgba(5, 8, 14, 0.72) 62%, rgba(5, 8, 14, 0.88) 84%, var(--ink-950) 100%);
}

.hero-text {
  display: contents;
}
.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--lamp-200);
  text-shadow:
    0 0 2px rgba(248, 226, 174, 0.6),
    0 0 18px var(--lamp-glow-strong),
    0 0 52px var(--lamp-glow);
}
.logo-small {
  margin-left: 0.12em;
  font-size: clamp(1.1rem, min(3.4vw, 4vh), 2.5rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
.logo-big {
  font-size: clamp(2.9rem, min(10.5vw, 12vh), 7.4rem);
  letter-spacing: 0.02em;
}
.logo-string {
  display: block;
  width: min(42rem, 100%);
  height: auto;
  aspect-ratio: 520 / 60;
  margin: 0.25rem 0 auto;
  overflow: visible;
}
.thread {
  fill: none;
  stroke: var(--red-500);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  filter: drop-shadow(0 0 4px var(--red-glow));
  animation: draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.pin-head {
  fill: var(--red-400);
  stroke: var(--red-700);
  stroke-width: 1.5;
}
.pin-shine {
  fill: rgba(255, 255, 255, 0.65);
}
.pitch {
  max-width: 31rem;
  margin: 0 0 1.25rem;
  color: var(--text-strong);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin: 0;
}

@media (min-width: 960px) {
  .hero {
    justify-content: center;
    padding-bottom: 4rem;
  }
  .scene {
    --focus-x: 0.62;
  }
  .scrim {
    background:
      linear-gradient(90deg, rgba(5, 8, 14, 0.8) 0%, rgba(5, 8, 14, 0.55) 30%, rgba(5, 8, 14, 0.1) 55%, transparent 70%),
      linear-gradient(180deg, rgba(5, 8, 14, 0.75) 0, transparent 5.5rem, transparent 72%, var(--ink-950) 100%);
  }
  .hero-text {
    display: block;
    width: 100%;
    max-width: var(--content);
    margin: 0 auto;
  }
  .logo-string {
    margin-bottom: 1.5rem;
  }
}

/* ---------------------------------------------------------------------------------------------
   The page under it. One red string runs from pin to pin, behind the panels. */
.string {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.string path {
  fill: none;
  stroke: var(--red-500);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.block {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0;
}
.block > *,
.strip > * {
  position: relative;
  z-index: 2;
}

/* Section titles are the strips' yellow narration boxes, pinned to the page. */
.heading {
  position: relative;
  z-index: 2;
  display: table;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.28em 0.7em 0.2em;
  background: var(--caption-bg);
  color: var(--caption-ink);
  border: 3px solid var(--ink-line);
  box-shadow: 5px 5px 0 rgba(5, 7, 12, 0.85);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
}
.pin {
  position: absolute;
  z-index: 3;
  left: -19px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.75) 0 14%, var(--red-400) 16% 60%, var(--red-700) 100%);
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.6);
}
@media (min-width: 960px) {
  .heading-right {
    margin-left: auto;
  }
  .pin {
    left: -9px;
  }
  .pin.tr {
    left: auto;
    right: -9px;
  }
  .pin.tc {
    left: 50%;
    top: -11px;
    margin-left: -9px;
  }
}

.prose {
  max-width: 34rem;
}
.prose p:last-child {
  margin-bottom: 0;
}
.lede {
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.note {
  padding-left: 0.9rem;
  border-left: 3px solid var(--red-500);
  color: var(--text-muted);
  font-family: var(--font-type);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* A panel: an ink line, a thin paper rim and a hard shadow. */
.panel {
  position: relative;
  margin: 0;
  background: var(--ink-800);
  border: 3px solid var(--ink-line);
  box-shadow: var(--panel-shadow);
}
.panel > img,
.panel > video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink-900);
}
.caption {
  position: relative;
  display: table;
  max-width: calc(100% - 1.5rem);
  margin: -1rem 0 -1.25rem 0.9rem;
  padding: 0.5em 0.75em;
  background: var(--caption-bg);
  color: var(--caption-ink);
  border: 3px solid var(--ink-line);
  box-shadow: 4px 4px 0 rgba(5, 7, 12, 0.85);
  font-family: var(--font-type);
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.num {
  display: inline-block;
  min-width: 1.5em;
  margin: -0.15em 0.6em -0.15em -0.25em;
  padding: 0.1em 0.3em 0;
  background: var(--ink-line);
  color: var(--caption-bg);
  font-family: var(--font-display);
  font-weight: 400;
  text-align: center;
}

/* The clips' own stop and play button, in place of the browser's controls. */
.clip-toggle {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink-line);
  border-radius: 2px;
  background: var(--ink-700);
  box-shadow: 3px 3px 0 var(--ink-line);
  cursor: pointer;
}
.clip-toggle:hover {
  background: var(--ink-500);
}
.clip-toggle::before {
  content: '';
  position: absolute;
  inset: 13px 15px;
  border-left: 5px solid var(--text-strong);
  border-right: 5px solid var(--text-strong);
}
.clip-toggle[data-paused]::before {
  inset: 12px 13px 12px 16px;
  border: solid transparent;
  border-width: 9px 0 9px 15px;
  border-left-color: var(--text-strong);
}

/* Trailer and story. */
.story-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .story-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.75rem;
    align-items: center;
  }
  .story-grid .prose {
    order: -1;
  }
}

/* How a case goes: one comic page of five panels. */
.strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.25rem;
}
.step-3 {
  display: grid;
  gap: 2.5rem;
}
.luna {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin-top: 2.75rem;
}
.luna img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 3px solid var(--ink-line);
  box-shadow: 0 0 0 2px var(--paper-rim), 3px 4px 0 var(--drop);
}
.balloon {
  position: relative;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fbf8f0;
  color: var(--caption-ink);
  border: 3px solid var(--ink-line);
  border-radius: 1.4rem;
  box-shadow: 4px 5px 0 rgba(5, 7, 12, 0.6);
  font-family: var(--font-type);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.balloon::before,
.balloon::after {
  content: '';
  position: absolute;
  top: 50%;
  border: solid transparent;
}
.balloon::before {
  left: -1.05rem;
  margin-top: -0.6rem;
  border-width: 0.6rem 1.05rem 0.6rem 0;
  border-right-color: var(--ink-line);
}
.balloon::after {
  left: -0.7rem;
  margin-top: -0.42rem;
  border-width: 0.42rem 0.75rem 0.42rem 0;
  border-right-color: #fbf8f0;
}
.luna p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (min-width: 960px) {
  .strip {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem 2rem;
  }
  .step-1 { grid-column: 1 / 8; }
  .step-2 { grid-column: 8 / 13; margin-top: 2.5rem; }
  .step-3 {
    grid-column: 1 / 13;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2.75rem;
    align-items: center;
  }
  .step-4 { grid-column: 1 / 7; }
  .step-5 { grid-column: 7 / 13; margin-top: 2.5rem; }
}

/* The ten cases: a list of files. The open one shows its title page. */
.cases {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cases li {
  border-bottom: 2px solid var(--ink-500);
}
.cases li:first-child {
  border-top: 2px solid var(--ink-500);
}
.cases summary {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 0.75rem;
  min-height: 52px;
  padding: 0.8rem 0.75rem 0.6rem;
  cursor: pointer;
  list-style: none;
}
.cases summary::-webkit-details-marker {
  display: none;
}
.cases summary:hover {
  background: var(--ink-800);
}
.case-no,
.case-when {
  color: var(--text-muted);
  font-family: var(--font-type);
  font-size: 0.9rem;
}
.case-name {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
  line-height: 1.2;
}
@media (max-width: 519px) {
  .cases summary {
    grid-template-columns: 3.4rem minmax(0, 1fr);
  }
  .case-when {
    grid-column: 2;
  }
}
.cases details[open] > summary {
  background: var(--caption-bg);
}
.cases details[open] > summary > * {
  color: var(--caption-ink);
}
.case-card {
  margin: 1.25rem 0.5rem 2.5rem 0.25rem;
  container-type: inline-size;
}
.case-title {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 0.3em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11cqw;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--red-500);
  -webkit-text-stroke: 3px var(--ink-950);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.06em 0 var(--ink-950), 0 0 0.35em rgba(5, 7, 12, 0.9), 0 0 40px rgba(200, 50, 60, 0.45);
}
.case-card .caption {
  text-transform: none;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}
.after {
  margin: 2rem 0 0;
}
@media (min-width: 960px) {
  .cases {
    --list: 40%;
    min-height: calc((100% - var(--list)) * 0.5625);
  }
  .cases li {
    width: var(--list);
  }
  .case-card {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    width: calc(100% - var(--list) - 3.25rem);
    margin: 0;
  }
}

/* What is written by hand and what comes from AI: a sheet from the case file. */
.sheet {
  position: relative;
  max-width: 46rem;
  margin: 0 clamp(0rem, 7vw, 6rem) 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3.5rem);
  background:
    repeating-linear-gradient(180deg, transparent 0 1.74rem, rgba(42, 34, 24, 0.07) 1.74rem 1.8rem),
    linear-gradient(175deg, var(--paper-100), var(--paper-200));
  color: var(--paper-ink);
  border: 3px solid var(--ink-line);
  box-shadow: 7px 8px 0 var(--drop);
}
.sheet h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
}
.sheet h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-type);
  font-size: 1.1rem;
  font-weight: 700;
}
.sheet ul {
  margin: 0;
  padding-left: 1.2rem;
}
.sheet li {
  margin-bottom: 0.45rem;
}
.sheet li::marker {
  color: var(--red-600);
}

/* The last screen: the office, and the way in. */
.start {
  position: relative;
  margin-top: clamp(4rem, 10vw, 8rem);
  padding: clamp(4rem, 12vw, 9rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.start-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.start::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ink-950) 0%, transparent 22%),
    linear-gradient(90deg, rgba(5, 8, 14, 0.9) 0%, rgba(5, 8, 14, 0.7) 45%, rgba(5, 8, 14, 0.2) 100%);
}
.start-text {
  max-width: var(--content);
  margin: 0 auto;
}
.start-text > p:not(.actions) {
  max-width: 33rem;
  margin-bottom: 1.75rem;
  color: var(--text-strong);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.foot {
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--ink-950);
  color: var(--text-muted);
  font-family: var(--font-type);
  font-size: 0.95rem;
}
.foot p {
  max-width: var(--content);
  margin: 0 auto 0.5rem;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .smoke {
    display: none;
  }
}
