/* Direct2 site layer: page pieces the design system describes in Web.md but doesn't ship as components. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--bone); color: var(--night); padding: 12px 16px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Draft banner: only in preview builds */
.draft-bar { position: relative; z-index: 30; background: var(--dawn); color: var(--night); font-family: var(--font-mono); font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 8px 20px; }

/* Header (option C): fixed. Over the hero it's see-through with Bone type;
   once you scroll it becomes the frosted white bar. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.no-js .site-header { position: absolute; }
.site-header .d2-nav { position: relative; transition: background-color .3s ease, border-color .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease; }
.d2-nav-logo .logo-bone { display: none; }
.site-header.is-over .d2-nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-over .d2-nav::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(11,21,16,.42), rgba(11,21,16,0)); pointer-events: none; }
.site-header.is-over .d2-nav-inner { position: relative; }
.site-header.is-over .logo-ink { display: none; }
.site-header.is-over .logo-bone { display: block; }
.site-header.is-over .d2-nav-links a, .site-header.is-over .menu summary { color: #EFEBE3; }
.site-header.is-over .nav-call { color: #EFEBE3; border-color: rgba(239,235,227,.75); }
.site-header.is-over .nav-call:hover { background: #EFEBE3; color: #0B1510; border-color: #EFEBE3; }
.site-header.is-over .d2-nav-links a:focus-visible, .site-header.is-over .nav-call:focus-visible { outline-color: #EFEBE3; }
.nav-call { gap: 10px; }
.nav-call-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: none; }
@media (max-width: 1100px) { .nav-call-num { display: none; } }
.has-draft .site-header { top: 30px; }
.d2-nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); padding: 12px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; min-width: 240px; background: var(--night); border: 1px solid var(--line); padding: 8px 20px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--bone); text-decoration: none; font-size: 15px; }
.menu-panel li:last-child a { border-bottom: 0; }
@media (max-width: 720px) {
  .menu { display: block; }
  .d2-nav-actions { margin-left: auto; }
  .d2-nav-actions .d2-btn { min-height: 36px; padding: 0 14px; }
  .d2-nav-inner { gap: 16px; }
}

/* Hero sizes from Web.md */
.hero-home { min-height: max(760px, 100vh); padding-top: 120px !important; }
.hero-inner { min-height: 560px; padding-top: 120px !important; }
@media (max-width: 720px) { .hero-home { min-height: 640px; } .hero-inner { min-height: 480px; } }
.d2-hero-title { overflow-wrap: break-word; }

/* Section rules between Night sections */
.rule-top { border-top: 1px solid var(--line); }
.d2-section-light .d2-section + .d2-section { border-top: 1px solid var(--line); }

/* Numbered list: steps and onboarding stages */
.steps { list-style: none; margin: 64px 0 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .04em; color: var(--ink-muted); padding-top: 4px; }
.steps h3 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.steps p { margin: 0; font-size: 16px; line-height: 27px; color: var(--ink-muted); max-width: 60ch; }
@media (max-width: 720px) { .steps li { grid-template-columns: 1fr; gap: 12px; } }

/* Areas grid: the six areas of aircraft management */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin-top: 64px; }
.areas ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.areas li { font-size: 15px; line-height: 24px; color: var(--ink-muted); padding-left: 16px; position: relative; }
.areas li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--ink-muted); }
@media (max-width: 1024px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .areas { grid-template-columns: 1fr; } }

