/* Bruv Aviation — shared styles. Plain CSS, no build step. */
:root {
  --bg: #EFEFEC;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #3D3D3A;
  --line: #CFCFC8;
  --amber: #D9A94A;
  --amber-ink: #7A5710; /* amber dark enough for text on light bg */
  --red: #C8102E;
  --band-bg: #111111;
  --band-ink: #EFEFEC;
  --focus: #C8102E;
  --maxw: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1B1B1A;
    --ink: #EFEFEC;
    --muted: #BDBDB6;
    --line: #34342F;
    --amber-ink: #D9A94A;
    --band-bg: #D9A94A;
    --band-ink: #111111;
    --focus: #D9A94A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3.25rem, 16vw, 7.5rem); }
h2 { font-size: clamp(2rem, 8vw, 3.25rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--amber); } }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header { border-bottom: 3px solid var(--ink); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem; flex-wrap: wrap;
}
.brand {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  text-transform: uppercase; font-size: 1.75rem; text-decoration: none;
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem;
}
.brand .dot { width: 0.7rem; height: 0.7rem; background: var(--red); display: inline-block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

/* Hero */
.hero { padding: 3rem 0 2.5rem; border-bottom: 3px solid var(--ink); }
.eyebrow {
  display: inline-block; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem;
  background: var(--amber); color: #111; padding: 0.25rem 0.6rem; margin-bottom: 1.25rem;
}
.hero h1 .red { color: var(--red); }
@media (prefers-color-scheme: dark) { .hero h1 .red { color: var(--amber); } }
.lede { font-size: 1.25rem; max-width: 36rem; color: var(--muted); }
.lede strong { color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem;
  padding: 0.9rem 1.4rem; border: 3px solid var(--ink);
  background: var(--red); color: #fff; border-color: var(--red);
}
.btn:hover { background: #A00D25; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Sections */
section { padding: 3rem 0; }
.section-head p { color: var(--muted); max-width: 38rem; }

.cards {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 2px solid var(--ink);
  padding: 1.25rem; position: relative;
}
.card::before {
  content: ""; position: absolute; left: -2px; top: -2px;
  width: 3rem; height: 6px; background: var(--amber);
}
.card .num {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  color: var(--red); font-size: 1rem; letter-spacing: 0.1em;
}
@media (prefers-color-scheme: dark) { .card .num { color: var(--amber); } }
.card h3 { margin: 0.25rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); }

/* Dark band */
.band { background: var(--band-bg); color: var(--band-ink); }
.band a { color: inherit; }
.band .muted { opacity: 0.85; }

.rules { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.rules li {
  border-left: 6px solid var(--red); padding: 0.5rem 0 0.5rem 1rem;
  font-weight: 600; font-size: 1.1rem;
}

.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111 14px 28px);
}

.cta { text-align: left; }
.cta .mail { font-weight: 700; font-size: 1.15rem; }

