/* ════════════════════════════════════════════════════════════
   OVIXIS · IL VOLO OV·26 — v5
   one world, one story, one flight from dawn to night
════════════════════════════════════════════════════════════ */

:root {
  /* fixed brand inks — physical objects (tickets, passes) keep their paper */
  --paper: #efe6d3;
  --kraft: #e7d8bb;
  --night: #141c2a;
  --card-ink: #2c2417;
  --card-ink2: #5a4f3a;
  --terra-fix: #a8462a;
  --gold-fix: #bd962f;
  --navy: #2c4257;

  /* the hour of the day — tweened while flying */
  --s1: #f4e9d4;
  --s2: #eee0c6;
  --s3: #e9d2ac;
  --fg: #2c2417;
  --fg2: #5a4f3a;
  --accent: #a8462a;
  --accent2: #2c6b74;
  --panel: rgba(247, 240, 223, 0.66);
  --line: rgba(44, 36, 23, 0.16);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --hand: 'Caveat', cursive;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad-x: clamp(1.4rem, 6vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--terra-fix) transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--s2);
  color: var(--fg);
  overflow-x: hidden;
  transition: color .7s;
}
body.no-3d { background: linear-gradient(180deg, var(--s1), var(--s2) 52%, var(--s3)); background-attachment: fixed; }
::selection { background: var(--terra-fix); color: var(--paper); }
a { color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; background: var(--card-ink); color: var(--paper); padding: .6em 1em; border-radius: 4px; font-size: .8rem; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ═══ the world ═══ */
#scene { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: 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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); } 100% { transform: translate(0, 0); }
}
body.is-night .grain { mix-blend-mode: screen; opacity: .035; }

/* ═══ preloader ═══ */
#loader {
  position: fixed; inset: 0; z-index: 500;
  background: #f2ead9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
}
.loader-pass {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  width: min(430px, 86vw); background: var(--paper); color: var(--card-ink);
  border-radius: 10px; box-shadow: 0 24px 60px rgba(44, 36, 23, .25);
}
.loader-pass-main { padding: 1.5rem 1.6rem; display: grid; gap: .8rem; }
.lp-airline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; }
.lp-route { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .02em; }
.lp-route i { font-style: normal; color: var(--terra-fix); }
.lp-pct { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: var(--card-ink2); }
.lp-pct b { color: var(--terra-fix); font-size: .9rem; }
.loader-pass-stub {
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.3rem; border-left: 2px dashed rgba(44, 36, 23, .3);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; color: var(--card-ink2);
  background: rgba(168, 70, 42, .05); border-radius: 0 10px 10px 0;
}
.loader-stamp { position: absolute; right: -26px; top: -34px; color: var(--terra-fix); }
.loader-line { overflow: hidden; }
.loader-word { display: block; font-family: var(--hand); font-size: 1.4rem; color: var(--card-ink2); }

/* ═══ cursor ═══ */
#cursor { display: none; }
.trail-dot { display: none; }
@media (pointer: fine) {
  body.has-cursor #cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 600;
    pointer-events: none; transition: opacity .3s; will-change: transform;
  }
  body.has-cursor .trail-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 599;
    width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
    background: var(--accent); opacity: 0; pointer-events: none;
  }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ═══ nav ═══ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 clamp(1.4rem, 5vw, 3.5rem);
  color: var(--fg); transition: color .7s, background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
