/* ==========================================================================
   Dawn to Dusk — styles
   One page, one day. The sky (a fixed layer) is driven by scroll in main.js
   through the CSS variables below. Sections carry data-sky="dawn|day|golden|
   dusk|night", which flips the ink from dark to light where the sky darkens.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Karla", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* palette as RGB triplets so alpha can be applied with rgb(var(--x) / a) */
  --ink-dark: 36 24 18;        /* deep umber */
  --ink-light: 244 230 216;    /* warm cream */
  --ember: 217 98 43;          /* burnt orange, accent on light */
  --ember-bright: 240 138 75;  /* accent on dark */
  --indigo: 46 34 71;

  /* sky — overwritten at runtime */
  --sky-a: 222 212 226;
  --sky-b: 243 216 196;
  --sky-c: 242 180 138;
  --sky-d: 248 236 224;
  --sun: 255 179 107;
  --glow: 0.55;
  --sun-x: 14vw;
  --sun-y: 76vh;
  --sun-size: 26vmin;
  --moon-o: 0;
  --moon-x: 88vw;
  --moon-y: 90vh;
  --dusk-mix: 0;

  /* theme (light by default) */
  --ink: var(--ink-dark);
  --on-ink: var(--ink-light);
  --accent: var(--ember);
  --surface: 255 251 246;
  --surface-a: 0.55;
  --line-a: 0.16;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --nav-h: 4.5rem;
  --radius: 4px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

[data-sky="dusk"],
[data-sky="night"] {
  --ink: var(--ink-light);
  --on-ink: var(--ink-dark);
  --accent: var(--ember-bright);
  --surface: 255 255 255;
  --surface-a: 0.06;
  --line-a: 0.2;
}
/* Re-root inherited text colour at each themed section, so a section's text
   follows its own sky rather than whatever the page-level ink happens to be. */
[data-sky] { color: rgb(var(--ink)); }

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgb(var(--ink));
  background: rgb(var(--sky-d));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: rgb(var(--accent) / .35); }

:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: rgb(var(--ink-dark)); color: rgb(var(--ink-light));
  font-family: var(--font-mono); font-size: .8rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- The sky ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg,
    rgb(var(--sky-a)) 0%,
    rgb(var(--sky-b)) 45%,
    rgb(var(--sky-c)) 78%,
    rgb(var(--sky-d)) 100%);
}
.sky__sun, .sky__glow, .sky__moon {
  position: absolute; left: 0; top: 0;
  border-radius: 50%;
  will-change: transform;
}
.sky__sun {
  width: var(--sun-size); aspect-ratio: 1;
  transform: translate(calc(var(--sun-x) - 50%), calc(var(--sun-y) - 50%));
  background: radial-gradient(circle at 50% 50%,
    rgb(var(--sun)) 0%, rgb(var(--sun)) 60%, rgb(var(--sun) / 0) 63%);
}
.sky__glow {
  width: calc(var(--sun-size) * 3.4); aspect-ratio: 1;
  transform: translate(calc(var(--sun-x) - 50%), calc(var(--sun-y) - 50%));
  background: radial-gradient(circle,
    rgb(var(--sun) / var(--glow)) 0%,
    rgb(var(--sun) / calc(var(--glow) * .35)) 32%,
    rgb(var(--sun) / 0) 62%);
}
.sky__moon {
  width: 8.5vmin; aspect-ratio: 1;
  transform: translate(calc(var(--moon-x) - 50%), calc(var(--moon-y) - 50%));
  background: rgb(var(--ink-light));
  box-shadow: inset -2vmin 1.1vmin 0 0 color-mix(in srgb, rgb(var(--sky-a)) 65%, rgb(var(--sky-b)));
  opacity: var(--moon-o);
}
.sky__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  opacity: .32;
  mix-blend-mode: soft-light;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgb(var(--ink) / .72);
}
.eyebrow__time { color: rgb(var(--accent)); letter-spacing: .04em; }
.eyebrow__rule { width: 2.25rem; height: 1px; background: rgb(var(--ink) / .35); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  text-wrap: balance;
  margin-top: 1.4rem;
  max-width: 18ch;
}
.section__title em, .hero__title em {
  font-style: italic; font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: rgb(var(--accent));
}
.section__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  max-width: 56ch;
  color: rgb(var(--ink) / .82);
}
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }

