/* PYLOT Academy — shared styles
   Palette: runway navy + signal orange + taxiway yellow (used once, on the runway band).
   Type: Bricolage Grotesque (display), Instrument Sans (body), JetBrains Mono (labels). */

:root {
  --ground: #f3f6fb;
  --surface: #ffffff;
  --tint: #e6edf9;
  --ink: #0b1f3a;
  --ink-soft: #465873;
  --line: #d3dcea;
  --accent: #cf3c08;        /* orange for small text/links: 4.9:1 on ground */
  --accent-fill: #ff5a1f;   /* orange for fills, paired with navy text */
  --on-accent: #0b1f3a;
  --band: #0b1f3a;
  --on-band: #eef3fb;
  --on-band-soft: #aebbd2;
  --runway: #ffd23f;
  --shadow: 0 1px 0 rgba(11, 31, 58, .04), 0 18px 36px -22px rgba(11, 31, 58, .35);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0a1426;
    --surface: #102039;
    --tint: #162b4d;
    --ink: #edf2fb;
    --ink-soft: #a5b5cd;
    --line: #243757;
    --accent: #ff8552;
    --accent-fill: #ff6a33;
    --on-accent: #0a1426;
    --band: #142b50;
    --on-band: #eef3fb;
    --on-band-soft: #a9b9d3;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 36px -22px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--ground);
  padding: 10px 16px; border-radius: 4px; z-index: 10; font-weight: 600;
}
.skip:focus { top: 16px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .32em; color: var(--ink-soft); }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 6px 0; background: linear-gradient(var(--accent-fill), var(--accent-fill)) 0 100% / 0 3px no-repeat;
  transition: background-size .25s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-fill); color: var(--on-accent);
  font-weight: 700; text-decoration: none;
  padding: .85em 1.35em; border-radius: 4px;
  border: 2px solid var(--accent-fill);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -4px rgba(11, 31, 58, .25); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 9vw, 112px); }
.hero-grid { display: grid; gap: 44px; align-items: end; }
.acro { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .92; }
.acro .row { display: block; font-size: clamp(2.9rem, 14.2vw, 6.4rem); }
.acro b { color: var(--accent-fill); font-weight: 800; }
.acro .row.of { padding-left: 1.1em; }
.hero-side { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.hero-side .lead { font-size: 1.2rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.flightpath { position: absolute; right: -10px; bottom: -92px; width: 340px; color: var(--ink-soft); opacity: .55; pointer-events: none; }

@media (max-width: 699px) { .flightpath { display: none; } }

@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; }
  .acro .row { font-size: clamp(5rem, 9.4vw, 6.6rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .acro .row { opacity: 0; transform: translateX(-28px); animation: rowin .75s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 80ms); }
  .hero-side > * { opacity: 0; animation: fadeup .7s ease forwards; animation-delay: .55s; }
  @keyframes rowin { to { opacity: 1; transform: none; } }
  @keyframes fadeup { from { transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent-fill); }

.about-grid { display: grid; gap: 40px; }
.about-intro { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.about-intro p { color: var(--ink-soft); font-size: 1.12rem; }
.pillars { display: grid; gap: 16px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.pillar p { color: var(--ink-soft); font-size: 1rem; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 6px; background: var(--tint); color: var(--ink);
  display: grid; place-items: center;
}
.icon-tile svg, .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 720px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } .about-intro { position: sticky; top: 32px; } }

/* runway band */
.band { background: var(--band); color: var(--on-band); position: relative; padding: clamp(64px, 10vw, 120px) 0; }
.band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--runway) 0 28px, transparent 28px 52px);
}
.band p.big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.18; letter-spacing: -.015em; max-width: 24ch; text-wrap: balance; }
.band p.big em { font-style: normal; color: var(--accent-fill); }
.band .mono { color: var(--on-band-soft); }
.band-grid { display: grid; gap: 36px; }
.band .side { color: var(--on-band-soft); max-width: 46ch; font-size: 1.08rem; }
@media (min-width: 900px) { .band-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: center; } }