body.nav-scrolled #nav {
  background: color-mix(in srgb, var(--s1) 72%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-logo { display: flex; align-items: center; gap: .5em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; text-decoration: none; }
.nav-links { display: flex; gap: clamp(.8rem, 2vw, 2rem); list-style: none; }
.nav-links a { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; opacity: .5; transition: opacity .3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-cta {
  font-weight: 600; font-size: .74rem; letter-spacing: .05em;
  text-decoration: none; text-transform: uppercase; white-space: nowrap;
  border: 1.5px solid var(--accent); color: var(--accent);
  padding: .55em 1.1em; border-radius: 99px; transition: background .3s, color .3s, border-color .7s;
}
.nav-cta:hover { background: var(--accent); color: var(--s1); }
.nav-burger { display: none; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }
.nav-burger span + span { margin-top: 5px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#nav-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
  display: none; flex-direction: column; padding: 0 clamp(1.4rem, 5vw, 3.5rem) 1rem;
  background: color-mix(in srgb, var(--s1) 96%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height .45s var(--ease), opacity .3s;
  border-bottom: 1px solid var(--line);
}
#nav-menu.open { max-height: 480px; opacity: 1; pointer-events: auto; }
#nav-menu a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; padding: .65rem 0; border-bottom: 1px solid var(--line); }

/* ═══ flight log rail — cockpit instruments, right edge ═══ */
#rail {
  position: fixed; right: clamp(1rem, 2.4vw, 2.2rem); top: 45%; transform: translateY(-50%);
  z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem;
  font-family: var(--mono); color: var(--fg2); transition: color .7s;
  text-align: right;
  --p: 0;
}
.rail-top b { display: block; font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; color: var(--fg); transition: color .7s; }
.rail-top span { font-size: .5rem; letter-spacing: .16em; }
.rail-line { position: relative; width: 1px; height: 21vh; margin-right: 6px; background: var(--line); }
.rail-line::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); transform-origin: top; transform: scaleY(var(--p));
}
.rail-plane {
  position: absolute; left: 0; top: calc(var(--p) * 100%);
  transform: translate(-6.5px, -7px); color: var(--accent); transition: color .7s;
}
#rail ol { list-style: none; display: grid; gap: .45rem; justify-items: end; }
#rail { text-shadow: 0 1px 12px color-mix(in srgb, var(--s1) 80%, transparent); }
#rail ol a { display: flex; align-items: baseline; gap: .55em; text-decoration: none; opacity: .6; transition: opacity .3s, color .7s; }
#rail ol a:hover { opacity: .9; }
#rail ol a.active { opacity: 1; color: var(--fg); }
#rail ol a.active b { color: var(--accent); }
#rail ol b { font-weight: 700; font-size: .58rem; letter-spacing: .1em; }
#rail ol span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 1180px) { #rail { display: none; } }

/* ═══ sections & shared type ═══ */
section { position: relative; min-height: 100svh; padding: clamp(6.5rem, 14vh, 11rem) var(--pad-x); }
section::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--s1) 60%, transparent) 0%, color-mix(in srgb, var(--s1) 30%, transparent) 44%, transparent 66%);
  transition: opacity .7s;
}
.container { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; }

.chapter-tag {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .3em;
  color: var(--fg2); transition: color .7s; margin-bottom: 1rem;
}
.chapter-tag::before { content: ""; width: 2.6rem; height: 1px; background: var(--accent); flex-shrink: 0; }

.kicker { font-family: var(--hand); font-size: 1.4rem; color: var(--accent); transform: rotate(-1.6deg); transform-origin: left; margin-bottom: .2rem; transition: color .7s; }
.hand-note { font-family: var(--hand); font-size: 1.25rem; color: var(--accent); margin-left: .4em; }

.sec-head { position: relative; z-index: 2; margin-bottom: clamp(2.2rem, 5vh, 3.4rem); max-width: 700px; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em;
  margin: .4rem 0 .8rem;
}
h1, h2 { text-shadow: 0 2px 16px color-mix(in srgb, var(--s1) 40%, transparent); }
.kicker, .handoff { text-shadow: 0 1px 10px color-mix(in srgb, var(--s1) 55%, transparent); }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 300; transition: color .7s; }
.sec-note { font-size: clamp(.92rem, 1.2vw, 1.02rem); line-height: 1.7; color: var(--fg2); max-width: 56ch; transition: color .7s; }
.sec-note strong { color: var(--fg); }
[data-split] .line { display: block; }

.handoff {
  font-family: var(--hand); font-size: clamp(1.3rem, 2vw, 1.55rem);
  color: var(--accent); transform: rotate(-1.6deg); transform-origin: left;
  margin-top: clamp(2.6rem, 6vh, 4.5rem); transition: color .7s;
}

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 2em; border-radius: 6px;
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  text-decoration: none; will-change: transform;
}
.btn-primary { background: var(--accent); color: var(--s1); box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 35%, transparent); transition: background .7s, color .7s; }
.btn-ghost { border: 1.5px solid color-mix(in srgb, var(--fg) 32%, transparent); color: var(--fg); transition: border-color .7s, color .7s; }
.avail-pill {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg2); padding: .6em 1em;
  border: 1px dashed color-mix(in srgb, var(--fg) 32%, transparent); border-radius: 99px;
  transition: color .7s, border-color .7s;
}
.avail-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3aa66f; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(58, 166, 111, .5); } 50% { box-shadow: 0 0 0 6px rgba(58, 166, 111, 0); } }