/* Fleet list */
/* Fleet: one row per type, side profile left, opens to story, numbers, photos. */
.fleet-list { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.ac { background: var(--surface); border: 1px solid var(--line); }
.ac-row { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: 20px 32px 20px 24px; cursor: pointer; list-style: none; }
.ac-row::-webkit-details-marker { display: none; }
.ac-row:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: -4px; }
.ac-profile { display: block; min-width: 0; }
.fp { display: block; width: 100%; height: auto; overflow: visible; }
.fp .fus { fill: url(#fpFus); stroke: #8F979F; stroke-width: .7; }
.fp .tail { fill: url(#fpTail); stroke: #8F979F; stroke-width: .7; }
.fp .far { fill: #C9CED3; }
.fp .nac { fill: url(#fpNac); stroke: #8F979F; stroke-width: .7; }
.fp .wing { fill: url(#fpWing); stroke: #8F979F; stroke-width: .6; }
.fp .w { fill: url(#fpGlass); stroke: #6E7781; stroke-width: .5; }
.fp .wh { fill: #FFFFFF; opacity: .22; }
.fp .frame { stroke: #DDE1E4; stroke-width: 2; fill: none; }
.fp .seam { fill: none; stroke: #B7BDC3; stroke-width: .8; }
.fp .exh { fill: #4A535B; }
.fp .intake { fill: #20272E; }
.fp .spin { fill: url(#fpNac); stroke: #8F979F; stroke-width: .6; }
.fp .disc { fill: url(#fpDisc); }
.fp .blade { fill: #3A424A; opacity: .5; }
.fp .strut { fill: #8D949B; }
.fp .tire { fill: #1B1F23; }
.fp .hub { fill: #9AA1A8; }
.fp .gs { fill: #0B1510; opacity: .07; }
.ac-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.04; letter-spacing: -.025em; }
.ac-code { color: var(--ink-muted); }
.ac-meta { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ac-status { display: inline-block; margin-right: 12px; padding: 1px 7px; background: var(--brand, #1C4220); color: #EFEBE3; }
.ac-chev { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong, #8A8F8B); transition: transform .25s ease; }
.ac-chev svg { width: 20px; height: 20px; }
.ac[open] .ac-chev { transform: rotate(180deg); }
.ac-row:hover .ac-chev { border-color: var(--ink); }
.ac-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; padding: 8px 32px 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.ac-story { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.ac-story p { margin: 0; color: var(--ink-muted); max-width: 52ch; }
.ac-story .ac-lede { font-family: var(--font-serif); font-size: 24px; line-height: 1.3; color: var(--ink); }
.ac-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; min-width: 0; }
.ac-specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-specs dt { font-family: var(--font-mono); font-size: 10px; line-height: 18px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ac-specs dd { margin: 0; font-size: 14px; line-height: 20px; }
.ac-photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ac-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.ac-photos-one { grid-template-columns: minmax(0, 1fr); }
.ac-photos-one img { aspect-ratio: 21 / 9; }
.fleet-note { margin-top: 24px; color: var(--ink-muted); }
@media (max-width: 1024px) { .ac-body { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ac-row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 16px 20px; gap: 12px 16px; }
  .ac-profile { grid-column: 1 / -1; max-width: 340px; }
  .ac-body { padding: 24px 16px 24px; }
  .ac-specs { grid-template-columns: 1fr; }
  .ac-photos { grid-template-columns: 1fr; }
  .ac-photos-one img { aspect-ratio: 3 / 2; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; margin-top: 64px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.portrait { aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 12px; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.person h3 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.person p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
@media (max-width: 1024px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

/* Long reading: founder note, legal */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 20px; font-size: 18px; line-height: 30px; color: var(--ink); }
.prose p.muted { color: var(--ink-muted); font-size: 16px; line-height: 27px; }
.prose h2 { margin: 48px 0 16px; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }

/* FAQ */
.faq { margin-top: 64px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-weight: 500; font-size: 20px; color: var(--ink-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 28px; max-width: 64ch; font-size: 16px; line-height: 27px; color: var(--ink-muted); }
.faq .answer p { margin: 0 0 12px; }

/* Empty leg board */
.legs { display: flex; flex-direction: column; gap: 32px; margin-top: 64px; }
.legs .d2-ticket { max-width: none; }
.legs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; }
.legs-foot .d2-liner { margin: 0; color: var(--ink-muted); }
.sample-note { margin-top: 24px; }

/* Contact details */
.contact-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span:first-child { font-size: 11px; line-height: 24px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.contact-list a, .contact-list address { font-style: normal; font-size: 16px; line-height: 24px; color: var(--ink); }

/* Forms */
.d2-form textarea.d2-input { resize: vertical; min-height: 96px; padding-top: 10px; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); max-width: 60ch; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 24px; color: var(--ink); }

/* Closing call to action: the one centered thing */
.close-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.close-cta .d2-statement { margin: 0 auto; }

/* Route map panel */
.map-panel { background: var(--pine); padding: 32px; display: flex; align-items: center; justify-content: center; }
.map-panel img { width: 100%; max-width: 520px; height: auto; display: block; }

/* Reveal: fade up 8px over 900ms, once */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--duration-drift) var(--ease-drift), transform var(--duration-drift) var(--ease-drift); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Pale stand-in images need more scrim for Bone type to hold 4.5:1 */
.hero-pale::before { background: rgba(11,21,16,0.55); }

.d2-footer-legal-links { flex-wrap: wrap; gap: 12px 24px; }
/* Draft bar sits at the bottom so it never pushes the floating nav */
.draft-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
.has-draft .site-header { top: 0; }
.has-draft { padding-bottom: 30px; }

/* Booking: the JetInsight form under the home hero ------------------------ */
.book-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.book-direct { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.book-direct a { color: var(--ink); font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .04em; text-decoration: none; }
.book-direct a:hover { text-decoration: underline; }
@media (max-width: 720px) { .book-direct { text-align: left; } }

/* The panel matches the form's own white, so the iframe edge disappears.
   Pure white is a deliberate exception here: it's the third-party form's ground. */
.jet-panel { background: #FFFFFF; border: 1px solid var(--line); padding: 24px 32px 8px; }
.jet-frame { container-type: inline-size; }
.jet-iframe { display: block; width: 100%; height: 1240px; border: 0; background: #FFFFFF; }
@container (min-width: 768px) { .jet-iframe { height: 740px; } }
@media (max-width: 720px) { .jet-panel { padding: 12px 8px 0; margin-inline: -8px; } }

/* Preview-only stand-in, drawn to match the live form's layout */
.jet-standin { color: #333; font-family: system-ui, sans-serif; font-size: 13px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.jet-standin label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #555; }
.jet-standin i { font-style: normal; display: block; height: 34px; border: 1px solid #ccc; border-radius: 3px; padding: 8px 12px; font-size: 13px; text-transform: none; letter-spacing: 0; color: #333; }
.jet-standin i.js-tall { height: 90px; }
.js-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e5e5; padding-bottom: 12px; font-size: 22px; color: #222; }
.js-pow { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #3aa9d8; }
.js-grid { display: grid; gap: 28px; }
.js-2 { grid-template-columns: 1fr 1fr; }
.js-trip { grid-template-columns: 5fr 1.3fr 1.3fr; }
.js-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.js-seg { display: inline-flex; border: 1px solid #ccc; border-radius: 16px; overflow: hidden; }
.js-seg b { font-size: 12px; padding: 6px 22px; color: #555; }
.js-seg b.on { background: #337ab7; color: #fff; }
.js-pax { min-width: 140px; }
.js-foot { display: flex; justify-content: center; }
.js-btn { background: #5bc0de; color: #fff; padding: 8px 14px; border-radius: 3px; font-size: 13px; }
.js-note { margin: 4px 0 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #777; text-align: center; }
@container (max-width: 767px) { .js-2, .js-trip { grid-template-columns: 1fr; } }


/* White as the primary ground (direction from Toby Woods, November 14, 2026).
   The page root is light with a pure white ground; Bone stays as the supporting
   band for reading and form sections; the footer and dark panels keep Night. */
:root[data-theme="light"] {
  --ground: #FFFFFF;
  --surface: #F7F5F0;
  --surface-raised: #FFFFFF;
  --nav-bg: rgba(255,255,255,0.84);
  color-scheme: light;
}
/* Dark islands inside the white page (footer, map panel) */
[data-theme="dark"] {
  --ground: #0B1510;
  --surface: #142A1B;
  --surface-raised: #142A1B;
  --line: #2A3D31;
  --line-strong: #6E7C72;
  --ink: #EFEBE3;
  --ink-muted: #9AA69D;
  --brand-text: #9AA69D;
  --link: #EFEBE3;
  --focus-ring: #C8CFCC;
  --ghost-line: rgba(239,235,227,0.4);
  --nav-bg: rgba(11,21,16,0.72);
  --scrim: rgba(11,21,16,0.55);
  --success: #6FAE7E;
  --error: #D87A63;
  --warning: #C99A4A;
  --info: #8AA8B8;
  color-scheme: dark;
}
.d2-footer { color: var(--ink); }
.jet-panel { border-color: var(--line); }

/* Quote form ------------------------------------------------------------- */
/* Sits on a Bone panel on the white page. Three numbered groups (they are a
   real order: trip, you, extras). Underline fields from the design system. */
.qf-panel { background: var(--surface); border-top: 1px solid var(--ink); padding: 40px 48px 32px; }
@media (max-width: 720px) { .qf-panel { padding: 28px 20px 24px; margin-inline: -20px; border-top-width: 1px; } }
.qf { display: flex; flex-direction: column; gap: 40px; }
.qf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf-group { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 32px; }
.qf-group > :not(legend) { grid-column: 2; }
.qf-legend { grid-column: 1; float: left; padding: 0; display: flex; gap: 12px; align-items: baseline; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.qf-legend + * { margin-top: 0; }
.qf-num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--ink-muted); }
@media (max-width: 1024px) { .qf-group { grid-template-columns: minmax(0, 1fr); } .qf-group > :not(legend) { grid-column: 1; } .qf-legend { float: none; margin-bottom: 20px; } }

.qf-label { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.qf .d2-field { min-width: 0; }
.qf .d2-input { width: 100%; background: transparent; }
.qf select.d2-input { appearance: none; -webkit-appearance: none; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.qf input[type=date].d2-input { min-height: 48px; }
.qf .qf-airport { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.qf .qf-airport::placeholder { font-family: var(--font-body); letter-spacing: 0; }
.qf .d2-field-msg:empty { display: none; }

/* Trip type and passengers */
.qf-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.qf-seg { display: inline-flex; border: 1px solid var(--line-strong); }
.qf-seg label { position: relative; cursor: pointer; }
.qf-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qf-seg span { display: block; padding: 0 20px; height: 44px; line-height: 44px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: background var(--duration-quiet) var(--ease-drift), color var(--duration-quiet) var(--ease-drift); }
.qf-seg label + label span { border-left: 1px solid var(--line-strong); }
.qf-seg input:checked + span { background: var(--brand); color: var(--on-brand); }
.qf-seg input:focus-visible + span { outline: 1px solid var(--focus-ring); outline-offset: 2px; }
.qf-pax { display: flex; flex-direction: column; gap: 6px; }
.qf-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); height: 44px; }
.qf-step { width: 44px; border: 0; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.qf-step:hover { background: var(--ground); }
.qf-stepper input { width: 48px; border: 0; border-inline: 1px solid var(--line-strong); background: transparent; text-align: center; font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--ink); -moz-appearance: textfield; }
.qf-stepper input::-webkit-inner-spin-button, .qf-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Legs: From, swap, To, Date, Time */
.qf-leg { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 168px 128px; gap: 0 20px; align-items: end; }
.qf-swap { width: 40px; height: 40px; margin-bottom: 4px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qf-swap svg { width: 18px; height: 18px; }
.qf-swap:hover { background: var(--ground); }
.qf-return { margin-top: 24px; }
.qf-return-route { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.qf-route-text { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.qf-return .qf-date { grid-column: 4; } .qf-return .qf-time { grid-column: 5; }
.qf[data-type="oneway"] .qf-return, .qf[data-type="multi"] .qf-simple, .qf:not([data-type="multi"]) .qf-multi { display: none; }

.qf-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.qf-seg-leg { grid-template-columns: 32px minmax(0, 1fr) 20px minmax(0, 1fr) 168px 128px 72px; }
.qf-leg-num, .qf-arrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-muted); padding-bottom: 14px; }
.qf-remove { border: 0; background: none; padding: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; justify-self: end; }
.qf-add { margin-top: 20px; align-self: flex-start; }
.qf-multi { display: flex; flex-direction: column; }

/* You, and anything else */
.qf-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.qf-extra { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.qf textarea.d2-input { min-height: 48px; height: 48px; resize: vertical; padding-top: 12px; }

/* Summary and submit */
.qf-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: 28px; border-top: 1px solid var(--line); }
.qf-summary { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qf-summary-text { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .04em; color: var(--ink); overflow-wrap: anywhere; }
.qf-submit { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qf-submit .d2-btn { min-width: 240px; justify-content: center; }
.qf-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); text-align: right; max-width: 36ch; }
.qf-status { margin: -16px 0 0; }
.qf-status:empty { display: none; }

@media (max-width: 1024px) {
  .qf-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .qf { gap: 32px; }
  .qf-bar { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 20px; }
  .qf-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .qf-seg span { padding: 0 6px; text-align: center; letter-spacing: .1em; font-size: 11px; }
  .qf-pax { flex-direction: row; justify-content: space-between; align-items: center; }
  /* From, To stack with the swap button riding between them on the right */
  .qf-leg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 16px; position: relative; }
  .qf-from, .qf-to { grid-column: 1 / -1; }
  .qf-simple .qf-from .d2-input, .qf-simple .qf-to .d2-input { padding-right: 52px; }
  .qf-swap { position: absolute; right: 0; top: 52px; transform: rotate(90deg); background: var(--surface); z-index: 1; }
  .qf-return-route { grid-column: 1 / -1; }
  .qf-return .qf-date, .qf-return .qf-time { grid-column: auto; }
  .qf-seg-leg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 0 0; border-top: 1px solid var(--line); }
  .qf-leg-num { grid-column: 1; padding: 0; }
  .qf-remove { grid-column: 2; grid-row: 1; padding: 0; }
  .qf-arrow { display: none; }
  .qf-people, .qf-extra { grid-template-columns: minmax(0, 1fr); }
  .qf-foot { grid-template-columns: minmax(0, 1fr); }
  .qf-submit { align-items: stretch; }
  .qf-submit .d2-btn { width: 100%; min-width: 0; }
  .qf-note { text-align: left; }
  .qf .d2-input { font-size: 16px; } /* no zoom on focus in iOS */
}

/* Destination posters ---------------------------------------------------- */
/* After 1970s airline travel posters: one strong scene, the place name small
   and set flat, diagonal or vertical, the lockup tucked in a corner (always
   upright). Three across on desktop, a swipeable row on phones. */
.dest-row { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.dest-item { min-width: 0; }
.dest-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; container-type: inline-size; background: var(--night); color: #EFEBE3; text-decoration: none; }
.dest-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-name { position: absolute; font-family: var(--font-display); font-weight: 500; font-size: 9cqw; line-height: 1; letter-spacing: -0.025em; white-space: nowrap; color: #EFEBE3; }
.dest-mark { position: absolute; width: 20cqw; line-height: 0; }
.dest-mark img { width: 100%; height: auto; }
.dest-card:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 4px; }
.dest-meta { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 0; }
.dest-code { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.dest-meta .d2-liner { color: var(--ink-muted); }
.dest-card:hover + .dest-meta .dest-code { text-decoration: underline; text-underline-offset: 4px; }

/* Layouts */
.dest-flat-low .dest-name { left: 7%; top: 71%; }
.dest-flat-low .dest-mark, .dest-flat-water .dest-mark, .dest-flat-base .dest-mark { right: 7%; bottom: 6%; }
.dest-vertical .dest-name { left: calc(7% + 0.82em); bottom: 7%; transform: rotate(-90deg); transform-origin: left bottom; }
.dest-vertical .dest-mark { left: 7%; top: 6%; }
.dest-flat-mid .dest-mark { left: 7%; top: 62.5%; }
.dest-flat-mid .dest-name { left: 41%; top: 61.5%; }
.dest-flat-water .dest-name { left: 7%; top: 56%; }
.dest-diagonal .dest-name { left: 9%; top: 56%; transform: rotate(-44deg); transform-origin: left center; }
.dest-diagonal .dest-mark { left: 7%; top: 6%; }
.dest-flat-base .dest-name { left: 7%; bottom: 6%; }
.dest-ink-top .dest-name { left: 7%; top: 7%; color: #0B1510; }
.dest-ink-top .dest-mark { right: 7%; bottom: 6%; }
/* Winter trips: a small mono tag in the caption line, so it never lands on the art. */
.dest-season { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line, #D8D3C9); font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }

@media (max-width: 1024px) { .dest-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .dest { margin-inline: -20px; }
  .dest-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-top: 40px; }
  .dest-row::-webkit-scrollbar { display: none; }
  .dest-item { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Looping footage ---------------------------------------------------------- */
.bg-video { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1 !important; display: block; background: transparent; }
.d2-hero, .d2-feature-media, .film { isolation: isolate; }
.d2-feature-media { position: relative; overflow: hidden; }
.d2-feature-label { position: relative; z-index: 2; }
.video-toggle { position: absolute !important; right: 16px; bottom: 16px; z-index: 3 !important; border: 1px solid rgba(239,235,227,0.4); background: rgba(11,21,16,0.38); color: #EFEBE3; font-family: var(--font-mono); font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; cursor: pointer; backdrop-filter: blur(8px); }
.video-toggle:hover { background: rgba(11,21,16,0.6); }
.d2-hero .video-toggle { right: max(24px, calc((100% - 1280px) / 2 + 64px)); bottom: 28px; }
@media (max-width: 720px) { .d2-hero .video-toggle { right: 20px; bottom: 20px; } }

/* Film band: one wide clip at its native 2.28:1, no type on top */
.film { position: relative; margin: 0; }
.film-frame { position: relative; aspect-ratio: 1820 / 800; overflow: hidden; background: var(--night) center / cover no-repeat; isolation: isolate; }
@media (max-width: 720px) { .film-frame { aspect-ratio: 4 / 3; } }
.film-caption { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.film-caption .d2-liner { color: var(--ink-muted); }
.film-caption .d2-mono { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

/* Audit fixes, November 16, 2026 ------------------------------------------- */
/* Tap targets: mono contact links in the footer reach 24px+ (44px on phones). */
.d2-footer-tap { display: inline-block; padding-block: 6px; }
@media (max-width: 720px) { .d2-footer-tap { padding-block: 14px; } .d2-footer-col a { display: inline-block; padding-block: 10px; } }

/* Night version (THEME=night): Night is the ground, Bone bands stay for reading
   and forms, the footer stays Night. The scrolled header is a Night bar. */
:root[data-ground="night"] .site-header:not(.is-over) .logo-ink { display: none; }
:root[data-ground="night"] .site-header:not(.is-over) .logo-bone { display: block; }

/* Responsive images (scripts/build-images.mjs + Picture.astro) */
.media-fill { position: absolute; inset: 0; z-index: -1; display: block; }
.media-fill img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-contents { display: contents; }

/* Journal */
.journal-top { padding-top: calc(var(--space-32, 128px) + 24px); }
.journal-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.journal-card { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.journal-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
/* Journal titles and post headings use Inter: old posts contain apostrophes,
   parentheses and dashes the Articulat CF demo cuts can't draw. */
.journal-title { font-family: var(--font-body); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.journal-card:hover .journal-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.journal-desc { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
@media (max-width: 1024px) { .journal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .journal-list { grid-template-columns: 1fr; } .journal-top { padding-top: 112px; } }
.post-head { padding-top: 152px; padding-bottom: 40px; }
.post-title { margin: 16px 0 0; max-width: 20ch; font-family: var(--font-serif); font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.post-date { margin: 20px 0 0; color: var(--ink-muted); }
.post-hero img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.post-review { margin-top: 32px; padding-block: 16px; border: 1px dashed var(--line-strong, #8A8F8B); font-size: 14px; line-height: 22px; padding-inline: 20px; max-width: 760px; }
.post-review p { margin: 0; } .post-review ul { margin: 8px 0 0; padding-left: 20px; }
.prose { max-width: 68ch; padding-block: 56px 32px; font-size: 17px; line-height: 29px; }
.prose h2 { margin: 48px 0 0; font-family: var(--font-body); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
.prose h3 { margin: 32px 0 0; font-family: var(--font-body); font-weight: 500; font-size: 19px; line-height: 1.3; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 18px 0 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose blockquote { padding-left: 20px; border-left: 1px solid var(--line-strong, #8A8F8B); font-family: var(--font-serif); font-size: 20px; line-height: 30px; }
@media (max-width: 720px) { .post-head { padding-top: 112px; } .post-hero img { aspect-ratio: 3 / 2; } .prose { font-size: 16px; line-height: 27px; } }

/* Header contrast (November 24, 2026): at 72% the scrolled Night bar turned
   grey over Bone sections and bright photos, and the white logo washed out.
   At 94% it stays Night everywhere, so the logo keeps its contrast. */
:root[data-ground="night"] .site-header:not(.is-over) .d2-nav { background: rgba(11,21,16,0.94); border-bottom-color: rgba(239,235,227,0.16); }