.section { padding-block: var(--section-pad); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1em 1.5em;
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .3s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn--primary {
  background: rgb(var(--ink)); color: rgb(var(--on-ink));
  box-shadow: 0 1px 0 rgb(var(--ink) / .2), 0 10px 30px -18px rgb(var(--ink) / .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(var(--ink) / .2), 0 16px 34px -18px rgb(var(--ink) / .7); }
.btn--primary:hover .btn__arrow { transform: translateX(.35em); }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn--ghost {
  border-color: rgb(var(--ink) / .32);
  color: rgb(var(--ink));
  background: rgb(var(--surface) / calc(var(--surface-a) * .6));
}
.btn--ghost:hover { border-color: rgb(var(--ink)); transform: translateY(-2px); }
.btn--small { padding: .75em 1.1em; font-size: .72rem; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .5s, box-shadow .5s;
}
.nav.is-scrolled {
  background: rgb(var(--sky-a) / .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(var(--ink) / .08);
}
html[data-sky="dusk"] .nav, html[data-sky="night"] .nav,
html[data-sky="dusk"] .clock, html[data-sky="night"] .clock {
  --ink: var(--ink-light); --on-ink: var(--ink-dark); --accent: var(--ember-bright);
  --surface: 255 255 255; --surface-a: .06;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: rgb(var(--ink));
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  letter-spacing: -.01em; line-height: 1;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
.wordmark em { font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1; opacity: .7; margin-inline: .08em; }
.wordmark__glyph { width: 1.5rem; height: 1.5rem; color: rgb(var(--accent)); flex: none; }
.wordmark__ground { fill: rgb(var(--sky-a)); transition: fill .5s; }
.nav.is-scrolled .wordmark__ground { fill: color-mix(in srgb, rgb(var(--sky-a)) 80%, rgb(var(--sky-b))); }

.nav__links { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.nav__links a {
  position: relative;
  text-decoration: none; font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  color: rgb(var(--ink) / .78);
  padding-block: .35rem;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgb(var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: rgb(var(--ink)); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links-contact { display: none; }

.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.nav__time {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: rgb(var(--ink) / .7); font-variant-numeric: tabular-nums;
}
.nav__time-label { opacity: .7; }
.nav__toggle {
  display: none; width: 2.5rem; height: 2.5rem;
  flex-direction: column; justify-content: center; align-items: center; gap: .4rem;
}
.nav__toggle span { display: block; width: 1.4rem; height: 1.5px; background: rgb(var(--ink)); transition: transform .3s var(--ease-out), opacity .3s; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(.475rem) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-.475rem) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 6rem;
}
.hero__eyebrow { animation: fade-in .9s var(--ease-out) both .1s; }
.hero__title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2.9rem, 8.6vw, 7.4rem);
  line-height: .98;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  max-width: 13ch;
}
.hero__title .line { display: block; overflow: hidden; text-wrap: balance; }
.hero__title .line > * , .hero__title .line { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i) * 130ms + .2s); }
.hero__row {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 40rem) auto;
  gap: 2rem 4rem; align-items: end;
  animation: fade-in 1s var(--ease-out) both .7s;
}
.hero__lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgb(var(--ink) / .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__facts {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  animation: fade-in 1s var(--ease-out) both 1s;
}
.fact { border-top: 1px solid rgb(var(--ink) / .25); padding-top: .9rem; }
.fact dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ink) / .62); }
.fact dd { margin: .35rem 0 0; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1; font-variation-settings: "SOFT" 60, "WONK" 0; }
.hero__scroll {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: inline-flex; align-items: center; gap: .9rem;
  text-decoration: none; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgb(var(--ink) / .6);
  animation: fade-in 1s var(--ease-out) both 1.6s;
}
.hero__scroll-line { width: 1px; height: 2.2rem; background: rgb(var(--ink) / .35); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: rgb(var(--accent)); transform: translateY(-100%); animation: drip 2.2s var(--ease-out) infinite; }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid rgb(var(--ink) / .14);
  padding-block: 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: ticker 100s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.tick {
  display: inline-flex; align-items: baseline; gap: .7rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
  color: rgb(var(--ink) / .8); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tick__dot { width: .55rem; height: .55rem; border-radius: 50%; background: rgb(var(--ink) / .3); align-self: center; transition: background .5s; }
.tick[data-phase="dawn"] .tick__dot, .tick[data-phase="dusk"] .tick__dot { background: rgb(var(--ember)); }
.tick[data-phase="day"] .tick__dot { background: #F1B94D; }
.tick[data-phase="night"] .tick__dot { background: rgb(var(--indigo)); box-shadow: 0 0 0 1px rgb(var(--ink) / .25); }
.tick__place { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; font-size: .95rem; }
.tick__phase { text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; opacity: .65; }

/* ---------- Services ---------- */
.services__list { display: grid; grid-template-columns: repeat(12, 1fr); row-gap: clamp(1rem, 3vw, 2.5rem); }
.service {
  grid-column: 1 / span 9;
  display: grid; grid-template-columns: minmax(6rem, 1fr) 1.5fr 1.3fr;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 1px solid rgb(var(--ink) / .22);
  position: relative;
}
.service:nth-child(2) { grid-column: 4 / span 9; }
.service:nth-child(3) { grid-column: 2 / span 9; }
.service__num {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(4rem, 8vw, 7rem); line-height: .8; font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: rgb(var(--accent));
  margin-top: -.15em;
}
.service__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing: -.012em; font-variation-settings: "SOFT" 50, "WONK" 0; }
.service__desc { margin-top: .9rem; color: rgb(var(--ink) / .8); max-width: 34ch; }
.service__includes { display: grid; gap: .65rem; align-content: start; padding-top: .3rem; }
.service__includes li { position: relative; padding-left: 1.4rem; font-size: .95rem; line-height: 1.45; color: rgb(var(--ink) / .85); }
.service__includes li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .7rem; height: 1px; background: rgb(var(--accent));
}

