/* AeroSky Partners — lower home sections (window, fleet, globe, team, insights, instagram, closing, footer) */

/* ---------- Window: fly through a cabin window into the sky (Aerodynamics) ---------- */
.window { position: relative; height: 320vh; }
.window__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.window__words {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  margin: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: clamp(44px, 6.4vw, 140px);
  line-height: 1;
  font-weight: 500;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.045em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(1, 22, 45, .25);
  will-change: transform;
}
.window__words em { font-family: var(--serif); font-weight: 400; font-variation-settings: normal; letter-spacing: -.02em; }
.window__svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.window__wall { fill: #071a33; transition: fill .8s; }
html[data-mode="dusk"] .window__wall { fill: #0b0c0e; }

/* ---------- Fleet (inventory) ---------- */
/* the sky shows through the top, then a cloud bank rises into the page (Aerodynamics) */
.fleet {
  position: relative;
  padding: 60vh 0 clamp(90px, 12vh, 140px);
  overflow-x: clip;
  background: linear-gradient(to bottom, transparent 0, transparent 54vh, var(--sheet) 54vh);
}
.fleet > .cloudbank { top: 0; height: 52vh; }
.fleet::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 22vh; height: 32.5vh; background: linear-gradient(to bottom, transparent, var(--sheet) 92%); pointer-events: none; }
.fleet > *:not(.cloudbank) { position: relative; z-index: 2; }
.fleet__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gutter); margin-bottom: 48px; }
.fleet__head h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(36px, 3.34vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.insights__head h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(44px, 4.6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }

/* soft cloud edge, shaped by an SVG noise filter (#cloud-edge in the page) */
.cloudbank { position: absolute; left: -4%; right: -4%; z-index: 0; pointer-events: none; filter: url(#cloud-edge); }
.cloudbank--rise { background: linear-gradient(to top, #fff 0%, #fff 30%, rgba(255, 255, 255, 0) 92%); }
.cloudbank--hang { background: linear-gradient(to bottom, #fff 0%, #fff 30%, rgba(255, 255, 255, 0) 92%); }
html[data-mode="dusk"] .cloudbank { filter: url(#cloud-edge-dusk); }
.pill--line { border: 1px solid currentColor; height: 44px; }
.fleet__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, 29.94vw, 575px);
  gap: 16px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.fleet__row::-webkit-scrollbar { display: none; }
.fleet__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.plane { position: relative; aspect-ratio: 431 / 474; border-radius: 8px; overflow: hidden; scroll-snap-align: start; color: var(--white); }
.plane img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.plane:hover img { transform: scale(1.05); }
.plane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 15, 28, .82) 0%, rgba(1, 15, 28, .1) 50%, rgba(1, 15, 28, 0) 70%); }
.plane__body { position: absolute; z-index: 1; left: 2.6vw; right: 2.6vw; bottom: 2.6vw; display: grid; gap: 18px; }
.plane__body h3 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 2.78vw, 54px); font-weight: 400; line-height: 1; letter-spacing: -.015em; }
.plane__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.plane__chips span { padding: 12px; border-radius: 2px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: 14px; line-height: 1; font-weight: 500; }
.plane__tag { position: absolute; z-index: 1; top: 22px; left: 22px; padding: 5px 10px; border-radius: 999px; background: rgba(1, 15, 28, .55); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.fleet__progress { position: relative; margin: 34px var(--gutter) 0; height: 2px; }
.fleet__progress::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .16; }
.fleet__progress i { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: currentColor; }

/* ---------- Globe: clouds hang from the page above, the Earth rises behind a cloud bank ---------- */
.globe { position: relative; padding: 46vh 0 0; overflow: hidden; color: var(--white); text-align: center; }
.globe > .cloudbank--hang { top: 0; height: 50vh; }
.globe::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 26vh; background: linear-gradient(to top, transparent, var(--sheet) 90%); pointer-events: none; }
.globe__head { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; padding: 0 var(--gutter); }
.globe__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); }
.globe__icon svg { width: 24px; height: 24px; }
.globe__head h2 { margin: 0; font-family: var(--serif); font-size: clamp(54px, 6.4vw, 120px); font-weight: 400; line-height: 1; letter-spacing: -.02em; text-shadow: 0 0 40px rgba(1, 22, 45, .25); }
.globe__head p { margin: 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .92); text-shadow: 0 0 24px rgba(1, 22, 45, .3); }
.globe__stage { position: relative; height: 82vh; margin-top: 4vh; overflow: hidden; cursor: grab; }
.globe__stage:active { cursor: grabbing; }
.globe__canvas { position: absolute; left: 0; right: 0; top: 0; height: 164vh; will-change: transform; }
.globe__stage > .cloudbank--rise { z-index: 2; bottom: 0; height: 34vh; }
.globe__stage::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 15vh; background: linear-gradient(to bottom, transparent, var(--sheet) 80%); pointer-events: none; }
.globe__hint { position: absolute; z-index: 4; left: 50%; bottom: 7vh; transform: translateX(-50%); margin: 0; color: var(--navy); opacity: .6; pointer-events: none; }
html[data-mode="dusk"] .globe__hint { color: var(--white); }
.marker { position: relative; display: grid; justify-items: center; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; color: var(--white); }
.marker__pin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); box-shadow: 0 6px 16px rgba(1, 15, 28, .35); }
.marker__pin svg { width: 17px; height: 17px; transform: rotate(45deg); }
.marker__label { position: absolute; bottom: calc(100% + 8px); padding: 6px 12px; border-radius: 999px; background: var(--navy); font-size: 12px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.marker:hover .marker__label, .marker.is-home .marker__label { opacity: 1; transform: none; }
.marker.is-home .marker__pin { background: var(--gold); color: var(--ink); }

/* ---------- Team: two photos + a short statement and one big button ---------- */
.team { position: relative; z-index: 1; margin-top: -2px; background: var(--sheet); padding: clamp(110px, 18vh, 200px) var(--gutter); transition: background-color .8s; }
.team__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 130px); max-width: 1440px; margin: 0 auto; align-items: center; }
.team__copy { display: grid; justify-items: start; gap: 30px; }
.team__copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 4.8vw, 88px); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
.team__copy h2 em { font-style: italic; }
.team__copy p { margin: 0; max-width: 42ch; font-size: 18px; line-height: 1.6; color: var(--fg-soft); }
.btn--big { height: 68px; padding: 0 10px 0 34px; gap: 22px; font-size: 17px; }
.btn--big .btn__icon { width: 50px; height: 50px; }
.team__media { position: relative; aspect-ratio: 4 / 4.6; }
.team__photo { position: absolute; border-radius: 12px; overflow: hidden; }
.team__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.team__photo--a { inset: 0 18% 14% 0; }
.team__photo--b { right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; box-shadow: 0 30px 60px rgba(1, 15, 28, .25); }
.team__portrait { display: grid; place-content: center; gap: 10px; height: 100%; background: linear-gradient(160deg, #0d3c64, #011627); color: rgba(255, 255, 255, .85); text-align: center; }
.team__portrait b { font-family: var(--serif); font-size: 64px; font-weight: 400; line-height: 1; }
.team__portrait span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

/* ---------- Insights ---------- */
.insights { background: var(--sheet); padding: 0 var(--gutter) clamp(110px, 16vh, 180px); transition: background-color .8s; }
.insights__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.insights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post { display: grid; align-content: start; gap: 18px; }
.post__img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.post__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post h3 { margin: 0; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; font-weight: 500; font-variation-settings: "wdth" 108; }
.post__tag { justify-self: start; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; letter-spacing: .08em; opacity: .75; }

/* ---------- Instagram: floating collage, gathered around the centre ---------- */
.insta { position: relative; background: var(--sheet); height: 115vh; min-height: 820px; overflow: hidden; transition: background-color .8s; }
.insta__head { position: absolute; z-index: 2; padding: 28px 36px; border-radius: 16px; background: color-mix(in srgb, var(--sheet) 82%, transparent); backdrop-filter: blur(6px); left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 18px; text-align: center; }
.insta__head h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5.4vw, 100px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.insta__pic { position: absolute; border-radius: 12px; overflow: hidden; will-change: transform; box-shadow: 0 24px 50px rgba(1, 15, 28, .12); }
.insta__pic img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1s var(--ease); }
.insta__pic:hover img { transform: scale(1.06); }
.insta__pic--1 { left: 11%; top: 6%; width: 19vw; aspect-ratio: 4 / 5; }
.insta__pic--2 { right: 13%; top: 8%; width: 16vw; aspect-ratio: 1; }
.insta__pic--3 { left: 18%; bottom: 7%; width: 15vw; aspect-ratio: 1; }
.insta__pic--4 { right: 11%; bottom: 5%; width: 19vw; aspect-ratio: 4 / 5; }

/* ---------- Closing: back into the sky ---------- */
.closing { position: relative; min-height: 150vh; display: grid; place-items: center; padding: 50vh var(--gutter) 20vh; overflow: hidden; color: var(--white); text-align: center; }
.closing > .cloudbank--hang { top: 0; height: 50vh; }
.closing::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 26vh; background: linear-gradient(to top, transparent, var(--sheet) 90%); pointer-events: none; }
.closing__inner { position: relative; z-index: 2; }
.closing__inner { display: grid; justify-items: center; gap: 30px; }
.closing h2 { margin: 0; font-size: clamp(56px, 8vw, 150px); line-height: .95; font-weight: 500; font-variation-settings: "wdth" 125; letter-spacing: -.04em; text-shadow: 0 0 50px rgba(1, 22, 45, .3); }
.closing p { margin: 0; max-width: 46ch; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .92); text-shadow: 0 0 30px rgba(1, 22, 45, .3); }
.closing .btn { background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--sheet); padding: clamp(80px, 12vh, 130px) var(--gutter) 28px; transition: background-color .8s; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1440px; margin: 0 auto; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 22px; }
.footer__brand p { margin: 0 0 26px; max-width: 34ch; color: var(--fg-soft); }
.footer h4 { margin: 0 0 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer address { font-style: normal; display: grid; gap: 10px; font-size: 15px; color: var(--fg-soft); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 1440px; margin: 70px auto 0; padding-top: 22px; border-top: 1px solid rgba(127, 140, 155, .3); font-size: 12px; color: var(--fg-soft); }
.footer__base a { text-decoration: underline; }
.footer .logo-on-dark { display: none; }
html[data-mode="dusk"] .footer .logo-on-light { display: none; }
html[data-mode="dusk"] .footer .logo-on-dark { display: block; }

@media (max-width: 900px) {
  .fleet__row { grid-auto-columns: 82vw; }
  .fleet__head, .insights__head { flex-direction: column; align-items: start; }
  .team__grid { grid-template-columns: 1fr; }
  .insights__grid { grid-template-columns: 1fr; }
  .insta__pic--1, .insta__pic--4 { width: 34vw; }
  .insta__pic--2, .insta__pic--3 { width: 28vw; }
  .insta__pic--1, .insta__pic--3 { left: 6%; }
  .insta__pic--2, .insta__pic--4 { right: 6%; }
  .globe__stage { height: 64vh; }
  .globe__canvas { height: 128vh; }
  .globe__stage > .cloudbank--rise { height: 20vh; }
  .window__words { left: 0; right: 0; padding: 0 var(--gutter); white-space: normal; text-align: center; font-size: 15vw; line-height: .95; }
  .window__words em { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