/* Legal / docs pages */
.doc { padding: 2.5rem 0 3rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.75rem, 12vw, 4.5rem); }
.doc h2 { font-size: 1.75rem; margin-top: 2rem; border-top: 2px solid var(--line); padding-top: 1.25rem; }
.doc h3 { font-size: 1.25rem; margin-top: 1.25rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
.draft-note {
  background: var(--amber); color: #111; font-weight: 700;
  padding: 0.6rem 16px; text-align: center; font-size: 0.95rem;
}

details { border: 2px solid var(--ink); background: var(--surface); margin-bottom: 0.75rem; }
summary { cursor: pointer; padding: 0.9rem 1rem; font-weight: 700; font-size: 1.1rem; }
details > div { padding: 0 1rem 1rem; }
details p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 3px solid var(--ink); padding: 1.75rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* =================== Home page: hangar edition =================== */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.home { overflow-x: hidden; }
.site-header.dark { background: #111; color: #EFEFEC; border-bottom: 0; }
.site-header.dark a:hover { color: #D9A94A; }
.site-header.dark :focus-visible { outline-color: #D9A94A; }

/* Hero: always dark, amber + red stripe, faint rivet grid */
.hero2 {
  position: relative; background: #111; color: #EFEFEC; padding: 2.5rem 0 3rem;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(239,239,236,.09) 2px, transparent 2.6px),
    linear-gradient(180deg, #151514 0%, #0c0c0b 100%);
  background-size: 48px 48px, 100% 100%;
  border-top: 6px solid #C8102E;
}
.hero2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #D9A94A;
}
.hero2 :focus-visible { outline-color: #D9A94A; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.stencil-tag, .kicker {
  font-family: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
}
.stencil-tag {
  display: inline-block; color: #111; background: #D9A94A; padding: .2rem .65rem;
  font-size: .95rem; margin-bottom: 1rem;
}
.hero2 h1 { font-size: clamp(4rem, 22vw, 9rem); font-weight: 900; margin-bottom: .3em; }
.hero2 h1 .amber { color: #D9A94A; }
.lede2 { font-size: 1.2rem; color: #C9C9C3; max-width: 34rem; }
.lede2 strong { color: #EFEFEC; }
.btn.ghost-light { background: transparent; color: #EFEFEC; border-color: #EFEFEC; }
.btn.ghost-light:hover { background: #EFEFEC; color: #111; }
.btn.big { font-size: 1.1rem; padding: 1.1rem 1.8rem; }
.coming {
  display: inline-flex; align-items: center; gap: .5rem; margin: 1.5rem 0 0;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem;
  color: #D9A94A; border: 2px dashed rgba(217,169,74,.6); padding: .45rem .8rem;
}
.coming svg { display: inline-block; }

/* Stage: Bruv next to the phone */
.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.bruv-man {
  width: 50%; max-width: 250px; flex: none; margin-right: -14%; position: relative; z-index: 2;
  align-self: flex-end; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.bruv-face .eye { transform-box: fill-box; transform-origin: center; }
.bruv-face .mouth { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .bruv-man { animation: bruvBob 3.2s ease-in-out infinite; }
  .bruv-face .eye { animation: bruvBlink 5s infinite; }
  .bruv-man.talking .mouth { animation: bruvTalk .22s infinite alternate; }
}
@keyframes bruvBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes bruvTalk { from { transform: scaleY(.35); } to { transform: scaleY(1.25); } }
@keyframes bruvBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Phone mockup */
.phone { margin: 0; width: 64%; max-width: 300px; min-width: 0; flex: none; position: relative; z-index: 1; }
.phone-body {
  background: #1d1d1c; border: 3px solid #3a3a37; border-radius: 34px; padding: 12px 10px 12px;
  box-shadow: 0 0 0 2px #0a0a0a, 0 24px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
  display: flex; flex-direction: column; height: 460px; overflow: hidden;
}
.phone-notch { width: 34%; height: 18px; background: #0a0a0a; border-radius: 0 0 12px 12px; margin: -12px auto 6px; }
.phone-top {
  display: flex; align-items: center; gap: .4rem; font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800; text-transform: uppercase; font-size: 1.1rem; color: #EFEFEC;
  padding: 0 .4rem .5rem; border-bottom: 1px solid #333;
}
.phone-top small { font-family: "Barlow", sans-serif; font-weight: 600; font-size: .7rem; color: #9a9a93; letter-spacing: .06em; }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6a; box-shadow: 0 0 6px #3fbf6a; }
.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem;
  padding: .6rem .25rem; overflow: hidden; font-size: .82rem; line-height: 1.35;
}
.msg { max-width: 86%; padding: .5rem .7rem; border-radius: 14px; }
.msg.me { align-self: flex-end; background: #C8102E; color: #fff; border-bottom-right-radius: 4px; }
.msg.bruv { align-self: flex-start; background: #EFEFEC; color: #111; border-bottom-left-radius: 4px; }
.chip {
  align-self: flex-start; border: 2px solid #D9A94A; color: #D9A94A; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; padding: .35rem .7rem; border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}
.chip.press { background: #D9A94A; color: #111; transform: scale(.95); }
.page-card {
  align-self: flex-start; width: 78%; background: #fbf8ef; color: #111; border-radius: 6px;
  padding: .5rem .6rem .6rem; border-left: 5px solid #D9A94A; display: grid; gap: 4px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
.page-card b { font-family: "Big Shoulders Display", sans-serif; font-size: .95rem; letter-spacing: .04em; }
.page-card span { font-size: .68rem; color: #555; }
.page-card i { display: block; height: 5px; background: #d8d3c4; border-radius: 2px; }
.page-card i:nth-of-type(2) { width: 85%; }
.page-card i.hl { background: #D9A94A; width: 70%; }
.phone-input {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  background: #2a2a28; border-radius: 999px; padding: .4rem .45rem .4rem .9rem; font-size: .8rem; color: #8d8d86;
}
.phone-input b { background: #C8102E; color: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* Animated mode (JS adds .live; without JS or with reduced motion everything is shown) */
.chat.live > * { display: none; }
.chat.live > .in { display: block; animation: pop .28s ease-out; }
.chat.live > .page-card.in { display: grid; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.msg.typing { display: flex !important; gap: 4px; padding: .65rem .8rem; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #555; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.demo-toggle {
  display: block; margin: .8rem auto 0; background: transparent; color: #EFEFEC; border: 2px solid #555;
  font: 700 .75rem "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .1em; padding: .4rem .8rem; cursor: pointer;
}
.demo-toggle:hover { border-color: #D9A94A; color: #D9A94A; }
.demo-toggle[hidden] { display: none; }
@media (max-width: 26rem) {
  .phone-body { height: 400px; border-radius: 28px; }
  .chat { font-size: .78rem; }
}

/* Section chrome */
.kicker { color: var(--red); font-size: 1rem; margin: 0 0 .25rem; }
.kicker.light { color: #D9A94A; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--amber); } }
.section-lede { color: var(--muted); max-width: 40rem; font-size: 1.12rem; }

/* Riveted panel */
.panel {
  background: var(--surface); border: 2px solid var(--ink); position: relative; padding: 1.5rem 1.25rem 1.25rem;
  background-image:
    radial-gradient(circle, var(--rivet) 2.2px, transparent 2.8px),
    radial-gradient(circle, var(--rivet) 2.2px, transparent 2.8px),
    radial-gradient(circle, var(--rivet) 2.2px, transparent 2.8px),
    radial-gradient(circle, var(--rivet) 2.2px, transparent 2.8px);
  background-size: 12px 12px;
  background-position: 6px 6px, calc(100% - 6px) 6px, 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px);
  background-repeat: no-repeat;
}
:root { --rivet: #9d9d95; }
@media (prefers-color-scheme: dark) { :root { --rivet: #55554f; } }
.panel h3 { margin-bottom: .4rem; }
.panel p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-n {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .75rem;
  font-family: "Big Shoulders Stencil Display", "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2rem;
  background: #111; color: #D9A94A; border: 3px solid #D9A94A;
}

/* Library bookshelf */
.library { background: var(--surface); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.shelf-unit {
  margin: 1.75rem 0 1rem; background: #2a1d14; padding: 1rem 12px 0; border: 3px solid #111;
  background-image: linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 30px);
}
.shelf-label {
  font-size: .95rem; color: #D9A94A; letter-spacing: .12em; margin: .25rem 0 .5rem;
}
.shelf {
  list-style: none; margin: 0 0 1rem; padding: 0 4px; display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 5px; min-height: 168px; border-bottom: 12px solid #6B4A2A; box-shadow: 0 6px 0 #1a1204;
}
.book {
  width: 38px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8px 0; border-radius: 3px 3px 0 0; position: relative; color: #111;
  box-shadow: inset -4px 0 0 rgba(0,0,0,.18), inset 3px 0 0 rgba(255,255,255,.15);
  transition: transform .2s;
}
.book span, .book em {
  writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: .8rem;
  letter-spacing: .04em; white-space: nowrap; text-transform: uppercase;
}
.book::before, .book::after { content: ""; position: absolute; left: 4px; right: 4px; height: 3px; background: rgba(0,0,0,.25); }
.book::before { top: 16px; } .book::after { bottom: 16px; }
.book.tall { height: 164px; }
.b-cfr { background: #EFEFEC; }
.b-ac { background: #4f6b52; color: #fff; }
.b-ac:nth-child(3n) { background: #3e5a78; }
.b-ac:nth-child(4n) { background: #7c3b2e; }
.b-ord { background: #C8102E; color: #fff; width: 44px; }
.b-hb { background: #D9C9A0; width: 46px; }
.b-hb span { font-size: .72rem; }
.book.bible {
  width: 58px; height: 166px; background: #D9A94A; color: #111;
  box-shadow: inset -5px 0 0 rgba(0,0,0,.2), 0 0 0 2px #111, 0 0 18px rgba(217,169,74,.55);
}
.book.bible span { font-size: .95rem; font-family: "Big Shoulders Display", sans-serif; font-weight: 900; }
.book.bible em { font-style: normal; font-size: .62rem; background: #C8102E; color: #fff; padding: 4px 1px; }
@media (prefers-reduced-motion: no-preference) {
  .book:hover { transform: translateY(-8px); }
}
@media (max-width: 26rem) {
  .book { width: 34px; }
  .book.bible { width: 52px; }
  .b-hb { width: 42px; }
}

/* Warbirds band */
.warbirds { background: #111; color: #EFEFEC; position: relative; border-top: 6px solid #C8102E; }
.warbirds p { color: #C9C9C3; }
.warbirds .split { align-items: center; }
.trainer { color: #D9A94A; width: 100%; max-width: 520px; margin: 0 auto; }
.stamp {
  display: inline-block; margin-top: .5rem; font-family: "Big Shoulders Stencil Display", "Big Shoulders Display", sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 1.3rem;
  color: #FF5A6E !important; border: 3px solid #FF5A6E; padding: .3rem .7rem; transform: rotate(-2deg);
}

/* Rules */
.rule-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 44rem) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
.rule-grid .panel { border-left: 10px solid var(--red); }

/* Closing CTA */
.cta2 {
  background: #111; color: #EFEFEC; text-align: center; padding: 4rem 0 4.5rem; position: relative;
  background-image: repeating-linear-gradient(-45deg, #D9A94A 0 14px, #111 14px 28px), radial-gradient(circle at 12px 12px, rgba(239,239,236,.08) 2px, transparent 2.6px);
  background-size: 100% 14px, 48px 48px; background-repeat: no-repeat, repeat; background-position: top, 0 0;
}
.cta2 h2 { font-size: clamp(2.75rem, 13vw, 5rem); color: #D9A94A; }
.cta-lede { max-width: 34rem; margin: 0 auto 1rem; font-size: 1.15rem; color: #C9C9C3; }
.cta2 .btn-row { justify-content: center; }
.cta2 .mail { margin-top: 1.25rem; font-weight: 700; }
.cta2 .mail a:hover { color: #D9A94A; }
.cta2 .fine { max-width: 38rem; margin: 2rem auto 0; font-size: .88rem; color: #9a9a93; }
.cta2 :focus-visible { outline-color: #D9A94A; }
.book abbr { text-decoration: none; }
