/* Visual upgrade, September 2026: cinematic page openings, one media system,
   wider editorial layouts and stronger type. Loaded after every other stylesheet. */

:root {
  --wrap: 1260px;
  --t-xs: 0.78rem;
  --t-sm: 0.9375rem;
  --radius: 6px;
  --frame: 4 / 5;
  --f-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { letter-spacing: -0.015em; }

.btn { font-size: 0.9375rem; }
.btn-beam { min-height: 50px; }
.section h2, .aog-band h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.intro { font-size: 1.125rem; line-height: 1.6; }
.label { letter-spacing: 0.16em; }

/* ---------- Page openings ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 90%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(201 162 77 / 0.13), transparent);
  pointer-events: none;
}
.page-head.page-hero .page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 6vw, 88px);
}
.page-hero-copy { display: grid; gap: 20px; justify-items: start; }
.page-hero-copy > p:not(.label) { color: var(--band-ink); opacity: 0.8; font-size: 1.1875rem; line-height: 1.55; max-width: 44ch; }
.page-head.page-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.04; max-width: 19ch; }
.page-head.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero-copy .actions { margin-top: 10px; align-items: center; gap: 14px 22px; }
.page-hero-copy .link-arrow { color: var(--band-ink); }
.page-hero-copy .link-arrow:hover { color: var(--gold); }
.page-hero-media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  aspect-ratio: var(--frame);
  max-height: min(72vh, 640px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0a08;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(201 162 77 / 0.28);
}
.page-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(11 10 8 / 0.45));
  pointer-events: none;
}
.page-hero--compact .page-hero-media { max-width: 400px; max-height: min(56vh, 520px); }

@media (max-width: 760px) {
  .page-head.page-hero .page-hero-grid {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(100svh - 190px);
    padding-block: 40px 36px;
  }
  .page-hero--compact .page-hero-grid { min-height: 440px; }
  .page-hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .page-hero-media::after {
    background: linear-gradient(180deg, rgb(11 10 8 / 0.3) 0%, rgb(11 10 8 / 0.1) 18%, rgb(11 10 8 / 0.72) 40%, rgb(11 10 8 / 0.94) 62%, rgb(11 10 8 / 0.98) 100%);
  }
  .page-hero-copy > p:not(.label) { font-size: 1.0625rem; opacity: 0.9; }
  .page-head.page-hero h1 { font-size: clamp(2.25rem, 10vw, 2.875rem); }
  .page-hero-copy .actions { flex-direction: row; flex-wrap: wrap; }
}

/* Detailing: the six sections stay one tap away. */
.detail-subnav { position: sticky; top: 0; z-index: 25; border-block: 1px solid var(--band-rule); }
.detail-subnav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.detail-subnav-links::-webkit-scrollbar { display: none; }
.detail-subnav-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding-inline: 14px;
  white-space: nowrap;
  text-decoration: none;
  font-size: var(--t-sm);
  color: var(--band-muted);
  border-bottom: 2px solid transparent;
}
.detail-subnav-links a:hover { color: var(--band-ink); }
.detail-subnav-links a.is-current { color: var(--band-ink); border-bottom-color: var(--gold); }
.detail-subnav-links span { font: 400 var(--t-xs)/1 var(--f-mono); color: var(--gold); }
.detailing-page section[id] { scroll-margin-top: 72px; }

