/* Ligne Céleste — art-deco aerospace. Palette: deep field / nocturne / champagne / earthlight / ivory */

:root {
  --deep: #0A0E1A;
  --noct: #1B2A4A;
  --gold: #E3C287;
  --earthlight: #9BB5D9;
  --ivory: #F4F1E8;
  --ink-soft: rgba(244, 241, 232, 0.78);
  --ink-dim: rgba(244, 241, 232, 0.55);
  --hairline: rgba(227, 194, 135, 0.32);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.33, 0.02, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--ivory);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(227, 194, 135, 0.28); color: var(--ivory); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- fixed sky canvas ---------- */
#sky {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
  animation: sky-in 1.8s var(--ease-soft) backwards;
  background:
    radial-gradient(120% 90% at 72% 88%, rgba(27, 42, 74, 0.55) 0%, rgba(10, 14, 26, 0) 55%),
    var(--deep);
}

/* active-pin callout (positioned by JS) */
#pin-callout {
  position: fixed; left: 0; top: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
  display: flex; align-items: center; gap: 0.6rem;
}
#pin-callout.on { opacity: 1; }
#pin-callout .pc-line { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(227,194,135,0)); }
#pin-callout .pc-label {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid var(--hairline);
  padding: 0.45rem 0.75rem 0.45rem 0.9rem;
}

@keyframes sky-in { from { opacity: 0; } }

main, .site-head, .site-foot { position: relative; z-index: 2; }