/* ═══ 00 · imbarco ═══ */
#imbarco { display: flex; align-items: center; padding-top: 110px; }
.hero { position: relative; z-index: 2; width: 100%; max-width: 1140px; margin: 0 auto; }
.typed-line { margin: .4rem 0 1.2rem; font-family: var(--mono); font-size: clamp(.72rem, 1.1vw, .82rem); letter-spacing: .04em; color: var(--accent); min-height: 1.4em; transition: color .7s; }
.typed-tilde { opacity: .5; }
.typed-caret { animation: blink .9s step-end infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.9rem, 8.2vw, 7.4rem); line-height: 1.0; letter-spacing: -.025em;
  margin-bottom: 1.3rem; max-width: 14em;
}
.hero-sub p { max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.7; color: var(--fg2); margin-bottom: .5rem; transition: color .7s; }
.hero-sub strong { color: var(--fg); }
.hero-vow { font-family: var(--serif); color: var(--fg) !important; }
.hero-vow em { color: var(--accent); transition: color .7s; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
#imbarco .handoff { margin-top: clamp(2.6rem, 7vh, 5rem); }

/* ═══ 01 · la valigia — the customs form ═══ */
.customs {
  position: relative; z-index: 2; max-width: 780px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--card-ink);
  border: 1px solid rgba(44, 36, 23, .16); border-radius: 10px;
  box-shadow: 0 22px 54px rgba(44, 36, 23, .2);
}
.customs-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.5rem; border-bottom: 1.5px solid rgba(44, 36, 23, .55);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .22em; color: var(--card-ink2);
}
.customs ol { list-style: none; }
.cr {
  display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 1rem;
  padding: .85rem 1.5rem; border-bottom: 1px dashed rgba(44, 36, 23, .18);
}
.cr-n { font-family: var(--mono); font-size: .66rem; color: var(--card-ink2); }
.cr-item b { display: block; font-size: .96rem; font-weight: 700; letter-spacing: -.01em; color: var(--row-ink, var(--card-ink)); }
.cr-item i { font-family: var(--serif); font-style: italic; font-size: .86rem; color: var(--card-ink2); }
.cr-ok {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--mono); font-size: .54rem; letter-spacing: .16em;
  color: var(--terra-fix); border: 1.5px solid currentColor; border-radius: 3px;
  padding: .35em .6em; transform: rotate(-2deg);
}
.customs-foot { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 1.5rem 1.4rem; }
.customs-foot p { font-size: .84rem; line-height: 1.65; color: var(--card-ink2); max-width: 44ch; }
.customs-foot em { font-family: var(--serif); }
.sign { font-family: var(--hand); font-size: 1.5rem; color: var(--terra-fix); }
.customs-stamp { justify-self: end; color: var(--terra-fix); margin: -1.4rem -.4rem -1rem 0; }

/* ═══ 02 · le isole — pinned pan ═══ */
#isole { padding: 0; }
.isole-view {
  position: relative; z-index: 2;
  height: 100svh; display: flex; flex-direction: column; justify-content: flex-start;
  gap: clamp(1rem, 2.4vh, 1.8rem); padding: 5.2rem var(--pad-x) 1.6rem; overflow: hidden;
}
#isole .sec-head {
  display: grid; grid-template-columns: auto minmax(0, 460px); align-items: end;
  gap: .2rem clamp(1.5rem, 4vw, 3.5rem); max-width: none; margin-bottom: 0;
}
#isole .chapter-tag, #isole .kicker { grid-column: 1 / -1; }
#isole .sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: .2rem 0 0; }
#isole .sec-note {
  font-size: .88rem; align-self: end;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem 1.1rem; margin-bottom: .2rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .7s, border-color .7s, color .7s;
}
.isole-track { display: flex; align-items: flex-start; gap: clamp(2rem, 5vw, 4.5rem); width: max-content; will-change: transform; }
.isola {
  width: clamp(400px, 41vw, 560px); flex-shrink: 0;
  background: var(--panel);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.3rem, 2vw, 1.8rem);
  transition: background .7s, border-color .7s;
}
.isola-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; margin-bottom: .8rem; }
.isola-code { color: var(--ink); font-weight: 700; border: 1.5px solid; border-radius: 3px; padding: .3em .55em; }
.isola-coord { color: var(--fg2); transition: color .7s; }
.isola-name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.1vw, 2.6rem); letter-spacing: -.02em; line-height: 1; }
.isola-tag { font-family: var(--hand); font-size: 1.3rem; color: var(--ink); margin: .25rem 0 .9rem; }
.isola-log { display: grid; gap: .6rem; }
.isola-log dt { font-family: var(--mono); font-size: .56rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin-bottom: .15em; }
.isola-log dd { font-size: .88rem; line-height: 1.5; color: var(--fg2); transition: color .7s; }
.isola-link {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 1rem;
  font-family: var(--mono); font-size: .78rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); padding-bottom: .2em;
}
.isole-handoff { margin-top: 0; }