/* ---------- team card ---------- */
.team-card {
  display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.team-card .lhs { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.team-card .year { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.2rem, 12vw, 7rem); line-height: .85; letter-spacing: -.05em; color: var(--accent-fill); }
.team-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.team-card .lhs p { color: var(--ink-soft); max-width: 46ch; }
.team-card .rhs { background: var(--tint); padding: clamp(24px, 4vw, 44px); display: grid; gap: 0; align-content: center; }
.hl { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.hl:first-child { border-top: 0; }
.hl .ic { flex: none; width: 26px; height: 26px; }
.hl b { font-family: var(--font-display); font-weight: 700; display: block; line-height: 1.2; }
.hl span { color: var(--ink-soft); font-size: .93rem; }
.team-card .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 6px; }
.team-card .go svg { width: 18px; height: 18px; transition: transform .2s ease; }
.team-card:hover .go svg { transform: translateX(5px); }
@media (min-width: 860px) { .team-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.site-footer p { color: var(--ink-soft); font-size: .93rem; }
.site-footer .links { display: flex; gap: 24px; font-weight: 600; font-size: .95rem; }
.site-footer .links a { text-decoration: none; }
.site-footer .links a:hover { text-decoration: underline; text-decoration-color: var(--accent-fill); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ================= team page ================= */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero { padding: clamp(16px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.7rem, 9vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: .94; max-width: 12ch; }
.page-hero h1 span { color: var(--accent-fill); }
.page-hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; margin-top: 26px; }
.facts { display: grid; gap: 0; margin-top: 44px; border-top: 2px solid var(--ink); }
.fact { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } .fact { border-bottom: 0; padding-right: 8px; } }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 640px; }
.section-head p { color: var(--ink-soft); }

.members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .members { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink);
}
.member h3 { font-size: 1.12rem; }
.member .role { color: var(--ink-soft); font-size: .93rem; line-height: 1.45; }
.member.placeholder { border: 1.5px dashed color-mix(in srgb, var(--ink-soft) 60%, transparent); }
.member.placeholder .avatar { color: var(--ink-soft); }

.log { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.entry { display: grid; gap: 18px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.entry .tag { padding-top: .5rem; }
.entry .tag { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.entry .tag .ic { width: 30px; height: 30px; color: var(--accent); }
.entry h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.entry .body { display: flex; flex-direction: column; gap: 22px; }
.entry .body > p { color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 860px) { .entry { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px; } }

.builds { display: grid; gap: 12px; margin-top: 4px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.build { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.build .ic { width: 30px; height: 30px; color: var(--accent); }
.build b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.build span { color: var(--ink-soft); font-size: .93rem; line-height: 1.45; }

.thanks { background: var(--tint); border-radius: 6px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; }
.thanks h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.thanks p { color: var(--ink-soft); max-width: 62ch; }
.back { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ================= photos & video ================= */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: var(--ar, auto); object-fit: cover; object-position: var(--pos, 50% 50%);
  border-radius: 6px; background: var(--tint);
}
.shot figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
.shots { display: grid; gap: 18px; align-items: start; }
.shots.single { max-width: 560px; }
@media (min-width: 620px) {
  .shots.pair { grid-template-columns: 1fr 1fr; }
  .shots.wide-tall { grid-template-columns: 5fr 3fr; }
}

.videos { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); max-width: 330px; }
@media (min-width: 600px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; } }
.video { margin: 0; }
.video video {
  display: block; width: 100%; height: auto; aspect-ratio: 478 / 850; object-fit: contain;
  background: #000; border-radius: 6px;
}
.video figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
.video figcaption b { color: var(--ink); font-weight: 600; }

/* team page hero with photo */
.hero-split { display: grid; gap: 36px; }
.hero-split h1 { font-size: clamp(2.7rem, 9vw, 5.4rem); }
.hero-photo img { aspect-ratio: 4 / 3; --pos: 57% 50%; }
@media (min-width: 960px) {
  .hero-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; }
  .hero-photo img { aspect-ratio: 4 / 5; }
}

/* home: team card cover photo */
.team-card .cover { grid-column: 1 / -1; margin: 0; }
.team-card .cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 74%; }
@media (min-width: 860px) { .team-card .cover img { aspect-ratio: 21 / 8; } }

/* home: community band photo */
.band .photo { margin: 0 0 22px; }
.band .photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); }
.band .photo figcaption { margin-top: 10px; font-size: .86rem; color: var(--on-band-soft); }
