/* Homepage only: "Flown, Not Displayed". Why: NOTES.md, 2026-11-18 (rework).

   One rule runs the page: the picture holds still and the words move past it.
   Pictures change two ways only, a straight wipe that travels at scroll speed
   or a slow push-in. No props, no filters on photos, no effects on the film.

   Everything that pins, hides or moves is gated on `html.fd-motion`, which
   home.js adds only when motion is allowed. Without JavaScript, or with
   reduced motion, this file lays out a plain page: every picture whole, all
   text at full ink, nothing sticky. */

.fd { background: var(--cream); color: var(--ink); }
.fd h1, .fd h2, .fd h3 { color: inherit; }

/* Quieter than the site's poster scale, same faces. */
.fd-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 13ch;
}
.fd-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ---------- 1. Hero: the film ---------- */
.fd-hero { position: relative; background: var(--loam-deep); color: var(--cream); }
.fd-hero__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.fd-hero__media { position: absolute; inset: 0; }
.fd-hero__media img,
.fd-hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
/* Shade only where the words sit, so the film stays at full strength. */
.fd-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 9, 6, 0) 38%, rgba(14, 9, 6, 0.84) 100%),
    linear-gradient(90deg, rgba(14, 9, 6, 0.5) 0%, rgba(14, 9, 6, 0) 62%);
  opacity: calc(1 - var(--p, 0) * 0.8);
}
.fd-hero__text {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
}
.fd-hero__eyebrow { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; margin-bottom: 1.5rem; }
.fd-hero__deck {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: rgba(244, 239, 231, 0.94);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}
.fd-hero__cta { margin-top: 2rem; }

/* Pinned for 70svh while the words lift off, then the cream page covers it. */
.fd-motion .fd-hero { height: 270vh; height: 270svh; }
.fd-motion .fd-hero__pin { position: sticky; top: 0; min-height: 0; }
.fd-motion .fd-hero__text {
  opacity: calc(1 - var(--p, 0) * 2.2);
  transform: translate3d(0, calc(var(--p, 0) * -64px), 0);
}
.fd-motion .fd-hero__text.is-away { visibility: hidden; }
.fd-motion .fd-hero + .fd-sheet { margin-top: -100vh; margin-top: -100svh; }

/* ---------- The cream page: credentials, why we fly, the equipment ---------- */
.fd-sheet { position: relative; z-index: 2; background: var(--cream); color: var(--ink); }
.fd-sheet .kicker { color: var(--ink); }
.fd-sheet .lede { color: var(--ink-muted); }
.fd-sheet .footnote { color: var(--ink-muted); }
.fd-sheet .btn--ghost:hover { color: var(--loam); }

/* ---------- 2. Credentials and why we fly ---------- */
.fd-creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule-cream);
}
.fd-creds__cell { padding: 2.4rem 1.5rem 2.4rem 0; }
.fd-creds__cell + .fd-creds__cell { padding-left: 1.5rem; border-left: 1px solid var(--rule-cream); }
.fd-creds__fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}
.fd-creds__label {
  margin-top: 0.6rem;
  font: 500 0.82rem/1.4 var(--font-sans);
  color: var(--ink-muted);
}

.fd-why { padding: clamp(4.5rem, 11vw, 9.5rem) 0; }
.fd-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.fd-why__body { position: relative; }
.fd-why__body p {
  font: 500 clamp(1.4rem, 2.7vw, 2.3rem)/1.32 var(--font-sans);
  letter-spacing: -0.012em;
  max-width: 27em;
}
.fd-why__body p + p { margin-top: 1.3em; }
.fd-why__body strong { font-weight: 700; }
/* home.js wraps each word; a line darkens as it crosses mid-screen. */
.fd-w { transition: opacity 0.18s linear; }

/* ---------- 3. The equipment ---------- */
.fd-equip { padding-bottom: clamp(3rem, 7vw, 6rem); }
.fd-equip__grid { border-top: 1px solid var(--ink); }
.fd-craft { padding: 2.5rem 0 1rem; }
.fd-craft + .fd-craft { border-top: 1px solid var(--rule-cream); }
.fd-craft__fig { margin: 0 0 2rem; background: var(--cream); }
.fd-craft__fig img {
  width: 100%;
  height: auto;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cream-soft);
}
.fd-craft__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  max-width: 640px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-cream);
  font: 500 0.74rem/1.2 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.fd-craft__cap b { font-weight: 700; color: var(--ink); }