/* ---------- Journey ---------- */
.journey__steps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.5rem;
  position: relative; padding-top: 2rem;
}
.journey__steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgb(var(--ink) / .28);
}
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: 0; top: calc(-2rem - 4px);
  width: 9px; height: 9px; border-radius: 50%;
  background: rgb(var(--sky-b)); border: 1.5px solid rgb(var(--ink));
}
.step:nth-child(4)::before, .step:nth-child(5)::before, .step:nth-child(6)::before { background: rgb(var(--accent)); border-color: rgb(var(--accent)); }
.step__time { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: rgb(var(--accent)); font-variant-numeric: tabular-nums; }
.step__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; margin-top: .7rem; font-variation-settings: "SOFT" 50, "WONK" 0; }
.step p { margin-top: .75rem; font-size: .92rem; line-height: 1.5; color: rgb(var(--ink) / .78); }

/* ---------- Points ---------- */
.points__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.points__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.points__head .section__title { font-size: clamp(2.1rem, 3.8vw, 3.5rem); max-width: 16ch; }
.points__cols { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-top: .5rem; }
.playbook {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgb(var(--surface) / var(--surface-a));
  border: 1px solid rgb(var(--ink) / .14);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.playbook__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-variation-settings: "SOFT" 50, "WONK" 0; }
.playbook__tag {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .45em .8em; border-radius: 999px;
  background: rgb(var(--accent)); color: rgb(var(--ink-light));
}
.playbook__list { margin-top: 1.5rem; display: grid; gap: 1rem; }
.playbook__list li { padding-left: 1.5rem; position: relative; line-height: 1.5; font-size: .98rem; color: rgb(var(--ink) / .85); }
.playbook__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .8rem; height: 1px; background: rgb(var(--accent)); }
.playbook__list strong { font-weight: 700; color: rgb(var(--ink)); }
.points__foot { font-size: .95rem; color: rgb(var(--ink) / .72); max-width: 50ch; padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid rgb(var(--ink) / .2); }

