@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --ink: #edf0df;
  --dim: #a6b6b8;
  --lime: #dcf58b;
  --bg: #111c22;
  --line: #ffffff24;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 6px;
}
button:hover,
a:hover {
  color: var(--lime);
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
}
#world canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, #0b171fef 0%, #0b171f90 32%, transparent 62%),
    linear-gradient(
      0deg,
      #091419e8,
      transparent 25%,
      transparent 80%,
      #10202955
    );
}
header {
  position: relative;
  height: 106px;
  margin: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  z-index: 3;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 2px;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 2.1px;
  margin-top: 5px;
  color: var(--dim);
}
.brand-mark {
  display: block;
  font-size: 37px;
  font-weight: 800;
  letter-spacing: -8px;
  line-height: 1;
}
.brand-mark > span {
  font-size: 20px;
  vertical-align: top;
  display: inline-block;
  transform: translateY(-3px);
  letter-spacing: 0;
  color: var(--lime);
}
nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
}
nav span {
  margin-left: 9px;
  color: var(--dim);
}
.sound {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.sound > span:first-child {
  color: var(--lime);
  font-size: 18px;
}
.intro {
  position: absolute;
  top: 22%;
  left: 6.5%;
  z-index: 2;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.3px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--lime);
}
.edition {
  color: #95a8ab;
  margin-left: 25px;
  font-size: 8px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px #dcf58b77;
}
h1 {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(72px, 7.9vw, 132px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -2px;
  margin: 26px 0;
}
h1 em {
  font-style: normal;
  color: var(--lime);
}
.intro-copy {
  font-size: 12px;
  color: #c1ccca;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 27px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--lime);
  color: #17241e;
  padding: 17px 23px;
  font-size: 12px;
  font-weight: 700;
}
.primary:hover {
  background: #ebffae;
  color: #101c19;
}
.text-button {
  font-size: 11px;
  padding: 12px 0;
}
.text-button span {
  padding-left: 13px;
}
.intro-note {
  font-size: 8px;
  color: #94a7a7;
  letter-spacing: 1.4px;
  margin-top: 25px;
}
.intro-note > span {
  padding: 5px;
  border: 1px solid #b8c6be55;
  letter-spacing: 3px;
  font-size: 8px;
  margin-right: 8px;
}
.portrait {
  position: absolute;
  right: 5%;
  bottom: 17%;
  width: 166px;
  transform: rotate(3deg);
  z-index: 2;
  background: #d6dace;
  color: #1e2c2d;
  padding: 7px;
  box-shadow: 0 10px 30px #0005;
}
.portrait-image {
  height: 203px;
  position: relative;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 23%;
  filter: saturate(0.55);
}
.portrait-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #182521;
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 2px;
  padding: 5px;
}
.portrait-cross {
  position: absolute;
  right: 8px;
  top: 0;
  font-size: 24px;
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  padding: 12px 3px 6px;
}
.portrait-caption small {
  display: block;
  font-size: 6px;
  font-weight: 400;
  margin-top: 5px;
}
.portrait-arrow {
  font-size: 22px;
}
.world-caption {
  position: absolute;
  top: 140px;
  right: 5%;
  font-size: 8px;
  letter-spacing: 2px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.world-caption > span:last-child {
  color: #b1bfbb;
  margin-left: 25px;
}
footer {
  position: absolute;
  bottom: 0;
  left: 4%;
  right: 4%;
  height: 84px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}
.footer-credit,
.footer-index {
  font-size: 8px;
  letter-spacing: 2px;
  color: #a1b3b2;
}
.footer-index {
  font-size: 12px;
  color: var(--ink);
}
.footer-index i {
  color: #6c8287;
  padding: 0 8px;
}
.route-strip {
  display: flex;
  gap: 22px;
}
.route-strip button {
  font-size: 9px;
  padding: 12px 0;
  color: #a7b8b5;
  position: relative;
}
.route-strip button::before {
  content: attr(data-no);
  font-size: 7px;
  color: var(--lime);
  margin-right: 7px;
}
.route-strip button:hover {
  color: var(--lime);
}
.drive-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.drive-hud button {
  pointer-events: auto;
}
.location {
  position: absolute;
  top: 145px;
  left: 5%;
  text-shadow: 0 2px 14px #000;
}
.location small {
  font-size: 9px;
  color: var(--lime);
  letter-spacing: 3px;
}
.location h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  text-transform: uppercase;
  line-height: 1;
  margin: 12px 0;
}
.location p {
  font-size: 11px;
  color: #c1cfca;
}
.speed {
  position: absolute;
  bottom: 125px;
  right: 5%;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.speed strong {
  font:
    600 70px "Barlow Condensed",
    sans-serif;
}
.speed span {
  font-size: 10px;
  color: var(--lime);
}
#inspect {
  position: absolute;
  left: 5%;
  bottom: 140px;
}
.drive-actions {
  position: absolute;
  left: 5%;
  bottom: 100px;
  display: flex;
  gap: 22px;
}
.drive-actions button {
  font-size: 10px;
}
body.driving .atmosphere {
  background: linear-gradient(
    0deg,
    #091419e8,
    transparent 28%,
    transparent 72%,
    #10202999
  );
}
.touch-controls {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  align-items: center;
  gap: 8px;
  z-index: 4;
  display: none;
}
.touch-controls > div {
  display: grid;
  gap: 7px;
}
.touch-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff50;
  background: #0d2028bb;
  touch-action: none;
  font-size: 23px;
}
dialog {
  color: var(--ink);
  background: #122329;
  border: 1px solid #506563;
  box-shadow: 0 30px 140px #000b;
  padding: 45px;
  max-height: 86dvh;
  max-width: calc(100vw - 30px);
  width: 780px;
}
dialog::backdrop {
  background: #071217b5;
  backdrop-filter: blur(9px);
}
.close {
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 27px;
  color: var(--dim);
  z-index: 2;
}
.reveal[open] {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}
.reveal > img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: 50% 25%;
}
.reveal h2 {
  font:
    600 68px/0.92 "Barlow Condensed",
    sans-serif;
  margin: 24px 0;
}
.reveal h2 span {
  color: var(--lime);
}
.reveal p {
  font-size: 12px;
  line-height: 1.8;
}
.reveal .text-button {
  display: block;
  margin-top: 8px;
}
.muted {
  color: var(--dim);
  line-height: 1.7;
  font-size: 12px;
}
.reveal .primary {
  margin-top: 12px;
}
dialog h2 {
  font:
    600 46px/1.05 "Barlow Condensed",
    sans-serif;
  margin: 18px 0;
}
.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
}
.map-layout svg {
  width: 100%;
}
#mapLinks button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  text-align: left;
  font-size: 12px;
}
#mapLinks button span {
  color: var(--lime);
  font-size: 10px;
  margin-right: 16px;
}
.motion {
  font-size: 11px;
  color: var(--dim);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.motion input {
  accent-color: var(--lime);
}
.detail {
  width: 690px;
}
.district-number {
  font:
    600 80px/0.9 "Barlow Condensed",
    sans-serif;
  color: #dcf58b35;
  float: right;
  padding-top: 20px;
}
.detail h2 {
  font-size: 58px;
  max-width: 420px;
}
.district-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--dim);
  max-width: 500px;
}
.entry {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.entry h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.entry p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--dim);
  margin: 7px 0;
}
.entry small {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 1px;
}
.entry a {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 5px;
  display: inline-block;
  margin: 10px 18px 0 0;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.tags span {
  font-size: 11px;
  border: 1px solid #91ad9b55;
  padding: 9px 13px;
}
.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-footer > button:first-child {
  font-size: 11px;
}
.portfolio {
  width: 950px;
}
.portfolio-heading {
  display: flex;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}
.portfolio-heading img {
  width: 105px;
  height: 140px;
  object-fit: cover;
  object-position: 50% 22%;
}
.portfolio-heading h2 {
  font-size: 42px;
}
.portfolio-heading p {
  font-size: 11px;
  color: var(--dim);
}
.portfolio-heading .primary {
  padding: 12px 16px;
  font-size: 10px;
}
.portfolio-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.portfolio-section h2 {
  font-size: 35px;
}
.portfolio-section .district-number {
  font-size: 60px;
}
.nojs {
  position: fixed;
  inset: 0;
  background: var(--bg);
  padding: 25vh 20%;
  z-index: 20;
}
.nojs a {
  text-decoration: underline;
}
.skip {
  position: absolute;
  left: 15px;
  top: -100px;
  z-index: 30;
  background: var(--lime);
  color: #102020;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #dff69a;
  color: #122329;
  padding: 13px 25px;
  font-size: 12px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #0e1b22;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s;
}
#loading > span {
  font-size: 65px;
  font-weight: 700;
  letter-spacing: -10px;
}
#loading > span > span {
  color: var(--lime);
  font-size: 34px;
  vertical-align: top;
}
#loading p {
  font-size: 9px;
  letter-spacing: 4px;
  margin: 25px 0;
}
#loading > div {
  width: 170px;
  height: 1px;
  background: #ffffff25;
}
#loading i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--lime);
  animation: load 1s ease-in-out infinite;
  transform-origin: left;
}
@keyframes load {
  from {
    transform: scaleX(0.1);
  }
  to {
    transform: scaleX(1);
  }
}
@media (min-width: 1600px) {
  .intro-copy {
    font-size: 15px;
  }
  .portrait {
    width: 190px;
  }
  .portrait-image {
    height: 235px;
  }
}
@media (max-height: 760px) and (min-width: 801px) {
  .intro {
    top: 20%;
  }
  h1 {
    font-size: 90px;
    margin: 18px 0;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .intro-note {
    margin-top: 18px;
  }
  header {
    height: 86px;
  }
  .world-caption {
    top: 110px;
  }
  .portrait {
    bottom: 19%;
  }
}
@media (max-width: 1000px) {
  .edition {
    display: none;
  }
  .footer-credit {
    display: none;
  }
  .route-strip {
    gap: 16px;
  }
  .portrait {
    right: 4%;
    width: 135px;
  }
  .portrait-image {
    height: 170px;
  }
  nav {
    gap: 18px;
  }
  .intro {
    left: 5%;
  }
  .world-caption > span:last-child {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    height: 82px;
    margin: 0 6%;
  }
  .brand {
    font-size: 15px;
  }
  .brand small {
    font-size: 5px;
  }
  .brand-mark {
    font-size: 30px;
  }
  nav {
    gap: 15px;
  }
  nav button,
  nav a {
    font-size: 10px;
  }
  nav span {
    display: none;
  }
  nav a {
    display: none;
  }
  .sound {
    position: absolute;
    right: 0;
    top: 98px;
    font-size: 7px;
    gap: 7px;
  }
  .sound > span:first-child {
    font-size: 14px;
  }
  .intro {
    left: 7%;
    top: 23%;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.8px;
  }
  h1 {
    font-size: clamp(72px, 17vw, 98px);
    line-height: 0.9;
    letter-spacing: -1px;
    margin: 22px 0;
  }
  .intro-copy {
    font-size: 11px;
    max-width: 255px;
  }
  .hero-actions {
    gap: 18px;
    margin-top: 23px;
  }
  .primary {
    padding: 15px 18px;
    font-size: 11px;
    gap: 18px;
  }
  .intro-note {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .portrait {
    width: 88px;
    bottom: 22%;
    right: 6%;
    transform: rotate(5deg);
    padding: 4px;
  }
  .portrait-image {
    height: 108px;
  }
  .portrait-label {
    font-size: 5px;
    letter-spacing: 0.5px;
    padding: 3px;
    bottom: 4px;
    left: 4px;
  }
  .portrait-caption {
    font-size: 5px;
    padding: 7px 1px 4px;
  }
  .portrait-caption small {
    display: none;
  }
  .portrait-arrow {
    font-size: 14px;
  }
  .portrait-cross {
    font-size: 15px;
  }
  .world-caption {
    top: 103px;
    left: 7%;
    right: auto;
    font-size: 7px;
  }
  .atmosphere {
    background:
      linear-gradient(90deg, #0b171fe6, #0b171f55),
      linear-gradient(0deg, #091419, transparent 50%);
  }
  footer {
    height: 80px;
    left: 7%;
    right: 7%;
  }
  .route-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 17px;
  }
  .route-strip button {
    font-size: 8px;
    padding: 7px 0;
    text-align: left;
  }
  .footer-index {
    font-size: 10px;
  }
  .touch-controls {
    display: flex;
  }
  .location {
    top: 155px;
    left: 7%;
  }
  .location h2 {
    font-size: 31px;
  }
  .location p {
    font-size: 10px;
    max-width: 220px;
  }
  .speed {
    bottom: 210px;
    right: 7%;
  }
  .speed strong {
    font-size: 48px;
  }
  .speed span {
    font-size: 7px;
  }
  .drive-actions {
    left: 7%;
    bottom: 100px;
    gap: 20px;
  }
  .drive-actions button {
    font-size: 9px;
  }
  #inspect {
    bottom: 235px;
    left: 7%;
  }
  dialog {
    padding: 30px 24px;
    max-height: 88dvh;
  }
  .reveal[open] {
    grid-template-columns: 95px 1fr;
    gap: 20px;
    align-items: start;
  }
  .reveal > img {
    height: 185px;
  }
  .reveal h2 {
    font-size: 48px;
    margin: 15px 0;
  }
  .reveal p {
    font-size: 11px;
  }
  .reveal .muted {
    grid-column: 1 / -1;
  }
  .reveal .eyebrow {
    font-size: 6px;
  }
  .reveal .primary {
    padding: 14px 12px;
    font-size: 10px;
  }
  .map-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .map-layout svg {
    height: 220px;
  }
  dialog h2 {
    font-size: 35px;
  }
  #mapLinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  #mapLinks button {
    font-size: 10px;
    padding: 12px 0;
  }
  #mapLinks button span {
    margin-right: 5px;
  }
  .detail h2 {
    font-size: 43px;
  }
  .district-number {
    font-size: 65px;
  }
  .portfolio-heading {
    gap: 16px;
    align-items: start;
  }
  .portfolio-heading img {
    width: 65px;
    height: 105px;
  }
  .portfolio-heading h2 {
    font-size: 31px;
  }
  .portfolio-heading .eyebrow {
    font-size: 6px;
  }
  .portfolio-heading p {
    line-height: 1.6;
  }
  .portfolio-section h2 {
    font-size: 30px;
  }
  .detail-footer .primary {
    font-size: 10px;
  }
  .detail-footer > button:first-child {
    font-size: 10px;
  }
}
@media (max-width: 390px) {
  .portrait {
    width: 78px;
    bottom: 13%;
    right: 8%;
  }
  .portrait-image {
    height: 98px;
  }
  .intro {
    top: 23%;
  }
  h1 {
    font-size: 70px;
  }
  .intro-copy {
    font-size: 10px;
  }
  .hero-actions {
    margin-top: 15px;
  }
  .intro-note {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-height: 650px) {
  header {
    height: 72px;
  }
  .intro {
    top: 21%;
  }
  .intro h1 {
    font-size: clamp(48px, 11.5vh, 74px);
    margin: 15px 0;
  }
  .intro-copy {
    font-size: 10px;
    line-height: 1.5;
    margin: 12px 0;
  }
  .hero-actions {
    margin-top: 15px;
  }
  .intro-note {
    display: none;
  }
  .world-caption {
    top: 94px;
  }
  .portrait {
    bottom: 19%;
    width: 112px;
  }
  .portrait-image {
    height: 140px;
  }
  .portrait-caption small {
    display: none;
  }
  footer {
    height: 64px;
  }
  .location {
    top: 110px;
  }
  .sound {
    top: 92px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .touch-controls {
    bottom: 90px;
  }
  .speed {
    bottom: 180px;
  }
  #inspect {
    bottom: 190px;
  }
  .drive-actions {
    bottom: 74px;
  }
}
.reveal[open] {
  display: block;
  width: 1080px;
  min-height: 590px;
  overflow: hidden;
  padding: 60px;
}
.reveal > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  animation: reveal-image 6s ease-out both;
}
.reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c1b23ed, #0c1b2399 36%, transparent 70%);
  z-index: 1;
}
.reveal > div {
  position: relative;
  z-index: 2;
  max-width: 330px;
}
.reveal .close {
  background: #102026a0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: white;
}
.reveal h2 {
  font-size: 80px;
}
.reveal p {
  color: #edf0df;
}
.reveal .muted {
  color: #c8d3ce;
}
@keyframes reveal-image {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
@media (max-width: 700px) {
  .reveal[open] {
    padding: 245px 25px 25px;
    min-height: 0;
    width: 460px;
    overflow: auto;
  }
  .reveal > img {
    height: 310px;
    object-position: 75% 30%;
    animation: none;
  }
  .reveal::before {
    background: linear-gradient(0deg, #122329 5%, #122329 48%, transparent 72%);
  }
  .reveal h2 {
    font-size: 51px;
    margin: 16px 0;
  }
  .reveal > div {
    max-width: none;
  }
  .reveal p {
    font-size: 11px;
  }
  .reveal .muted {
    display: none;
  }
  .reveal .text-button {
    display: inline-block;
    margin-left: 16px;
    font-size: 9px;
  }
  .reveal .eyebrow {
    font-size: 7px;
  }
}
#cinema {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  border-top: 6vh solid #071115;
  border-bottom: 6vh solid #071115;
  background: linear-gradient(0deg, #071115a0, transparent 38%);
}
#cinema button {
  pointer-events: auto;
  font-size: 11px;
  padding: 12px 18px;
  border: 1px solid #ffffff44;
  background: #10202770;
}
.cinema-top {
  position: absolute;
  top: 20px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 2px;
}
.cinema-top > div {
  display: flex;
  gap: 12px;
}
.cinema-bottom {
  position: absolute;
  left: 7%;
  bottom: 30px;
  right: 7%;
}
.cinema-bottom small {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 3px;
}
.cinema-bottom h2 {
  font:
    500 44px "Barlow Condensed",
    sans-serif;
  margin: 12px 0 22px;
}
.film-track {
  height: 1px;
  background: #ffffff33;
}
.film-track i {
  height: 1px;
  background: var(--lime);
  display: block;
  width: 0;
}
.cinematic header,
.cinematic footer,
.cinematic .asset-status {
  visibility: hidden;
}
.cinematic .atmosphere {
  opacity: 0;
}
.asset-status {
  position: fixed;
  right: 4%;
  bottom: 92px;
  font-size: 6px;
  letter-spacing: 1.6px;
  color: #a6bbb3;
  pointer-events: none;
}
.asset-status span {
  margin-left: 8px;
  color: var(--lime);
}
.primary:disabled {
  opacity: 0.5;
  cursor: progress;
}
@media (max-width: 700px) {
  .cinema-top > span {
    display: none;
  }
  .cinema-top {
    justify-content: flex-end;
  }
  .cinema-bottom h2 {
    font-size: 31px;
  }
  .cinema-bottom {
    bottom: 22px;
  }
  .asset-status {
    bottom: 86px;
    font-size: 5px;
  }
  .cinema-top button {
    font-size: 9px;
    padding: 10px 13px;
  }
}
.cinema-video {
  position: absolute;
  inset: -6vh 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
}
.cinema-top,
.cinema-bottom {
  z-index: 1;
}
.cinema-bottom {
  text-shadow: 0 2px 12px #000;
}
.cinematic #intro,
.cinematic #portrait,
.cinematic #worldCaption {
  visibility: hidden;
}