.fd-craft__text .fd-h2 { margin-top: 1rem; }
.fd-craft__text .lede { margin-top: 1.1rem; }
.fd-craft__body { margin-top: 1rem; max-width: 56ch; color: var(--ink-muted); line-height: 1.6; }

.fd-spec { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.fd-spec li {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.9fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-cream);
}
.fd-spec__fig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  line-height: 1;
  text-transform: uppercase;
}
.fd-spec__label { font: 500 0.86rem/1.35 var(--font-sans); color: var(--ink-muted); }

.fd-price { margin-top: 1.9rem; }
.fd-price__eyebrow {
  display: block;
  font: 500 0.74rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fd-price__value {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 3.6vw, 3.1rem);
  line-height: 1;
}
.fd-price__note { margin-top: 0.6rem; max-width: 40ch; font: 400 0.88rem/1.5 var(--font-sans); color: var(--ink-muted); }
.fd-craft__text .btn-row { margin-top: 1.75rem; }

@media (max-width: 899px) {
  /* Phone: the photo sticks to the top while its own column scrolls under it. */
  .fd-motion .fd-craft__fig {
    position: sticky; top: 0; z-index: 2;
    margin: 0 calc(var(--gutter) * -1) 1.75rem;
  }
  .fd-motion .fd-craft__fig img { max-width: none; }
  .fd-motion .fd-craft__cap { max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (min-width: 900px) {
  /* Plain page: photo beside its column, nothing sticky. */
  .fd-craft {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
    padding: 3.5rem 0;
  }

  /* One frame holds both photographs. Each text column passes it, and the
     I-19 photo is uncovered by the top edge of the I-19 column: home.js sets
     --edge to that edge's distance from the top of the frame. */
  .fd-motion .fd-equip__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 5.5rem);
    margin-top: 1rem;
  }
  .fd-motion .fd-craft { display: contents; }
  .fd-motion .fd-craft__fig {
    grid-column: 1; grid-row: 1 / 3;
    align-self: start;
    position: sticky;
    top: max(5rem, calc(50vh - 14rem));
    margin: 5vh 0 0;
  }
  /* Only the photograph wipes. The caption under it changes at the halfway
     point, so the name never sits under the wrong aircraft for long. */
  .fd-motion .fd-craft--i19 .fd-craft__fig { background: transparent; }
  .fd-motion .fd-craft--i19 .fd-craft__fig img { clip-path: inset(var(--edge, 100%) 0 0 0); }
  .fd-motion .fd-craft__cap { transition: opacity 0.25s linear; }
  .fd-motion .fd-craft--i19 .fd-craft__cap,
  .fd-motion .fd-equip__grid.is-i19 .fd-craft--r40 .fd-craft__cap { opacity: 0; }
  .fd-motion .fd-equip__grid.is-i19 .fd-craft--i19 .fd-craft__cap { opacity: 1; }
  .fd-motion .fd-craft__text { grid-column: 2; padding: 12vh 0 14vh; }
  .fd-motion .fd-craft--r40 .fd-craft__text { grid-row: 1; padding-top: 5vh; }
  .fd-motion .fd-craft--i19 .fd-craft__text { grid-row: 2; border-top: 1px solid var(--ink); }
}

/* ---------- 4. In the field: one still, a slow push-in ---------- */
.fd-field { position: relative; background: var(--loam-deep); color: var(--cream); }
.fd-field__pin {
  position: relative;
  height: 62vw;
  min-height: 24rem;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.fd-field__pin img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 49% 44%;
}
.fd-field__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 9, 6, 0) 45%, rgba(14, 9, 6, 0.78) 100%);
  opacity: var(--h, 1);
}
.fd-field__text { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.fd-field__text .fd-h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 4rem); }

/* 85svh of push-in, half a screen of hold, then the services page covers it. */
.fd-motion .fd-field { height: 340vh; height: 340svh; }
.fd-motion .fd-field__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; max-height: none; }
.fd-motion .fd-field__pin img {
  transform: scale(calc(1 + var(--z, 0) * 0.25));
  transform-origin: 49% 44%;
  will-change: transform;
}
.fd-motion .fd-field__text {
  opacity: var(--h, 1);
  transform: translate3d(0, calc((1 - var(--h, 1)) * 14px), 0);
}
.fd-motion .fd-field + .fd-services { margin-top: -100vh; margin-top: -100svh; }