/* ═══ 03 · i biglietti ═══ */
.tickets { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(1.4rem, 2.4vw, 2rem); align-items: stretch; }
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr 64px;
  background: var(--paper); color: var(--card-ink); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(44, 36, 23, .22);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ticket:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(44, 36, 23, .3); }
.ticket-featured { outline: 2px solid var(--terra-fix); outline-offset: 3px; }
.tk-badge {
  position: absolute; top: -15px; right: 18px; z-index: 3;
  font-family: var(--hand); font-size: 1.2rem; color: var(--terra-fix); transform: rotate(3deg);
}
.tk-main { padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.tk-top { display: flex; justify-content: space-between; align-items: center; }
.tk-klass { font-family: var(--mono); font-size: .56rem; letter-spacing: .22em; color: var(--card-ink); opacity: .85; border: 1px solid rgba(44, 36, 23, .3); border-radius: 3px; padding: .3em .55em; }
.tk-code { font-family: var(--mono); font-size: .66rem; color: var(--card-ink2); }
.tk-name { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--ink); }
.tk-desc { font-size: .92rem; line-height: 1.6; color: var(--card-ink2); }
.tk-perks { list-style: none; display: grid; gap: .4rem; margin: .2rem 0 .4rem; }
.tk-perks li { font-size: .84rem; color: var(--card-ink2); padding-left: 1.2em; position: relative; }
.tk-perks li::before { content: "✈"; position: absolute; left: 0; font-size: .7em; top: .35em; color: var(--card-ink); opacity: .55; }
.tk-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px dashed rgba(44, 36, 23, .25); padding-top: .9rem; }
.tk-dur { font-family: var(--mono); font-size: .78rem; color: var(--card-ink); }
.tk-dur b { display: block; font-weight: 400; font-size: .5rem; letter-spacing: .18em; color: var(--card-ink2); }
.tk-cta {
  font-weight: 700; font-size: .8rem; letter-spacing: .03em; text-decoration: none;
  background: var(--card-ink); color: var(--paper); border-radius: 5px; padding: .7em 1.2em;
  will-change: transform;
}
.ticket-featured .tk-cta { background: var(--terra-fix); }
.tk-stub {
  position: relative; border-left: 2px dashed rgba(44, 36, 23, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1rem 0; background: rgba(44, 36, 23, .04);
  border-radius: 0 12px 12px 0; overflow: hidden;
}
.tk-stub::before, .tk-stub::after {
  content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--s2); transition: background .7s;
}
.tk-stub::before { top: -9px; }
.tk-stub::after { bottom: -9px; }
.tk-stub .tk-klass { border: none; writing-mode: vertical-rl; letter-spacing: .3em; font-size: .54rem; padding: 0; }
.tk-barcode { width: 26px; height: 84px; transform: rotate(90deg); }
.tk-barcode rect { fill: var(--card-ink); }
.tk-stub .tk-code { writing-mode: vertical-rl; font-size: .56rem; }

.ps-note { position: relative; z-index: 2; margin-top: 2.2rem; max-width: 60ch; }
.ps-hand { font-family: var(--hand); font-size: 1.5rem; color: var(--accent); transition: color .7s; }
.ps-note em { font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--fg2); margin-left: .5rem; transition: color .7s; }

