/* MANIFEST — brutalist / utilitarian clandestine flight dossier.
   Near-black + bone white, ONE signal-red accent. Anton (heavy grotesque)
   over JetBrains Mono. Boarding-pass / redacted-dossier motif:
   stamped field labels, perforations, hairlines, a barcode strip. */

:root {
  --ink: #0a0a0b;        /* near-black ground */
  --ink-2: #121214;      /* panel */
  --ink-3: #1b1b1e;      /* raised panel */
  --bone: #ece9e2;       /* bone white */
  --bone-dim: #b9b6ae;
  --mute: #76746e;       /* low-contrast labels */
  --line: rgba(236, 233, 226, 0.16);
  --line-2: rgba(236, 233, 226, 0.30);
  --signal: #ff2e2e;     /* the single accent — signal red */
  --signal-deep: #c81f1f;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --grotesque: "Anton", Impact, "Arial Narrow Bold", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--bone);
  background: var(--ink);
  background-image:
    /* faint grid like ruled dossier paper */
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(120% 90% at 100% -10%, rgba(255, 46, 46, 0.08), transparent 55%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle scanline / CRT field over everything */
.scan {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.18) 2px 3px);
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

/* ---- shared utility type ---- */
.stamp {
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--signal); font-weight: 700;
  display: inline-block; padding: 4px 0;
}
.kicker {
  font-family: var(--grotesque); font-weight: 400;
  font-size: clamp(1.1rem, 3.2vw, 1.7rem); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--bone);
}
.idx {
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--mute); font-weight: 500;
}
.idx-r { color: var(--signal); }

.redact {
  background: var(--bone); color: var(--bone);
  letter-spacing: 0.06em; padding: 0 4px; border-radius: 1px;
  -webkit-user-select: none; user-select: none;
}

/* ---- top bar ---- */
.bar {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line-2);
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.bar-mark { font-weight: 700; color: var(--bone); }
.bar-meta { color: var(--mute); }
.bar-class {
  margin-left: auto; color: var(--signal); font-weight: 700;
  border: 1px solid var(--signal); padding: 4px 9px; border-radius: 2px;
  white-space: nowrap;
}

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

section { padding: clamp(48px, 9vh, 104px) clamp(18px, 5vw, 64px); }

/* ---- section headers: index + kicker + filling hairline ---- */
.section-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 34px;
}
.rule-fill { flex: 1; height: 1px; background: var(--line-2); min-width: 24px; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  padding-top: clamp(40px, 8vh, 80px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: #060607;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 11, 0.78), rgba(10, 10, 11, 0.92) 60%, rgba(10, 10, 11, 0.99)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center 35%;
  filter: grayscale(1) contrast(1.15) brightness(0.72);
  opacity: 0.6;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1180px;
}
.hero-copy { min-width: 0; }
.display {
  font-family: var(--grotesque); font-weight: 400;
  font-size: clamp(3.2rem, 14vw, 8.5rem); line-height: 0.86;
  letter-spacing: 0.005em; text-transform: uppercase;
  margin: 16px 0 22px; color: var(--bone);
}
.caret { color: var(--signal); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.essence {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(0.95rem, 1.7vw, 1.12rem); color: var(--bone-dim);
  max-width: 46ch; line-height: 1.65;
  padding-left: 16px; border-left: 2px solid var(--signal);
  margin-bottom: 30px;
}
.cta {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 44px;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--ink); background: var(--signal);
  padding: 13px 22px; border-radius: 2px;
  transition: gap 0.18s, background 0.18s, transform 0.12s;
}
.cta:hover { gap: 1.1em; background: var(--bone); transform: translateY(-1px); }

/* ---- boarding pass ---- */
.ticket {
  min-width: 0; background: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 3px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--signal); color: var(--ink);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.ticket-seq { font-weight: 500; }
.ticket-fields { padding: 6px 16px 16px; }
.field {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.field:last-child { border-bottom: none; }
.field dt {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
}
.field dd {
  font-size: 0.92rem; letter-spacing: 0.04em; color: var(--bone); text-align: right;
  font-weight: 500;
}
.field dd.status { color: var(--signal); font-weight: 700; }
/* perforation line */
.perf {
  height: 0; border-top: 2px dashed var(--line-2);
  margin: 0 -1px; position: relative;
}
.perf::before, .perf::after {
  content: ""; position: absolute; top: -11px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--ink);
  border: 1px solid var(--line-2);
}
.perf::before { left: -11px; }
.perf::after { right: -11px; }
/* barcode strip */
.barcode {
  height: 46px; margin: 18px 16px 10px;
  background-image: repeating-linear-gradient(90deg,
    var(--bone) 0 2px, transparent 2px 4px,
    var(--bone) 4px 5px, transparent 5px 9px,
    var(--bone) 9px 12px, transparent 12px 14px);
  opacity: 0.88;
}
.ticket-foot {
  padding: 0 16px 16px; font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}

/* ============ FLEET (spec list) ============ */
.fleet-band { border-bottom: 1px solid var(--line-2); }
.fleet { max-width: 1100px; }
.plane {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 14px 24px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
  position: relative;
}
.plane:first-child { border-top: none; }
.plane::before {
  /* spec row index, generated so it stays brutalist & data-like */
  counter-increment: spec;
  content: "A" counter(spec, decimal-leading-zero);
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--signal); font-weight: 700;
}
.fleet { counter-reset: spec; }
.plane h3 {
  font-family: var(--grotesque); font-weight: 400;
  font-size: clamp(1.25rem, 3.4vw, 2.1rem); letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--bone); line-height: 1;
}
.plane p {
  font-family: var(--mono); color: var(--bone-dim);
  font-size: 0.9rem; line-height: 1.6;
}