/* Preserve the complete widescreen composition on phones and ultrawide displays. */
.cinema-video {
  object-fit: contain;
  background: #071115;
}
.cinema-bottom {
  pointer-events: none;
}
.cinema-top {
  pointer-events: auto;
}

.film-track {
  position: relative;
  height: 3px;
  margin: 22px 0 0;
}
.film-track i {
  height: 3px;
}
#filmSeek {
  position: absolute;
  inset: -12px 0 auto;
  width: 100%;
  height: 27px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  accent-color: var(--lime);
}
#filmSeek::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
#filmSeek::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px #dcf58b22;
}
#filmSeek::-moz-range-track {
  height: 3px;
  background: transparent;
}
#filmSeek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
}
.film-timing {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  color: #e6edde;
  font-size: 9px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .drive-actions {
    gap: 14px;
    right: 7%;
    flex-wrap: wrap;
  }
  .film-keys {
    display: none;
  }
}
.cinematic #toast {
  visibility: hidden;
}

/* ---------------------------------------------------------------------------
   Readability, mobile driving, map and reading-mode upgrades.
--------------------------------------------------------------------------- */

/* HUD text sits over a bright sky; give it a soft dark plate. */
.location {
  isolation: isolate;
}
.location::before {
  content: "";
  position: absolute;
  inset: -26px -70px -22px -28px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 28% 50%,
    #0a171ddd 0%,
    #0a171d66 58%,
    transparent 78%
  );
  filter: blur(5px);
}
.location p {
  color: #d9e5df;
  text-shadow: 0 1px 14px #000;
}
.location small,
.location h2 {
  text-shadow: 0 2px 18px #000;
}