/* ═══ 04 · il viaggiatore ═══ */
#viaggiatore { display: flex; align-items: center; }
.passport-wrap { display: grid; grid-template-columns: minmax(290px, 400px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%; }
.passport-card {
  background: var(--navy); color: var(--paper); border-radius: 10px; padding: 1.6rem;
  box-shadow: 0 24px 60px rgba(10, 14, 22, .5); border: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(-2deg); will-change: transform;
}
.pp-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .54rem; letter-spacing: .16em; opacity: .75; margin-bottom: 1.1rem; }
.pp-world { display: inline-flex; align-items: center; gap: .4em; }
.pp-world img { filter: invert(1); opacity: .9; }
.pp-id { display: flex; gap: 1.1rem; margin-bottom: 1rem; }
.pp-photo { width: 96px; height: 118px; border-radius: 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.pp-photo span { position: absolute; bottom: 4px; right: 4px; font-family: var(--mono); font-size: .42rem; letter-spacing: .1em; opacity: .6; }
.pp-fields { display: grid; gap: .5rem; align-content: center; }
.pp-fields b { display: block; font-family: var(--mono); font-weight: 400; font-size: .5rem; letter-spacing: .12em; opacity: .55; }
.pp-fields span { font-family: var(--serif); font-size: 1.05rem; }
.pp-worldid { display: flex; align-items: center; gap: .7rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: .6rem .75rem; margin-bottom: 1rem; }
.pp-worldid > svg { flex-shrink: 0; opacity: .9; }
.pp-worldid > img { flex-shrink: 0; opacity: .9; filter: invert(1); }
.pp-wid-main { flex: 1; min-width: 0; }
.pp-wid-main b { display: block; font-family: var(--mono); font-weight: 400; font-size: .46rem; letter-spacing: .12em; opacity: .6; }
.pp-wid-main span { font-family: var(--serif); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pp-wid-main a { text-decoration: none; }
.pp-wid-main small { opacity: .5; font-size: .78rem; }
.pp-wid-check { text-align: right; flex-shrink: 0; }
.pp-wid-check i { width: 22px; height: 22px; border-radius: 50%; background: #3aa66f; display: inline-flex; align-items: center; justify-content: center; }
.pp-wid-check small { display: block; font-family: var(--mono); font-size: .46rem; opacity: .6; margin-top: 2px; }
.pp-motto { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .7rem; }
.pp-motto b { display: block; font-family: var(--mono); font-weight: 400; font-size: .5rem; letter-spacing: .1em; opacity: .55; margin-bottom: .2rem; }
.pp-motto span { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-fix); }
.pp-mrz { margin-top: 1rem; font-family: var(--mono); font-size: .56rem; letter-spacing: .14em; opacity: .5; word-break: break-all; line-height: 1.7; min-height: 2.6em; white-space: pre-line; }

.passport-text { display: grid; gap: 1.2rem; }
.passport-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; }
.pp-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; color: var(--fg); transition: color .7s; }
.passport-text > p:not(.pp-lead):not(.kicker):not(.chapter-tag):not(.handoff) { font-size: clamp(.95rem, 1.3vw, 1.08rem); line-height: 1.7; color: var(--fg2); max-width: 54ch; transition: color .7s; }
.passport-text strong { color: var(--fg); }
.pp-closing { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem) !important; color: var(--fg) !important; }
.passport-text .handoff { margin-top: .6rem; }

/* ═══ 05 · notte ═══ */
#notte { display: flex; align-items: center; }
#notte .container { max-width: 960px; }
#notte .sec-head { max-width: 100%; }