/* ============ PILOTS / CREW ============ */
.pilots-band {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2);
  text-align: center;
}
.pilots-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: #060607;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 11, 0.9), rgba(10, 10, 11, 0.95)),
    url("https://images.unsplash.com/photo-1540339832862-474599807836?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.1) brightness(0.6); opacity: 0.5;
}
.pilots-inner { position: relative; z-index: 1; max-width: 60ch; margin: 0 auto; }
.pilots {
  font-family: var(--grotesque); font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 2.4rem); letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--bone); line-height: 1.1;
  margin-top: 14px;
}
.pilots::after {
  content: ""; display: block; width: 64px; height: 3px; background: var(--signal);
  margin: 22px auto 0;
}

/* ============ INVITE / FORM ============ */
.invite { position: relative; overflow: hidden; display: flex; justify-content: center; }
.invite-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: #060607;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 11, 0.92), rgba(10, 10, 11, 0.97)),
    url("https://images.unsplash.com/photo-1514474959185-1472d4c4e0d4?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.1) brightness(0.7); opacity: 0.4;
}
.invite-card {
  position: relative; z-index: 1; width: 100%; max-width: 660px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 3px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.invite-card .section-head { margin-bottom: 16px; }
.invite-sub { color: var(--bone-dim); font-size: 0.9rem; margin-bottom: 30px; }

form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: grid; gap: 8px;
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
  font-weight: 500;
}
.opt { color: var(--bone-dim); letter-spacing: 0.08em; font-weight: 400; }
input, select, textarea {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 400; color: var(--bone);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 2px;
  padding: 12px 12px; min-height: 44px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input::placeholder, textarea::placeholder { color: var(--mute); }
select option { background: var(--ink-2); color: var(--bone); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}
textarea { resize: vertical; }
button[type="submit"] {
  justify-self: start; margin-top: 4px; cursor: pointer; min-height: 44px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--ink); background: var(--signal);
  border: none; border-radius: 2px; padding: 14px 28px;
  transition: background 0.18s, transform 0.12s;
}
button[type="submit"]:hover { background: var(--bone); transform: translateY(-1px); }
button[type="submit"]:disabled { background: var(--mute); transform: none; cursor: default; }
.fine { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.success {
  font-family: var(--mono); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em;
  color: var(--signal); border-left: 2px solid var(--signal); padding-left: 12px;
}

/* ============ FOOTER ============ */
.foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding: 26px clamp(18px, 5vw, 64px); border-top: 1px solid var(--line-2);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.foot-mark { font-weight: 700; color: var(--bone); }
.foot-fine, .foot-seq { color: var(--mute); }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 460px; }
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .plane { grid-template-columns: 1.8rem 1fr; }
  .plane p { grid-column: 1 / -1; }
  .bar-class { margin-left: 0; }
  .foot { justify-content: flex-start; }
  button[type="submit"] { justify-self: stretch; text-align: center; }
}

@media (max-width: 400px) {
  section { padding-left: 16px; padding-right: 16px; }
  .bar { padding-left: 16px; padding-right: 16px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .display { font-size: clamp(2.8rem, 17vw, 3.6rem); }
  .invite-card { padding: 20px 16px; }
  .essence { max-width: 100%; }
  body { background-size: 38px 38px, 38px 38px, 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
