:root{
  color-scheme:dark;
  --navy:#071b38;
  --deep:#06142a;
  --blue:#123b65;
  --gold:#d4af37;
  --cream:#f8f5ed;
  --muted:#aebcd1;
  --line:#ffffff21;
  --mono:ui-monospace,Consolas,monospace;
  --serif:Georgia,serif
}
*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth;
  scroll-padding-top:5rem
}
body{
  margin:0;
  background:var(--deep);
  color:var(--cream);
  font:16px/1.6 system-ui,sans-serif
}
a{
  color:inherit;
  text-decoration:none
}
button,input,textarea,select{
  font:inherit
}
button,.button{
  cursor:pointer;
  min-height:44px;
  border:1px solid transparent;
  border-radius:5px;
  padding:.6rem 1rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  color:inherit;
  font-weight:650
}
button:disabled{
  opacity:.55;
  cursor:wait
}
button:hover,.button:hover{
  filter:brightness(1.16)
}
:focus-visible{
  outline:2px solid #efcc64;
  outline-offset:4px
}
[hidden]{
  display:none!important
}
.gold{
  background:#e1bd55;
  color:#101a2a
}
.outline,.icon{
  background:#ffffff08;
  border-color:var(--line)
}
.quiet{
  background:transparent;
  color:var(--muted)
}
.skip{
  position:fixed;
  top:-100px;
  z-index:10;
  background:var(--cream);
  color:var(--deep);
  padding:1rem
}
.skip:focus{
  top:1rem
}
.shell{
  width:min(1160px,calc(100% - 3rem));
  margin:auto
}
.top{
  height:72px;
  padding:0 max(1.5rem,calc((100vw - 1160px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border-bottom:1px solid var(--line);
  background:#07172e;
  position:sticky;
  top:0;
  z-index:2
}
.brand{
  font:800 1.1rem var(--mono);
  letter-spacing:.04em;
  white-space:nowrap
}
.brand span{
  color:#e5c35d
}
.brand-slash{
  margin:0 .2em
}
.top nav,.top-actions,.row{
  display:flex;
  align-items:center;
  gap:.7rem;
  flex-wrap:wrap
}
.top nav{
  gap:2rem;
  font-size:.9rem;
  color:var(--muted)
}
.icon{
  padding:.4rem .7rem
}
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:radial-gradient(ellipse at 75% 44%,#164371 0%,#0d2848 36%,#081a33 71%)
}
.hero:before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#081a33 0%,transparent 85%),repeating-linear-gradient(0deg,transparent 0 41px,#a9d4ff10 42px 43px),repeating-linear-gradient(90deg,transparent 0 41px,#a9d4ff10 42px 43px);
  pointer-events:none
}
.hero-grid{
  isolation:isolate;
  min-height:570px;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:center;
  gap:4%
}
.hero-copy{
  padding:3rem 0
}
.eyebrow{
  margin:0 0 .6rem;
  color:#e3c067;
  font:700 .76rem/1.5 var(--mono);
  letter-spacing:.17em
}
.signal{
  display:inline-block;
  width:.55rem;
  height:.55rem;
  border-radius:50%;
  background:#e9ca63;
  box-shadow:0 0 16px #efce59;
  margin-right:.5rem
}
h1,h2,p{
  margin-top:0
}
h1{
  margin:0;
  font:900 clamp(3rem,7vw,7rem)/1 system-ui,sans-serif;
  letter-spacing:-.09em;
  white-space:nowrap
}
h1 i{
  font-weight:300;
  font-style:normal;
  color:#dcb654
}
h1 em{
  font-style:normal;
  color:#e4bf60
}
.subtitle{
  font:clamp(1.75rem,3.7vw,3.7rem)/1.05 var(--serif);
  margin:1.25rem 0
}
.subtitle em{
  color:#efd188
}
.quote,.lede{
  color:var(--muted);
  max-width:55ch
}
.ticket-wrap{
  position:relative;
  padding:2rem 0
}
.compass{
  position:absolute;
  right:-1.3rem;
  top:-2rem;
  color:#e6c06170;
  font-size:8rem;
  line-height:1
}
.ticket{
  position:relative;
  background:var(--cream);
  color:var(--navy);
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 25px 65px #020b19aa;
  transform:rotate(-3deg)
}
.ticket-head{
  background:#102c4c;
  color:#fcf5e4;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:3px solid #d4af37;
  padding:1.15rem 1.5rem
}
.ticket-head strong{
  display:block;
  font:1.4rem var(--serif)
}
.ticket-head span{
  color:#e4bf60;
  font-size:1.8rem
}
.ticket small{
  font:700 .67rem var(--mono);
  letter-spacing:.13em;
  display:block
}
.ticket-body{
  padding:1.35rem 1.5rem
}
.flight,.flight-info,.ticket-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.7rem
}
.flight strong{
  font:700 clamp(1rem,2vw,1.65rem) var(--serif);
  white-space:nowrap
}
.flight path,.flight-path{
  flex:1;
  border-top:1px dashed #947528;
  position:relative;
  text-align:center;
  color:#7b5c16
}
.flight-path span{
  position:absolute;
  background:var(--cream);
  padding:0 .25rem;
  top:-.85rem;
  left:42%;
  animation:taxi 3s ease-in-out infinite alternate
}
@keyframes taxi{
  to{
    transform:translateX(16px)
  }
}
.flight-info{
  margin-top:1.5rem;
  font-family:var(--mono);
  font-size:.85rem
}
.ticket-foot{
  padding:.85rem 1.5rem;
  border-top:1px dashed #9f9681
}
.approved{
  color:#28503a;
  font-weight:750;
  font-size:.75rem
}
.barcode{
  width:75px;
  height:25px;
  background:repeating-linear-gradient(90deg,#172c42 0 2px,transparent 2px 4px,#172c42 4px 5px,transparent 5px 8px,#172c42 8px 12px,transparent 12px 14px)
}
.countdown{
  background:#0b203d;
  border-bottom:1px solid var(--line)
}
.count-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.5rem 0;
  gap:1rem
}
.count-inner h2{
  font-size:1.65rem;
  margin:0
}
.clock{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap
}
.digit{
  text-align:center;
  background:#07172c;
  border:1px solid var(--line);
  border-radius:6px;
  padding:.55rem .7rem;
  min-width:4.5rem
}
.digit b{
  display:block;
  font:700 1.6rem var(--mono);
  color:#eed081
}
.digit small{
  font:.65rem var(--mono);
  color:var(--muted);
  text-transform:uppercase
}
.section{
  padding:3.5rem 0;
  border-bottom:1px solid var(--line)
}
h2{
  font:clamp(1.85rem,4vw,3.3rem)/1.1 var(--serif);
  margin-bottom:.8rem
}
.player{
  min-height:clamp(175px,38vw,390px);
  display:grid;
  place-content:center;
  text-align:center;
  position:relative;
  color:var(--muted);
  background:radial-gradient(ellipse,#1c4267,#0b1c34 72%);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden
}
.player>span{
  font-size:3rem;
  color:#e3c067
}
.player:has(video){
  display:block;
  min-height:0
}
video{
  display:block;
  width:100%;
  max-height:650px;
  background:#000
}
.verse{
  margin:2rem 0 0;
  text-align:center;
  padding:2.5rem clamp(1rem,6vw,6rem);
  border:1px solid #d4af3750;
  border-radius:10px;
  background:#0c203c
}
.verse div,.verse figcaption{
  color:#e3c067;
  font-family:var(--mono)
}
blockquote{
  font:clamp(1.35rem,3vw,2.1rem)/1.4 var(--serif);
  margin:.7rem 0 1rem
}
.capsule{
  display:grid;
  grid-template-columns:1.5fr .5fr;
  gap:2rem;
  align-items:center
}
.envelope{
  margin:auto;
  width:min(100%,180px);
  aspect-ratio:1.5;
  border:1px solid #e3c067;
  border-radius:8px;
  background:linear-gradient(150deg,transparent 49%,#e3c067 50%,transparent 51%) left top/50% 56% no-repeat,linear-gradient(210deg,transparent 49%,#e3c067 50%,transparent 51%) right top/50% 56% no-repeat,#142d4b;
  display:grid;
  place-items:center;
  transform:rotate(-8deg)
}
.envelope span{
  border-radius:50%;
  background:#d4af37;
  color:var(--navy);
  padding:.25rem .55rem
}
.sealed .envelope{
  animation:stamp .6s ease-out
}
@keyframes stamp{
  0%{
    transform:scale(.7) rotate(12deg)
  }
  60%{
    transform:scale(1.12) rotate(-10deg)
  }
}
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
  gap:1rem;
  margin-top:1rem
}
.card,details.panel{
  padding:1rem;
  border:1px solid var(--line);
  background:#0b203b;
  border-radius:8px;
  margin-bottom:.65rem
}
.card h3{
  margin:.2rem 0
}
.card p:last-child{
  margin-bottom:0
}
.polaroid{
  display:block;
  text-align:left;
  background:var(--cream);
  color:var(--navy);
  padding:.6rem .6rem 1rem
}
.polaroid img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  margin-bottom:.5rem
}
.stops{
  margin-top:1.2rem;
  border-left:1px dashed #c9a44e;
  padding-left:1rem
}
.stops details{
  margin:0 0 .6rem
}
.stops summary,summary{
  cursor:pointer;
  padding:.35rem 0
}
.date{
  color:#e3c067;
  font:700 .82rem var(--mono);
  margin-right:.65rem
}
form{
  display:grid;
  gap:.8rem
}
form>.gold{
  justify-self:start
}
label{
  display:grid;
  gap:.25rem;
  font-weight:600
}
input,textarea,select{
  width:100%;
  min-height:44px;
  background:#07172c;
  border:1px solid #7184a4;
  border-radius:5px;
  color:var(--cream);
  padding:.55rem .7rem
}
input[type=checkbox]{
  min-height:auto;
  width:auto
}
textarea{
  resize:vertical;
  min-height:84px
}
.inline-label{
  display:flex;
  align-items:center;
  gap:.45rem
}
.trap{
  position:absolute;
  left:-10000px
}
.preserve{
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
footer{
  text-align:center;
  padding:3.5rem 0;
  background:#061125;
  color:var(--muted)
}
.closing{
  font:italic clamp(1.35rem,3vw,2rem)/1.35 var(--serif);
  color:var(--cream);
  max-width:35ch;
  margin:0 auto 1.5rem
}
footer .brand{
  color:#e3c067
}
footer p{
  margin-bottom:.3rem
}
dialog{
  width:min(620px,calc(100% - 2rem));
  max-height:90dvh;
  border:1px solid #8b774e;
  background:#0b203d;
  color:var(--cream);
  border-radius:12px;
  padding:2rem
}
dialog::backdrop{
  background:#020916df
}
.close{
  position:absolute;
  top:.25rem;
  right:.25rem;
  font-size:1.4rem
}
.intro{
  border:0;
  width:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  border-radius:0;
  text-align:center;
  background:radial-gradient(ellipse at center,#113862,#040e20 75%)
}
.intro[open]{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}
.intro #scan{
  min-height:2.5em;
  color:#e7c76b;
  font-family:var(--mono)
}
.radar{
  width:150px;
  aspect-ratio:1;
  border-radius:50%;
  margin:0 0 2rem;
  display:grid;
  place-items:center;
  font-size:2rem;
  background:repeating-radial-gradient(circle,transparent 0 22px,#78a6cb45 23px 24px);
  position:relative;
  overflow:hidden
}
.radar:before{
  content:'';
  position:absolute;
  inset:0;
  background:conic-gradient(transparent 65%,#d4af375e);
  animation:sweep 3s linear infinite
}
.radar span{
  z-index:1
}
@keyframes sweep{
  to{
    transform:rotate(360deg)
  }
}
.arriving .hero-copy,.arriving .ticket-wrap{
  animation:arrive .7s ease-out both
}
@keyframes arrive{
  from{
    opacity:0;
    transform:translateY(18px)
  }
}
#photo figure{
  margin:0 0 1rem;
  text-align:center
}
#photo img{
  max-width:100%;
  max-height:60dvh;
  object-fit:contain
}
#notice:not(:empty){
  position:fixed;
  bottom:1rem;
  right:1rem;
  z-index:4;
  max-width:min(400px,calc(100vw - 2rem));
  background:#172d49;
  border:1px solid #d4af37;
  border-radius:6px;
  padding:.8rem 1rem
}
.admin-grid{
  display:grid;
  gap:1rem
}
.stop-edit{
  border:1px solid var(--line);
  padding:.75rem;
  border-radius:6px
}
.code-out{
  overflow-wrap:anywhere;
  color:#efce68;
  font-family:var(--mono)
}
@media(max-width:820px){
  .hero-grid{
    gap:1rem;
    min-height:470px
  }
  .ticket-head,.ticket-body,.ticket-foot{
    padding-left:.85rem;
    padding-right:.85rem
  }
}
@media(max-width:620px){
  .top nav{
    display:none
  }
  .shell{
    width:calc(100% - 2rem)
  }
  .top{
    padding:0 1rem;
    height:62px
  }
  .hero-grid{
    display:block;
    padding-bottom:1.3rem
  }
  .hero-copy{
    padding:2.8rem 0 .25rem
  }
  .ticket{
    transform:rotate(-2deg)
  }
  .ticket-wrap{
    padding:1.5rem .3rem
  }
  .compass{
    right:.2rem
  }
  .count-inner{
    display:block
  }
  .clock{
    margin-top:.9rem;
    gap:.35rem
  }
  .digit{
    flex:1;
    min-width:0
  }
  .count-inner h2{
    font-size:1.45rem
  }
  .section{
    padding:2.4rem 0
  }
  .capsule{
    grid-template-columns:1fr
  }
  .envelope{
    grid-row:1;
    width:100px;
    margin:0 0 0 .5rem
  }
  .flight strong{
    font-size:1.2rem
  }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none!important;
    scroll-behavior:auto!important
  }
}
@media print{
  body>*:not(#print-letter){
    display:none!important
  }
  body{
    background:white;
    color:black
  }
  #print-letter{
    display:block!important;
    padding:1cm
  }
  #print-letter h2{
    font-size:22pt
  }
  #print-letter section{
    break-inside:avoid
  }
  .preserve{
    white-space:pre-wrap
  }
}
.hero::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:url('/flight-map.svg') 100% 41%/min(83vw,900px) auto no-repeat;
  opacity:.22;
  mask-image:linear-gradient(90deg,transparent 5%,#000 52%)
}
.hero-grid{
  position:relative;
  z-index:1
}
.player:not(:has(video)){
  background:linear-gradient(#081a3350,#081a33c0),url('/ridge.svg') center bottom/cover;
  color:#f8f5ed
}
.player>span{
  filter:drop-shadow(0 0 16px #070f22)
}
.digit b{
  font-variant-numeric:tabular-nums
}
@media(max-width:620px){
  .hero::after{
    background-size:660px auto;
    background-position:65% 85%;
    mask-image:linear-gradient(transparent,#000 55%)
  }
}