/* boarding pass */
.pass {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr 5.5rem;
  color: rgb(var(--ink-dark));
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 18px 30px rgb(var(--ink-dark) / .18));
  max-width: 34rem;
}
.pass__main, .pass__stub {
  background: #FBF4EA;
  border-radius: 10px;
  position: relative;
}
.pass__main { padding: 1.25rem 1.4rem 1.2rem; border-right: 1.5px dashed rgb(var(--ink-dark) / .35); border-radius: 10px 0 0 10px; }
.pass__stub { border-radius: 0 10px 10px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 1rem .5rem; }
.pass__main::before, .pass__main::after {
  content: ""; position: absolute; right: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: rgb(var(--sky-c));
}
.pass__main::before { top: -8px; } .pass__main::after { bottom: -8px; }
.pass__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pass__brand { font-family: var(--font-display); text-transform: none; letter-spacing: -.01em; font-size: 1.1rem; font-weight: 500; white-space: nowrap; }
.pass__brand em { font-style: italic; font-weight: 300; opacity: .7; }
.pass__class { color: rgb(var(--ember)); }
.pass__route { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.pass__route > div { display: flex; flex-direction: column; gap: .2rem; }
.pass__label { opacity: .6; font-size: .62rem; }
.pass__code { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; text-transform: none; font-variation-settings: "SOFT" 40, "WONK" 0; }
.pass__plane { width: 3rem; color: rgb(var(--ink-dark) / .7); flex: none; }
.pass__meta { margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: .8rem; justify-content: space-between; }
.pass__meta dt { opacity: .6; font-size: .62rem; }
.pass__meta dd { margin: .2rem 0 0; font-weight: 500; }
.pass__barcode {
  width: 1.3rem; height: 5.5rem; margin-top: .6rem;
  background: repeating-linear-gradient(180deg, rgb(var(--ink-dark)) 0 2px, transparent 2px 4px, rgb(var(--ink-dark)) 4px 5px, transparent 5px 8px, rgb(var(--ink-dark)) 8px 11px, transparent 11px 13px);
}

/* ---------- Places: a snap-scrolling carousel, three cards at a time ---------- */
.carousel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.carousel__count { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; color: rgb(var(--ink) / .7); font-variant-numeric: tabular-nums; }
.carousel__count #places-index { color: rgb(var(--ink)); font-size: 1.1rem; }
.carousel__sep { margin-inline: .45em; opacity: .5; }
.carousel__nav { display: flex; gap: .6rem; align-items: center; }
.carousel__btn {
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.15rem; line-height: 1;
  background: rgb(var(--ink)); color: rgb(var(--on-ink));
  border: 1px solid rgb(var(--ink));
  box-shadow: 0 10px 24px -14px rgb(var(--ink) / .8);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.carousel__btn:hover { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--ink-light)); transform: translateY(-2px); }
.places__track {
  --gap: 1rem;
  --n: 3;            /* cards fully in view */
  --peek: 5rem;      /* how much of the previous and next card shows at the edges */
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: calc(var(--peek) + var(--gap));
  scrollbar-width: none;
  padding: 4px 0 8px;            /* room for the hover lift so it isn't clipped */
  margin: -4px 0 -8px;
  /* Soften both edges so the peeking neighbours fade out instead of being cut off.
     The fade spans exactly the peek zone, so the fully visible cards stay crisp. */
  --fade: calc(var(--peek) + var(--gap));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.places__track::-webkit-scrollbar { display: none; }
.places__track:focus-visible { outline-offset: 6px; }
.carousel__progress { position: relative; height: 1px; margin-top: 1.5rem; background: rgb(var(--ink) / .18); overflow: hidden; }
.carousel__progress span {
  position: absolute; left: 0; top: -1px; height: 3px; width: 7.14%;
  background: rgb(var(--accent)); border-radius: 2px;
  transition: transform .45s var(--ease-out);
}
.place {
  /* n full cards + a peek on each side + the gaps between all of them */
  flex: 0 0 calc((100% - 2 * var(--peek) - (var(--n) + 1) * var(--gap)) / var(--n));
  scroll-snap-align: start;
  padding: 1.5rem 1.5rem 1.6rem;
  background: rgb(var(--surface) / var(--surface-a));
  border: 1px solid rgb(var(--ink) / .14);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .4s var(--ease-out), border-color .4s, background-color .4s;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.place:hover { transform: translateY(-4px); border-color: rgb(var(--ink) / .3); }
.place__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.place__country { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 1.85rem); line-height: 1; font-variation-settings: "SOFT" 50, "WONK" 0; }
.arc { width: 4rem; height: 2.25rem; overflow: hidden; color: rgb(var(--ink)); flex: none; }
.arc__sun { fill: rgb(var(--accent)); transition: cx 1s, cy 1s; }
.place[data-phase="night"] .arc__sun { fill: rgb(var(--indigo)); }
.place__clock { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.place__time { font-family: var(--font-mono); font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.place__city { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ink) / .62); }
.place__phase { color: rgb(var(--accent)); }
.place__note { font-size: .93rem; line-height: 1.5; color: rgb(var(--ink) / .8); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq__list { border-top: 1px solid rgb(var(--ink) / .22); }
.qa { border-bottom: 1px solid rgb(var(--ink) / .22); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none;
  font-family: var(--font-mono); font-size: 1.3rem; line-height: 1; color: rgb(var(--accent));
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border: 1px solid rgb(var(--ink) / .3); border-radius: 50%;
  transition: transform .35s var(--ease-out), background-color .3s, color .3s;
}
.qa[open] summary::after { transform: rotate(45deg); background: rgb(var(--ink)); color: rgb(var(--on-ink)); border-color: rgb(var(--ink)); }
.qa__body { padding: 0 3.5rem 1.5rem 0; color: rgb(var(--ink) / .82); line-height: 1.55; max-width: 60ch; animation: fade-in .5s var(--ease-out) both; }

/* ---------- Sunset divider ----------
   The sky crossfades from golden to dusk across this gap, so the label mixes
   its own ink from dark to light using --dusk-mix (set by main.js). */
.sunset {
  min-height: 100vh; display: flex; align-items: flex-start; padding-top: 16vh;
  --sunset-ink: color-mix(in srgb, rgb(var(--ink-dark)), rgb(var(--ink-light)) calc(var(--dusk-mix, 0) * 100%));
  --sunset-accent: color-mix(in srgb, rgb(var(--ember)), rgb(var(--ember-bright)) calc(var(--dusk-mix, 0) * 100%));
}
.sunset__label {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--sunset-ink);
  display: flex; gap: 1.25rem; align-items: baseline; flex-wrap: wrap;
}
.sunset__label .eyebrow__time { font-family: var(--font-mono); font-style: normal; font-size: .78rem; letter-spacing: .08em; color: var(--sunset-accent); }
.sunset__line {
  margin-top: 1.5rem; height: 1px; background: var(--sunset-ink); opacity: .45;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(2rem, 4vw, 4rem); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.channels { margin-top: 2.5rem; display: grid; gap: .5rem; max-width: 26rem; }
.channel {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; text-decoration: none;
  border-top: 1px solid rgb(var(--ink) / .22);
  transition: padding-left .3s var(--ease-out);
}
.channels li:last-child .channel { border-bottom: 1px solid rgb(var(--ink) / .22); }
.channel:hover { padding-left: .6rem; }
.channel__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; font-variation-settings: "SOFT" 50, "WONK" 0; }
.channel__hint { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ink) / .6); }
.contact__local { margin-top: 1.5rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: rgb(var(--ink) / .65); font-variant-numeric: tabular-nums; }
.contact__local time { color: rgb(var(--accent)); }

