/* AeroSky Partners — aircraft detail page (top-down reveal → specs → cabin plan) */
html[data-mode="day"]  { --ac-bg: linear-gradient(180deg, #c9d6df 0%, #e4e6e2 38%, var(--paper) 78%); --plan: var(--navy); }
html[data-mode="dusk"] { --ac-bg: linear-gradient(180deg, #1a2026 0%, #121417 45%, #0c0d0f 85%); --plan: #e9e2d6; }

.ac { position: relative; height: 560vh; }
.ac__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ac-bg); }

.ac__word {
  position: absolute;
  z-index: 1;
  top: calc(var(--nav-h) + 9vh);
  margin: 0;
  font-size: clamp(60px, 8.6vw, 168px);
  line-height: .9;
  font-weight: 500;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.04em;
  white-space: nowrap;
  will-change: transform, opacity;
}
.ac__word--l { left: var(--gutter); }
.ac__word--r { right: var(--gutter); }
.ac__tag { position: absolute; z-index: 1; left: var(--gutter); top: calc(var(--nav-h) + 9vh + clamp(60px, 8.6vw, 168px) * 1.05); margin: 0; font-size: 17px; line-height: 1.15; font-weight: 600; white-space: pre-line; }
.ac__info { position: absolute; z-index: 3; right: var(--gutter); top: 54vh; width: min(360px, 34vw); display: grid; gap: 18px; }
.ac__rule { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ac__info p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-soft); }

/* the aircraft: render and cabin plan share one square, so they line up exactly */
.ac__plane { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(94vh, 94vw); aspect-ratio: 1; margin: calc(min(94vh, 94vw) / -2) 0 0 calc(min(94vh, 94vw) / -2); will-change: transform; pointer-events: none; }
.ac__plane img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 40px 46px rgba(30, 24, 18, .28)); }
.ac__plan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--plan); opacity: 0; }
.ac__plan .ln { fill: none; stroke: currentColor; stroke-width: .055; stroke-linecap: round; stroke-linejoin: round; }
.ac__plan .ln--soft { stroke-width: .04; stroke-opacity: .5; }
.ac__plan .fill { fill: currentColor; fill-opacity: .07; }
.ac__plan .mk { pointer-events: auto; cursor: pointer; outline: none; }
.ac__plan .mk .hit { fill: transparent; }
.ac__plan .mk .dot { fill: var(--gold); transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.ac__plan .mk .pulse { fill: none; stroke: var(--gold); stroke-width: .07; transform-box: fill-box; transform-origin: center; animation: mk-pulse 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.ac__plan .mk text { fill: var(--ink); font-family: var(--sans); font-size: .42px; font-weight: 700; text-anchor: middle; pointer-events: none; transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.ac__plan .mk:hover .dot, .ac__plan .mk:focus-visible .dot { transform: scale(1.3); }
.ac__plan .mk:hover text, .ac__plan .mk:focus-visible text { transform: scale(1.3); }
@keyframes mk-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* specs (left) and the listing (right) appear once the aircraft settles */
.ac__specs { position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--nav-h) + 4vh); bottom: 7vh; width: min(320px, 22vw); display: flex; flex-direction: column; justify-content: space-between; }
.ac__maker { margin: 0; font-size: clamp(20px, 1.8vw, 30px); font-weight: 500; font-variation-settings: "wdth" 115; }
.ac__model { margin: 0; font-size: clamp(56px, 6vw, 112px); line-height: .9; font-weight: 500; font-variation-settings: "wdth" 125; letter-spacing: -.04em; }
.ac__table { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 0; }
.ac__table div { display: grid; gap: 3px; }
.ac__table dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); opacity: .8; }
.ac__table dd { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.ac__table .wide { grid-column: 1 / -1; }
.ac__table .sub { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(127, 140, 155, .35); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.ac__about { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--nav-h) + 4vh); width: min(360px, 28vw); display: grid; gap: 22px; }
.ac__about h2 { margin: 0; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.05; font-weight: 500; font-variation-settings: "wdth" 115; }
.ac__about p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-soft); }
.ac__about .mono { color: var(--gold); }
.ac__planlegend { position: absolute; z-index: 3; right: var(--gutter); bottom: 7vh; width: min(300px, 21vw); display: grid; gap: 8px; font-size: 12px; color: var(--fg-soft); }
.ac__planlegend b { margin-bottom: 4px; color: var(--fg); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.ac__planlegend button { display: flex; align-items: center; gap: 10px; padding: 1px 0; text-align: left; color: var(--fg-soft); transition: color .3s; }
.ac__planlegend button:hover, .ac__planlegend button:focus-visible { color: var(--fg); }
.ac__planlegend button:hover em { box-shadow: 0 0 0 4px rgba(200, 147, 58, .25), 0 0 14px rgba(200, 147, 58, .7); }
.ac__planlegend em { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--ink); font-style: normal; font-size: 10px; font-weight: 700; transition: box-shadow .3s; }

