/* Airhawks Flying Club — minimal one-page design
   Calm, airy, brown + purple. Whitespace over rules. */

:root {
  --bg: #ffffff;
  --paper: #f7f3ec;
  --ink: #29211a;
  --ink-2: #574a3f;
  --muted: #8a7d6e;
  --line: #e7e0d4;
  --brown: #4a3528;
  --brown-2: #6b4d3a;
  --purple: #6b4d3a;
  --purple-2: #8a6a4f;
  --ticker-h: 38px;

  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
@media (max-width: 680px) { :root { --pad: 22px; } body { font-size: 16px; } }

/* type helpers */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
}
.serif { font-family: var(--serif); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

/* ================= NAV ================= */
/* ================= TICKER ================= */
.ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--ticker-h);
  background: var(--brown);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker 48s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.ticker-track .dot { color: var(--purple-2); }
.ticker-track .sep { opacity: 0.32; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 680px) { :root { --ticker-h: 34px; } }

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: var(--ticker-h); left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-row {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-logo { height: 46px; width: auto; }
.nav.at-top .nav-logo { filter: drop-shadow(0 1px 10px rgba(0,0,0,0.35)); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .15s;
}
.nav.at-top .nav-links a { color: rgba(255,255,255,0.85); }
.nav-links a:hover { color: var(--purple); }
.nav.at-top .nav-links a:hover { color: #fff; }
.nav-join {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff !important;
  font-weight: 500;
  transition: background .15s, transform .15s;
}
.nav-join:hover { background: var(--purple-2); transform: translateY(-1px); }
.nav.at-top .nav-join { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.5); }
.nav.at-top .nav-join:hover { background: rgba(255,255,255,0.25); }
.nav-burger { display: none; background: none; border: 0; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: .2s; }
.nav.at-top .nav-burger { color: #fff; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px var(--pad); color: var(--ink-2) !important; }
  .nav.at-top .nav-links a { color: var(--ink-2) !important; }
  .nav-join { margin: 8px var(--pad); text-align: center; }
  .nav.at-top .nav-join { background: var(--purple); border: 0; }
  .nav-burger { display: block; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(41,33,26,0.45) 0%, rgba(41,33,26,0.15) 40%, rgba(41,33,26,0.7) 100%),
    linear-gradient(90deg, rgba(74,53,40,0.55) 0%, rgba(74,53,40,0.05) 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}
.hero .eyebrow { color: rgba(255,255,255,0.9); }
.hero h1 {
  color: #fff;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.98;
  margin: 22px 0 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero h1 em { font-style: italic; }
.hero-lede {
  margin: 32px 0 0;
  max-width: 30em;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  font-family: var(--serif);
}
.hero-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  font-weight: 500;
  font-size: 15.5px;
  transition: transform .15s, background .15s;
}
.hero-cta:hover { transform: translateY(-2px); background: #fff; }
.hero-cap {
  position: absolute;
  right: var(--pad); bottom: 22px;
  z-index: 2;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 14px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  border-radius: 2px;
  background: rgba(255,255,255,0.8);
  transform: translateX(-50%);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; transform: translate(-50%, 8px); }
}
@media (max-width: 680px) { .hero-cap { display: none; } }

/* ================= SECTIONS ================= */
section { position: relative; }
.band { padding: clamp(90px, 13vw, 180px) 0; }
.band-paper { background: var(--paper); }

.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.pending { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .reveal.pending { opacity: 1; transform: none; transition: none; }
}

/* mission statement — big calm centered */
.mission {
  text-align: center;
  max-width: 20em;
  margin: 0 auto;
}
.mission .eyebrow { display: block; margin-bottom: 28px; }
.mission p {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.mission p .accent { color: var(--purple); font-style: italic; }

/* section heading block */
.shead { max-width: 30em; margin-bottom: clamp(48px, 7vw, 80px); }
.shead .eyebrow { display: block; margin-bottom: 20px; }
.shead h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
}
.shead p {
  margin: 24px 0 0;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34em;
}

/* three calm offerings */
.offer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; gap: 48px; } }
.offer-item { }
.offer-item .num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--purple);
  font-style: italic;
}
.offer-item h3 {
  font-size: 26px;
  margin: 16px 0 12px;
  line-height: 1.2;
}
.offer-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* aircraft — photo led */
.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 820px) { .craft { grid-template-columns: 1fr; gap: 48px; } }
.craft-item figure { margin: 0; }
.craft-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.craft-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.craft-item:hover .craft-photo img { transform: scale(1.03); }
.craft-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 22px;
  gap: 16px;
}
.craft-meta h3 { font-size: 32px; }
.craft-tail {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--purple);
  font-weight: 500;
}
.craft-item.brown .craft-tail { color: var(--brown-2); }
.craft-item p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; max-width: 32em; }

/* scholarships — split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-photo {
  aspect-ratio: 5 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-photo.portrait { aspect-ratio: 4 / 5; }
.split-photo.portrait img { object-position: center 28%; }
.split.flip .split-text { order: -1; }
.split-text h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
}
.split-text .eyebrow { display: block; margin-bottom: 20px; }
.split-text p { margin: 22px 0 0; color: var(--ink-2); font-size: 18px; }

/* about */
.about-lead {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
}
.prose { max-width: 40em; }
.prose h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 14px;
}
.prose h3:not(:first-child) { margin-top: 48px; }
.prose p {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
}
.prose p + p { margin-top: 18px; }
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.about-fact {
  flex: 1 1 33%;
  min-width: 150px;
}
.about-fact .k {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
}
.about-fact .v {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-top: 6px;
}

