/* =========================================================
   Orient Express Music Band — styles.css
   Aesthetic: Art Déco luxury railway · midnight + wine + gold foil
   ========================================================= */

:root {
  --ink:       #0B0908;
  --ink-2:     #120C0A;
  --ink-3:     #0E0A08;
  --wine:      #2A100F;
  --card:      #17110C;
  --card-2:    #1E160F;

  --gold:      #D4AF37;
  --gold-lite: #E8C766;
  --gold-soft: #B8924A;
  --gold-deep: #7D5E2A;
  --cream:     #F5E8C7;
  --cream-dim: #C9BB97;
  --muted:     #8C8068;

  --foil: linear-gradient(115deg, #f4e6ad 0%, #d4af37 26%, #9c7b2e 48%, #ecd793 70%, #f4e6ad 100%);

  --maxw: 1100px;

  --f-deco:    "Cinzel Decorative", "Cinzel", Georgia, serif;
  --f-display: "Cinzel", Georgia, "Times New Roman", serif;
  --f-script:  "Playfair Display", Georgia, serif;
  --f-body:    "Spectral", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 700px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #1a1208; padding: 10px 16px; font-weight: 600;
  border-radius: 0 0 6px 0; font-family: var(--f-display);
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Gold-foil text with slow shimmer */
.foil {
  background: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil 9s linear infinite;
}
@keyframes foil { to { background-position: 220% 0; } }

/* =========================================================
   STICKY NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 9, 8, .82);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(212, 175, 55, .18);
}
.js .nav { transform: translateY(-110%); transition: transform .5s var(--ease); }
.js .nav.is-visible { transform: translateY(0); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-family: var(--f-display); font-size: .82rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cream-dim); position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-family: var(--f-display); font-size: .8rem; letter-spacing: 1.2px; text-transform: uppercase;
  border: 1px solid var(--gold-soft); color: var(--gold); padding: 8px 16px; border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav__cta:hover { background: var(--gold); color: #1a1208; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  padding: 90px 0 64px;
  background:
    radial-gradient(130% 90% at 50% -15%, #2a1d10 0%, rgba(42,16,15,.5) 38%, var(--ink) 66%),
    var(--ink);
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__smoke {
  position: absolute; inset: -20% -20% auto -20%; height: 85%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 28% 38%, rgba(180,160,130,.10), transparent 70%),
    radial-gradient(50% 50% at 72% 30%, rgba(180,160,130,.08), transparent 70%),
    radial-gradient(35% 45% at 50% 62%, rgba(212,175,55,.06), transparent 70%);
  filter: blur(8px); animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -4%, 0) scale(1.1); }
}
.hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.deco { position: absolute; left: 50%; transform: translateX(-50%); width: min(760px, 86vw); color: var(--gold-soft); opacity: .5; z-index: 2; }
.deco--top { top: 78px; }

.hero__inner { position: relative; z-index: 3; }

.hero__plaque {
  position: relative; width: min(540px, 82vw); margin: 0 auto 26px; padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245,232,199,.06), rgba(0,0,0,.2));
  box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(212,175,55,.35), inset 0 0 0 1px rgba(212,175,55,.25);
}
.hero__plaque::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(212,175,55,.3); border-radius: 9px; pointer-events: none;
}
.hero__logo { width: 100%; border-radius: 8px; }

.hero__tagline {
  font-family: var(--f-script); font-style: italic; font-weight: 500; color: var(--gold-lite);
  font-size: clamp(1.2rem, 3vw, 1.7rem); margin: 0 0 8px; letter-spacing: .4px;
}
.hero__title {
  font-family: var(--f-deco); font-weight: 700; line-height: 1.12; letter-spacing: 1px;
  font-size: clamp(2rem, 6.6vw, 4rem); margin: 0 auto 16px; max-width: 16ch;
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(212,175,55,.12);
}
.hero__sub {
  color: var(--cream-dim); font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  max-width: 38ch; margin: 0 auto 32px; font-style: italic;
}
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero__social { display: flex; gap: 14px; justify-content: center; }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 1.5px solid rgba(212,175,55,.55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Hero staggered entrance */
.js .hero [data-anim] { opacity: 0; animation: rise 1s var(--ease) forwards; }
.js .hero [data-anim="1"] { animation-delay: .15s; }
.js .hero [data-anim="2"] { animation-delay: .35s; }
.js .hero [data-anim="3"] { animation-delay: .5s; }
.js .hero [data-anim="4"] { animation-delay: .7s; }
.js .hero [data-anim="5"] { animation-delay: .88s; }
.js .hero [data-anim="6"] { animation-delay: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; display: inline-block; overflow: hidden;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; border: 1.5px solid var(--gold);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn span { position: relative; z-index: 2; }
.btn--primary { background: linear-gradient(180deg, var(--gold-lite), var(--gold-soft)); color: #1a1208; box-shadow: 0 8px 24px rgba(212,175,55,.24); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212,175,55,.4); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 130%; }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: rgba(212,175,55,.12); transform: translateY(-2px); }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

.icon-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--gold-soft); color: var(--gold);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.icon-btn:hover { background: var(--gold); color: #1a1208; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(212,175,55,.3); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 84px 0; position: relative; }
.section--story { background: linear-gradient(180deg, var(--ink) 0%, var(--wine) 120%); }
.section--events { background: var(--ink-3); --notch: var(--ink-3); }
.section--follow { text-align: center; background: linear-gradient(180deg, var(--ink-3), var(--ink)); }

.section__kicker {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: 4px;
  font-size: .76rem; color: var(--gold-soft); text-align: center; margin: 0 0 10px;
}
.section--story .section__kicker { text-align: left; }
.section__title {
  font-family: var(--f-display); font-weight: 700; line-height: 1.15; letter-spacing: .6px;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 0 0 14px; text-align: center;
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: foil 9s linear infinite;
}
.section__title--left { text-align: left; }
.section__lead { color: var(--cream-dim); text-align: center; max-width: 50ch; margin: 0 auto 40px; font-style: italic; }

.story p { margin: 0 0 18px; }
.story strong { color: var(--gold-lite); font-weight: 600; }
.dropcap {
  float: left; font-family: var(--f-deco); font-weight: 700; font-size: 3.6rem; line-height: .82;
  padding: 6px 12px 0 0; color: transparent; background: var(--foil); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* =========================================================
   RAIL DIVIDER (animated train)
   ========================================================= */
.rail-divider { text-align: center; color: var(--gold-soft); background: var(--wine); padding: 6px 0; line-height: 0; }
.rail-divider svg { display: inline-block; overflow: visible; }
.js .rail-divider__train { animation: chug 6s linear infinite; }
@keyframes chug { from { transform: translateX(-60px); opacity: 0; } 10%,90% { opacity: 1; } to { transform: translateX(180px); opacity: 0; } }

/* =========================================================
   CALENDARIO — LA ROTTA (railway timeline of tickets)
   ========================================================= */
.route { list-style: none; position: relative; max-width: 720px; margin: 6px auto 0; padding: 4px 0 4px 52px; }
.route::before {
  content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background:
    linear-gradient(180deg, transparent, var(--gold-soft) 6%, var(--gold-soft) 94%, transparent),
    var(--gold-deep);
  box-shadow: 0 0 14px rgba(212,175,55,.25);
}
/* railway "ties" */
.route::after {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 15px; opacity: .5;
  background: repeating-linear-gradient(180deg, var(--gold-deep) 0 2px, transparent 2px 18px);
}

/* Month markers along the line (transit-map "zone" labels) */
.route-month { position: relative; margin: 30px 0 16px; }
.route-month:first-child { margin-top: 6px; }
.route-month::before {
  content: ""; position: absolute; left: -40px; top: 50%; width: 11px; height: 11px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold); box-shadow: 0 0 0 3px var(--ink-3), 0 0 10px rgba(212,175,55,.55);
}
.route-month span {
  display: inline-block; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 3px;
  font-size: .82rem; color: var(--gold-lite); padding-bottom: 5px; border-bottom: 1px solid rgba(212,175,55,.3);
}

.station { position: relative; margin-bottom: 22px; }
.station:last-child { margin-bottom: 0; }
.station__node {
  position: absolute; left: -43px; top: 30px; z-index: 2; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-lite), var(--gold-soft) 70%);
  border: 2px solid var(--ink-3); box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(212,175,55,.6);
}
.station__node::after {
  content: ""; position: absolute; top: 50%; left: 100%; width: 26px; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}
.station.is-next .station__node { width: 22px; height: 22px; top: 28px; left: -45px; animation: pulse 2.2s ease-in-out infinite; }
.station.is-last .station__node { background: var(--ink-3); border: 2px solid var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), 0 0 12px rgba(212,175,55,.5); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(212,175,55,.5); } 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 10px rgba(212,175,55,0); } }