.bpass { display: grid; grid-template-columns: 1fr auto; background: var(--paper); color: var(--card-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 28px 70px rgba(0, 0, 0, .5); position: relative; z-index: 2; }
.bp-main { padding: clamp(1.4rem, 3vw, 2.1rem); }
.bp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.3rem; }
.bp-airline { display: inline-flex; align-items: center; gap: .5em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.bp-label { font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; color: var(--card-ink2); }
.bp-route { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.bp-route b { display: block; font-family: var(--mono); font-weight: 400; font-size: .5rem; letter-spacing: .14em; color: var(--card-ink2); }
.bp-route span { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; display: block; }
.bp-route small { font-family: var(--mono); font-size: .62rem; color: var(--card-ink2); }
.bp-to { color: var(--terra-fix); }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: .9rem 1.2rem; padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px dashed rgba(44, 36, 23, .25); }
.bp-grid b { display: block; font-family: var(--mono); font-weight: 400; font-size: .5rem; letter-spacing: .14em; color: var(--card-ink2); }
.bp-grid span { font-family: var(--serif); font-size: 1.05rem; }
.bp-accent { color: var(--terra-fix); }
.bp-contact-label { font-family: var(--mono); font-size: .5rem; letter-spacing: .14em; color: var(--card-ink2); margin-bottom: .4rem; }
.bp-email {
  display: inline-flex; align-items: center; gap: 1rem;
  border: 1.5px solid rgba(44, 36, 23, .3); border-radius: 6px; padding: .8rem 1.1rem;
  font-family: var(--mono); transition: border-color .25s, background .25s; will-change: transform;
}
.bp-email span { font-size: clamp(.85rem, 1.3vw, 1rem); }
.bp-email b { font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(44, 36, 23, .1); color: var(--card-ink2); border-radius: 5px; padding: .3em .6em; transition: all .25s; }
.bp-email.copied { border-color: var(--terra-fix); background: rgba(168, 70, 42, .12); }
.bp-email.copied b { background: var(--terra-fix); color: var(--paper); }
.bp-actions { display: flex; align-items: stretch; gap: .8rem; flex-wrap: wrap; }
.bp-board {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--terra-fix); color: var(--paper); border-radius: 6px; padding: .8rem 1.4rem;
  font-weight: 700; font-size: .88rem; letter-spacing: .03em; text-decoration: none;
  box-shadow: 0 8px 26px rgba(168, 70, 42, .3); will-change: transform;
}
.bp-hint { font-family: var(--hand); font-size: 1.2rem; color: var(--card-ink2); margin-top: .6rem; transform: rotate(-1.2deg); transform-origin: left; }
.bp-social { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.2rem; }
.bp-social a { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--card-ink2); text-decoration: none; transition: color .2s; }
.bp-social a:hover { color: var(--terra-fix); }
.bp-stub {
  border-left: 2px dashed rgba(44, 36, 23, .3);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  min-width: 130px; background: rgba(168, 70, 42, .05); text-align: center;
}
.bp-stamp { color: var(--terra-fix); }
.bp-stub-grid { display: flex; gap: 1rem; font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; color: var(--card-ink2); }
.bp-stub-grid b { color: var(--card-ink); font-size: .62rem; }

.footer { position: relative; z-index: 2; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: .7rem; font-family: var(--mono); font-size: .68rem; color: var(--fg2); transition: color .7s; }
.footer-row i { opacity: .4; font-style: normal; }
.footer-close { margin-top: 1rem; font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--fg); transition: color .7s; }
.footer-close em { color: var(--accent); transition: color .7s; }

/* ═══ responsive ═══ */
@media (max-width: 1000px) {
  .passport-wrap { grid-template-columns: 1fr; }
  .passport-side { order: 2; max-width: 420px; }
}
@media (max-width: 860px) {
  section { padding-left: 1.4rem; padding-right: 1.4rem; }
  #isole { padding: clamp(6.5rem, 14vh, 11rem) 1.4rem; }
  .isole-view { height: auto; overflow: visible; padding: 0; }
  #isole .sec-head { display: block; margin-bottom: 1.6rem; }
  #isole .sec-head h2 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
  .isole-track { flex-direction: column; width: 100%; gap: 1.6rem; }
  .isola { width: 100%; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .isole-handoff { margin-top: clamp(2.6rem, 6vh, 4.5rem); }
  .customs-foot { grid-template-columns: 1fr; }
  .customs-stamp { justify-self: center; margin: -1rem 0 -.6rem; }
  .cr { grid-template-columns: 1.8rem 1fr auto; padding: .85rem 1rem; gap: .7rem; }
  .bpass { grid-template-columns: 1fr; }
  .bp-stub { border-left: none; border-top: 2px dashed rgba(44, 36, 23, .3); }
  .nav-cta { display: none; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  #nav-menu { display: flex; }
  .cr-ok { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}

/* ═══ ATMOSPHERE — details that make the page breathe ═══ */

/* boarding — the headline resolves through a chromatic split */
.hero-title.chromatic { text-shadow: 2px 0 rgba(255, 64, 80, .28), -2px 0 rgba(64, 180, 255, .28); }

/* boarding — the primary CTA has a heartbeat */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  4% { transform: scale(1.035); }
  8% { transform: scale(1); }
  12% { transform: scale(1.028); }
  16% { transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-actions .btn-primary { animation: heartbeat 4s ease-in-out infinite; }
}

/* carry-on — paper dust when a stamp lands */
.dust { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--terra-fix); pointer-events: none; z-index: 5; }

/* paper artifacts keep their depth while tilting */
.customs, .passport-card, .bpass, .isola { transform-style: preserve-3d; will-change: transform; }

/* work — hovering one island earns the focus: it glows */
.isola { transition: background .7s, border-color .7s, opacity .45s ease, box-shadow .45s ease; }
.isola.is-hot { box-shadow: 0 26px 70px color-mix(in srgb, var(--ink) 32%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 38%, transparent); }

/* work — a runway light travels under the land-on links */
.isola-link { position: relative; overflow: hidden; }
.isola-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 12px; height: 2px;
  background: currentColor; border-radius: 2px; opacity: 0; box-shadow: 0 0 8px currentColor;
}
.isola-link:hover::after { opacity: 1; animation: runway 0.9s linear infinite; }
@keyframes runway { from { transform: translateX(-14px); } to { transform: translateX(260px); } }

/* tickets — paper curl, and they lift like you picked them up */
.tickets { perspective: 1200px; }
.ticket { position: relative; transition: transform .5s cubic-bezier(.2, .8, .25, 1), box-shadow .5s; }
.ticket::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--card-ink) 12%, var(--paper)) 50%);
  border-radius: 0 0 12px 0;
}
.ticket:hover { transform: translateY(-10px) rotateX(5deg); box-shadow: 0 34px 70px rgba(44, 36, 23, .35); }