/* ---------- Sections ---------- */
@media (min-width: 761px) {
  .split { grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); }
}
.split--stack { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.split--stack > .label { padding-top: 0; }
.split--stack .intro { max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { margin-top: 14px; }
.section-cta { margin-top: 36px; }

/* ---------- One media system ---------- */
.field-media { position: relative; }
.field-video { position: relative; }
.field-media .field-frame, .field-media video { aspect-ratio: var(--frame); border-radius: var(--radius); overflow: hidden; background: #171713; }
.field-media img, .field-media video { object-fit: cover; }
.field-media img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); filter: saturate(0.92) contrast(1.03); }
.field-media .field-frame:hover img { transform: scale(1.035); }
.field-media--wide .field-frame, .field-media--wide video { aspect-ratio: 4 / 3; }
.field-media figcaption { margin-top: 12px; font-size: var(--t-sm); line-height: 1.45; }
.field-media .field-frame { cursor: zoom-in; }
.field-media.is-enhanced video { cursor: pointer; }
.field-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid rgb(201 162 77 / 0.55);
  border-radius: 999px;
  background: rgb(11 10 8 / 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #eeebe4;
  font: 600 0.8125rem/1 var(--f-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.field-play:hover { background: rgb(11 10 8 / 0.85); border-color: var(--gold); }
.field-play svg { color: var(--gold); }

/* Horizontal reel: every piece of footage at one size, swipe or use the arrows. */
.reel { position: relative; }
.reel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(232px, 23%, 300px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.reel-track > .field-media { scroll-snap-align: start; }
.reel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.reel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.reel-nav button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}
.reel-nav button:hover { border-color: var(--gold-ink); }
.reel-nav button:disabled { opacity: 0.35; cursor: default; }
.band .reel-nav button { background: transparent; color: var(--band-ink); border-color: var(--band-rule); }
.reel-head { margin: 56px 0 4px; display: grid; gap: 6px; }
.reel-head h3 { font-size: var(--t-xl); }
.reel-head p { color: var(--muted); }
.recent-work-heading { margin-bottom: 20px; }
@media (max-width: 760px) {
  .reel-track { grid-auto-columns: 74%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .reel-nav { display: none; }
}

/* Lightbox for full-length footage and full-size photographs. */
.lb { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #eeebe4; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb::backdrop { background: rgb(8 7 6 / 0.94); }
.lb-bar { display: flex; justify-content: flex-end; padding: 12px 16px; }
.lb-close { min-height: 44px; padding: 0 16px; border: 1px solid #37322b; border-radius: 999px; background: transparent; color: inherit; font: 600 0.875rem/1 var(--f-body); cursor: pointer; }
.lb-close:hover { border-color: var(--gold); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 16px; }
.lb-stage video, .lb-stage img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: var(--radius); background: #000; }
.lb-caption { padding: 14px 16px 24px; text-align: center; font-size: 0.9375rem; color: #a39e94; }

/* ---------- Detailing cards ---------- */
.detail-services--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.detail-services--cards article { display: flex; flex-direction: column; gap: 10px; border-top: 0; padding-block: 8px 24px; }
.detail-services--cards .field-service-media { order: -1; margin: 0 0 10px; }
.detail-services--cards .field-service-media figcaption { display: none; }
.detail-services--cards p { margin-top: 0; }
.detail-services--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-link {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
  font: 600 var(--t-sm)/1.3 var(--f-body);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.card-link:hover { color: var(--gold-ink); }
.detail-services--text article { display: flex; flex-direction: column; gap: 12px; }
.seat-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 28px; }
.seat-layout .recent-seat-photo { margin: 0; max-width: none; }
.seat-layout .detail-list { margin-top: 0; }
@media (max-width: 1000px) { .detail-services--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .detail-services--cards {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 74%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-bottom: 12px;
  }
  .detail-services--cards article { scroll-snap-align: start; }
  .seat-layout { grid-template-columns: 1fr; }
  .seat-layout .recent-seat-photo { max-width: 420px; }
}
@media (max-width: 560px) { .detail-services--text { grid-template-columns: 1fr; } }

/* ---------- Maintenance capabilities ---------- */
.caps-layout { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.caps-photo { position: sticky; top: 32px; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--frame); }
.caps-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.03); }
.caps-title { margin: 14px 0 20px; }
@media (max-width: 860px) {
  .caps-layout { grid-template-columns: 1fr; }
  .caps-photo { position: static; aspect-ratio: 16 / 11; }
}

/* ---------- Cabin program and fleet photo pairs ---------- */
.program-layout, .fleet-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.program-photo, .fleet-photo { margin: 0; position: sticky; top: 32px; }
.program-photo img, .fleet-photo img { width: 100%; height: auto; aspect-ratio: var(--frame); object-fit: cover; border-radius: var(--radius); filter: saturate(0.92) contrast(1.03); }
.fleet-photo figcaption { margin-top: 12px; font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .program-layout, .fleet-layout { grid-template-columns: 1fr; }
  .program-photo, .fleet-photo { position: static; max-width: 420px; }
  .program-photo img, .fleet-photo img { aspect-ratio: 16 / 11; }
}

/* ---------- Homepage ---------- */
[data-piece="coverage"] .cv-chapter {
  width: auto;
  max-width: var(--wrap);
  margin: 0 auto clamp(56px, 7vw, 96px);
  padding: 0 var(--gutter);
  border-inline: 0;
  text-align: left;
}
[data-piece="coverage"] .cv-chapter h2 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); margin-top: 14px; }
.type-row { background: var(--bg); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.type-row-head { display: grid; gap: 14px; margin-bottom: 36px; }
.type-row-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 22ch; }
.type-row-head em { font-style: normal; color: var(--gold-ink); }
.type-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.type-tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #171713; }
.type-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.04); transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.type-tile:hover img { transform: scale(1.04); }
.type-tile p { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 56px 18px 18px; background: linear-gradient(180deg, transparent, rgb(11 10 8 / 0.88)); color: #eeebe4; }
.type-tile strong { font: 400 1.375rem/1.15 var(--f-display); }
.type-tile span { font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #cfcecb; }
@media (max-width: 900px) { .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .type-tiles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .type-tile { scroll-snap-align: start; }
}
[data-piece="proof"] .pf-names .pf-name { font-size: clamp(1.75rem, 3vw, 2.5rem); }

/* Mobile opening: the full-width film keeps the whole aircraft visible; a blurred,
   darkened copy of the same frame fills the stage around it (drawn by site.js). */
.walkin-ambient { display: none; }
@media (max-width: 760px) {
  .walkin.is-live[data-piece="hero"] .walkin-ambient {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: blur(26px) brightness(0.5) saturate(1.1);
    transform: scale(1.2);
    opacity: calc(1 - var(--copy) * 0.6);
    pointer-events: none;
  }
  .walkin.is-live[data-piece="hero"] .walkin-canvas { box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .field-media img, .type-tile img { transition: none; }
}
@media (max-width: 760px) { .page-hero-copy { text-shadow: 0 1px 14px rgb(0 0 0 / 0.55); } }

/* Company record: owner-approved figures in place of client names. */
.pf-private { margin-top: 18px; }
.stats { list-style: none; margin: 32px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stats li { display: grid; gap: 8px; align-content: start; padding: 24px 20px 24px 0; border-bottom: 1px solid var(--rule); }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.stats strong { font: 400 clamp(2.25rem, 4vw, 3.25rem)/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.stats span { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Ceramic coating: finished gloss beside the steps. */
.ceramic-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ceramic-layout .detail-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ceramic-media { position: sticky; top: 80px; }
@media (max-width: 860px) {
  .ceramic-layout { grid-template-columns: 1fr; }
  .ceramic-layout .detail-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ceramic-media { position: static; max-width: 360px; }
}

/* DM Serif Display runs wider than Marcellus: keep "On the ground." on one line. */
.walkin[data-piece="hero"] .walkin-intro h1 { max-width: 15ch; }

/* Swipe rows: every tile the same shape, including landscape photos. */
.reel-track .field-media--wide .field-frame, .reel-track .field-media--wide video { aspect-ratio: var(--frame); }
