/* LUCAS AIRLINES — strict greyscale: #000 / #FFF / #888 / #444 / #1A1A1A */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #fff; text-decoration: none; }
a:hover { color: #888; }
::selection { background: #fff; color: #000; }

/* ---------- media (still fallback under video) ---------- */
.media { position: relative; overflow: hidden; background: #000; }
.media .still,
.media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.media video { opacity: 0; transition: opacity 2s ease; }
.media video.live { opacity: 1; }

/* ---------- reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.rule {
  width: min(520px, 60vw);
  height: 1px;
  margin: 0 auto;
  background: #444;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rule.in { transform: scaleX(1); opacity: 1; }

[data-parallax] { will-change: transform; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.hero-media { position: absolute; inset: 0; }
.scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-inner {
  position: relative; text-align: center;
  opacity: 0;
  animation: heroIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.wordmark { display: inline-flex; flex-direction: column; align-items: center; user-select: none; }
.wm-lucas {
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(44px, 9vw, 118px);
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* optical centering of trailing tracking */
  line-height: 1;
}
.wm-airlines {
  font-stretch: 110%;
  font-weight: 300;
  font-size: clamp(11px, 2vw, 24px);
  letter-spacing: 0.92em;
  margin-right: -0.92em;
  margin-top: 0.9em;
  color: #888;
}
.hero-line {
  margin-top: 5.5vh;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #888;
}
/* centred by inset, not by transform: heroIn animates transform and would
   otherwise clobber a translateX(-50%) once the animation settles */
.scroll-cue {
  position: absolute; bottom: 32px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 9px; letter-spacing: 0.4em; color: #444;
  pointer-events: none;
  opacity: 0;
  animation: heroIn 2s ease 3.2s forwards;
}
.scroll-cue > span:not(.scroll-tick) { margin-right: -0.4em; } /* optical centering of trailing tracking */
.scroll-tick {
  width: 1px; height: 36px; background: #444; display: block;
  animation: tick 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  transform-origin: top;
}
@keyframes tick { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; transform: scaleY(1); } 100% { transform-origin: bottom; transform: scaleY(0); } }

/* ---------- manifesto ---------- */
.manifesto { padding: 22vh 24px 26vh; text-align: center; }
.manifesto .rule { margin-bottom: 24vh; }
.manifesto-lines { display: flex; flex-direction: column; gap: 18vh; }
.m-line {
  font-weight: 100;
  font-stretch: 118%;
  font-size: clamp(20px, 2.8vw, 34px);
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: #fff;
  text-wrap: balance;
}

/* ---------- aircraft ---------- */
.aircraft { padding: 0 0 24vh; text-align: center; }
.aircraft .rule { margin-bottom: 16vh; }
.detail-media {
  width: min(1400px, 92vw);
  aspect-ratio: 21 / 9;
  margin: 0 auto;
  border: 1px solid #1a1a1a;
}
/* ---------- invitation ---------- */
.invitation {
  padding: 0 24px 26vh; text-align: center;
  overflow: hidden;
  transition: max-height 2.4s cubic-bezier(0.16, 1, 0.3, 1), padding 2.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 2s ease;
}
.invitation.collapsed { max-height: 0 !important; padding-bottom: 0; opacity: 0; pointer-events: none; }
.invitation .rule { margin-bottom: 20vh; }
.inv-header { font-size: 13px; font-weight: 300; letter-spacing: 0.5em; color: #fff; margin-bottom: 9vh; }
#inquiry {
  display: flex; justify-content: center; align-items: stretch; gap: 0;
  max-width: 520px; margin: 0 auto;
  transition: opacity 2s ease;
}
#inquiry.gone { opacity: 0; pointer-events: none; }
#inquiry input {
  flex: 1; min-width: 0;
  background: transparent; border: 1px solid #444; border-right: none;
  color: #fff; font-family: inherit; font-weight: 300;
  font-size: 12px; letter-spacing: 0.2em; text-align: center;
  padding: 18px 20px; outline: none;
  transition: border-color 0.6s ease;
}
#inquiry input:focus { border-color: #888; }
#inquiry button {
  display: flex; align-items: center; justify-content: center;
  width: 56px;
  background: transparent; border: 1px solid #444;
  color: #888; cursor: pointer;
  transition: color 0.6s ease, border-color 0.6s ease;
}
#inquiry button:hover { color: #fff; border-color: #888; }
#inquiry button svg { display: block; }
#rejection {
  font-size: 12px; letter-spacing: 0.34em; line-height: 2.4; color: #fff;
  opacity: 0; transform: translateY(12px);
  transition: opacity 2.4s cubic-bezier(0.16,1,0.3,1), transform 2.4s cubic-bezier(0.16,1,0.3,1);
}
#rejection.in { opacity: 1; transform: none; }
#rejection.out { opacity: 0; transform: none; }

/* ---------- footer ---------- */
footer { padding: 0 24px 12vh; text-align: center; }
footer .rule { margin-bottom: 12vh; }
.wordmark-sm .wm-lucas { font-size: 22px; }
.wordmark-sm .wm-airlines { font-size: 7px; letter-spacing: 0.78em; margin-right: -0.78em; margin-top: 0.8em; color: #444; }
.foot-copy { margin-top: 6vh; font-size: 9px; letter-spacing: 0.3em; color: #444; }
.foot-soon { margin-top: 4vh; font-size: 10px; letter-spacing: 0.6em; text-indent: 0.6em; color: #888; }

/* ---------- responsive / motion prefs ---------- */
@media (max-width: 640px) {
  .detail-media { aspect-ratio: 4 / 3; width: 100vw; border-left: none; border-right: none; }
  .manifesto-lines { gap: 14vh; }
  #inquiry button { width: 52px; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .rule, #rejection, .hero-inner, .scroll-cue { transition: none; animation: none; opacity: 1; transform: none; }
  .scroll-tick { animation: none; transform: none; }
}