/* tickets — the printed stub */
.tk-cta { position: relative; }
.print-stub {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 22px;
  background: var(--paper, #f6eedd); border: 1px solid rgba(44, 36, 23, .35); border-radius: 3px;
  pointer-events: none; z-index: 6;
}
.print-stub::before { content: ""; position: absolute; left: 6px; top: 5px; right: 14px; height: 2px; background: rgba(44, 36, 23, .5); box-shadow: 0 5px 0 rgba(44, 36, 23, .35), 0 10px 0 rgba(44, 36, 23, .25); }
.print-stub::after { content: ""; position: absolute; right: 4px; top: 4px; bottom: 4px; width: 8px; background: repeating-linear-gradient(90deg, rgba(44, 36, 23, .7) 0 1px, transparent 1px 2.4px); }

/* about — a warm spotlight follows the cursor over the passport */
.passport-card { position: relative; }
.passport-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 40%), rgba(255, 214, 150, .16), transparent 65%);
  opacity: 0; transition: opacity .5s;
}
.passport-card.lit::after { opacity: 1; }
/* …and the photo has a holographic sheen */
.pp-photo { position: relative; }
.pp-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 0, 128, .1) 42%, rgba(0, 220, 255, .1) 52%, rgba(255, 230, 0, .1) 60%, transparent 72%);
  background-size: 220% 220%; background-position: var(--hx, 50%) 50%;
}

/* about — fireflies */
.firefly {
  position: absolute; left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%;
  background: #ffd98a; box-shadow: 0 0 10px 2px rgba(255, 217, 138, .55);
  pointer-events: none; z-index: 3;
}

/* contact — a strip of runway LEDs guides you to the button */
.bp-board { position: relative; overflow: hidden; }
.bp-board::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px;
  background-image: radial-gradient(circle, rgba(255, 240, 200, .95) 1.4px, transparent 1.6px);
  background-size: 14px 3px; background-repeat: repeat-x;
  opacity: 0; transition: opacity .3s;
}
.bp-board:hover::before { opacity: 1; animation: leds 0.8s linear infinite; }
@keyframes leds { from { background-position-x: 0; } to { background-position-x: 14px; } }

/* contact — the footer already dreams of the next dawn */
@media (prefers-reduced-motion: no-preference) {
  .footer-close em {
    background: linear-gradient(90deg, #ff9d6b, #ffd9a0, #f7cfa0, #ff9d6b);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dawnCycle 9s linear infinite;
  }
}
@keyframes dawnCycle { from { background-position: 0% 0; } to { background-position: 300% 0; } }

/* night — the cursor is a flashlight */
body.is-night #cursor { filter: drop-shadow(0 0 7px rgba(255, 222, 160, .85)); }