/* Film captions get a bottom scrim so bright footage cannot swallow them. */
.cinema-bottom {
  isolation: isolate;
}
.cinema-bottom::before {
  content: "";
  position: absolute;
  inset: -46px -34px -34px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    #071115e8 12%,
    #0711158c 55%,
    transparent 100%
  );
}

/* Mini-map in the driving HUD: opens the full map, shows progress. */
.minimap {
  position: absolute;
  right: 5%;
  top: 148px;
  width: 118px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0c1b22d9;
  border: 1px solid #ffffff2b;
  color: #c6d3ce;
  text-align: left;
  box-shadow: 0 6px 26px #0006;
  z-index: 3;
}
.minimap svg {
  display: block;
  width: 100%;
  padding: 7px 7px 0;
}
.minimap span {
  padding: 0 8px 6px;
  font-size: 7px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.minimap .mini-dot {
  opacity: 0.6;
}
.minimap .mini-dot.explored {
  opacity: 1;
  stroke: #eaffb0;
  stroke-width: 4;
}
.minimap:hover {
  border-color: var(--lime);
}

/* Full map: explored markers and progress legend. */
.map-dot.explored {
  stroke: #eaffb0;
  stroke-width: 3;
}
.map-progress {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--dim);
}
.map-progress.complete {
  color: var(--lime);
}

