:root {
  color-scheme: dark;
  --ink: #050607;
  --ink-soft: #0b0d0f;
  --panel: rgba(5, 6, 7, 0.76);
  --panel-strong: rgba(5, 6, 7, 0.92);
  --line: rgba(230, 235, 239, 0.22);
  --line-strong: rgba(230, 235, 239, 0.48);
  --paper: #f2f1ed;
  --mist: #b8bdc1;
  --quiet: #818990;
  --blue: #a9d2ff;
  --amber: #d8ae7b;
  --display: "Bodoni Moda", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: #454b50 var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-dialog-open { overflow: hidden; }

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

::selection { background: rgba(169, 210, 255, 0.28); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

/* Boot is tied to first-plate readiness, never a fake random timer. */
.boot {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--ink);
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--ease), visibility 700ms;
}

body.is-ready .boot { opacity: 0; visibility: hidden; pointer-events: none; }

.boot__inner { width: min(330px, 76vw); text-align: center; }
.boot__mark { display: block; margin: 0 auto 18px; }
.boot__wordmark {
  margin: 0;
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}
.boot__status {
  min-height: 1.5em;
  margin: 16px 0 14px;
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.boot__track { height: 1px; overflow: hidden; background: #262a2e; }
.boot__track span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--blue);
  transform-origin: left;
  transition: width 260ms ease-out;
}

#world {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ink);
  opacity: 1;
  transition: opacity 500ms ease;
}

body[data-motion="still"] #world,
body.webgl-fallback #world { opacity: 0; visibility: hidden; }

.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  background: #020303;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 320ms;
}