.form { padding-top: .5rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgb(var(--ink) / .7); padding: 0;
}
.field__opt { opacity: .55; margin-left: .4em; }
.field legend { margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; min-width: 0;
  background: transparent; border: 0;
  border-bottom: 1px solid rgb(var(--ink) / .35);
  padding: .55rem 0 .7rem;
  font-size: 1.05rem;
  border-radius: 0;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgb(var(--ink) / .38); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: rgb(var(--accent)); box-shadow: 0 1px 0 rgb(var(--accent)); }
.field input[aria-invalid="true"] { border-color: #E5715B; box-shadow: 0 1px 0 #E5715B; }

/* WhatsApp number: country-code picker + national number on one line.
   The native <select> sits invisibly over a styled label so the closed state
   shows just "+91" while the open list shows full country names. */
.phone { display: flex; gap: .9rem; align-items: flex-end; }
.phone > input { flex: 1; }
.dial {
  position: relative; flex: none;
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 0 .7rem; min-width: 4.4rem;
  border-bottom: 1px solid rgb(var(--ink) / .35);
  font-size: 1.05rem; font-variant-numeric: tabular-nums;
  transition: border-color .3s, box-shadow .3s;
}
.dial::after {
  content: ""; width: .42rem; height: .42rem; margin-top: -.2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .55;
}
.dial__select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; appearance: none; border: 0; margin: 0;
  /* the open list inherits these on some platforms; keep it readable on the dark section */
  color: #241812; background: #FBF4EA;
}
.dial__select option { color: #241812; background: #FBF4EA; }
.dial:has(.dial__select:focus-visible) { border-color: rgb(var(--accent)); box-shadow: 0 1px 0 rgb(var(--accent)); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .65em 1.05em;
  border: 1px solid rgb(var(--ink) / .35); border-radius: 999px;
  font-size: .92rem; line-height: 1;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip input:checked + span { background: rgb(var(--ink)); color: rgb(var(--on-ink)); border-color: rgb(var(--ink)); }
.chip input:focus-visible + span { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.form__status { margin-top: 1.25rem; font-size: .95rem; min-height: 1.5em; color: rgb(var(--ink) / .85); }
.form__status.is-error { color: #F0A18F; }
.form__status.is-ok { color: rgb(var(--accent)); }

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 7rem) 0 6rem; color: rgb(var(--ink)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; align-items: start; }
.footer .wordmark__ground { fill: rgb(var(--sky-b)); }
.footer__tag { margin-top: 1.25rem; max-width: 34ch; color: rgb(var(--ink) / .75); font-size: .98rem; }
.footer__links { display: grid; gap: .6rem; align-content: start; }
.footer__links a { text-decoration: none; color: rgb(var(--ink) / .8); font-size: .95rem; transition: color .3s, padding-left .3s var(--ease-out); }
.footer__links a:hover { color: rgb(var(--ink)); padding-left: .4rem; }
.footer__meta { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: rgb(var(--ink) / .65); display: grid; gap: .6rem; align-content: start; }
.footer__fine { color: rgb(var(--ink) / .45); }

/* ---------- Page clock ---------- */
.clock {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: flex; align-items: baseline; gap: .6rem;
  padding: .55rem .8rem;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  color: rgb(var(--ink));
  background: rgb(var(--surface) / calc(var(--surface-a) + .2));
  border: 1px solid rgb(var(--ink) / .16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .5s, background-color .5s, border-color .5s;
}
.clock__time { font-size: 1.05rem; letter-spacing: -.02em; }
.clock__phase { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--accent)); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drip { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .journey__steps { grid-template-columns: repeat(3, 1fr); row-gap: 3.5rem; }
  .journey__steps::before { display: none; }
  .step::before { display: none; }
  .step { border-top: 1px solid rgb(var(--ink) / .28); padding-top: 1.25rem; }
  .service, .service:nth-child(2), .service:nth-child(3) { grid-column: 1 / -1; grid-template-columns: minmax(5rem, .7fr) 1.4fr 1.3fr; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: rgb(var(--sky-a) / .92);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgb(var(--ink) / .08), 0 20px 40px -20px rgb(var(--ink-dark) / .4);
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease-out), visibility .3s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav__links a { font-family: var(--font-display); font-size: 1.6rem; padding: .8rem 0; border-bottom: 1px solid rgb(var(--ink) / .12); }
  .nav__links a::after { display: none; }
  .nav__links-contact { display: block; color: rgb(var(--accent)); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; border-bottom: 0; }
  .nav__toggle { display: flex; }
  .nav__time { display: none; }
  .nav__right .btn { display: none; }

  .hero__row { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .points__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .points__head, .faq .section__head, .contact__head { position: static; }
  .faq .section__head { margin-bottom: 2rem; }
  .places__track { --n: 2; --peek: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .pass { transform: rotate(-1.5deg); }
}
@media (max-width: 700px) {
  .service, .service:nth-child(2), .service:nth-child(3) { grid-template-columns: 1fr; gap: 1rem; }
  .service__num { font-size: 3.5rem; margin-top: 0; }
  .service__includes { padding-top: .5rem; }
  .journey__steps { grid-template-columns: 1fr; row-gap: 2rem; }
  .step { padding-left: 1.5rem; border-top: 0; border-left: 1px solid rgb(var(--ink) / .28); padding-top: 0; padding-bottom: .25rem; }
  .step::before { display: block; left: -5px; top: .35rem; }
  .form__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pass__meta { grid-template-columns: repeat(2, auto); }
  .pass { grid-template-columns: 1fr 4.5rem; max-width: 100%; }
  .pass__main { min-width: 0; overflow: hidden; }
  .pass__code { font-size: 1.3rem; }
  .pass__plane { width: 2rem; }
  .pass__class { font-size: .62rem; text-align: right; }
}
@media (max-width: 600px) {
  .clock { display: none; }
  .eyebrow { flex-wrap: wrap; gap: .5rem .8rem; }
  .eyebrow__rule { display: none; }
  .places__track { --n: 1; --peek: 1.25rem; }
  .hero__scroll { display: none; }
  .hero { padding-bottom: 4rem; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title .line, .hero__eyebrow, .hero__row, .hero__facts, .hero__scroll, .qa__body { animation: none; }
  .hero__scroll-line::after { animation: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .ticker__track { animation: none; }
  .places__track { scroll-behavior: auto; }
  .carousel__progress span { transition: none; }
  .sky__sun, .sky__glow, .sky__moon { transition: none; }
  .btn, .place, .channel, .footer__links a { transition: none; }
}
