@font-face {
  font-family: Outfit;
  src: url("assets/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Gotu;
  src: url("assets/gotu-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/crimson-text.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f5e9d2;
  --soft: #e4cbb1;
  --warm: #deaa7c;
  --ground: #100b08;
  --gutter: clamp(14px, 3.6vw, 62px);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; color: var(--ink); font: 400 1rem/1.45 Outfit, sans-serif; }
::selection { background: #e4b287; color: var(--ground); }
:focus-visible { outline: 2px solid #ffe0ad; outline-offset: 4px; }
p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: #fff4df; }
[hidden] { display: none !important; }

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  --photo-x: 64%;
  --photo-y: 49%;
}
.plate, .sky, .wind, .shade { position: absolute; inset: 0; }
.plate {
  background: var(--ground) url("assets/last-light.webp") var(--photo-x) var(--photo-y) / cover no-repeat;
}
.page[data-vehicle-ready] .scene-ground {
  background-image: url("assets/last-light-clean.webp");
}
.vehicle-stage { visibility: hidden; }
.page[data-vehicle-ready] .vehicle-stage { visibility: visible; }
.vehicle-stage {
  position: absolute;
  left: var(--wind-field-x);
  top: var(--wind-field-y);
  width: var(--wind-field-width);
  height: var(--wind-field-height);
  overflow: visible;
}
.wake-veil, .wake-grains { mix-blend-mode: screen; }
.sky, .wind-field { visibility: hidden; }
.page[data-motion-ready] :is(.sky, .wind-field) { visibility: visible; }
.sky {
  -webkit-mask-image: linear-gradient(to bottom, #000 18%, #000a 32%, transparent 51%);
  mask-image: linear-gradient(to bottom, #000 18%, #000a 32%, transparent 51%);
}
.sky-drift {
  transform-origin: var(--photo-x) 0;
  animation: sky-drift 64s -18s ease-in-out infinite alternate;
}
@keyframes sky-drift {
  from { transform: translate3d(-1.6%, 0, 0) scale(1.065); }
  to { transform: translate3d(1.6%, -1.4%, 0) scale(1.065); }
}
.wind-field {
  position: absolute;
  left: var(--wind-field-x);
  top: var(--wind-field-y);
  width: var(--wind-field-width);
  height: var(--wind-field-height);
  mix-blend-mode: screen;
}
.wind {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 80%, transparent);
}
.wind-ridge {
  top: 40.5%;
  bottom: 38%;
  opacity: .75;
  --gust-left: -17%;
  --gust-width: 84%;
  --gust-duration: 15s;
  --gust-delay: -5.1s;
  --gust-distance: 61%;
}
.wind-dune {
  top: 45.5%;
  bottom: 29.5%;
  opacity: .88;
  transform: rotate(5.9deg);
  transform-origin: left center;
  --gust-left: -8%;
  --gust-width: 80%;
  --gust-duration: 12s;
  --gust-delay: -3.5s;
  --gust-distance: 67%;
}
.wind-trail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gust-left);
  width: var(--gust-width);
  background: url("assets/desert-dust.webp") center / 100% 100% no-repeat;
  filter: brightness(1.46) saturate(.84);
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 34%, #000b 65%, transparent);
  mask-image: radial-gradient(ellipse closest-side, #000 34%, #000b 65%, transparent);
  animation: wind-lift var(--gust-duration) var(--gust-delay) linear infinite;
}
.wind-trail-soft {
  --gust-left: 18%;
  --gust-width: 61%;
  --gust-duration: 17s;
  --gust-delay: -9.4s;
  --gust-distance: 54%;
  filter: brightness(1.13) saturate(.69);
}
@keyframes wind-lift {
  0% { transform: translate3d(-10%, 15%, 0); opacity: 0; }
  17% { opacity: .72; }
  44% { opacity: 1; }
  67% { opacity: .68; }
  100% { transform: translate3d(var(--gust-distance), -23%, 0); opacity: 0; }
}
.page:not([data-motion-ready]) :is(.sky-drift, .wind-trail, .echo),
.page[data-motion-paused] :is(.sky-drift, .wind-trail, .echo),
.page[data-motion-suspended] :is(.sky-drift, .wind-trail, .echo) {
  animation-play-state: paused;
}
.shade {
  background:
    linear-gradient(180deg, #100b0864 0%, transparent 22%, transparent 74%, #100b0890 100%),
    radial-gradient(ellipse 64% 42% at 50% 30%, #100b0870, transparent 94%);
}

.masthead {
  width: min(100%, 1380px);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, 1.5vw, 24px);
  min-height: clamp(61px, 8.4svh, 82px);
  padding: 5px 3px 13px;
  border-bottom: 1px solid #d2a07565;
}
.wordmark {
  position: relative;
  display: grid;
  justify-self: start;
  gap: 4px;
  padding-inline-end: 13px;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark-prefix { font: 500 11px/1 var(--mono); letter-spacing: .23em; }
.wordmark-name { font-size: clamp(20px, 2.12vw, 31px); font-weight: 650; letter-spacing: .09em; }
.wordmark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 1px;
  width: 1.5px;
  height: 9px;
  transform: rotate(38deg);
  background: var(--warm);
}
.lab-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 44px;
  color: #ead8bf;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  white-space: nowrap;
}
.lab-by { color: #d3b698; }
.lab-name { text-decoration: underline; text-decoration-color: #d2a07577; text-underline-offset: .35em; }
.lab-credit:hover .lab-name { text-decoration-color: currentColor; }
.stealth {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: clamp(6px, 1.15vw, 13px);
  color: #e6b68c;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}
.crest { width: 29px; height: 29px; overflow: visible; }
.crest use { stroke: currentColor; fill: none; stroke-linejoin: round; }
.crest .crest-outline { fill: url(#crest-tint); stroke-width: 1.68; }
.crest-inset { stroke-width: .77; opacity: .78; transform: scale(.74); transform-origin: 50% 50%; }
.echo {
  transform-origin: 50% 50%;
  stroke-width: .83;
  opacity: 0;
  animation: crest-echo 4.8s ease-out infinite;
}
.echo-second { animation-delay: .31s; }
@keyframes crest-echo {
  0% { transform: scale(1); opacity: 0; }
  10% { opacity: .53; }
  52%, 100% { transform: scale(1.82); opacity: 0; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  padding-top: clamp(46px, 12.8svh, 138px);
  padding-bottom: 20px;
}
.invitation {
  width: 100%;
  min-width: 0;
  padding-inline: clamp(9px, 3.1vw, 42px);
  text-align: start;
}
h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .20em;
  margin: 0;
  color: #f2e4d0;
  font: 400 clamp(2.4rem, 6.8vw, 6rem)/1.08 Gotu, Outfit, sans-serif;
  letter-spacing: -.029em;
  text-shadow: 0 2px 20px #110a0690;
}
.summary {
  margin: 19px 0 8px;
  color: #ead0b5;
  font: 400 clamp(.96rem, 1.45vw, 1.15rem)/1.37 "Crimson Text", Georgia, serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 12px #110a06;
}
.notify-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: #f8ddbd;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .025em;
  transition: color 160ms ease;
}
.notify-button:hover { color: #fff1dd; }
.notify-arrow {
  position: relative;
  display: block;
  width: 14px;
  height: 1px;
  color: #b58965;
  background: currentColor;
}
.notify-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.notify-submit {
  border: 1px solid #f6dbb3;
  border-radius: 5px;
  background: #f2e2c7;
  color: #24180f;
  transition: background-color 160ms ease, color 160ms ease;
}
.notify-submit:hover { background: #fff0db; }
.notify-submit:disabled { cursor: wait; opacity: .68; }
.notify-panel {
  width: min(100%, 390px);
  margin: 0;
  padding: 11px 13px 9px;
  border: 1px solid #b3835e75;
  border-radius: 16px;
  background: #1e140ded;
  text-align: left;
}
.notify-fields { display: flex; gap: 9px; }
.notify-fields input {
  min-height: 44px;
  min-width: 0;
  flex: 1 1 0;
  width: 0;
  padding: 8px 9px;
  border: 1px solid #a781645c;
  border-radius: 10px;
  background: #110b08;
  color: var(--ink);
  caret-color: var(--warm);
  font-size: 1rem;
}
.notify-fields input::placeholder { color: #d1b59c; }
.notify-submit { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; font-size: .875rem; }
.notify-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 3px;
  color: var(--soft);
  font-size: .76rem;
}
.notify-close { flex: 0 0 auto; min-height: 36px; padding: 6px; border: 0; background: none; color: var(--ink); text-decoration: underline; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reveal-cue {
  position: absolute;
  left: var(--reveal-x, 50%);
  top: var(--reveal-y, 66%);
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 122px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f4d5b3;
  text-shadow: 0 1px 8px #110a06;
  font: 500 .69rem/1 Outfit, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.reveal-cue::before {
  position: absolute;
  top: 0;
  width: 15px;
  height: 1px;
  background: #dcaa7b;
  content: "";
}
.reveal-cue:hover { color: var(--ink); background: #1e130bd9; }
.reveal-cue[aria-busy="true"] { cursor: default; }
.page:has(.notify-panel:not([hidden])) .reveal-cue { visibility: hidden; }
.colophon {
  width: min(100%, 1380px);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0 0;
  border-top: 1px solid #d2a07542;
  color: #d7c0a8;
  line-height: 1.35;
  text-transform: uppercase;
}
.colophon-notes { display: grid; gap: 5px; }
.colophon-credit { font-size: .75rem; letter-spacing: .085em; }
.colophon-copyright { color: #b9a087; font-size: .6875rem; letter-spacing: .07em; }
.colophon-credit a { color: inherit; text-decoration: none; }
.colophon-credit a:is(:hover, :focus-visible) { color: var(--ink); }
.motion-control {
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d2a07566;
  border-radius: 50%;
  background: #1b120c;
  color: #e6c2a0;
}
.motion-control::before { position: absolute; inset: -6px; content: ""; }
.motion-control:hover { color: var(--ink); border-color: #e6c2a0; }
.motion-control svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-play, [data-motion-paused] .motion-pause { display: none; }
[data-motion-paused] .motion-play { display: inline; }

@media (max-width: 600px) {
  .masthead { padding: 5px 1px 11px; }
  .hero { padding-top: clamp(34px, 11.25svh, 115px); }
  .invitation { padding-inline: clamp(5px, 2.7vw, 18px); }
  h1 { display: grid; justify-items: start; font-size: clamp(2.12rem, 10vw, 4.15rem); }
  .summary { max-width: 38ch; margin-block: 14px 4px; letter-spacing: .18em; }
  .stealth { font-size: 11px; letter-spacing: .095em; }
  .crest { width: 24px; height: 24px; }
  .motion-control { width: 32px; height: 32px; }
}
@media (max-width: 460px) {
  .wordmark { padding-inline-end: 9px; gap: 3px; }
  .wordmark-name { font-size: clamp(17px, 5.2vw, 23px); letter-spacing: .055em; }
  .wordmark-prefix { letter-spacing: .17em; }
  .wordmark::after { right: 0; height: 7px; }
  .lab-credit { flex-direction: column; gap: 3px; letter-spacing: .045em; line-height: 1; }
  .lab-name { text-underline-offset: .22em; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .hero { padding-top: clamp(22px, 5svh, 35px); }
  .summary { margin-block: 12px 1px; }
}
@media (max-width: 344px) {
  .stealth { flex-direction: column; gap: 3px; }
  .crest { width: 21px; height: 21px; }
}
@media (max-width: 360px) {
  .notify-panel { padding-inline: 9px; }
  .notify-fields { gap: 6px; }
  .notify-submit { padding-inline: 11px; }
}
@media (max-height: 485px) and (orientation: landscape) {
  .scene { --photo-y: 17%; }
  .page { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  .masthead { min-height: 47px; padding-block: 0 5px; }
  .wordmark-name { font-size: 20px; }
  .hero { padding-top: 17px; padding-bottom: 10px; }
  .page:has(.notify-panel:not([hidden])) .hero { padding-block: 10px 6px; }
  h1 { display: flex; font-size: clamp(1.65rem, 9svh, 3.15rem); }
  .summary { margin-block: 10px 2px; font-size: 1rem; }
  .colophon { padding-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky, .wind-field, .motion-control { display: none; }
  .sky-drift, .wind-trail, .echo { animation: none; }
  .notify-button, .notify-submit { transition: none; }
}
