/* ============================================================
   ODYSSEY CONNECTIONS — homepage concept
   Palette: midnight ink, champagne gold, porcelain
   Type: Fraunces (display) · Archivo (text) · IBM Plex Mono (manifest)
   ============================================================ */

:root {
  --ink: #06090f;
  --ink-2: #0a1018;
  --porcelain: #f2ede3;
  --muted: rgba(242, 237, 227, 0.56);
  --faint: rgba(242, 237, 227, 0.32);
  --champagne: #c9a86a;
  --champagne-dim: rgba(201, 168, 106, 0.4);
  --hairline: rgba(242, 237, 227, 0.14);
  --pad-x: 6vw;
  --nav-h: 84px;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--porcelain);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100vh; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-family: 'Fraunces', serif; font-style: italic; }

::selection { background: var(--champagne); color: var(--ink); }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 3px; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- grain + letterbox ---------- */

.grain {
  position: fixed; inset: -60%;
  width: 220%; height: 220%;
  pointer-events: none; z-index: 92;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1.4%); }
  40% { transform: translate(1.6%, -1.8%); }
  60% { transform: translate(-1.2%, -1%); }
  80% { transform: translate(2%, 1.2%); }
  100% { transform: translate(0, 0); }
}

.letterbox {
  position: fixed; left: 0; right: 0; height: 0;
  background: #000; z-index: 70; pointer-events: none;
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

/* ---------- cursor ---------- */

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.cursor-dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--champagne); transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.55);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-lux), height 0.35s var(--ease-lux),
              background-color 0.35s, border-color 0.35s;
}
.cursor-ring .cursor-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.5rem;
  letter-spacing: 0.18em; color: var(--ink); opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; background: rgba(201, 168, 106, 0.16); }
.cursor.is-label .cursor-ring {
  width: 76px; height: 76px; background: var(--champagne); border-color: var(--champagne);
}
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; color: var(--porcelain); }
.preloader-mark { width: 96px; height: 96px; color: var(--champagne); margin: 0 auto 28px; }
.preloader-oc {
  font-family: 'Fraunces', serif; font-size: 30px; font-weight: 400;
  fill: currentColor; letter-spacing: 0.04em;
}
.preloader-line { color: var(--muted); min-height: 1.2em; }
.preloader-count { margin-top: 10px; font-size: 0.85rem; color: var(--champagne); }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 42px);
  transition: transform 0.6s var(--ease-lux), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(6, 9, 15, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav--hidden { transform: translateY(-101%); }

.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-mark { width: 40px; height: 40px; color: var(--champagne); flex: none; }
.nav-oc { font-family: 'Fraunces', serif; font-size: 19px; fill: currentColor; }
.nav-word {
  font-family: 'Fraunces', serif; font-size: 0.95rem; line-height: 1.05;
  letter-spacing: 0.02em;
}
.nav-word em { color: var(--champagne); font-weight: 300; }

.nav-clocks { display: flex; gap: 26px; color: var(--faint); }
.nav-clocks b { color: var(--muted); font-weight: 400; margin-left: 4px; }

.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-phone { color: var(--muted); transition: color 0.3s; }
.nav-phone:hover { color: var(--champagne); }

.btn-pill {
  display: inline-block; position: relative; overflow: hidden;
  border: 1px solid var(--champagne-dim); border-radius: 999px;
  padding: 0.85em 1.8em;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--porcelain);
  transition: color 0.4s var(--ease-lux), border-color 0.4s;
  will-change: transform;
}
.btn-pill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--champagne); z-index: -1;
  transform: translateY(102%); transition: transform 0.45s var(--ease-lux);
}
.btn-pill:hover { color: var(--ink); border-color: var(--champagne); }
.btn-pill:hover::after { transform: translateY(0); }
.btn-pill--gold { background: var(--champagne); color: var(--ink); border-color: var(--champagne); }
.btn-pill--gold::after { background: var(--porcelain); }

/* ---------- hero overlay (frame one of the film) ---------- */

.film-hero {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none;
}
.film-hero .btn-pill { pointer-events: auto; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { transform: scale(1.08); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,15,0.55) 0%, rgba(6,9,15,0) 30%),
    linear-gradient(180deg, rgba(6,9,15,0) 42%, rgba(6,9,15,0.82) 100%);
}
.hero-hud {
  position: absolute; top: calc(var(--nav-h) + 14px);
  left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between; gap: 18px;
  color: var(--faint);
}
.hero-body {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 9svh;
}
.hero-over { color: var(--champagne); margin-bottom: 1.4vw; }
.hero-title {
  font-family: 'Fraunces', serif; font-weight: 570;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(5.2rem, 16.5vw, 19rem);
  line-height: 0.88; letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero-sub {
  margin-top: 3.2vh;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.hero-kicker { font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--porcelain); }
.hero-kicker em { color: var(--champagne); font-size: 1.06em; }

.scroll-cue {
  position: absolute; right: clamp(18px, 3vw, 42px); bottom: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--faint); writing-mode: vertical-rl;
}
.scroll-cue-line {
  width: 1px; height: 72px; background: var(--hairline);
  position: relative; overflow: hidden; writing-mode: horizontal-tb;
}
.scroll-cue-line::after {
  content: ''; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%; background: var(--champagne);
  animation: cue-drop 2.2s var(--ease-lux) infinite;
}
@keyframes cue-drop { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ---------- film ---------- */

.film { position: relative; background: #000; }
.film-stage { position: relative; height: 100vh; overflow: hidden; }
.film-media { position: absolute; inset: 0; }
.film-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
}
.film-video.is-active { opacity: 1; }
.film-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%);
}

