:root {
  --ink: #07131f;
  --ink-soft: #102333;
  --paper: #f3f1e9;
  --white: #ffffff;
  --sky: #6ed7f5;
  --sky-dark: #269ec5;
  --line: rgba(7, 19, 31, .15);
  --muted: #65717a;
  --success: #9fe3b1;
  --max-width: 1240px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { line-height: 1.75; }
.skip-link { position: fixed; z-index: 200; left: 1rem; top: -5rem; padding: .8rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.section { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  margin: 0 0 1.3rem;
  color: var(--sky-dark);
  font: 500 .68rem/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--sky); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; }
h2 { margin-bottom: 0; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .97; font-weight: 600; }
h1 em, h2 em { color: var(--sky-dark); font-family: Georgia, serif; font-weight: 400; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 78px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: background .3s, height .3s, box-shadow .3s;
}
.site-header.scrolled { height: 66px; background: rgba(7,19,31,.94); box-shadow: 0 8px 30px rgba(0,0,0,.12); backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.brand-mark svg { width: 30px; height: 30px; fill: var(--sky); }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; }
.brand small { opacity: .65; font: .58rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.desktop-nav { display: flex; gap: clamp(22px, 3vw, 48px); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.desktop-nav a, .mobile-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.5rem; height: 1px; background: var(--sky); transition: right .25s; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.header-status { justify-self: end; font: 500 .62rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.header-status span { display: inline-block; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(159,227,177,.12); }
.menu-button, .mobile-nav { display: none; }

/* Hero */
.hero { position: relative; min-height: 850px; height: 100svh; color: white; overflow: hidden; background: var(--ink); }
.hero-image { position: absolute; inset: 0; background: url("assets/images/vue-aerienne-fontainebleau-depuis-avion.webp") center 48% / cover; transform: scale(1.02); animation: hero-in 1.5s ease both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,15,24,.95) 0%, rgba(5,15,24,.75) 42%, rgba(5,15,24,.18) 72%), linear-gradient(0deg, rgba(5,15,24,.75) 0%, transparent 42%); }
.hero-grid { position: absolute; inset: 78px 0 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 12.5vw 12.5vw; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-content { position: absolute; left: max(24px, calc((100% - var(--max-width)) / 2)); top: 50%; width: min(790px, calc(100% - 48px)); transform: translateY(-48%); }
.hero-content.reveal.visible { transform: translateY(-48%); }
.hero h1 { margin: 0 0 1.6rem; font-size: clamp(4rem, 8vw, 7.8rem); font-weight: 600; line-height: .88; }
.hero h1 em { color: var(--sky); }
.hero-intro { max-width: 620px; margin: 0 0 2rem; color: rgba(255,255,255,.74); font-size: clamp(.95rem, 1.35vw, 1.1rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 2rem; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, color .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--sky); }
.button-primary:hover { background: white; }
.button-ghost { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); backdrop-filter: blur(5px); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.12); }
.hero-telemetry { position: absolute; right: max(24px, calc((100% - var(--max-width)) / 2)); bottom: 45px; width: min(490px, calc(100% - 48px)); padding: 1rem 1.25rem .8rem; border: 1px solid rgba(255,255,255,.2); background: rgba(5,15,24,.63); backdrop-filter: blur(14px); }
.telemetry-heading { display: flex; justify-content: space-between; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); font: .56rem "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.telemetry-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .8rem; }
.telemetry-row > div { display: flex; flex-direction: column; }
.telemetry-label { color: rgba(255,255,255,.43); font: .5rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.telemetry-row strong { margin-top: .3rem; font: 500 .95rem "DM Mono", monospace; text-transform: uppercase; }
.telemetry-row strong small { font-size: .55rem; color: rgba(255,255,255,.5); }
.telemetry-row .status-ready { color: var(--success); font-size: .72rem; }
.runway { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; color: rgba(255,255,255,.35); font: .46rem "DM Mono", monospace; }
.runway i, .runway b { height: 1px; background: rgba(255,255,255,.2); }
.runway i { width: 18%; }.runway b { flex: 1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 10px, transparent 10px 18px); }
.scroll-cue { position: absolute; left: max(24px, calc((100% - var(--max-width)) / 2)); bottom: 46px; display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.5); font: .55rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .15em; }
.scroll-cue span { width: 1px; height: 34px; display: block; background: var(--sky); animation: scroll-line 1.8s ease infinite; transform-origin: top; }
@keyframes scroll-line { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* Mission */
.intro-section { padding-block: 130px; display: grid; grid-template-columns: 120px minmax(0,1.2fr) minmax(300px,.8fr); gap: 2rem; }
.section-index { padding-top: .4rem; color: var(--muted); font: .62rem "DM Mono", monospace; letter-spacing: .12em; }
.intro-copy h2 { font-size: clamp(3rem, 5.6vw, 5.7rem); }
.intro-text { padding-top: 3rem; color: #4d5962; font-size: .96rem; }
.intro-text p { margin-bottom: 1.35rem; }
.credentials { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credentials article { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1rem; border-right: 1px solid var(--line); }
.credentials article:last-child { border-right: 0; }
.credential-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--sky-dark); border: 1px solid var(--line); font: 1rem "DM Mono", monospace; }
.credentials article div { display: flex; flex-direction: column; gap: .25rem; }
.credentials small { color: var(--muted); font: .55rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.credentials strong { font-size: .78rem; }

/* Route */
.route-section { padding-block: 125px; color: white; overflow: hidden; background: var(--ink); }
.route-heading, .gallery-heading, .journal-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: flex-end; }
.route-heading > p, .gallery-heading > p, .journal-heading > p { max-width: 380px; margin-bottom: .4rem; color: rgba(255,255,255,.58); font-size: .9rem; }
.route-heading h2 em, .gallery-heading h2 em { color: var(--sky); }
.flight-path { position: relative; margin-top: 100px; display: grid; grid-template-columns: repeat(5,1fr); gap: 28px; }
.path-line { position: absolute; z-index: 0; left: 5%; right: 5%; top: 25px; height: 1px; background: rgba(255,255,255,.18); }
.path-line span { display: block; width: 27%; height: 2px; transform: translateY(-1px); background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.path-stop { position: relative; z-index: 1; }
.stop-marker { width: 50px; height: 50px; display: grid; place-items: center; color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--ink); font: .6rem "DM Mono", monospace; }
.path-stop.done .stop-marker, .path-stop.active .stop-marker { color: var(--ink); border-color: var(--sky); background: var(--sky); }
.path-stop.active .stop-marker { box-shadow: 0 0 0 7px rgba(110,215,245,.1), 0 0 30px rgba(110,215,245,.2); }
.stop-meta { margin-top: 2rem; color: var(--sky); font: .54rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .13em; }
.path-stop h3 { margin: .7rem 0 .65rem; font-size: 1.25rem; }
.path-stop p { color: rgba(255,255,255,.5); font-size: .78rem; line-height: 1.65; }
.path-stop.destination h3 { color: var(--sky); }

/* Journal */
.logbook-section { padding-block: 130px; }
.journal-heading > p { color: var(--muted); }
.log-stats { margin-top: 70px; display: grid; grid-template-columns: .8fr .8fr 1.4fr 1fr; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.log-stats > div { min-height: 130px; padding: 1.4rem; display: flex; flex-wrap: wrap; align-content: space-between; border-right: 1px solid var(--line); }
.log-stats > div:last-child { border-right: 0; }
.log-stats span { width: 100%; color: var(--muted); font: .55rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.log-stats strong { align-self: flex-end; font-size: 2.7rem; font-weight: 500; letter-spacing: -.06em; }
.log-stats small { align-self: flex-end; margin: 0 0 .55rem .35rem; color: var(--sky-dark); font: .6rem "DM Mono", monospace; }
.log-stats .stat-text { padding-bottom: .3rem; font-size: 1rem; letter-spacing: -.02em; }
.journal-toolbar { margin-top: 42px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.filter-group { display: flex; gap: .45rem; }
.filter-button, .add-entry-button { border: 1px solid var(--line); background: transparent; cursor: pointer; }
.filter-button { padding: .65rem .95rem; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.filter-button:hover, .filter-button.active { color: white; border-color: var(--ink); background: var(--ink); }
.add-entry-button { padding: .7rem 1rem; color: var(--ink); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.add-entry-button span { color: var(--sky-dark); margin-right: .35rem; font-size: 1rem; }
.add-entry-button:hover { border-color: var(--sky-dark); }
.admin-access-link { display: inline-flex; align-items: center; justify-content: center; }
.log-list { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.log-entry { display: grid; grid-template-columns: 95px 110px minmax(0,1fr) 105px; gap: 1.4rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.log-entry[hidden] { display: none; }
.log-date { display: flex; align-items: center; gap: .55rem; }
.log-date strong { font: 500 2rem "DM Mono", monospace; }
.log-date span { color: var(--muted); font: .52rem/1.45 "DM Mono", monospace; letter-spacing: .1em; }
.log-type { padding-top: .7rem; color: var(--muted); font: .6rem "DM Mono", monospace; text-transform: uppercase; }
.type-dot { display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: var(--sky-dark); }
.log-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.log-main h3 { margin: 0; font-size: 1.15rem; }
.log-main p { margin: .8rem 0; color: #59656e; font-size: .83rem; line-height: 1.65; }
.difficulty { padding: .3rem .5rem; border: 1px solid var(--line); color: var(--muted); font: .48rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.difficulty.easy { color: #237b42; border-color: rgba(35,123,66,.25); background: rgba(35,123,66,.05); }
.difficulty.hard { color: #9b5525; border-color: rgba(155,85,37,.25); background: rgba(155,85,37,.05); }
.log-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.log-tags span { color: var(--sky-dark); font: .55rem "DM Mono", monospace; }
.log-details { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; }
.log-details span { padding: .65rem .75rem; color: #59656e; background: rgba(255,255,255,.48); font-size: .68rem; line-height: 1.5; }
.log-details b { display: block; margin-bottom: .2rem; color: var(--sky-dark); font: .48rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.entry-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-top: 1rem; }
.entry-photo { padding: 0; overflow: hidden; border: 0; background: var(--ink); cursor: zoom-in; }
.entry-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s, transform .35s; }
.entry-photo:hover img { opacity: .85; transform: scale(1.035); }
.log-hours { padding-top: .5rem; text-align: right; }
.log-hours strong { display: block; font: 500 1.3rem "DM Mono", monospace; }
.log-hours span { color: var(--muted); font: .48rem "DM Mono", monospace; text-transform: uppercase; }
.empty-log { padding: 3rem; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }

/* Gallery */
.gallery-section { padding-block: 125px; color: white; background: #0c1b28; }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 310px 310px; gap: 12px; margin-top: 65px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; color: white; border: 0; background: #152738; cursor: zoom-in; text-align: left; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,12,20,.85), transparent 58%); transition: opacity .3s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1); }
.gallery-item > span { position: absolute; z-index: 2; left: 1.25rem; bottom: 1.15rem; font-size: .78rem; font-weight: 600; }
.gallery-item small { display: block; margin-bottom: .35rem; color: var(--sky); font: .5rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.gallery-item i { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-style: normal; }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }
.gallery-wide-small { grid-column: span 1; }

/* About */
.about-section { padding-block: 140px; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 140px); align-items: center; }
.about-portrait { position: relative; }
.about-portrait::before { content: ""; position: absolute; z-index: -1; inset: -16px 45px 40px -16px; border: 1px solid var(--line); }
.about-portrait img { width: 100%; height: min(690px, 65vw); object-fit: cover; object-position: center; filter: saturate(.78); }
.portrait-coordinate { display: flex; justify-content: space-between; padding-top: .8rem; color: var(--muted); font: .54rem "DM Mono", monospace; letter-spacing: .1em; }
.about-copy { max-width: 560px; }
.about-copy .about-lead { margin: 2.5rem 0 1rem; color: var(--ink); font-size: 1.15rem; font-weight: 600; line-height: 1.6; }
.about-copy > p:not(.eyebrow):not(.about-lead) { color: #59656e; font-size: .9rem; }
.about-copy blockquote { margin: 1.8rem 0; padding: .3rem 0 .3rem 1.2rem; color: var(--ink-soft); border-left: 2px solid var(--sky-dark); font: italic 1.15rem/1.6 Georgia, serif; }
.about-values { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); }
.about-values span { padding: 1rem .3rem; border-right: 1px solid var(--line); font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.about-values span:last-child { border-right: 0; }
.about-values b { margin-right: .4rem; color: var(--sky-dark); font: .5rem "DM Mono", monospace; }
.about-aircraft { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.5rem; background: var(--line); border: 1px solid var(--line); }
.about-aircraft article { padding: 1.1rem; background: rgba(255,255,255,.4); }
.about-aircraft small, .interest-line small { display: block; margin-bottom: .55rem; color: var(--sky-dark); font: .5rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.about-aircraft strong { display: block; margin-bottom: .5rem; font-size: 1.05rem; }
.about-aircraft p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.interest-line { padding: 1rem 0 0; }
.interest-line span { color: #4d5962; font-size: .7rem; font-weight: 600; }

/* Base */
.base-section { padding-block: 100px; background: #d8e0e2; }
.base-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.base-card { position: relative; min-height: 420px; padding: clamp(30px, 5vw, 65px); overflow: hidden; color: white; background: var(--ink); }
.base-card .base-number { position: absolute; right: -1rem; top: -2rem; color: rgba(255,255,255,.035); font: 500 9rem "DM Mono", monospace; }
.base-card h2 { margin-bottom: 1.3rem; font-size: clamp(2.4rem, 4vw, 4.1rem); }
.base-card p:not(.eyebrow) { max-width: 470px; color: rgba(255,255,255,.58); font-size: .86rem; }
.coming-label { display: inline-block; margin-top: 1rem; padding: .55rem .7rem; color: var(--sky); border: 1px solid rgba(110,215,245,.3); font: .52rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.instructor-card { display: grid; grid-template-columns: 150px 1fr; gap: 2.5rem; background: #122b3a; }
.instructor-placeholder { width: 150px; height: 190px; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.03); }
.instructor-placeholder span { color: rgba(255,255,255,.2); font: 3.5rem Georgia, serif; }
.instructor-card h2 { font-size: clamp(2rem, 3vw, 3.2rem); }

/* Footer */
.site-footer { padding: 80px max(24px, calc((100% - var(--max-width)) / 2)) 24px; color: white; background: #050d15; }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 3rem; padding-bottom: 70px; }
.footer-brand { margin-bottom: 1.5rem; }
.footer-main > div > p { color: rgba(255,255,255,.4); font-size: .82rem; }
.footer-main nav, .footer-note { display: flex; flex-direction: column; gap: .8rem; }
.footer-main nav span, .footer-note span { margin-bottom: .6rem; color: rgba(255,255,255,.35); font: .52rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.footer-main nav a { width: fit-content; color: rgba(255,255,255,.68); font-size: .75rem; }
.footer-main nav a:hover { color: var(--sky); }
.footer-note strong { color: rgba(255,255,255,.75); font-size: .78rem; }
.footer-note small { color: rgba(255,255,255,.35); font-size: .65rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.3); font: .5rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }

/* Dialogs */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(2,9,15,.84); backdrop-filter: blur(8px); }
.lightbox { width: min(1100px, calc(100% - 32px)); max-height: 92vh; overflow: visible; color: white; background: transparent; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox p { margin: .8rem 0 0; text-align: center; font-size: .75rem; }
.lightbox-close, .dialog-close { border: 0; cursor: pointer; font-weight: 300; line-height: 1; }
.lightbox-close { position: absolute; z-index: 2; right: 0; top: -43px; width: 36px; height: 36px; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; font-size: 1.3rem; }
.entry-dialog { width: min(740px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: clamp(24px, 4vw, 42px); color: var(--ink); background: var(--paper); }
.dialog-heading { display: flex; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { font-size: 2rem; }
.dialog-close { width: 38px; height: 38px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.4rem; }
.local-warning { margin: 1.5rem 0; padding: .8rem 1rem; color: #57646c; border-left: 2px solid var(--sky-dark); background: rgba(110,215,245,.1); font-size: .72rem; line-height: 1.55; }
.entry-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.entry-dialog label { display: flex; flex-direction: column; gap: .45rem; color: var(--muted); font: .57rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.entry-dialog label.full, .form-actions.full { grid-column: 1 / -1; }
.entry-dialog input, .entry-dialog select, .entry-dialog textarea { width: 100%; padding: .75rem; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: rgba(255,255,255,.6); font-family: "Manrope", sans-serif; font-size: .78rem; text-transform: none; letter-spacing: 0; }
.entry-dialog input:focus, .entry-dialog select:focus, .entry-dialog textarea:focus { border-color: var(--sky-dark); box-shadow: 0 0 0 2px rgba(38,158,197,.1); }
.entry-dialog textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .5rem; }
.button-dark { color: white; background: var(--ink); }
.button-ghost-dark { color: var(--ink); border-color: var(--line); background: transparent; }

@media (max-width: 980px) {
  .desktop-nav, .header-status { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: grid; gap: 7px; padding: 10px 0 10px 12px; border: 0; background: transparent; }
  .menu-button span { width: 26px; height: 1px; background: white; transition: transform .25s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: fixed; z-index: -1; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: 2rem; visibility: hidden; opacity: 0; background: var(--ink); transition: opacity .25s, visibility .25s; }
  .mobile-nav.open { visibility: visible; opacity: 1; }
  .mobile-nav a { font-size: 2.5rem; font-weight: 600; letter-spacing: -.04em; }
  .hero-content { top: 45%; }
  .hero-telemetry { bottom: 32px; }
  .scroll-cue { display: none; }
  .intro-section { grid-template-columns: 70px 1fr; }
  .intro-text { grid-column: 2; padding-top: 0; }
  .credentials { grid-column: 2; }
  .flight-path { grid-template-columns: 1fr; gap: 0; margin-top: 70px; padding-left: 24px; }
  .path-line { left: 49px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .path-line span { width: 2px; height: 28%; transform: translateX(-1px); }
  .path-stop { min-height: 170px; padding-left: 75px; }
  .stop-marker { position: absolute; left: 0; top: 0; }
  .stop-meta { margin-top: 0; padding-top: .3rem; }
  .path-stop p { max-width: 460px; }
  .log-stats { grid-template-columns: 1fr 1fr; }
  .log-stats > div:nth-child(2) { border-right: 0; }
  .log-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .log-entry { grid-template-columns: 90px 1fr 85px; }
  .log-type { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 260px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-wide-small { grid-column: span 2; }
  .about-section { gap: 55px; }
  .base-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { width: min(100% - 32px, var(--max-width)); }
  .site-header { height: 68px; padding-inline: 16px; }
  .hero { min-height: 760px; }
  .hero-image { background-position: 56% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,15,24,.92), rgba(5,15,24,.43)), linear-gradient(0deg, rgba(5,15,24,.88), transparent 50%); }
  .hero-content { left: 16px; width: calc(100% - 32px); top: 42%; }
  .hero-content .eyebrow { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero-intro { font-size: .88rem; line-height: 1.65; }
  .hero-actions .button { width: 100%; }
  .hero-telemetry { left: 16px; right: 16px; bottom: 18px; width: auto; }
  .telemetry-heading { display: none; }
  .telemetry-row { grid-template-columns: 1fr 1fr; }
  .telemetry-row > div:last-child { display: none; }
  .intro-section { padding-block: 90px; grid-template-columns: 1fr; gap: 1.5rem; }
  .section-index { display: none; }
  .intro-text, .credentials { grid-column: 1; }
  .credentials { grid-template-columns: 1fr; }
  .credentials article { border-right: 0; border-bottom: 1px solid var(--line); }
  .credentials article:last-child { border-bottom: 0; }
  .route-section, .gallery-section { padding-block: 90px; }
  .route-heading, .gallery-heading, .journal-heading { display: block; }
  .route-heading > p, .gallery-heading > p, .journal-heading > p { margin-top: 2rem; }
  .logbook-section { padding-block: 90px; }
  .log-stats { margin-top: 45px; }
  .log-stats > div { min-height: 105px; padding: 1rem; }
  .log-stats strong { font-size: 2rem; }
  .log-stats .stat-text { font-size: .78rem; }
  .journal-toolbar { align-items: stretch; flex-direction: column; }
  .filter-group { overflow-x: auto; }
  .filter-button { flex: 1; }
  .log-entry { position: relative; grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem 0; }
  .log-date { padding-right: 80px; }
  .log-hours { position: absolute; top: 1.5rem; right: 0; }
  .log-details { grid-template-columns: 1fr; }
  .entry-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(5, 280px); }
  .gallery-wide, .gallery-tall, .gallery-wide-small { grid-column: auto; grid-row: auto; }
  .about-section { padding-block: 95px; grid-template-columns: 1fr; }
  .about-portrait img { height: 520px; }
  .about-values { grid-template-columns: 1fr; }
  .about-values span { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-values span:last-child { border-bottom: 0; }
  .about-aircraft { grid-template-columns: 1fr; }
  .base-section { padding-block: 60px; }
  .base-card { min-height: 0; padding: 32px 25px; }
  .instructor-card { grid-template-columns: 1fr; gap: 1.6rem; }
  .instructor-placeholder { width: 100%; height: 150px; }
  .site-footer { padding: 60px 18px 20px; }
  .footer-main { grid-template-columns: 1fr; padding-bottom: 45px; }
  .footer-bottom { flex-direction: column; gap: .7rem; }
  .entry-dialog form { grid-template-columns: 1fr; }
  .entry-dialog label.full, .form-actions.full { grid-column: 1; }
  .form-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