.ac__note { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(24px, 4.4vh, 44px); margin: 0; font-size: 11px; color: var(--fg-soft); }

/* ---------- below the reveal ---------- */
.ac-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: center; padding: clamp(110px, 16vh, 180px) var(--gutter); background: var(--sheet); }
.ac-more h2 { margin: 10px 0 30px; font-family: var(--serif); font-size: clamp(44px, 4.6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.acc { border-top: 1px solid rgba(127, 140, 155, .35); }
.acc details { border-bottom: 1px solid rgba(127, 140, 155, .35); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; font-variation-settings: "wdth" 110; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 24px; font-weight: 300; transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc p { margin: 0 0 24px; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--fg-soft); }
.ac-more__img { aspect-ratio: 4 / 3.4; border-radius: 12px; overflow: hidden; }
.ac-more__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

.ac-end { display: grid; justify-items: center; gap: 24px; padding: 0 var(--gutter) clamp(110px, 16vh, 180px); background: var(--sheet); text-align: center; }
.ac-end h2 { margin: 0; font-size: clamp(44px, 5.6vw, 104px); line-height: .95; font-weight: 500; font-variation-settings: "wdth" 125; letter-spacing: -.04em; }
.ac-end p { margin: 0; max-width: 46ch; font-size: 18px; color: var(--fg-soft); }
.ac-end__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; align-items: center; }

@media (max-width: 900px) {
  .ac__word { top: calc(var(--nav-h) + 4vh); font-size: 15vw; }
  .ac__word--r { top: calc(var(--nav-h) + 4vh + 16vw); right: auto; left: var(--gutter); }
  .ac__tag, .ac__info, .ac__planlegend, .ac__note { display: none; }
  .ac__specs { width: auto; right: var(--gutter); top: calc(var(--nav-h) + 2vh); bottom: auto; gap: 10px; }
  .ac__table { grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 6px; }
  .ac__table > :nth-child(n+5) { display: none; }
  .ac__table dd { font-size: 12px; }
  .ac__about { top: auto; bottom: 90px; left: var(--gutter); right: var(--gutter); width: auto; gap: 10px; }
  .ac__about p:not(.mono) { display: none; }
  .ac-more { grid-template-columns: 1fr; }
}

/* drawing-led version (no picture yet): blueprint grid, filled planform, axes and dimensions */
html[data-mode="day"]  { --grid: rgba(2, 37, 64, .07); }
html[data-mode="dusk"] { --grid: rgba(255, 255, 255, .055); }
.ac__grid {
  position: absolute; inset: 0 0 -40% 0; pointer-events: none; will-change: transform;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 80%);
}
.ac__plane.is-drawing img { display: none; }
.ac__plan .sil { fill: currentColor; fill-opacity: .075; }
.ac__plan .axis { fill: none; stroke: var(--gold); stroke-width: .04; stroke-dasharray: 1.1 .3 .18 .3; stroke-opacity: .8; }
.ac__plan .dim { stroke: var(--gold); }
.ac__plan .dimtxt { fill: currentColor; font-family: var(--sans); font-size: .64px; font-weight: 600; letter-spacing: .02px; }
.ac__plan .dimtxt .k { fill: var(--gold); font-size: .44px; letter-spacing: .05px; text-transform: uppercase; }