/* Stick a section index to the top of reading mode. */
.portfolio-index {
  position: sticky;
  top: -1px;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  margin-bottom: 4px;
  background: #122329f5;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.portfolio-index::-webkit-scrollbar {
  display: none;
}
.portfolio-index button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 11px 13px;
  border: 1px solid #ffffff2e;
  color: #c7d4ce;
  white-space: nowrap;
}
.close {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
}
.portfolio-index button span {
  color: var(--lime);
  margin-right: 7px;
}
.portfolio-index button:hover,
.portfolio-index button:focus-visible {
  border-color: var(--lime);
  color: var(--ink);
}

/* Speed streaks appear above 60 km/h. */
#speedfx {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s linear;
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, #ffffff14 23px 24px),
    radial-gradient(
      ellipse at 50% 62%,
      transparent 24%,
      #dfe9e11c 60%,
      transparent 82%
    );
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 62%,
    transparent 18%,
    #000 70%
  );
  mask-image: radial-gradient(ellipse at 50% 62%, transparent 18%, #000 70%);
}

/* Touch driving: thumb pads in the corners, car stays visible in the middle. */
.touch-controls {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 92px;
  transform: none;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  z-index: 4;
  pointer-events: none;
}
.touch-controls button {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff50;
  background: #0d2028cc;
  touch-action: none;
  font-size: 22px;
  line-height: 1;
}
.touch-controls button:active {
  background: #dcf58b33;
  border-color: var(--lime);
}
.dpad {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Older touch-pad rule turns any direct child div into a stacked grid. */
.touch-controls > .dpad {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dpad-col {
  display: grid;
  gap: 8px;
}
.dpad-col button {
  height: 38px;
}
.touch-controls .brake {
  width: 78px;
  height: 52px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--lime);
}

@media (pointer: coarse) {
  .touch-controls {
    display: flex;
  }
}

@media (max-width: 700px) {
  /* Keep the CV reachable; shrink the header instead of dropping it. */
  nav {
    gap: 12px;
  }
  nav button,
  nav a {
    font-size: 9px;
  }
  nav a {
    display: inline-flex;
  }
  nav a span {
    display: none;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  .sound {
    top: 96px;
    font-size: 8px;
  }
  .driving .asset-status {
    display: none;
  }

  /* Bigger tap targets in the route strip: one scrollable row. */
  .footer-index {
    display: none;
  }
  .route-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
  }
  .route-strip::-webkit-scrollbar {
    display: none;
  }
  .route-strip button {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 9px;
    padding: 0;
  }

  .minimap {
    top: 126px;
    right: 7%;
    width: 96px;
  }
  .touch-controls {
    display: flex;
  }
  .minimap span {
    font-size: 6px;
  }
  .speed {
    bottom: 300px;
  }
  #inspect {
    bottom: 236px;
  }
  .drive-actions {
    bottom: 190px;
    left: 7%;
    right: 7%;
    flex-wrap: wrap;
    gap: 14px;
  }
  #toast {
    bottom: 370px;
  }

  /* Keep the close button off the portrait's face. */
  .reveal .close {
    left: 14px;
    right: auto;
    top: 14px;
  }
  .portfolio-index button {
    padding: 10px 11px;
  }
}

@media (max-height: 650px) {
  .minimap {
    display: none;
  }
}

/* HUD controls stay readable over light road surfaces. */
.drive-actions button {
  text-shadow: 0 1px 10px #000;
}
.speed strong,
.speed span {
  text-shadow: 0 2px 14px #000;
}