/* ---------- 5. Services: one ruled list ---------- */
.fd-services {
  position: relative; z-index: 2;
  background: var(--loam);
  color: var(--cream);
  padding: var(--section-y) 0;
  scroll-margin-top: 0;
}
.fd-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.fd-services__head .lede { max-width: 26ch; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.4; color: rgba(244, 239, 231, 0.9); }
.fd-services__head .btn-row { margin-top: 2rem; }
.fd-motion .fd-services__head { position: sticky; top: 5rem; }
.fd-svc { list-style: none; margin: 0; padding: 0; }
.fd-svc__row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding: 1.9rem 0 2.1rem;
}
.fd-svc__row::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: rgba(244, 239, 231, 0.3);
  transform-origin: left center;
}
.fd-svc__num { padding-top: 0.45rem; font: 500 0.8rem/1 var(--font-mono); color: var(--wheat); }
.fd-svc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--cream);
}
.fd-svc__body {
  grid-column: 2;
  margin-top: 0.7rem;
  max-width: 54ch;
  color: rgba(244, 239, 231, 0.78);
  line-height: 1.6;
}
/* Each hairline draws once as its row comes in. */
.fd-motion .fd-svc__row::before { transform: scaleX(0); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fd-motion .fd-svc__row.is-in::before { transform: scaleX(1); }
.fd-motion .fd-svc__row > * { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.7s ease 0.12s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s; }
.fd-motion .fd-svc__row.is-in > * { opacity: 1; transform: none; }

/* ---------- 6. Our operation: a photo band, then the story ---------- */
.fd-band { position: relative; z-index: 2; height: clamp(17rem, 60vh, 38rem); overflow: hidden; background: var(--loam-deep); }
.fd-band img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* The photo moves a little slower than the page. */
.fd-motion .fd-band img { transform: translate3d(0, calc(var(--y, 0) * 1px), 0); will-change: transform; }

.fd-story { position: relative; z-index: 2; background: var(--loam); color: var(--cream); padding: var(--section-y) 0; }
.fd-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.fd-story__head .fd-h2 { margin-top: 1rem; max-width: 14ch; }
.fd-motion .fd-story__head { position: sticky; top: 5rem; }
.fd-story__body { color: rgba(244, 239, 231, 0.86); font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.7; }
.fd-story__body p + p { margin-top: 1.25rem; }
.fd-story__body strong { color: var(--cream); font-weight: 600; }
.fd-story__body .fd-story__quote {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 239, 231, 0.3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--cream);
}
.fd-story__attrib {
  margin-top: 1rem;
  font: 500 0.76rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.6);
}

/* ---------- 7. Contact: the form, untouched, on cream ---------- */
.fd-contact { position: relative; z-index: 2; background: var(--cream); color: var(--ink); }
.fd-contact .kicker { color: var(--ink); }
.fd-contact .lede { color: var(--ink-muted); }
.fd-contact .contact__info dt { color: var(--ink-muted); }
.fd-contact .contact__info dd,
.fd-contact .contact__info dd a { color: var(--ink); }
.fd-contact .contact__info dd a:hover { color: var(--patina); }
.fd-contact .contact__info .fd-contact__line a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1;
}

/* ---------- Measured reveals ---------- */
.fd-motion [data-fd-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fd-motion [data-fd-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 899px) {
  .fd-creds { grid-template-columns: 1fr 1fr; }
  .fd-creds__cell { padding: 1.6rem 1rem 1.6rem 0; }
  .fd-creds__cell + .fd-creds__cell { padding-left: 0; border-left: 0; }
  .fd-creds__cell:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--rule-cream); }
  .fd-creds__cell:nth-child(n + 3) { border-top: 1px solid var(--rule-cream); }
  .fd-why__grid,
  .fd-services__grid,
  .fd-story__grid { grid-template-columns: minmax(0, 1fr); }
  .fd-motion .fd-services__head,
  .fd-motion .fd-story__head { position: static; }
  .fd-field__pin { height: 120vw; }
}

/* Reduced motion never gets `fd-motion`, so nothing above moves. The film is
   swapped for its poster, as the rest of the site does. */
@media (prefers-reduced-motion: reduce) {
  .fd-hero__media video { display: none; }
}