.transition-veil.is-visible { opacity: 1; visibility: visible; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3.5vw, 54px);
  border-bottom: 1px solid transparent;
  transition: background-color 350ms ease, border-color 350ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.68);
  border-bottom-color: rgba(230, 235, 239, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img { width: 24px; height: 24px; }
.site-header__tools { display: flex; align-items: center; gap: 6px; }

.utility-button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #aab0b5;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.utility-button:hover,
.utility-button[aria-pressed="true"] { color: var(--paper); }

.room-nav {
  position: fixed;
  top: 28px;
  right: clamp(22px, 3.5vw, 54px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(46px);
}

.room-nav__name {
  width: 124px;
  margin: 0;
  color: #aab0b5;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: right;
  text-transform: uppercase;
}

.room-nav ol {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-nav a {
  position: relative;
  display: grid;
  width: 34px;
  height: 44px;
  place-items: center;
  color: var(--quiet);
  text-decoration: none;
}

.room-nav a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4c5359;
  transition: width 220ms ease, height 220ms ease, background-color 220ms ease;
}

.room-nav a:hover::after,
.room-nav a[aria-current="step"]::after {
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.room-nav a span {
  position: absolute;
  right: 6px;
  top: 46px;
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  background: var(--panel-strong);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.room-nav a:hover span,
.room-nav a:focus-visible span { opacity: 1; transform: none; }

main { position: relative; z-index: 1; }

.room {
  position: relative;
  min-height: 180svh;
  isolation: isolate;
}

.room__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(280px, 560px) minmax(20px, 1fr);
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 70px) 0 56px;
}

.room__plate {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  opacity: 1;
  transition: opacity 500ms ease;
}

.room__plate img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: calc(var(--focus-x, 0.5) * 100%) center;
}

body.webgl-ready[data-motion="cinematic"] .room__plate { opacity: 0; }

.room__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.room__copy {
  position: relative;
  z-index: 3;
  width: min(100%, 600px);
  color: var(--mist);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.room--copy-left .room__copy {
  grid-column: 1 / 3;
  justify-self: start;
  margin-left: clamp(26px, 6vw, 104px);
  padding-right: clamp(28px, 3.5vw, 50px);
}

.room--copy-right .room__copy {
  grid-column: 2 / 4;
  justify-self: end;
  margin-right: clamp(52px, 8vw, 132px);
  padding-left: clamp(28px, 3.5vw, 50px);
}

.room.is-active.is-settled .room__copy,
body[data-motion="still"] .room__copy,
body.webgl-fallback .room__copy { opacity: 1; transform: none; }

.room__copy::before {
  content: "";
  position: absolute;
  inset: -42px -54px;
  z-index: -1;
  background: rgba(2, 3, 4, 0.34);
  box-shadow: 0 0 70px 50px rgba(2, 3, 4, 0.34);
  pointer-events: none;
}

.room__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--paper);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.room__eyebrow span { color: var(--quiet); }

.room h1,
.room h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(46px, 4.8vw, 74px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

.room__support {
  max-width: 500px;
  margin: 26px 0 0;
  color: #c4c8cb;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
}

.room__status {
  display: inline-flex;
  margin: 22px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: #8e979f;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.room--warm .room__status { color: var(--amber); }

.room__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
}

.action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.42);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.action:hover { border-color: var(--paper); background: rgba(242, 241, 237, 0.10); transform: translateY(-1px); }

.action--primary { border-color: rgba(242, 241, 237, 0.72); }

.action--next {
  min-height: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #bfc5c9;
}

.action--next::after { content: "\2192"; margin-left: 12px; font-size: 16px; line-height: 1; }
.action--next:hover { border-color: transparent; background: transparent; color: var(--paper); }
.action--next.action--primary { padding: 0 24px; border-color: rgba(242, 241, 237, 0.72); }

.room__endline {
  margin: 20px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.35;
}

#signal-room .room__copy { align-self: start; margin-top: clamp(24px, 9vh, 100px); }

.room--final .room__copy::before {
  background: rgba(2, 3, 4, 0.58);
  box-shadow: 0 0 76px 56px rgba(2, 3, 4, 0.54);
}

.room--final h2 { font-size: clamp(46px, 4.65vw, 70px); }

.briefing-form {
  width: min(100%, 500px);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.briefing-form label {
  display: block;
  margin: 13px 0 7px;
  color: #aab0b5;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.briefing-form label span { color: #6f777d; }
.briefing-form__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.briefing-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(230, 235, 239, 0.3);
  border-radius: 0;
  background: rgba(5, 6, 7, 0.62);
  color: var(--paper);
  font-size: 14px;
  outline: none;
}

.briefing-form input:focus { border-color: var(--blue); }
.briefing-form input::placeholder { color: #70777d; }
.briefing-form__note { margin: 12px 0 0; color: #858d93; font-size: 11px; line-height: 1.5; }
.room--final .action--next { margin-top: 18px; }

.site-footer {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 50px;
  padding: 70px clamp(24px, 6vw, 100px);
  border-top: 1px solid rgba(230, 235, 239, 0.14);
  background: #030404;
  color: #858d93;
  font-size: 12px;
  line-height: 1.8;
}

.site-footer p { margin: 0; max-width: 850px; }
.site-footer__mark { justify-self: end; color: #aab0b5; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer__mark a { color: inherit; text-decoration: none; }
.site-footer__mark a:hover { color: var(--paper); }

.investigation {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
}

.investigation::backdrop { background: rgba(0, 0, 0, 0.72); }

.investigation__frame {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 92vw);
  height: 100%;
  padding: clamp(90px, 11vh, 138px) clamp(30px, 5vw, 72px) 64px;
  overflow-y: auto;
  border-left: 1px solid rgba(230, 235, 239, 0.18);
  background: #080a0c;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.48);
}

.investigation__close {
  position: absolute;
  top: 24px;
  right: 26px;
  min-width: 72px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #aab0b5;
  cursor: pointer;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dialog__eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.investigation h2 {
  margin: 0 0 28px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.investigation p { font-size: 15px; line-height: 1.75; }

.criteria {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}

.criteria div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(230, 235, 239, 0.12);
}

.criteria dt {
  color: var(--paper);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.criteria dd { margin: 0; color: #aab1b6; font-size: 13px; line-height: 1.6; }

.dossiers { margin-top: 32px; border-top: 1px solid var(--line); }
.dossiers__tabs { display: grid; }
.dossiers__tabs button {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(230, 235, 239, 0.12);
  background: transparent;
  color: #9ea5aa;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.dossiers__tabs button span { color: #697178; font-size: 8px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.dossiers__tabs button[aria-selected="true"] { color: var(--paper); }
.dossiers__tabs button[aria-selected="true"] span { color: var(--blue); }
.dossiers__panels { min-height: 190px; padding: 26px 0 0; }
.dossiers__panels h3 { margin: 0 0 12px; color: var(--paper); font-family: var(--display); font-size: 30px; font-weight: 400; }
.dossiers__panels p { margin: 0; }
.dossiers__panels .dossier-state { margin-top: 17px; color: var(--blue); font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }

.noscript {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-content: center;
  padding: 40px;
  background: var(--ink);
  color: var(--mist);
}
.noscript h1 { margin: 0 0 20px; color: var(--paper); font-family: var(--display); font-size: 56px; font-weight: 400; }
.noscript p { max-width: 620px; }

.thanks {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background: var(--ink);
}

.thanks__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.58;
}

.thanks__card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.90);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.thanks__card > img { display: block; margin-bottom: 30px; }
.thanks__card h1 { margin: 0; color: var(--paper); font-family: var(--display); font-size: clamp(48px, 8vw, 76px); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.thanks__card > p:not(.dialog__eyebrow) { margin: 24px 0 32px; color: #b8bdc1; }

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .room-nav { top: auto; right: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(50%); display: block; }
  .room-nav__name { width: auto; margin: 0 0 -4px; text-align: center; }
  .room-nav ol { background: rgba(5, 6, 7, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .room-nav a { width: 44px; height: 44px; }
  .room-nav a span { display: none; }
  .room__stage { grid-template-columns: minmax(22px, 1fr) minmax(280px, 580px) minmax(22px, 1fr); padding-bottom: 92px; }
  .room--copy-left .room__copy,
  .room--copy-right .room__copy { grid-column: 2; justify-self: stretch; margin: 0; padding: 0; }
  .room--copy-right .room__copy { align-self: end; margin-bottom: 32px; }
  .room--copy-left .room__copy { align-self: center; }
  .room h1,
  .room h2 { font-size: clamp(48px, 7vw, 64px); }
  .room__copy::before { inset: -32px; background: rgba(2, 3, 4, 0.48); box-shadow: 0 0 55px 35px rgba(2, 3, 4, 0.42); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__mark { justify-self: start; }
}

@media (max-width: 620px) {
  :root { --header-h: 62px; }
  body { font-size: 15px; }
  .site-header { padding: 0 16px; }
  .brand { gap: 9px; font-size: 9px; letter-spacing: 0.2em; }
  .brand img { width: 21px; height: 21px; }
  .utility-button { padding: 0 8px; font-size: 8px; letter-spacing: 0.11em; }
  .room { min-height: 160svh; }
  .room__stage {
    min-height: 560px;
    grid-template-columns: 18px 1fr 18px;
    align-items: end;
    padding: 84px 0 94px;
  }
  .room__plate img { object-position: calc(var(--focus-mobile, var(--focus-x, 0.5)) * 100%) center; }
  .room__wash { background: rgba(0, 0, 0, 0.18); }
  .room--copy-left .room__copy,
  .room--copy-right .room__copy {
    grid-column: 2;
    align-self: end;
    max-height: calc(100svh - 168px);
    margin: 0;
    padding: 19px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .room__copy::before {
    inset: -18px -18px -32px;
    background: rgba(3, 4, 5, 0.82);
    box-shadow: 0 0 30px 24px rgba(3, 4, 5, 0.66);
  }
  .room__eyebrow { margin-bottom: 12px; font-size: 8px; letter-spacing: 0.2em; }
  .room h1,
  .room h2 { font-size: clamp(39px, 12vw, 54px); line-height: 0.98; }
  .room__support { margin-top: 16px; font-size: 14px; line-height: 1.5; }
  .room__status { margin-top: 13px; padding-top: 8px; font-size: 8px; letter-spacing: 0.13em; }
  .room__actions { gap: 6px 16px; margin-top: 18px; }
  .action { min-height: 44px; padding: 0 17px; font-size: 8px; letter-spacing: 0.15em; }
  .action--next { padding: 0; }
  .action--next.action--primary { padding: 0 17px; }
  .room__endline { margin-top: 13px; font-size: 17px; }
  .briefing-form { margin-top: 17px; padding-top: 12px; }
  .briefing-form label { margin-top: 9px; }
  .briefing-form__row { grid-template-columns: 1fr; gap: 8px; }
  .briefing-form__row .action { width: 100%; }
  .briefing-form__note { margin-top: 8px; }
  .room--final .room__copy { max-height: calc(100svh - 158px); }
  .room--final .room__support { display: none; }
  .room--final .action--next { margin-top: 9px; }
  .room-nav { width: 100%; bottom: max(4px, env(safe-area-inset-bottom)); }
  .room-nav ol { width: fit-content; margin: 0 auto; }
  .room-nav__name { font-size: 8px; }
  .site-footer { gap: 26px; padding: 48px 22px 100px; }
  .investigation__frame {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(86svh, 760px);
    padding: 72px 24px 40px;
    border-top: 1px solid rgba(230, 235, 239, 0.2);
    border-left: 0;
  }
  .investigation__close { top: 14px; right: 14px; }
  .investigation h2 { font-size: 42px; }
  .criteria div { grid-template-columns: 86px 1fr; gap: 14px; }
}

@media (max-width: 360px) {
  .room-nav a { width: 40px; }
  .brand { letter-spacing: 0.14em; }
  .utility-button { padding-inline: 6px; }
}

@media (max-height: 700px) and (min-width: 621px) {
  .room__stage { padding-top: 112px; padding-bottom: 42px; }
  .room h1,
  .room h2 { font-size: clamp(42px, 5.4vw, 66px); }
  .room__support { margin-top: 18px; }
  .room__actions { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .boot, .room__copy, .room__plate, .transition-veil { transition: none !important; }
}

body[data-motion="still"] .room { min-height: 100svh; }
body[data-motion="still"] .room__stage { position: relative; }
body[data-motion="still"] .transition-veil { display: none; }

@media (forced-colors: active) {
  .action, .briefing-form input, .site-footer, .investigation__frame { border: 1px solid CanvasText; }
  .room__copy::before, .room__wash { display: none; }
}
