/* Ending (v6, 11-15): every page closes on a light dawn card, then the navy footer.
   Midnight: "two same blue things don't give a good end". Reference: the dreamsvin cta card,
   calmer. The footer wordmark fills with dawn from the bottom when it scrolls in (ending.js adds .lit). */

/* ---------- the closing card (.cta-band on inner pages, #contact on home) ---------- */
.section--ink:is(.cta-band, #contact) {
  --ink: #0b1640; --ink-2: #2a3563; --muted: #4a5478; --orange-text: #1f37d6;
  --line: rgba(11, 22, 64, 0.12); --line-dark: rgba(11, 22, 64, 0.12); --line-strong: rgba(11, 22, 64, 0.3);
  background: #fff;
  color: #0b1640;
  padding-block: clamp(48px, 7vw, 104px) clamp(28px, 4vw, 56px);
}
:is(.cta-band, #contact) > .container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5.4vw, 76px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(55% 85% at 92% 112%, rgba(255, 179, 92, 0.6), rgba(255, 179, 92, 0) 62%),
    radial-gradient(45% 70% at 2% 118%, rgba(255, 128, 156, 0.2), rgba(255, 128, 156, 0) 62%),
    linear-gradient(158deg, #f2f4ff 0%, #eceeff 42%, #fff1e3 100%);
  border: 1px solid rgba(35, 64, 232, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 40px 80px -48px rgba(11, 22, 64, 0.35);
}
/* a low sun with two halo rings, bottom right: the dawn, quietly */
:is(.cta-band, #contact) > .container::before,
:is(.cta-band, #contact) > .container::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-260px, -14vw, -120px);
  bottom: clamp(-420px, -26vw, -220px);
  width: clamp(420px, 46vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
:is(.cta-band, #contact) > .container::before {
  border: clamp(40px, 5vw, 72px) solid rgba(255, 255, 255, 0.5);
}
:is(.cta-band, #contact) > .container::after {
  inset: auto;
  right: clamp(-200px, -10vw, -80px);
  bottom: clamp(-330px, -20vw, -170px);
  width: clamp(300px, 33vw, 520px);
  border: 1.5px solid rgba(255, 150, 80, 0.45);
  animation: end-halo 9s ease-in-out infinite alternate;
}
@keyframes end-halo { to { scale: 1.08; opacity: 0.55; } }
:is(.cta-band, #contact) :is(h2, h3, p, li, .lead, address) { color: var(--ink); }
:is(.cta-band, #contact) .lead { color: var(--muted); }
:is(.cta-band, #contact) h2 em {
  background: linear-gradient(90deg, #2340e8 0%, #7a4fd8 55%, #d4652a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--ink:is(.cta-band, #contact) .eyebrow { background: rgba(35, 64, 232, 0.08); color: var(--blue); border: 0; }
.section--ink:is(.cta-band, #contact) .btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 14px 34px -14px rgba(35, 64, 232, 0.75); }
.section--ink:is(.cta-band, #contact) .btn--primary:hover { background: #0b1640; border-color: #0b1640; color: #fff; }
.section--ink:is(.cta-band, #contact) :is(.btn--ghost, .btn--ghost-light) { background: rgba(255, 255, 255, 0.6); color: #0b1640; border-color: rgba(11, 22, 64, 0.22); }
.section--ink:is(.cta-band, #contact) :is(.btn--ghost, .btn--ghost-light):hover { background: #0b1640; color: #fff; border-color: #0b1640; }
#contact .contact__meta a { color: #0b1640; }
#contact .form { background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 22px; padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 30px 60px -40px rgba(11, 22, 64, 0.4); backdrop-filter: blur(8px); }
#contact .split { align-items: start; }

/* what happens next: three quiet steps on a hairline (dreamsvin's move, calmer) */
.next {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 32px);
  margin: clamp(8px, 2vw, 20px) 0 0;
  padding: 0;
  list-style: none;
}
.next li {
  position: relative;
  padding-top: 14px;
  border-top: 1.5px solid rgba(11, 22, 64, 0.16);
  font: 600 0.95rem/1.4 var(--font);
  color: #2a3563;
}
.next li::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #2340e8, #ff9a4a);
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--n, 0) * 0.25s + 0.3s);
}
.next li:nth-child(2) { --n: 1; }
.next li:nth-child(3) { --n: 2; }
.next.in li::before { width: 100%; }
.next b { display: block; margin-bottom: 4px; font: 800 0.72rem/1 var(--font); letter-spacing: 0.14em; color: #c2611a; }
.next--stack { grid-template-columns: 1fr; gap: 12px; margin-top: var(--s6, 32px); max-width: 30rem; }
@media (max-width: 720px) {
  .next { grid-template-columns: 1fr; gap: 12px; }
  :is(.cta-band, #contact) .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- footer base ---------- */
.sh-footer > * { position: relative; z-index: 1; }
.sh-footer-base { border-top-color: rgba(255, 255, 255, 0.1); }
@media (prefers-reduced-motion: reduce) {
  .next li::before { transition: none; }
  :is(.cta-band, #contact) > .container::after { animation: none; }
}

/* ---------- footer v5 "departures" (11-15: v3 sunrise "nice try, but no", v4 giant-wordmark reveal "footer is bad").
   the site's own story: the home hero is a boarding pass, so the footer is the departures board. every page is a
   destination on split-flap tiles (ending.js deals them when the board scrolls in, re-flips a row on hover/focus).
   board on the left, a help desk (contact) on the right. ---------- */
.sh-footer::before, .sh-footer::after { display: none; }
.sh-footer {  background: #070f2e; color: #fff; padding-top: 0; }
.depart {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  width: min(var(--max, 1200px), 100% - 2 * var(--gutter, 20px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
}
.board {
  container-type: inline-size;
  background: #02051a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: clamp(16px, 2.2vw, 28px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.board__title { margin: 0; display: flex; align-items: baseline; gap: 14px; }
.board__title b { font: 800 clamp(1.6rem, 3.2vw, 2.6rem) / 1 var(--font); letter-spacing: -0.03em; color: #ffb35c; }
.board__title span, .board__cols, .sh-clock { font: 700 0.72rem / 1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.sh-clock { margin: 0; font-variant-numeric: tabular-nums; }
.sh-clock time { color: #fff; font-size: 0.95rem; letter-spacing: 0.06em; }
.board__rows, .board__cols { --fs: calc(100cqi / 29.6); }
.board__cols { display: grid; grid-template-columns: calc(var(--fs) * 16.2) calc(var(--fs) * 2.8) 1fr; margin: 0 0 10px; padding-inline: calc(var(--fs) * 0.5); }
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--fs) * 0.22); }
.board__rows li { margin: 0; }
.dep {
  display: flex;
  gap: calc(var(--fs) * 0.9);
  padding: calc(var(--fs) * 0.18) calc(var(--fs) * 0.5);
  border-radius: 6px;
  font: 800 var(--fs) / 1 var(--font);
  color: #eef1ff;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.dep:hover, .dep:focus-visible { background: rgba(255, 179, 92, 0.1); color: #eef1ff; outline: none; }
.flaps { display: flex; gap: calc(var(--fs) * 0.1); }
.flaps i {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--fs) * 0.8);
  height: calc(var(--fs) * 1.28);
  border-radius: 3px;
  background: linear-gradient(180deg, #1b2450 0 49%, #0a1030 49% 51%, #151d44 51% 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.04);
  font-style: normal;
  transform-origin: 50% 50%;
}
.flaps i.f { animation: flap 0.07s linear; }
@keyframes flap { 0% { transform: perspective(200px) rotateX(0); } 50% { transform: perspective(200px) rotateX(-70deg); filter: brightness(0.6); } 100% { transform: perspective(200px) rotateX(0); } }
.flaps--rem i { color: #9fb0ff; }
.dep--hot .flaps--rem i { color: #ffb35c; }
.dep--hot .flaps:first-of-type i { color: #fff; }
.dep:is(:hover, :focus-visible) .flaps i { background: linear-gradient(180deg, #ffbf73 0 49%, #c97a26 49% 51%, #ffb35c 51% 100%); color: #070f2e; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.desk { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; color: rgba(255, 255, 255, 0.78); }
.desk__line { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.55; }
.desk__h { margin: 10px 0 0; font: 700 0.72rem / 1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: #ffb35c; }
.desk address { font-style: normal; line-height: 1.6; }
.desk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.desk a:not(.sh-brand):not(.desk__cta) { color: #fff; }
.desk__cta {
  align-self: flex-start;
  margin-top: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #ffb35c;
  color: #070f2e !important;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.3);
}
.desk__cta span { display: inline-block; transition: rotate 0.35s ease; }
.desk__cta:hover { background: #fff; transform: translateY(-2px); }
.desk__cta:hover span { rotate: 45deg; }
.sh-footer .sh-footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* desk + base links: an amber line sweeps in */
.desk li a, .sh-footer-base a {
  background: linear-gradient(90deg, #ffb35c, #ffb35c) no-repeat 0 100% / 0% 1.5px;
  transition: background-size 0.45s cubic-bezier(0.22, 0.8, 0.2, 1), color 0.3s ease;
}
.sh-footer :is(.desk li a, .sh-footer-base a):is(:hover, :focus-visible) { background-size: 100% 1.5px; color: #ffb35c !important; }
.sh-mark-tile { transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.3), box-shadow 0.5s ease; }
.desk .sh-brand:hover .sh-mark-tile { transform: rotate(-4deg) scale(1.06); box-shadow: 0 0 0 4px rgba(255, 179, 92, 0.3); }

@media (max-width: 900px) {
  .depart { grid-template-columns: 1fr; }
  .board__rows, .board__cols { --fs: calc(100cqi / 26.6); }
  .flaps--gate, .c-gate { display: none; }
  .board__cols { grid-template-columns: calc(var(--fs) * 16.2) 1fr; }
  /* phone: the board fills the width, tiles stand tall like a real split-flap, rows sit tight */
  .board { padding: 14px 8px; }
  .board__rows, .board__cols { --fs: calc(100cqi / 24.9); }
  .board__cols { grid-template-columns: calc(var(--fs) * 15.95) 1fr; padding-inline: calc(var(--fs) * 0.5); }
  .board__rows { gap: 3px; }
  .sh-footer .dep { min-height: 0; gap: calc(var(--fs) * 0.6); padding: 3px calc(var(--fs) * 0.5); }
  .flaps { gap: calc(var(--fs) * 0.06); }
  .flaps i { height: calc(var(--fs) * 1.75); }
}
@media (prefers-reduced-motion: reduce) { .flaps i.f { animation: none; } }

/* v7.1 board polish (11-16): the help desk reads like a counter (labelled rows on hairlines, no 44px gaps),
   the cta arrow gets its gap, and on phone the board drops gate + remarks so the destination tiles can stand big. */
.sh-footer .desk__h { color: #ffb35c; margin-top: 18px; }
.counter { margin: 0; display: grid; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.counter > div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.counter dt { padding-top: 3px; font: 700 0.68rem / 1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.counter dd { margin: 0; display: grid; justify-items: start; gap: 6px; line-height: 1.5; }
.counter address { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.sh-footer .counter a { min-height: 24px; color: #fff; overflow-wrap: anywhere; background: linear-gradient(#ffb35c, #ffb35c) 0 100% / 0 1.5px no-repeat; transition: background-size 0.3s ease, color 0.2s ease; }
.sh-footer .counter a:is(:hover, :focus-visible) { background-size: 100% 1.5px; color: #ffb35c; }
.counter a span { margin-left: 4px; }
.desk__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; }
@media (pointer: coarse) { .sh-footer .counter a { min-height: 44px; } .counter > div { padding: 4px 0; } .counter dt { padding-top: 13px; } }
@media (max-width: 900px) {
  .board__rows, .board__cols { --fs: calc(100cqi / 16.5); }
  .flaps--rem, .c-rem { display: none; }
  .board__cols { grid-template-columns: 1fr; }
  .flaps i { height: calc(var(--fs) * 1.5); }
  .dep--hot .flaps:not(.flaps--gate, .flaps--rem) i { color: #ffb35c; }
  .board__head { margin-bottom: 14px; }
}

/* ---------- v6.9 simple footer (every page but ddgip, which keeps the departures board): a big line, two columns
   of plain links, the contact desk on the right. no flaps, no airline. ---------- */
.depart--simple { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.sitemap { display: grid; gap: clamp(28px, 3.4vw, 48px); }
.sitemap__lead {
  margin: 0;
  max-width: 14ch;
  font: 800 clamp(2.2rem, 4.6vw, 4rem) / 1.02 var(--font);
  letter-spacing: -0.045em;
  color: #fff;
}
.sitemap__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: 520px; }
.sitemap h2 { margin: 0 0 14px; font: 700 0.72rem / 1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: #ffb35c; }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sitemap a {
  color: rgba(255, 255, 255, 0.86);
  font: 600 1rem / 1.3 var(--font);
  text-decoration: none;
  background: linear-gradient(90deg, #ffb35c, #ffb35c) no-repeat 0 100% / 0% 1.5px;
  transition: background-size 0.45s cubic-bezier(0.22, 0.8, 0.2, 1), color 0.3s ease;
}
.sitemap a:is(:hover, :focus-visible) { background-size: 100% 1.5px; color: #ffb35c; }
.sitemap a em {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #ffb35c;
  color: #0b1640;
  font: 800 0.62rem / 1 var(--font);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.sitemap__clock { margin: 0; font: 600 0.82rem / 1 var(--font); color: rgba(255, 255, 255, 0.5); }
.sitemap__clock time { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .depart--simple { grid-template-columns: 1fr; }
}

/* ---------- v7.7 (11-17) the arrival (ending.js): plays once when the footer scrolls in. .arm is set by js only (never
   with reduced motion), .done removes it all after ~3s so hovers keep their own transitions. ---------- */
.sh-footer.arm:not(.done)::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(0.65, 0, 0.2, 1); }
.sh-footer.arm.is-here:not(.done)::before { transform: scaleX(1); }
.sh-footer .sitemap__lead .fw { display: inline-block; }
.sh-footer.arm:not(.done) .sitemap__lead .fw {
  transition: opacity 0.6s ease, transform 0.85s cubic-bezier(0.2, 0.9, 0.25, 1.15);
  transition-delay: calc(0.08s + var(--wi, 0) * 0.08s);
}
.sh-footer.arm:not(.is-here) .sitemap__lead .fw { opacity: 0; transform: translateY(0.6em) rotate(3deg); }
.sh-footer.arm:not(.done) :is(.sitemap li, .sitemap h2, .sitemap__clock, .desk > *, .board__rows > *) {
  transition: opacity 0.55s ease, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(0.28s + var(--fi, 0) * 0.04s);
}
.sh-footer.arm:not(.is-here) :is(.sitemap li, .sitemap h2, .sitemap__clock, .desk > *, .board__rows > *) { opacity: 0; translate: 0 14px; }
.sh-footer.arm.is-here:not(.done) .desk__cta { animation: foot-ping 1.3s 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1 both; }
@keyframes foot-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 92, 0.65); }
  100% { box-shadow: 0 0 0 22px rgba(255, 179, 92, 0); }
}