.chapter {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none; visibility: hidden;
  padding: calc(var(--nav-h) + 3vh) var(--pad-x) 12vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.chapter-leg { color: var(--champagne); }
.chapter-word {
  align-self: end;
  font-family: 'Fraunces', serif; font-weight: 590;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(4.4rem, 13.5vw, 15.5rem);
  line-height: 0.9; letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.45);
  margin-left: -0.04em;
}
.chapter-line {
  position: absolute; right: var(--pad-x); top: 30vh;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 380;
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  color: var(--champagne);
  text-align: right;
  text-shadow: 0 1px 34px rgba(0, 0, 0, 0.85), 0 1px 8px rgba(0, 0, 0, 0.5);
}
.chapter-copy {
  position: absolute; right: var(--pad-x); top: 38vh;
  max-width: 340px; text-align: right;
  color: var(--porcelain); opacity: 0.88; font-size: 0.95rem;
  text-shadow: 0 1px 26px rgba(0, 0, 0, 0.9), 0 1px 6px rgba(0, 0, 0, 0.55);
}
.offer-cards {
  position: absolute; right: var(--pad-x); bottom: 9vh;
  display: flex; gap: 14px;
}
.offer-card { width: clamp(126px, 11.5vw, 178px); }
.offer-card figure {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--hairline);
  background: var(--ink-2);
}
.offer-card img { width: 100%; height: 100%; object-fit: cover; }
.offer-card h3 { margin: 10px 0 3px; color: var(--champagne); font-size: 0.6rem; font-weight: 400; }
.offer-card p { font-size: 0.74rem; color: var(--muted); line-height: 1.45; }

.film-hud {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 7.2vh;
  z-index: 6; display: flex; align-items: center; gap: 22px;
  color: var(--faint);
}
.film-progress {
  flex: 1; height: 1px; background: var(--hairline);
  position: relative; overflow: hidden;
}
.film-progress i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--champagne);
  transform-origin: left center; transform: scaleX(0);
}

/* ---------- statement ---------- */

.statement {
  position: relative; padding: 22vh 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 14vh;
}
.statement-line {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 350;
  font-size: clamp(1.9rem, 4.6vw, 4.4rem);
  line-height: 1.18; text-align: center;
  max-width: 20ch; padding: 0 var(--pad-x);
}
.statement-line .w { opacity: 0.13; transition: opacity 0.3s linear; }
.statement-line .w.on { opacity: 1; }

.marquee {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 17px 0; color: var(--champagne-dim);
}
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 46s linear infinite; }
.marquee-track span { font-size: 0.72rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- journeys ---------- */

.journeys { position: relative; }
.journeys-pin { height: 100vh; overflow: hidden; display: flex; align-items: center; }
.journeys-track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 70px);
  padding: 0 var(--pad-x); width: max-content;
  will-change: transform;
}
.journey { width: clamp(300px, 30vw, 460px); flex: none; }
.journey--intro { width: clamp(280px, 26vw, 420px); }
.journey--intro h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(2.6rem, 4.4vw, 4.6rem); line-height: 1;
  text-transform: uppercase; margin: 18px 0;
}
.journey--intro h2 em { color: var(--champagne); text-transform: none; font-weight: 350; }
.journey-over { color: var(--champagne); }
.journey-introcopy { color: var(--muted); max-width: 30ch; }
.journey figure {
  aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--hairline); background: var(--ink-2);
  margin-bottom: 18px;
}
.journey img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-lux); }
.journey:hover img { transform: scale(1.09); }
.journey-route { color: var(--champagne); margin-bottom: 8px; }
.journey h3 {
  font-family: 'Fraunces', serif; font-weight: 480;
  font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.1; margin-bottom: 6px;
}
.journey p { color: var(--muted); font-size: 0.95rem; }

/* ---------- standard ---------- */