/* Ticket / boarding pass */
.ticket {
  display: flex; align-items: stretch; position: relative;
  background: linear-gradient(150deg, var(--card-2), var(--card));
  border: 1px solid var(--gold-soft); border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.12), 0 12px 30px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.ticket:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,175,55,.35), 0 18px 40px rgba(0,0,0,.55), 0 0 26px rgba(212,175,55,.12); }

.ticket__stub {
  position: relative; flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px 8px; font-family: var(--f-display); color: var(--gold-lite);
  background: linear-gradient(180deg, rgba(212,175,55,.10), rgba(212,175,55,.02));
  border-right: 2px dashed rgba(212,175,55,.4);
}
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--notch, var(--ink-3));
}
.ticket__stub::before { top: -9px; }
.ticket__stub::after { bottom: -9px; }
.ticket__no { font-size: .68rem; letter-spacing: 3px; color: var(--gold-soft); margin-bottom: 4px; }
.ticket__dow { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cream-dim); }
.ticket__day { font-size: 2.7rem; font-weight: 700; line-height: 1; margin: 1px 0; }
.ticket__mon { font-size: .9rem; letter-spacing: 3px; text-transform: uppercase; }

.ticket__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px 22px; min-width: 0; }
.ticket__flag {
  align-self: flex-start; font-family: var(--f-display); font-size: .62rem; letter-spacing: 2px; text-transform: uppercase;
  color: #1a1208; background: linear-gradient(180deg, var(--gold-lite), var(--gold-soft)); padding: 3px 10px; border-radius: 999px; margin-bottom: 2px;
}
.ticket__name { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--cream); margin: 0; }
.ticket__place { color: var(--cream-dim); font-size: .98rem; margin: 0; }
.ticket__place .pin { display: inline; vertical-align: -2px; margin-right: 6px; color: var(--gold-soft); }
.ticket__place .prov { color: var(--muted); white-space: nowrap; }
.ticket__map { font-family: var(--f-display); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-top: 6px; width: fit-content; }
.ticket__map span { transition: margin-left .25s var(--ease); display: inline-block; }
.ticket__map:hover span { margin-left: 5px; }