/* community — list of simple gatherings */
.gather {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 680px) { .gather { grid-template-columns: 1fr; } }
.gather-item {
  background: var(--paper);
  padding: 36px;
}
.gather-item h3 { font-size: 23px; margin-bottom: 8px; }
.gather-item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.gather-when {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 14px;
}

/* contact / join CTA */
.join {
  background: var(--brown);
  color: #fff;
  text-align: center;
  border-radius: 14px;
  padding: clamp(56px, 9vw, 110px) var(--pad);
}
.join .eyebrow { color: rgba(255,255,255,0.7); display: block; margin-bottom: 24px; }
.join h2 { color: #fff; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; max-width: 16em; margin: 0 auto; }
.join p { margin: 24px auto 0; max-width: 30em; color: rgba(255,255,255,0.82); font-size: 18px; }
.join-actions { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-light {
  padding: 16px 32px;
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  font-weight: 500;
  font-size: 15.5px;
  transition: transform .15s;
}
.btn-light:hover { transform: translateY(-2px); }
.btn-outline {
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-weight: 500;
  font-size: 15.5px;
  transition: background .15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.contact-meta {
  margin-top: 48px;
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.contact-meta b { color: #fff; font-weight: 500; }

/* ================= FOOTER ================= */
.foot {
  padding: 64px 0 48px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-logo { height: 44px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-size: 14.5px; color: var(--ink-2); }
.foot-links a:hover { color: var(--purple); }
.foot-base {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ================= GALLERY ================= */
.gallery-head {
  padding: calc(var(--ticker-h) + 80px) 0 0;
}
.gallery-grid {
  columns: 4 260px;
  column-gap: 16px;
  margin-top: 8px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2 220px; } }
@media (max-width: 520px) { .gallery-grid { columns: 1; } }
.gtile {
  break-inside: avoid;
  margin: 0 0 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  position: relative;
  line-height: 0;
}
.gtile img {
  width: 100%;
  height: auto;
  transition: transform .5s ease, filter .3s ease;
}
.gtile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(41,33,26,0.55));
  opacity: 0;
  transition: opacity .3s;
}
.gtile:hover img { transform: scale(1.04); }
.gtile:hover::after { opacity: 1; }
.gtile .gcap {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  font-family: var(--serif);
}
.gtile:hover .gcap { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20,15,11,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-img-wrap {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lb-img {
  max-width: 90vw;
  max-height: 76vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lb-cap {
  color: rgba(255,255,255,0.85);
  font-family: var(--serif);
  font-size: 17px;
  text-align: center;
}
.lb-cap .lb-count {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close {
  position: absolute;
  top: 22px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 680px) {
  .lb-btn { width: 42px; height: 42px; font-size: 18px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

/* ================= 404 ================= */
.notfound {
  min-height: calc(100vh - var(--ticker-h) - 230px);
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 120px) 0;
}
.notfound-inner { max-width: 640px; }
.notfound .code {
  font-family: var(--serif);
  font-size: clamp(96px, 18vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--purple);
  margin: 0;
}
.notfound .code em { font-style: italic; color: var(--brown-2); }
.notfound h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
  color: var(--ink);
}
.notfound p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 48ch;
}
.notfound .nf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notfound .btn-primary {
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.notfound .btn-primary:hover { background: var(--purple-2); transform: translateY(-2px); }
.notfound .btn-outline {
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--ink);
  background: #fff;
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.notfound .btn-outline:hover { background: var(--paper); border-color: rgba(0,0,0,0.32); }
.notfound .nf-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.notfound .nf-links a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--brown-2);
  text-decoration: none;
}
.notfound .nf-links a:hover { color: var(--purple); text-decoration: underline; }
.docs-head { padding: calc(var(--ticker-h) + 80px) 0 0; }
.doc-group { margin-top: clamp(48px, 7vw, 72px); }
.doc-group:first-of-type { margin-top: 8px; }
.doc-group-title {
  font-family: var(--mono, var(--sans));
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 4px;
}
.doc-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .15s, padding-left .15s;
}
.doc-row:hover {
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  padding-left: 12px;
}
.doc-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--brown-2);
}
.doc-icon svg { width: 26px; height: 26px; }
.doc-text { display: flex; flex-direction: column; min-width: 0; }
.doc-name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
}
.doc-sub {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.doc-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-2);
  white-space: nowrap;
}
.doc-open .tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule-2, var(--line));
  border-radius: 3px;
  padding: 3px 7px;
  color: var(--muted);
}
.doc-open svg { width: 14px; height: 14px; transition: transform .15s; }
.doc-row:hover .doc-open svg { transform: translate(2px, -2px); }
.docs-note {
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (max-width: 600px) {
  .doc-row { grid-template-columns: 32px 1fr; gap: 14px; }
  .doc-icon { width: 32px; height: 32px; }
  .doc-icon svg { width: 22px; height: 22px; }
  .doc-name { font-size: 18px; }
  .doc-open { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
}