/* ---------- hover preview ---------- */
.ac-pop {
  position: fixed; z-index: 60; left: 0; top: 0; width: 300px; overflow: hidden; border-radius: 12px;
  background: var(--sheet); color: var(--fg); box-shadow: 0 30px 60px -20px rgba(1, 15, 28, .45), 0 0 0 1px rgba(127, 140, 155, .2);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: left center; pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.ac-pop.is-on { opacity: 1; transform: none; }
.ac-pop > img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; max-width: none; object-fit: cover; }
.ac-pop > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 14px 16px 16px; }
.ac-pop em { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); font-style: normal; font-size: 12px; font-weight: 700; }
.ac-pop b { font-size: 15px; font-weight: 600; }
.ac-pop small { font-size: 12px; color: var(--fg-soft); }
.tbd { display: grid; place-items: center; align-content: center; gap: 12px; aspect-ratio: 4 / 3; padding: 20px; background: repeating-linear-gradient(135deg, rgba(127, 140, 155, .08) 0 10px, transparent 10px 20px); color: var(--fg-soft); text-align: center; font-size: 13px; line-height: 1.4; }
.tbd svg { width: 36px; height: 36px; color: var(--gold); }

/* ---------- gallery ---------- */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; color: #fff; }
.lb.is-open { visibility: visible; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(1, 12, 22, .62); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); opacity: 0; transition: opacity .5s var(--ease); }
.lb.is-open .lb__backdrop { opacity: 1; }
.lb__head, .lb__track, .lb__thumbs, .lb__arrow { position: relative; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lb.is-open .lb__head, .lb.is-open .lb__track, .lb.is-open .lb__thumbs, .lb.is-open .lb__arrow { opacity: 1; transform: none; transition-delay: .08s; }
.lb__head { display: flex; align-items: center; gap: 18px; padding: 22px var(--gutter); }
.lb__zone { font-size: 15px; font-weight: 500; }
.lb__close { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; transition: background-color .3s; }
.lb__close:hover { background: rgba(255, 255, 255, .24); }
.lb__track {
  display: flex; gap: 24px; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain;
  padding: 0 calc((100vw - min(1100px, 76vw)) / 2); scrollbar-width: none;
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide { flex: 0 0 min(1100px, 76vw); margin: 0; scroll-snap-align: center; display: grid; gap: 14px; transition: opacity .5s; }
.lb__slide img, .lb__slide .tbd { width: 100%; height: min(66vh, calc(min(1100px, 76vw) * .66)); max-width: none; object-fit: cover; border-radius: 10px; user-select: none; }
.lb__slide .tbd { aspect-ratio: auto; color: rgba(255, 255, 255, .75); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 12px, transparent 12px 24px); font-size: 16px; }
.lb__slide figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lb__slide figcaption span { color: rgba(255, 255, 255, .62); }
.lb__slide em, .lb__thumbs i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--ink); font-style: normal; font-size: 11px; font-weight: 700; flex: none; }
.lb__arrow { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; transition: background-color .3s, opacity .5s, transform .7s var(--ease); }
.lb__arrow:hover { background: rgba(255, 255, 255, .28); }
.lb__arrow--prev { left: var(--gutter); }
.lb__arrow--next { right: var(--gutter); }
.lb__thumbs { display: flex; gap: 10px; justify-content: safe center; overflow-x: auto; padding: 18px var(--gutter) 26px; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; display: grid; place-items: center; width: 84px; height: 58px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .08); opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; }
.lb__thumbs button img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.lb__thumbs button:hover { opacity: .8; }
.lb__thumbs button.is-on { opacity: 1; outline-color: var(--gold); }

@media (max-width: 900px) {
  .ac__planlegend { display: none; }
  .lb__slide { flex-basis: 86vw; }
  .lb__track { padding: 0 7vw; gap: 14px; }
  .lb__slide img, .lb__slide .tbd { height: min(56vh, 64vw); }
  .lb__arrow { display: none; }
  .lb__slide figcaption { flex-wrap: wrap; row-gap: 4px; }
  .lb__slide figcaption span { flex-basis: 100%; }
}

.ac__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