.standard { padding: 20vh var(--pad-x) 14vh; }
.section-over { color: var(--champagne); margin-bottom: 18px; }
.section-title {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: 1;
  text-transform: uppercase; margin-bottom: 9vh;
}
.section-title em { color: var(--champagne); text-transform: none; font-weight: 350; }

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.pillar { border-top: 1px solid var(--hairline); padding-top: 26px; }
.pillar-big {
  display: block; font-family: 'Fraunces', serif; font-weight: 350;
  font-size: clamp(2.6rem, 4vw, 4.2rem); color: var(--champagne);
  line-height: 1; margin-bottom: 18px;
}
.pillar h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 0.92rem; }

.partners {
  margin-top: 13vh; padding-top: 26px;
  border-top: 1px solid var(--hairline);
  color: var(--faint); text-align: center;
}

/* ---------- how ---------- */

.how { padding: 6vh var(--pad-x) 20vh; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px); counter-reset: step;
  margin-top: 7vh;
}
.step { border-top: 1px solid var(--hairline); padding-top: 26px; }
.step-num { color: var(--champagne); display: block; margin-bottom: 16px; }
.step h3 {
  font-family: 'Fraunces', serif; font-weight: 480;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem); margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }

/* ---------- finale ---------- */

.finale {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.finale-media, .finale-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.finale-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,15,0.86) 0%, rgba(6,9,15,0.3) 40%),
    linear-gradient(0deg, rgba(6,9,15,0.88) 0%, rgba(6,9,15,0.2) 45%);
}
.finale-body { position: relative; text-align: center; padding: 16vh var(--pad-x); }
.finale-over { color: var(--champagne); margin-bottom: 3vh; }
.finale-title {
  font-family: 'Fraunces', serif; font-weight: 540;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(3.4rem, 9.5vw, 10.5rem);
  line-height: 0.95; text-transform: uppercase;
}
.finale-title em { color: var(--champagne); text-transform: none; font-weight: 350; }
.finale-actions {
  margin-top: 6vh; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.finale-address { margin-top: 5vh; color: var(--faint); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 34px clamp(18px, 3vw, 42px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.05rem; }
.footer-left .mono, .footer-right { color: var(--faint); }
.footer-links { display: flex; gap: 22px; font-size: 0.82rem; color: var(--muted); }
.footer-links a { transition: color 0.3s; }
.footer-links a:hover { color: var(--champagne); }

/* ---------- split text ---------- */

[data-split] .ch { display: inline-block; will-change: transform; }
[data-split] .ch-mask { display: inline-block; overflow: hidden; vertical-align: top; }

/* ---------- reveal helpers (JS sets initial states) ---------- */

.js .pillar, .js .step { opacity: 0; transform: translateY(34px); }
.js .statement-line { --noop: 0; }

/* ---------- reduced motion ---------- */

body.reduced .grain, body.reduced .scroll-cue, body.reduced .cursor { display: none; }
body.reduced .film-hero { position: relative; padding: calc(var(--nav-h) + 4vh) var(--pad-x) 5vh; }
body.reduced .film-hero .hero-body { position: static; margin-top: 3vh; }
body.reduced .film-hero .hero-hud { position: static; display: flex; }
body.reduced .film-hero .hero-scrim { display: none; }
body.reduced .chapter { position: relative; visibility: visible; padding: 10vh var(--pad-x); }
body.reduced .film-stage { height: auto; }
body.reduced .film-media { position: relative; aspect-ratio: 16 / 9; }
body.reduced .film-video { position: relative; opacity: 1; height: auto; }
body.reduced .film-video:not([data-clip="0"]) { display: none; }
body.reduced .chapter-word, body.reduced .chapter-line,
body.reduced .chapter-copy, body.reduced .offer-cards { position: static; text-align: left; margin-top: 3vh; }
body.reduced .film-hud { display: none; }
body.reduced .js .pillar, body.reduced .js .step { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav-clocks { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --pad-x: 6vw; --nav-h: 68px; }
  .nav-phone { display: none; }
  .nav-word { display: none; }

  .hero-title { font-size: clamp(4.2rem, 19vw, 9rem); }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-hud .hud-item:nth-child(2) { display: none; }
  .scroll-cue { display: none; }

  /* film becomes a letterboxed cinema strip */
  .film-video { object-fit: contain; background: #000; }
  .chapter { padding: calc(var(--nav-h) + 2vh) var(--pad-x) 6vh; }
  .chapter-word { font-size: clamp(3.4rem, 15vw, 6.5rem); align-self: start; }
  .chapter-line { position: static; text-align: left; margin-top: 54vh; }
  .chapter-copy { position: static; text-align: left; max-width: 100%; margin-top: 8px; font-size: 0.88rem; }
  .offer-cards { position: static; margin-top: 16px; overflow-x: auto; padding-bottom: 6px; }
  .offer-card { width: 122px; flex: none; }
  .film-hud { bottom: 2vh; }

  .steps, .pillars { grid-template-columns: 1fr; }
  .journey { width: 78vw; }
  .journey--intro { width: 74vw; }
  .finale-actions { flex-direction: column; align-items: center; }
  .footer { flex-direction: column; align-items: flex-start; }
}