/* =========================================================
   FOLLOW + FOOTER
   ========================================================= */
.follow__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

.footer { background: var(--ink); border-top: 1px solid rgba(212,175,55,.18); padding: 46px 0 40px; text-align: center; }
.footer__orn { color: var(--gold-soft); opacity: .6; margin-bottom: 14px; }
.footer__tag { font-family: var(--f-script); font-style: italic; color: var(--gold-lite); font-size: 1.35rem; margin: 0 0 12px; }
.footer__nav { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer__nav a { font-family: var(--f-display); font-size: .8rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cream-dim); }
.footer__nav a:hover { color: var(--gold); }
.footer__nav span { color: var(--gold-deep); }
.footer__copy { color: var(--muted); font-size: .85rem; margin: 0; }

/* =========================================================
   REVEAL ON SCROLL (+ stagger)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .route .station.reveal { transition-delay: .05s; }
.js .route .station:nth-child(2).reveal { transition-delay: .15s; }
.js .route .station:nth-child(3).reveal { transition-delay: .25s; }
.js .route .station:nth-child(4).reveal { transition-delay: .35s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (min-width: 768px) {
  .section { padding: 110px 0; }
  .hero__cta { flex-direction: row; justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .ticket__stub { flex-basis: 80px; }
  .ticket__body { padding: 16px 16px; }
  .ticket__name { font-size: 1.08rem; }
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__smoke, .scroll-cue span, .foil, .section__title, .rail-divider__train, .station.is-next .station__node { animation: none !important; }
  .js .hero [data-anim] { opacity: 1 !important; animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section__title, .foil { background-position: 0 0; }
  * { scroll-behavior: auto !important; }
}