/* film grain — a static breath of tooth over the deep field */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E") repeat;
}

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: baseline; gap: 2.5rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 3.5rem) 1.3rem;
  background: linear-gradient(180deg, #0A0E1A 0%, #0A0E1A 58%, rgba(10, 14, 26, 0.86) 78%, rgba(10, 14, 26, 0) 100%);
}
.wordmark {
  font-family: "Italiana", serif;
  font-size: 1.45rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  white-space: nowrap;
}
.site-head nav { display: flex; gap: 1.9rem; margin-left: auto; }
.site-head nav a {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
}
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--gold); border-bottom-color: var(--hairline); }
.site-head nav a.nav-reserve { color: var(--gold); }
.head-note {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* ---------- shared section chrome ---------- */
.eyebrow {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
h1, h2, h3 { font-family: "Cinzel", serif; font-weight: 400; }
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  letter-spacing: 0.06em;
  line-height: 1.18;
  text-wrap: balance;
}
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(6rem, 12vh, 9.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-sub { margin-top: 1.2rem; color: var(--ink-dim); font-size: 0.97rem; max-width: 54ch; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
.hero .eyebrow { animation: rise 1.2s var(--ease-out) both 0.15s; }
.hero h1 {
  font-size: clamp(3rem, 8.6vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--ivory);
  text-wrap: balance;
  animation: rise 1.4s var(--ease-out) both 0.3s;
}
.sunline {
  color: var(--gold);
  margin: 2.1rem 0 2rem;
  animation: rise 1.4s var(--ease-out) both 0.5s;
}
.hero .lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  text-shadow: 0 1px 18px rgba(10, 14, 26, 0.9), 0 0 6px rgba(10, 14, 26, 0.55);
  animation: rise 1.4s var(--ease-out) both 0.62s;
}
.lede em, .prose em, .day em, .vignette em, .part em { font-style: italic; }
.hero-foot {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
  animation: rise 1.4s var(--ease-out) both 0.74s;
}
.hf-sep { color: var(--gold); font-size: 0.5rem; }
.scroll-cue {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3.5rem);
  bottom: 2.2rem;
  display: inline-flex; align-items: center; gap: 0.9rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  animation: rise 1.4s var(--ease-out) both 1s;
  transition: color 0.35s var(--ease-soft);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue svg { animation: cue-drift 2.8s var(--ease-soft) infinite; }
@keyframes cue-drift {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  55% { transform: translateY(6px); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- the line ---------- */
.prose p + p { margin-top: 1.4rem; }
.prose .lead-p {
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  line-height: 1.58;
  color: var(--ivory);
}
.two-col { max-width: 60ch; }
.stat-row {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-row > div {
  padding: 1.3rem 1.4rem 1.3rem 0;
  border-right: 1px solid rgba(227, 194, 135, 0.14);
  margin-right: 1.4rem;
}
.stat-row > div:last-child { border-right: none; margin-right: 0; }
.stat-row dt {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.stat-row dd { font-family: "Cinzel", serif; font-size: 1.02rem; letter-spacing: 0.04em; color: var(--ink-soft); }

/* ---------- itinerary ---------- */
.itinerary { padding-bottom: clamp(4rem, 8vh, 6rem); }
.days {
  list-style: none;
  max-width: 520px;
  margin-left: auto;          /* text right, Earth+ring lives left */
  display: flex; flex-direction: column;
  gap: clamp(4rem, 22vh, 11rem);
  padding-bottom: 20vh;
}
.day {
  padding: 1.9rem 2rem 2rem;
  border: 1px solid rgba(227, 194, 135, 0.16);
  background: linear-gradient(160deg, rgba(16, 22, 40, 0.72), rgba(10, 14, 26, 0.55));
  backdrop-filter: blur(6px);
  position: relative;
  opacity: 0.45;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft), border-color 0.8s var(--ease-soft);
}
.day.active { opacity: 1; transform: translateY(0); border-color: rgba(227, 194, 135, 0.42); }
.day-no {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.day h3 {
  font-size: 1.55rem; letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
  color: var(--ivory);
}
.day p:last-child { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- manifest ---------- */
.vignettes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
}
.vignette { margin: 0; }
.vignette:nth-child(2) { transform: translateY(clamp(1.5rem, 4vh, 3.5rem)); }
.arch {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 999px 999px 0 0 / 46% 46% 0 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 0 0 6px var(--deep), 0 0 0 7px rgba(227, 194, 135, 0.18);
  background: var(--noct);
}
.arch img {
  width: 100%; height: 116%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.arch-plate svg { width: 100%; height: 100%; display: block; }
.vignette figcaption { padding: 1.6rem 0.4rem 0; }
.vig-no {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.vignette h3 { font-size: 1.18rem; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.vignette figcaption p:last-child { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.65; }

.ledger {
  list-style: none;
  margin-top: clamp(4rem, 8vh, 6rem);
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}
.ledger li {
  display: flex; align-items: baseline; gap: 1.6rem;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid rgba(227, 194, 135, 0.14);
  color: var(--ink-soft);
  font-size: 0.99rem;
}
.ledger li span {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  flex: 0 0 5.4rem;
}

/* ---------- gravity poem ---------- */
.gravity { text-align: center; max-width: 720px; }
.gravity .eyebrow { margin-bottom: 2.4rem; }
.poem {
  font-family: "Cinzel", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.poem p + p { margin-top: 1.9rem; }
.poem-attr {
  margin-top: 2.6rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- cabins / ticket plates ---------- */
.tickets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
.ticket {
  position: relative;
  padding: 2.1rem 1.8rem 1.6rem;
  border: 1px solid rgba(227, 194, 135, 0.38);
  background:
    linear-gradient(168deg, rgba(27, 42, 74, 0.55), rgba(12, 17, 32, 0.82));
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease-out), border-color 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}
.ticket::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(227, 194, 135, 0.16);
  pointer-events: none;
}
.ticket::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(227, 194, 135, 0.10) 46%, rgba(244, 241, 232, 0.16) 50%, rgba(227, 194, 135, 0.10) 54%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 1s var(--ease-out);
}
.ticket:hover::after { transform: translateX(130%); }
.ticket:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 194, 135, 0.7);
  box-shadow: 0 24px 60px -30px rgba(227, 194, 135, 0.25);
}
.ticket-mid { border-color: rgba(227, 194, 135, 0.6); }
.tk-line {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(227, 194, 135, 0.18);
}
.ticket h3 {
  font-size: 1.6rem; letter-spacing: 0.07em; text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tk-deck {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
}
.ticket ul { list-style: none; flex: 1; }
.ticket li {
  font-size: 0.93rem; color: var(--ink-soft);
  padding: 0.55rem 0 0.55rem 1.4rem;
  position: relative;
  border-bottom: 1px solid rgba(227, 194, 135, 0.09);
  line-height: 1.55;
}
.ticket li::before {
  content: "◆";
  position: absolute; left: 0; top: 0.68rem;
  font-size: 0.5rem; color: var(--gold);
}
.tk-fare {
  margin-top: 1.6rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.tk-amount { font-family: "Cinzel", serif; font-size: 1.38rem; letter-spacing: 0.05em; color: var(--ivory); white-space: nowrap; }
.tk-unit {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.5625rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.tk-fine {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(227, 194, 135, 0.28);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.5625rem; letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- particulars ---------- */
.part-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem);
  max-width: 980px;
}
.part h3 {
  font-size: 1.15rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.part h3::after { content: ""; flex: 1; height: 1px; background: rgba(227, 194, 135, 0.16); }
.part p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- reservations ---------- */
.reservations { padding-bottom: clamp(5rem, 10vh, 8rem); }
.res-card {
  border: 1px solid rgba(227, 194, 135, 0.38);
  position: relative;
  padding: clamp(2.2rem, 5vw, 4rem);
  background: linear-gradient(160deg, rgba(27, 42, 74, 0.5), rgba(12, 17, 32, 0.85));
  max-width: 860px;
  margin: 0 auto;
}
.res-card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(227, 194, 135, 0.16);
  pointer-events: none;
}
.res-card .section-head { margin-bottom: 2.4rem; }
#res-form { position: relative; z-index: 1; }
.field { margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; }
.field label {
  display: block;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(227, 194, 135, 0.35);
  color: var(--ivory);
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  padding: 0.5rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.35s var(--ease-soft);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23E3C287'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--noct); color: var(--ivory); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.res-btn {
  margin-top: 0.6rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 1rem 2.6rem;
  cursor: pointer;
  position: relative;
  transition: color 0.4s var(--ease-soft), background 0.4s var(--ease-soft);
}
.res-btn:hover { background: var(--gold); color: var(--deep); }
.form-done { margin-top: 1.4rem; font-family: "Cinzel", serif; letter-spacing: 0.04em; color: var(--gold); min-height: 1.4em; }
.fine {
  margin-top: 2.6rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  line-height: 2.1;
  color: rgba(244, 241, 232, 0.4);
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 3.2rem clamp(1.25rem, 4vw, 3.5rem) 2.6rem;
  text-align: center;
  background: rgba(8, 11, 20, 0.7);
}
.foot-mark {
  font-family: "Italiana", serif;
  font-size: 1.3rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-foot p {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.site-foot .credit { margin-top: 1.2rem; text-transform: none; letter-spacing: 0.08em; }
.site-foot a { color: var(--ink-soft); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .head-note { display: none; }
}
@media (max-width: 1023px) {
  .days { max-width: 460px; }
  .vignettes { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-head {
    gap: 1rem; padding: 1.1rem 1.25rem 0.9rem; flex-wrap: wrap;
    background: #0A0E1A;
    border-bottom: 1px solid rgba(227, 194, 135, 0.14);
  }
  .site-head nav { gap: 1rem; margin-left: 0; order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .site-head nav a[href="#voyage"] { display: none; }
  .site-head nav a { font-size: 0.6rem; letter-spacing: 0.14em; }
  .head-note { display: none; }
  .hero { padding-top: 8.5rem; }
  .hero-foot { gap: 0.7rem; font-size: 0.625rem; text-shadow: 0 1px 14px rgba(10, 14, 26, 0.9); }
  .days { max-width: 100%; margin-left: 0; gap: 3.2rem; padding-bottom: 6rem; }
  .day { padding: 1.5rem 1.3rem 1.6rem; }
  .vignettes { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; gap: 3rem; }
  .vignette:nth-child(2) { transform: none; }
  .tickets { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .part-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .ledger li span { flex-basis: 4.2rem; }
  #pin-callout { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .day { opacity: 1; transform: none; }
  .scroll-cue svg { animation: none; }
}
