/* ========================================================================
   FABRIZIO LANFRANCHI — EDITORIAL MOTION SYSTEM
   A chapter-based visual experience. Content, images and links are unchanged.
   ======================================================================== */

:root {
  --paper: #f4f1eb;
  --paper-bright: #fffefa;
  --ink: #0b0b0c;
  --ink-soft: #5e5b59;
  --night: #09090a;
  --night-soft: #151518;
  --violet: #6339ff;
  --violet-soft: #c9bcff;
  --signal: #f05b3a;
  --acid: #d9ff4b;
  --cyan: #a5edf1;
  --line: rgba(11, 11, 12, 0.16);
  --line-light: rgba(255, 255, 255, 0.25);
  --font-sans: 'Inter', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --display: clamp(4rem, 11.8vw, 13rem);
  --display-small: clamp(3rem, 7.5vw, 8.6rem);
  --title: clamp(2.2rem, 4.8vw, 5rem);
  --section-gutter: clamp(1.25rem, 5vw, 5.4rem);
  --page-progress: 0;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --ease-editorial: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; background: var(--night); }
body { min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--font-sans); line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ''; position: fixed; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(28rem circle at var(--pointer-x) var(--pointer-y), rgba(99, 57, 255, 0.09), transparent 62%); transition: background 0.18s linear; }
body::after { content: ''; position: fixed; z-index: 1; inset: 0; pointer-events: none; opacity: 0.24; background-image: repeating-linear-gradient(0deg, rgba(11, 11, 12, 0.04) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px); mix-blend-mode: multiply; }
main, .navbar, .page-progress, .footer { position: relative; z-index: 2; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
ul { list-style: none; }
::selection { color: var(--paper-bright); background: var(--violet); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* ========================================================================
   NAVIGATION + PRESENTATION PROGRESS
   ======================================================================== */
.navbar { position: fixed; z-index: 100; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 5.2rem; padding: 0.8rem var(--section-gutter); color: var(--paper-bright); transition: color 0.55s var(--ease-editorial), background 0.55s var(--ease-editorial), border-color 0.55s var(--ease-editorial); }
.navbar.is-scrolled { color: var(--ink); background: rgba(255, 254, 250, 0.88); border-bottom: 1px solid rgba(11, 11, 12, 0.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-logo { justify-self: start; display: inline-flex; align-items: center; min-height: 2rem; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; letter-spacing: -0.08em; }
.nav-logo span { color: var(--signal); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(0.65rem, 1.4vw, 1.65rem); font-family: var(--font-mono); font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { position: relative; display: block; padding: 0.25rem 0; transition: opacity 0.35s ease, letter-spacing 0.45s var(--ease-editorial); }
.nav-links a::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-editorial); }
.nav-links a:hover, .nav-links a.is-active { letter-spacing: 0.13em; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.lang-switch { justify-self: end; display: flex; gap: 0.2rem; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; }
.lang-btn { min-width: 2rem; padding: 0.3rem 0.25rem; opacity: 0.55; transition: opacity 0.3s ease, color 0.3s ease; }
.lang-btn.active { color: var(--acid); opacity: 1; }
.navbar.is-scrolled .lang-btn.active { color: var(--violet); }
.hamburger { display: none; }
.page-progress { position: fixed; z-index: 90; right: 1.25rem; bottom: 1.5rem; display: flex; align-items: end; gap: 0.62rem; color: var(--paper-bright); mix-blend-mode: difference; }
.page-progress__line { display: block; width: 1px; height: 4rem; overflow: hidden; background: rgba(255, 255, 255, 0.35); }
.page-progress__fill { display: block; width: 100%; height: calc(var(--page-progress) * 100%); transform-origin: bottom; background: var(--paper-bright); transition: height 0.13s linear; }
.page-progress__count { min-width: 1.55rem; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; }

/* ========================================================================
   CHAPTERS + HERO
   ======================================================================== */
.chapter { scroll-snap-align: start; scroll-margin-top: 0; }
.section { position: relative; padding: clamp(6.5rem, 13vw, 12rem) var(--section-gutter); overflow: clip; }
.section::before { content: attr(data-chapter); position: absolute; z-index: 0; top: clamp(4rem, 8vw, 7rem); right: var(--section-gutter); font-family: var(--font-mono); font-size: clamp(0.68rem, 0.9vw, 0.82rem); font-weight: 700; letter-spacing: 0.1em; color: currentColor; opacity: 0.45; }
.section > * { position: relative; z-index: 1; }
.section-header { max-width: 58rem; margin-bottom: clamp(3rem, 8vw, 6.5rem); }
.section-title { max-width: 13ch; font-size: var(--title); font-weight: 800; line-height: 0.92; letter-spacing: -0.075em; }
.section-subtitle { max-width: 37rem; margin-top: 1.25rem; font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.38; }
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 100svh; overflow: hidden; color: var(--paper-bright); background: var(--night); }
.hero-bg { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.66) contrast(1.08) brightness(0.67); transform: scale(1.04); animation: hero-camera 18s var(--ease-editorial) infinite alternate; }
.hero-overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(3, 3, 6, 0.91) 0%, rgba(3, 3, 6, 0.45) 49%, rgba(3, 3, 6, 0.08) 100%), linear-gradient(0deg, rgba(3, 3, 6, 0.96) 0%, transparent 64%); }
.hero-overlay::before, .hero-overlay::after { content: ''; position: absolute; border-radius: 58% 42% 64% 36% / 42% 54% 46% 58%; filter: blur(22px) saturate(1.25); mix-blend-mode: screen; pointer-events: none; }
.hero-overlay::before { top: -18%; right: -5%; width: min(70vw, 67rem); height: 74%; background: linear-gradient(120deg, rgba(119, 89, 255, 0.56), rgba(106, 232, 241, 0.33) 43%, rgba(242, 83, 52, 0.32) 74%, transparent); animation: liquid-orbit 16s ease-in-out infinite alternate; }
.hero-overlay::after { right: 22%; bottom: -38%; width: min(58vw, 58rem); height: 65%; background: radial-gradient(circle at 50% 50%, rgba(255, 181, 87, 0.32), rgba(240, 91, 58, 0.2) 39%, transparent 70%); animation: liquid-orbit 22s ease-in-out -5s infinite alternate-reverse; }
.hero-content { width: min(100%, 100rem); padding: 8rem var(--section-gutter) clamp(4.5rem, 10vh, 7rem); }
.hero-tagline { margin-bottom: 1.25rem; font-family: var(--font-mono); font-size: clamp(0.62rem, 0.9vw, 0.78rem); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid); animation: intro-rise 0.8s var(--ease-editorial) both; }
.hero-title { max-width: 11ch; font-size: var(--display); font-weight: 900; line-height: 0.76; letter-spacing: -0.11em; color: var(--paper-bright); text-wrap: balance; animation: intro-rise 1.2s var(--ease-editorial) 0.1s both; }
.hero-subtitle { max-width: 31rem; margin-top: clamp(1.75rem, 4vw, 3.5rem); font-size: clamp(1.05rem, 1.55vw, 1.4rem); line-height: 1.32; color: rgba(255, 254, 250, 0.78); animation: intro-rise 1.1s var(--ease-editorial) 0.22s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; animation: intro-rise 1.1s var(--ease-editorial) 0.32s both; }
.btn, .filter-btn { --magnet-x: 0px; --magnet-y: 0px; transform: translate(var(--magnet-x), var(--magnet-y)); transition: transform 0.6s var(--ease-editorial), background 0.4s var(--ease-editorial), color 0.4s var(--ease-editorial), border-color 0.4s var(--ease-editorial), opacity 0.4s ease; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.35rem; padding: 0.84rem 1.6rem; border: 1px solid currentColor; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-primary { color: var(--night); background: var(--acid); border-color: var(--acid); }.btn-primary:hover { color: var(--paper-bright); background: var(--violet); border-color: var(--violet); }
.btn-secondary { color: var(--paper-bright); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.5); }.btn-secondary:hover { color: var(--night); background: var(--paper-bright); border-color: var(--paper-bright); }
.scroll-indicator { position: absolute; right: var(--section-gutter); bottom: 2rem; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 50%; font-size: 1.2rem; animation: spin-badge 11s linear infinite; }
.scroll-indicator::after { content: 'SCROLL ·'; position: absolute; inset: -0.35rem; display: grid; place-items: start center; padding-top: 0.1rem; font-family: var(--font-mono); font-size: 0.42rem; font-weight: 700; letter-spacing: 0.12em; }

/* CHAPTER 02 — ORIGIN */
#about { min-height: 100svh; color: var(--ink); background: var(--paper-bright); }
#about::after { content: ''; position: absolute; top: 16%; right: -15%; width: 46vw; height: 46vw; max-width: 42rem; max-height: 42rem; border-radius: 50%; background: radial-gradient(circle, rgba(99, 57, 255, 0.13), transparent 66%); pointer-events: none; }
#about .section-header { max-width: 42rem; }.section-title { position: relative; }.about-grid { display: grid; grid-template-columns: minmax(16rem, 0.88fr) minmax(22rem, 1.12fr); gap: clamp(2.5rem, 8vw, 9rem); align-items: start; max-width: 82rem; }
#about .section-title { font-size: var(--display-small); }
.about-image { position: sticky; top: 7.5rem; overflow: hidden; aspect-ratio: 0.8; background: var(--night); clip-path: polygon(0 0, 100% 0, 100% 91%, 86% 100%, 0 100%); }.about-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(99, 57, 255, 0.42), transparent 48%, rgba(217, 255, 75, 0.24)); mix-blend-mode: color; }.about-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12); }.about-image.no-img::after { display: none; }.about-image.no-img::before { content: '⛷'; position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.about-text h3 { max-width: 12ch; margin-bottom: 1.5rem; font-size: clamp(2rem, 3vw, 3.5rem); line-height: 0.98; letter-spacing: -0.065em; }.about-text p { max-width: 52ch; margin-bottom: 1.35rem; font-size: clamp(1rem, 1.15vw, 1.15rem); color: var(--ink-soft); }
.timeline { display: grid; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line); }.timeline-item { display: grid; grid-template-columns: 5.8rem 1fr; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: padding 0.55s var(--ease-editorial), color 0.35s ease; }.timeline-item:hover { padding-left: 1rem; color: var(--violet); }.timeline-year { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--violet); }.timeline-text { font-size: 0.96rem; }

/* CHAPTER 03 — NUMBERS */
#stats { display: grid; align-content: center; min-height: 100svh; color: var(--paper-bright); background: radial-gradient(60rem 45rem at 92% 0%, rgba(99, 57, 255, 0.42), transparent 65%), radial-gradient(46rem 36rem at 2% 100%, rgba(240, 91, 58, 0.28), transparent 64%), var(--night); }
#stats::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 6px); mask-image: linear-gradient(90deg, transparent, black 40%, transparent); pointer-events: none; }.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 100rem; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }.stat-card { min-height: 15rem; padding: 1.5rem clamp(0.9rem, 2vw, 2rem); border-right: 1px solid var(--line-light); transition: background 0.55s var(--ease-editorial), color 0.55s var(--ease-editorial); }.stat-card:last-child { border-right: 0; }.stat-card:hover { color: var(--night); background: var(--acid); }.stat-number { font-size: clamp(3rem, 7vw, 7.2rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.09em; }.stat-label { max-width: 10ch; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase; }

/* CHAPTER 04 — RESULTS */
#results { background: var(--paper-bright); }#results .section-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; }#results .section-title, #results .section-subtitle { grid-column: 1; }.btn-fis { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: var(--ink); background: transparent; border-color: var(--ink); }.btn-fis:hover { color: var(--paper-bright); background: var(--ink); }
.results-table-wrapper { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }.results-table { width: 100%; min-width: 38rem; border-collapse: collapse; }.results-table th { padding: 0.85rem 0.55rem; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--font-mono); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }.results-table td { padding: 1.2rem 0.55rem; border-bottom: 1px solid var(--line); font-size: clamp(0.88rem, 1.1vw, 1.04rem); }.results-table tbody tr { transition: color 0.35s ease, background 0.35s ease; }.results-table tbody tr:hover { color: var(--paper-bright); background: var(--ink); }.results-table tbody tr:last-child td { border-bottom: 0; }.results-table td:first-child strong { font-weight: 700; letter-spacing: -0.03em; }.result-highlight { display: inline-flex; min-width: 2.65rem; justify-content: center; padding: 0.18rem 0.45rem; color: var(--paper-bright); background: var(--signal); font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; }.badge { display: inline-block; padding: 0.25rem 0.5rem; border: 1px solid currentColor; border-radius: 999px; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }.badge-sprint { color: var(--violet); }.badge-distance { color: var(--ink-soft); }
.goals-box { display: grid; grid-template-columns: minmax(12rem, 0.7fr) minmax(20rem, 1.3fr); gap: 2rem; margin-top: clamp(3rem, 7vw, 7rem); padding-top: 1.2rem; border-top: 1px solid var(--ink); }.goals-box h3 { max-width: 10ch; font-size: clamp(1.6rem, 2.5vw, 2.6rem); line-height: 0.98; letter-spacing: -0.055em; }.goals-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }.goals-list li { position: relative; min-height: 5rem; padding: 0.85rem 0.8rem 0.8rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.9rem; }.goals-list li:nth-child(even) { border-right: 0; }.goals-list li::before { content: '↗'; position: absolute; top: 0.82rem; left: 0; color: var(--violet); font-family: var(--font-mono); font-size: 0.7rem; }

/* CHAPTER 05 — CALENDAR */
#calendar { color: var(--paper-bright); background: radial-gradient(58rem 40rem at 105% 30%, rgba(99, 57, 255, 0.5), transparent 62%), linear-gradient(145deg, #0a0a0b 25%, #19121c 100%); }#calendar .section-subtitle { color: rgba(255, 254, 250, 0.62); }.calendar-list { max-width: 76rem; border-top: 1px solid var(--line-light); }.calendar-item { border-bottom: 1px solid var(--line-light); }.calendar-item summary { display: grid; grid-template-columns: minmax(9rem, 0.35fr) 1fr auto; align-items: center; gap: 1.2rem; padding: 1.5rem 0.2rem; cursor: pointer; list-style: none; transition: padding 0.6s var(--ease-editorial), color 0.4s ease; }.calendar-item summary::-webkit-details-marker { display: none; }.calendar-item summary:hover, .calendar-item[open] summary { padding-left: 1rem; color: var(--acid); }.calendar-dates { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; }.calendar-name { font-size: clamp(1rem, 1.5vw, 1.4rem); font-weight: 600; letter-spacing: -0.035em; }.calendar-location { margin-left: 0.35rem; opacity: 0.54; font-weight: 400; }.calendar-chevron { font-family: var(--font-mono); font-size: 1rem; transition: transform 0.5s var(--ease-editorial); }.calendar-item[open] .calendar-chevron { transform: rotate(180deg); }.calendar-details { margin-left: min(22%, 16rem); padding: 0.15rem 0 1.25rem; }.calendar-race { display: grid; grid-template-columns: 4rem 1fr auto auto; gap: 1rem; padding: 0.7rem 0; border-top: 1px dotted rgba(255, 255, 255, 0.35); color: rgba(255, 254, 250, 0.68); font-size: 0.82rem; }.calendar-race .mono, .calendar-race span:nth-child(2) { color: var(--paper-bright); font-weight: 600; }

/* CHAPTER 06 — EQUIPMENT */
#equipment { color: var(--ink); background: var(--acid); }#equipment::after { content: ''; position: absolute; top: -25%; right: -8%; width: 48rem; height: 48rem; border: 1px solid rgba(11, 11, 12, 0.18); border-radius: 48% 52% 42% 58% / 64% 42% 58% 36%; transform: rotate(22deg); pointer-events: none; }.equipment-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 90rem; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }.equipment-card { min-height: 14rem; padding: 1.35rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: color 0.55s var(--ease-editorial), background 0.55s var(--ease-editorial), transform 0.55s var(--ease-editorial); }.equipment-card:hover { color: var(--paper-bright); background: var(--ink); transform: translateY(-0.5rem); }.equipment-category { margin-bottom: 3.8rem; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }.equipment-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.6rem); line-height: 0.83; letter-spacing: -0.08em; }

/* CHAPTER 07 — GALLERY */
#gallery { color: var(--paper-bright); background: var(--night); }#gallery .section-subtitle { color: rgba(255, 254, 250, 0.62); }.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -2.5rem 0 3.5rem; }.filter-btn { padding: 0.56rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 999px; color: rgba(255, 254, 250, 0.74); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }.filter-btn.active, .filter-btn:hover { color: var(--night); background: var(--paper-bright); border-color: var(--paper-bright); }.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(6rem, 10vw, 11rem); gap: 0.55rem; }.gallery-item { position: relative; grid-column: span 3; grid-row: span 2; overflow: hidden; cursor: zoom-in; background: #222; isolation: isolate; }.gallery-item:nth-child(3n + 1) { grid-column: span 5; grid-row: span 3; }.gallery-item:nth-child(5n) { grid-column: span 4; grid-row: span 2; }.gallery-item:nth-child(7n) { grid-column: span 3; grid-row: span 3; }.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter 0.8s var(--ease-editorial), transform 1.15s var(--ease-editorial); }.gallery-item::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(135deg, rgba(99, 57, 255, 0.32), transparent 40%, rgba(240, 91, 58, 0.28)); mix-blend-mode: screen; opacity: 0; transition: opacity 0.6s var(--ease-editorial); }.gallery-item:hover img { filter: grayscale(0) contrast(1.03); transform: scale(1.08); }.gallery-item:hover::after { opacity: 1; }.gallery-item.is-hidden { display: none; }.gallery-overlay { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 2.7rem 1rem 0.85rem; color: var(--paper-bright); background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0; transform: translateY(0.4rem); transition: opacity 0.5s ease, transform 0.5s var(--ease-editorial); }.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.lightbox { position: fixed; z-index: 500; inset: 0; display: none; align-items: center; justify-content: center; padding: 2rem; background: rgba(0, 0, 0, 0.95); }.lightbox.is-open { display: flex; }.lightbox-content { position: relative; max-width: min(90vw, 72rem); max-height: 84vh; }.lightbox-content img { max-width: 100%; max-height: 84vh; object-fit: contain; }.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; color: var(--paper-bright); font-family: var(--font-mono); }.lightbox-close { top: -2.3rem; right: 0; font-size: 1.6rem; }.lightbox-nav { top: 50%; padding: 1rem; font-size: 2rem; transform: translateY(-50%); }.lightbox-prev { left: 1rem; }.lightbox-next { right: 1rem; }

/* CHAPTER 08 — PARTNERS */
#sponsors { color: var(--ink); background: var(--paper-bright); }#sponsors .section-title { max-width: 8ch; }.sponsor-tier { max-width: 88rem; margin: 0 auto clamp(3rem, 6vw, 6rem); }.sponsor-tier-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }.sponsor-tier-title::after { content: ''; flex: 1; height: 1px; background: var(--ink); opacity: 0.25; }.sponsor-tier--main { --tier: var(--violet); }.sponsor-tier--gold { --tier: var(--signal); }.sponsor-tier--silver { --tier: #7d8188; }.sponsor-tier--bronze { --tier: #af623c; }.sponsor-tier--goenner { --tier: #1c9cac; }.sponsors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }.sponsor-card { min-height: 12rem; padding: 1.35rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: color 0.55s var(--ease-editorial), background 0.55s var(--ease-editorial); }.sponsor-card:hover { color: var(--paper-bright); background: var(--tier); }.sponsor-card--free { display: grid; place-items: center; min-height: 8rem; color: var(--ink-soft); text-align: center; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }.sponsor-logo { font-size: clamp(1.2rem, 1.8vw, 1.7rem); font-weight: 800; letter-spacing: -0.055em; }.sponsor-desc { max-width: 25ch; margin-top: 1rem; color: currentColor; opacity: 0.68; font-size: 0.9rem; }.sponsor-link { display: inline-block; margin-top: 1rem; color: var(--tier); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; }.sponsor-card:hover .sponsor-link { color: var(--paper-bright); }.sponsor-note { max-width: 30rem; margin-top: 1rem; color: var(--ink-soft); font-size: 0.9rem; }

/* CHAPTER 09 — CONTACT + FOOTER */
#contact { min-height: 94svh; display: grid; align-content: center; color: var(--paper-bright); background: radial-gradient(38rem 28rem at 100% 100%, rgba(240, 91, 58, 0.37), transparent 72%), radial-gradient(34rem 32rem at 5% 10%, rgba(99, 57, 255, 0.4), transparent 74%), var(--night); }#contact .section-subtitle { color: rgba(255, 254, 250, 0.68); }.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 90rem; border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }.contact-card { min-height: 14rem; padding: 1.6rem; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); transition: color 0.5s var(--ease-editorial), background 0.5s var(--ease-editorial); }.contact-card:hover { color: var(--night); background: var(--acid); }.contact-icon { margin-bottom: 3.2rem; font-size: 1.4rem; filter: grayscale(1); }.contact-card h3 { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }.contact-card a { display: inline-block; margin-top: 0.45rem; font-size: clamp(0.85rem, 1.35vw, 1.15rem); font-weight: 600; letter-spacing: -0.03em; overflow-wrap: anywhere; }.social-links { margin-top: 2.5rem; }.social-links .btn-primary { background: var(--paper-bright); border-color: var(--paper-bright); }.social-links .btn-primary:hover { background: var(--acid); border-color: var(--acid); }.footer { padding: 1.6rem var(--section-gutter) 2.1rem; color: rgba(255, 254, 250, 0.6); background: var(--night); border-top: 1px solid var(--line-light); font-family: var(--font-mono); font-size: 0.59rem; line-height: 1.45; letter-spacing: 0.04em; }

/* SHARED MOTION */
.reveal { opacity: 0; transform: translateY(2.8rem); transition: opacity 1s var(--ease-editorial), transform 1s var(--ease-editorial); }.reveal.is-visible { opacity: 1; transform: translateY(0); }.chapter .section-header { opacity: 0; transform: translateY(1.8rem); transition: opacity 1s var(--ease-editorial), transform 1s var(--ease-editorial); }.chapter.is-active .section-header { opacity: 1; transform: translateY(0); }
@keyframes intro-rise { from { opacity: 0; transform: translateY(2.2rem); } to { opacity: 1; transform: translateY(0); } }@keyframes hero-camera { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); } }@keyframes liquid-orbit { from { transform: translate3d(-3%, -2%, 0) rotate(-10deg) scale(0.96); } to { transform: translate3d(5%, 6%, 0) rotate(15deg) scale(1.1); } }@keyframes spin-badge { to { transform: rotate(360deg); } }

@media (max-width: 1080px) { .navbar { grid-template-columns: auto 1fr auto; }.nav-links { gap: 0.72rem; font-size: 0.53rem; }.about-grid { grid-template-columns: minmax(14rem, 0.75fr) minmax(20rem, 1.25fr); gap: 3.5rem; }.gallery-grid { grid-auto-rows: 8rem; } }
@media (max-width: 760px) {
  html { scroll-snap-type: none; }.navbar { min-height: 4.5rem; padding: 0.7rem 1.25rem; }.nav-links { display: none; }.hamburger { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; width: 2.1rem; padding: 0.4rem 0; }.hamburger span { display: block; width: 1.65rem; height: 1px; background: currentColor; transition: transform 0.45s var(--ease-editorial), opacity 0.25s ease; }.hamburger span:nth-child(2) { width: 1.15rem; }.hamburger.is-open span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }.hamburger.is-open span:nth-child(2) { opacity: 0; }.hamburger.is-open span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }.navbar.menu-open .nav-links { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 0; padding: 0 1.25rem 1.25rem; color: var(--ink); background: var(--paper-bright); border-bottom: 1px solid var(--line); }.navbar.menu-open .nav-links li { border-bottom: 1px solid var(--line); }.navbar.menu-open .nav-links a { padding: 0.9rem 0; font-size: 0.65rem; }.navbar:not(.is-scrolled).menu-open { color: var(--ink); background: var(--paper-bright); }.lang-switch { justify-self: end; margin-left: auto; margin-right: 0.55rem; }.page-progress { right: 0.75rem; bottom: 0.75rem; }.page-progress__line { height: 2.8rem; }
  .section { padding: 6.5rem 1.25rem; }.section::before { top: 5.25rem; right: 1.25rem; }.hero-content { padding: 7rem 1.25rem 5rem; }.hero-title { font-size: clamp(3rem, 13.6vw, 4.8rem); line-height: 0.79; }.hero-subtitle { max-width: 22rem; }.scroll-indicator { right: 1.25rem; bottom: 1.2rem; }
  #about { min-height: auto; }.about-grid { grid-template-columns: 1fr; gap: 2.3rem; }.about-image { position: relative; top: 0; max-width: 31rem; aspect-ratio: 1.1; }.about-text h3 { max-width: 14ch; }.timeline-item { grid-template-columns: 4.5rem 1fr; }
  #stats { min-height: auto; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.stat-card { min-height: 10.5rem; border-bottom: 1px solid var(--line-light); }.stat-card:nth-child(2) { border-right: 0; }.stat-card:nth-child(3) { border-bottom: 0; }.stat-number { font-size: clamp(3.5rem, 15vw, 5.4rem); }
  #results .section-header { display: block; }.btn-fis { margin-top: 1.5rem; }.goals-box { grid-template-columns: 1fr; }.goals-list { grid-template-columns: 1fr; }.goals-list li { border-right: 0; min-height: auto; }
  .calendar-item summary { grid-template-columns: 1fr auto; gap: 0.5rem; }.calendar-dates { grid-column: 1; }.calendar-name { grid-column: 1 / -1; grid-row: 2; }.calendar-chevron { grid-column: 2; grid-row: 1; }.calendar-details { margin-left: 0; }.calendar-race { grid-template-columns: 3.1rem 1fr; gap: 0.25rem 0.65rem; }.calendar-race span:nth-child(3), .calendar-race span:nth-child(4) { grid-column: 2; font-size: 0.72rem; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }.equipment-card { min-height: 10rem; }.equipment-category { margin-bottom: 2rem; }.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8.3rem; gap: 0.35rem; }.gallery-item, .gallery-item:nth-child(3n + 1), .gallery-item:nth-child(5n), .gallery-item:nth-child(7n) { grid-column: span 1; grid-row: span 1; }.gallery-item:nth-child(3n + 1) { grid-column: span 2; grid-row: span 2; }.gallery-overlay { opacity: 1; transform: none; font-size: 0.55rem; }.sponsors-grid { grid-template-columns: 1fr; }.sponsor-card { min-height: 9rem; }.contact-grid { grid-template-columns: 1fr; }.contact-card { min-height: 10rem; }.contact-icon { margin-bottom: 1.9rem; }
}
@media (hover: none) { body::before { display: none; }.gallery-item img { filter: grayscale(0) contrast(1.03); }.gallery-overlay { opacity: 1; transform: none; } }

/* ========================================================================
   SECOND PASS — DUSK / RACE ENERGY
   Keep the presentation dark, preserve image reality and make each chapter
   feel like a deliberate scene rather than a light content page.
   ======================================================================== */

/* The persistent page marker remains; chapter numbers are intentionally removed. */
.section::before { display: none; }

/* HERO — more of the original racing image, with only a restrained liquid light. */
.hero-bg { filter: saturate(1.03) contrast(1.04) brightness(0.82); }
.hero-overlay { background: linear-gradient(90deg, rgba(3, 3, 6, 0.8) 0%, rgba(3, 3, 6, 0.34) 48%, rgba(3, 3, 6, 0.08) 100%), linear-gradient(0deg, rgba(3, 3, 6, 0.82) 0%, transparent 58%); }
.hero-overlay::before, .hero-overlay::after { filter: blur(26px) saturate(1.1); opacity: 0.72; }
.hero-overlay::before { background: linear-gradient(120deg, rgba(99, 57, 255, 0.38), rgba(106, 232, 241, 0.22) 46%, rgba(242, 83, 52, 0.16) 74%, transparent); }
.hero-overlay::after { background: radial-gradient(circle at 50% 50%, rgba(165, 237, 241, 0.18), rgba(99, 57, 255, 0.16) 42%, transparent 70%); }
.hero-title { max-width: 12ch; line-height: 0.83; letter-spacing: -0.068em; }

/* ORIGIN — original portrait colours set against a midnight-violet chapter. */
#about { color: var(--paper-bright); background: radial-gradient(52rem 38rem at 100% 0%, rgba(99, 57, 255, 0.4), transparent 66%), linear-gradient(145deg, #09090a 8%, #191027 100%); }
#about::after { background: radial-gradient(circle, rgba(217, 255, 75, 0.12), transparent 66%); }
#about .section-subtitle, .about-text p { color: rgba(255, 254, 250, 0.7); }
.about-image { background: #17131a; clip-path: polygon(0 0, 100% 0, 100% 96%, 92% 100%, 0 100%); }
.about-image::after { background: linear-gradient(145deg, rgba(99, 57, 255, 0.12), transparent 52%, rgba(217, 255, 75, 0.08)); mix-blend-mode: soft-light; }
.about-image img { filter: saturate(1.03) contrast(1.02); }
.timeline { border-color: var(--line-light); }
.timeline-item { border-color: var(--line-light); }
.timeline-item:hover { color: var(--acid); }
.timeline-year { color: var(--acid); }

/* RESULTS — a racing-night field, with goals becoming an interactive route. */
#results { color: var(--paper-bright); background: radial-gradient(56rem 38rem at 90% 8%, rgba(240, 91, 58, 0.28), transparent 66%), radial-gradient(48rem 36rem at 5% 110%, rgba(99, 57, 255, 0.36), transparent 64%), #130d10; }
#results .section-subtitle { color: rgba(255, 254, 250, 0.68); }
#results .btn-fis { color: var(--paper-bright); border-color: rgba(255, 255, 255, 0.64); }
#results .btn-fis:hover { color: var(--night); background: var(--acid); border-color: var(--acid); }
.results-table-wrapper { border-color: rgba(255, 255, 255, 0.72); }
.results-table th, .results-table td { border-color: var(--line-light); }
.results-table tbody tr:hover { color: var(--night); background: var(--acid); }
.badge-sprint { color: var(--violet-soft); }.badge-distance { color: rgba(255, 254, 250, 0.68); }
.goals-box { display: block; margin-top: clamp(4rem, 8vw, 8rem); padding-top: 0; border: 0; }
.goals-box h3 { max-width: none; margin-bottom: 2rem; font-size: clamp(2rem, 4vw, 4.25rem); }
.goals-list { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14.5rem, 1fr); grid-template-columns: none; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 2.1rem 0 1.4rem; border: 0; counter-reset: route; scrollbar-color: rgba(255, 255, 255, 0.46) transparent; scroll-snap-type: x proximity; }
.goals-list::before { content: ''; position: absolute; top: 3rem; right: 0; left: 0; height: 1px; background: rgba(255, 255, 255, 0.4); }
.goals-list li { min-height: 12rem; padding: 3.8rem 1.25rem 1rem 0; border: 0; color: rgba(255, 254, 250, 0.7); font-size: clamp(0.94rem, 1.15vw, 1.08rem); line-height: 1.35; scroll-snap-align: start; transition: color 0.45s var(--ease-editorial), transform 0.55s var(--ease-editorial); counter-increment: route; cursor: default; }
.goals-list li::before { content: counter(route, decimal-leading-zero); top: 0; left: 0; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border: 1px solid rgba(255, 255, 255, 0.68); border-radius: 50%; color: var(--paper-bright); background: #130d10; font-size: 0.57rem; letter-spacing: 0.04em; transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease-editorial); }
.goals-list li::after { content: 'ESPLORA'; position: absolute; bottom: 0.45rem; left: 0; color: var(--acid); font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0; transform: translateY(-0.35rem); transition: opacity 0.35s ease, transform 0.45s var(--ease-editorial); }
.goals-list li strong { color: var(--acid); font-family: var(--font-mono); font-size: 1.14em; font-weight: 800; white-space: nowrap; }
.goals-list li:hover, .goals-list li:focus-visible { z-index: 1; color: var(--paper-bright); outline: none; transform: translateY(-0.6rem); }
.goals-list li:hover::before, .goals-list li:focus-visible::before { color: var(--night); background: var(--acid); border-color: var(--acid); transform: scale(1.15); }
.goals-list li:hover::after, .goals-list li:focus-visible::after { opacity: 1; transform: translateY(0); }

@media (min-width: 1100px) {
  .goals-list { grid-auto-flow: initial; grid-auto-columns: initial; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow-x: visible; }
}

/* PARTNERS — centered tiers on a dark gallery wall. */
#sponsors { color: var(--paper-bright); background: radial-gradient(42rem 30rem at 50% 0%, rgba(99, 57, 255, 0.34), transparent 70%), linear-gradient(140deg, #0b0b0d, #171015); }
#sponsors .section-header { margin-right: auto; margin-left: auto; text-align: center; }
#sponsors .section-title { max-width: none; }.sponsor-tier { max-width: 82rem; }
.sponsor-tier-title { justify-content: center; color: rgba(255, 254, 250, 0.72); }
.sponsor-tier-title::before, .sponsor-tier-title::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.28); }
.sponsors-grid { justify-content: center; border: 0; gap: 0.65rem; }
.sponsor-tier--main .sponsors-grid, .sponsor-tier--gold .sponsors-grid, .sponsor-tier--silver .sponsors-grid { grid-template-columns: minmax(0, 27rem); }
.sponsor-tier--bronze .sponsors-grid { grid-template-columns: repeat(2, minmax(0, 23rem)); }
.sponsor-tier--goenner .sponsors-grid { grid-template-columns: repeat(3, minmax(0, 20rem)); }
.sponsor-card { display: flex; flex-direction: column; align-items: center; min-height: 12.5rem; padding: 1.6rem; border: 1px solid rgba(255, 255, 255, 0.28); text-align: center; background: rgba(255, 255, 255, 0.035); }
.sponsor-card--free { min-height: 8.5rem; color: rgba(255, 254, 250, 0.65); }
.sponsor-logo { max-width: 16ch; }.sponsor-desc { margin-right: auto; margin-left: auto; }.sponsor-link { margin-top: auto; }
.sponsor-note { margin-right: auto; margin-left: auto; color: rgba(255, 254, 250, 0.62); text-align: center; }

/* FINAL CHAPTER — keep the sponsorship PDF explicitly centered. */
.social-links { display: flex; justify-content: center; }

@media (max-width: 760px) {
  .hero-title { max-width: 11ch; letter-spacing: -0.055em; line-height: 0.85; }
  .goals-list { grid-auto-columns: minmax(13.5rem, 82vw); margin-right: -1.25rem; padding-right: 1.25rem; }
  .sponsor-tier--main .sponsors-grid, .sponsor-tier--gold .sponsors-grid, .sponsor-tier--silver .sponsors-grid, .sponsor-tier--bronze .sponsors-grid, .sponsor-tier--goenner .sponsors-grid { grid-template-columns: minmax(0, 1fr); }
  .sponsor-tier-title::before, .sponsor-tier-title::after { max-width: 2.5rem; }
  .social-links { margin-top: 2.5rem; }
}

/* ========================================================================
   GAME LOBBY — one continuous place, not a vertical presentation.
   ======================================================================== */
html:has(body.lobby-mode) { scroll-snap-type: none; overflow: hidden; background: #07090e; }
body.lobby-mode { overflow: hidden; color: var(--paper-bright); background: #07090e; }
body.lobby-mode::before { z-index: 4; background: radial-gradient(42rem circle at var(--pointer-x) var(--pointer-y), rgba(88, 116, 255, 0.14), transparent 66%); }
body.lobby-mode::after { z-index: 5; opacity: 0.16; mix-blend-mode: screen; }
body.lobby-mode .page-progress,
body.lobby-mode .footer,
body.lobby-mode .scroll-indicator { display: none; }
body.lobby-mode .story { position: relative; z-index: 10; min-height: 100svh; }
body.lobby-mode .navbar { z-index: 300; color: var(--paper-bright); background: linear-gradient(180deg, rgba(5, 7, 12, 0.68), transparent); border: 0; }
body.lobby-mode .navbar.is-scrolled { color: var(--paper-bright); background: linear-gradient(180deg, rgba(5, 7, 12, 0.82), rgba(5, 7, 12, 0.18)); backdrop-filter: none; }
body.lobby-mode .navbar .lang-btn.active { color: var(--acid); }

/* The home environment stays in place; content opens above it. */
body.lobby-mode .hero { position: fixed; z-index: 10; inset: 0; display: block; min-height: 100svh; height: 100svh; }
body.lobby-mode .hero-bg { filter: saturate(0.88) contrast(1.08) brightness(0.55); animation-duration: 28s; }
body.lobby-mode .hero-overlay { background: linear-gradient(180deg, rgba(5, 7, 12, 0.42), rgba(5, 7, 12, 0.92)); }
body.lobby-mode .hero-overlay::before { top: -20%; right: -12%; opacity: 0.7; background: radial-gradient(circle at 50% 50%, rgba(104, 78, 255, 0.4), transparent 67%); }
body.lobby-mode .hero-overlay::after { right: 16%; bottom: -42%; opacity: 0.54; background: radial-gradient(circle at 50% 50%, rgba(165, 237, 241, 0.24), transparent 68%); }
body.lobby-mode .hero-content { position: relative; min-height: 100svh; padding: clamp(7.2rem, 14vh, 10rem) var(--section-gutter) clamp(3rem, 8vh, 6rem); }
body.lobby-mode .hero-title { max-width: 10ch; font-size: clamp(4.2rem, 10vw, 10.5rem); line-height: 0.84; }
body.lobby-mode .hero-subtitle { max-width: 27rem; }

.lobby-nodes { position: absolute; z-index: 4; top: clamp(7rem, 14vh, 10rem); right: var(--section-gutter); display: grid; grid-template-columns: repeat(2, minmax(7.75rem, 11rem)); gap: 0.55rem; width: min(29vw, 22rem); }
.lobby-node { position: relative; display: grid; grid-template-columns: 1.85rem 1fr; align-items: center; min-height: 3.45rem; padding: 0.55rem 0.7rem; overflow: hidden; color: rgba(255, 254, 250, 0.74); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 0.35rem; text-align: left; background: rgba(8, 10, 17, 0.3); backdrop-filter: blur(9px); transition: color 0.35s ease, background 0.45s var(--ease-editorial), border-color 0.35s ease, transform 0.45s var(--ease-editorial); }
.lobby-node::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 70%); opacity: 0; transform: translateX(-100%); transition: opacity 0.35s ease, transform 0.75s var(--ease-editorial); }
.lobby-node span { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.08em; color: var(--acid); }.lobby-node b { font-family: var(--font-mono); font-size: 0.59rem; letter-spacing: 0.07em; text-transform: uppercase; }
.lobby-node:hover, .lobby-node:focus-visible, .lobby-node.is-selected { color: var(--night); border-color: var(--acid); background: var(--acid); transform: translateY(-0.22rem); outline: none; }.lobby-node:hover span, .lobby-node:focus-visible span, .lobby-node.is-selected span { color: var(--signal); }.lobby-node:hover::after, .lobby-node:focus-visible::after { opacity: 1; transform: translateX(100%); }
.lobby-node--stats { transform: translateX(-1.1rem); }.lobby-node--calendar { transform: translateX(1.1rem); }.lobby-node--gallery { transform: translateX(-0.65rem); }.lobby-node--contact { transform: translateX(0.65rem); }
.lobby-node--stats:hover, .lobby-node--stats:focus-visible, .lobby-node--calendar:hover, .lobby-node--calendar:focus-visible, .lobby-node--gallery:hover, .lobby-node--gallery:focus-visible, .lobby-node--contact:hover, .lobby-node--contact:focus-visible { transform: translateY(-0.22rem); }

/* A panel is a destination within the lobby, never the next slide. */
body.lobby-mode .chapter:not(.chapter--hero) { position: fixed; z-index: 100; inset: 0; display: block; height: 100svh; min-height: 0; padding: clamp(7.75rem, 12vh, 10rem) var(--section-gutter) clamp(3.5rem, 7vh, 6rem); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; pointer-events: none; opacity: 0; color: var(--paper-bright); background: linear-gradient(135deg, rgba(6, 9, 15, 0.97), rgba(11, 14, 25, 0.94)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transform: translate3d(0, 1.6rem, 0) scale(0.98); transition: visibility 0s linear 0.7s, opacity 0.42s ease, transform 0.7s var(--ease-editorial); }
body.lobby-mode .chapter:not(.chapter--hero)::after { content: ''; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(58rem 44rem at 78% 16%, rgba(99, 57, 255, 0.26), transparent 67%), radial-gradient(42rem 32rem at 18% 96%, rgba(165, 237, 241, 0.14), transparent 66%); }
body.lobby-mode .chapter.is-lobby-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translate3d(0, 0, 0) scale(1); transition-delay: 0s; }
body.lobby-mode .chapter .section-header { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
body.lobby-mode .chapter .section-subtitle,
body.lobby-mode .about-text p,
body.lobby-mode .sponsor-note { color: rgba(255, 254, 250, 0.7); }
body.lobby-mode .reveal { opacity: 1; transform: none; }
.lobby-return { position: fixed; z-index: 120; top: 1.35rem; right: var(--section-gutter); display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.58rem 0.7rem; color: rgba(255, 254, 250, 0.74); border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 999px; font-family: var(--font-mono); font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(5, 7, 12, 0.55); backdrop-filter: blur(12px); transition: color 0.35s ease, background 0.35s ease, transform 0.4s var(--ease-editorial); }.lobby-return:hover, .lobby-return:focus-visible { color: var(--night); background: var(--acid); border-color: var(--acid); transform: translateX(-0.2rem); outline: none; }

/* All destinations share one ambient night; only the content changes. */
body.lobby-mode #about,
body.lobby-mode #stats,
body.lobby-mode #results,
body.lobby-mode #calendar,
body.lobby-mode #equipment,
body.lobby-mode #gallery,
body.lobby-mode #sponsors,
body.lobby-mode #contact { color: var(--paper-bright); background: linear-gradient(135deg, rgba(6, 9, 15, 0.97), rgba(11, 14, 25, 0.94)); }
body.lobby-mode .results-table-wrapper { border-color: rgba(255, 255, 255, 0.6); }body.lobby-mode .results-table th, body.lobby-mode .results-table td { border-color: var(--line-light); }body.lobby-mode .btn-fis { color: var(--paper-bright); border-color: rgba(255, 255, 255, 0.62); }
body.lobby-mode .stats-grid, body.lobby-mode .contact-grid { border-color: var(--line-light); }body.lobby-mode .stat-card, body.lobby-mode .contact-card { border-color: var(--line-light); }
body.lobby-mode .sponsor-card { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.035); }body.lobby-mode .sponsor-tier-title::before, body.lobby-mode .sponsor-tier-title::after { background: rgba(255, 255, 255, 0.28); }

/* The aerial view belongs only to the final moment of the personal story. */
.origin-escape { position: relative; width: min(100%, 86rem); height: clamp(20rem, 52vw, 42rem); margin: clamp(4rem, 9vw, 10rem) auto 0; overflow: hidden; background: var(--night); }.origin-escape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 13, 0.1), rgba(6, 8, 13, 0.55)); pointer-events: none; }.origin-escape img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2.2s var(--ease-editorial), filter 1.5s ease; filter: saturate(0.85) contrast(1.06); }.origin-escape figcaption { position: absolute; z-index: 1; right: clamp(1rem, 3vw, 3rem); bottom: clamp(1rem, 3vw, 3rem); color: var(--paper-bright); font-family: var(--font-mono); font-size: clamp(0.65rem, 1vw, 0.85rem); font-weight: 700; letter-spacing: 0.24em; }.origin-escape:hover img { transform: scale(1.02); filter: saturate(1.03) contrast(1.03); }
body.lobby-mode #about.is-lobby-open .origin-escape { animation: poschiavo-arrival 1.1s var(--ease-editorial) both; }

/* User-supplied equipment becomes a floating product gallery. */
body.lobby-mode .equipment-grid--showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 96rem; border: 0; gap: 0.7rem; }
body.lobby-mode .equipment-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(18rem, 33vw, 28rem); padding: clamp(1rem, 2vw, 1.65rem); overflow: hidden; color: var(--paper-bright); border: 1px solid rgba(255, 255, 255, 0.25); text-align: left; background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015)); transform: none; }.equipment-card::after { content: ''; position: absolute; right: 9%; bottom: 4.2rem; left: 9%; height: 1.5rem; border-radius: 50%; background: rgba(0, 0, 0, 0.56); filter: blur(0.75rem); opacity: 0; transition: opacity 0.5s ease, transform 0.5s var(--ease-editorial); }.equipment-card--product { cursor: pointer; perspective: 800px; }.equipment-card--product:hover, .equipment-card--product:focus-visible { color: var(--paper-bright); border-color: var(--acid); background: linear-gradient(155deg, rgba(217, 255, 75, 0.16), rgba(99, 57, 255, 0.12)); outline: none; transform: none; }.equipment-card--product:hover::after, .equipment-card--product:focus-visible::after { opacity: 1; transform: scaleX(1.18); }
.equipment-copy { position: relative; z-index: 2; display: grid; gap: 0.45rem; }.equipment-copy .equipment-category { margin: 0; color: var(--acid); }.equipment-copy strong { font-size: clamp(1.35rem, 2.3vw, 2.5rem); line-height: 0.88; letter-spacing: -0.075em; }.product-float { position: absolute; z-index: 1; inset: 1rem 0 4.6rem; display: grid; place-items: center; transform-style: preserve-3d; transition: transform 0.65s var(--ease-editorial); transform: rotateX(var(--product-rx, 0deg)) rotateY(var(--product-ry, 0deg)); }.product-float img { width: 124%; max-width: none; max-height: 88%; object-fit: contain; filter: drop-shadow(0 1.15rem 1rem rgba(0, 0, 0, 0.48)); animation: product-float 5.8s ease-in-out infinite alternate; }.product-float--ski img { transform: rotate(-12deg) scale(1.04); }.product-float--poles img { width: 132%; transform: rotate(-16deg) scale(1.12); }
.gear-inspector { position: fixed; z-index: 240; inset: 0; display: grid; grid-template-rows: 1fr auto; visibility: hidden; align-items: center; justify-items: center; padding: 5.5rem var(--section-gutter) 2rem; opacity: 0; pointer-events: none; color: var(--paper-bright); background: rgba(4, 6, 10, 0.94); backdrop-filter: blur(22px); transition: visibility 0s linear 0.45s, opacity 0.45s ease; }.gear-inspector.is-open { visibility: visible; pointer-events: auto; opacity: 1; transition-delay: 0s; }.gear-inspector__stage { position: relative; display: grid; place-items: center; width: min(92vw, 76rem); height: min(68vh, 44rem); overflow: hidden; }.gear-inspector__stage::after { content: ''; position: absolute; bottom: 8%; width: min(38rem, 72%); height: 2.4rem; border-radius: 50%; background: rgba(0, 0, 0, 0.7); filter: blur(1.25rem); }.gear-inspector__image { position: absolute; z-index: 1; width: min(94%, 68rem); max-height: 84%; object-fit: contain; filter: drop-shadow(0 2rem 1.65rem rgba(0, 0, 0, 0.72)); opacity: 0; transform: scale(0.86) rotate(-10deg); transition: opacity 0.55s ease, transform 0.85s var(--ease-editorial); }.gear-inspector[data-gear="ski"] .gear-inspector__image--ski, .gear-inspector[data-gear="poles"] .gear-inspector__image--poles { opacity: 1; transform: scale(1) rotate(-4deg); }.gear-inspector[data-gear="poles"] .gear-inspector__image--poles { width: min(90%, 58rem); }.gear-inspector__label { z-index: 2; align-self: end; margin-bottom: 0.5rem; color: var(--acid); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.17em; }.gear-inspector__close { position: absolute; z-index: 3; top: 1.1rem; right: var(--section-gutter); width: 2.8rem; height: 2.8rem; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: var(--paper-bright); font-size: 1.7rem; transition: color 0.3s ease, background 0.3s ease; }.gear-inspector__close:hover, .gear-inspector__close:focus-visible { color: var(--night); background: var(--acid); outline: none; }

@keyframes poschiavo-arrival { from { opacity: 0; transform: translateY(3rem) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes product-float { from { translate: 0 -0.35rem; } to { translate: 0 0.75rem; } }

@media (max-width: 860px) {
  .lobby-nodes { top: auto; right: 1.25rem; bottom: 1.25rem; left: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto; }.lobby-node { grid-template-columns: 1fr; min-height: 3.2rem; text-align: center; }.lobby-node span { display: none; }.lobby-node b { font-size: 0.5rem; }.lobby-node--stats, .lobby-node--calendar, .lobby-node--gallery, .lobby-node--contact { transform: none; }
  body.lobby-mode .hero-content { padding-bottom: 13.5rem; }.lobby-return { top: 4.8rem; }
  body.lobby-mode .equipment-grid--showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }.equipment-card { min-height: 17rem; }.product-float { inset-bottom: 4.2rem; }.product-float img { width: 116%; }.product-float--poles img { width: 128%; }
}
@media (max-width: 560px) {
  body.lobby-mode .navbar { min-height: 4.5rem; }.lobby-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.38rem; }.lobby-node { min-height: 2.75rem; }.lobby-node b { font-size: 0.52rem; }.lobby-return { top: 4.9rem; right: 1.25rem; }.origin-escape { height: 20rem; margin-top: 3.5rem; }
  body.lobby-mode .chapter:not(.chapter--hero) { padding: 8rem 1.25rem 3rem; }.gear-inspector { padding-right: 1.25rem; padding-left: 1.25rem; }.gear-inspector__stage { height: 58vh; }
}

/* ========================================================================
   FLUID LOBBY — the interface is formed by currents, bubbles and puddles,
   never a grid of hard rectangular cards.
   ======================================================================== */
body.lobby-mode {
  --liquid-edge: 48% 52% 43% 57% / 42% 46% 54% 58%;
  --liquid-edge-alt: 58% 42% 55% 45% / 44% 57% 43% 56%;
}
body.lobby-mode .hero-overlay::before,
body.lobby-mode .hero-overlay::after { filter: blur(30px) saturate(1.4); }
body.lobby-mode .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 47%;
  right: 28%;
  width: clamp(9rem, 18vw, 18rem);
  height: clamp(6rem, 14vw, 14rem);
  border: 1px solid rgba(217, 255, 75, 0.28);
  border-radius: 58% 42% 57% 43% / 47% 57% 43% 53%;
  box-shadow: inset 0 0 2.8rem rgba(104, 78, 255, 0.18), 0 0 4rem rgba(104, 78, 255, 0.12);
  opacity: 0.72;
  transform: rotate(-17deg);
  animation: liquid-membrane 13s ease-in-out infinite alternate;
  pointer-events: none;
}

/* The portal buttons look like small pools of light instead of UI tiles. */
.lobby-nodes { gap: 0.72rem; }
.lobby-node {
  min-height: 3.75rem;
  border-radius: var(--liquid-edge);
  border-color: rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.17), transparent 24%),
    radial-gradient(circle at 82% 86%, rgba(100, 74, 255, 0.22), transparent 44%),
    rgba(8, 10, 17, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0.9rem 2rem rgba(0, 0, 0, 0.16);
}
.lobby-node:nth-child(2n) { border-radius: var(--liquid-edge-alt); }
.lobby-node::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 2.1rem;
  height: 2.1rem;
  right: -0.6rem;
  top: -0.65rem;
  border-radius: 60% 40% 54% 46% / 42% 58% 42% 58%;
  background: rgba(165, 237, 241, 0.18);
  filter: blur(0.15rem);
  transition: transform 0.55s var(--ease-editorial), background 0.4s ease;
}
.lobby-node:hover,
.lobby-node:focus-visible,
.lobby-node.is-selected {
  border-radius: 62% 38% 52% 48% / 48% 62% 38% 52%;
  box-shadow: 0 0.9rem 2.8rem rgba(217, 255, 75, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.lobby-node:hover::before,
.lobby-node:focus-visible::before { background: rgba(240, 91, 58, 0.3); transform: scale(1.65) translate(-0.15rem, 0.15rem); }

/* One ambient current crosses every destination so opening a portal feels
   like moving through the same place rather than changing presentation slide. */
body.lobby-mode .chapter:not(.chapter--hero)::before {
  content: '';
  position: fixed;
  z-index: -1;
  width: min(52vw, 48rem);
  height: min(46vw, 43rem);
  right: -16vw;
  bottom: -22vw;
  border-radius: 44% 56% 51% 49% / 59% 42% 58% 41%;
  background: radial-gradient(circle at 35% 35%, rgba(104, 78, 255, 0.22), rgba(66, 51, 164, 0.08) 45%, transparent 70%);
  filter: blur(9px);
  opacity: 0.86;
  animation: liquid-current 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Interactive equipment becomes a display pod with a soft uneven perimeter. */
body.lobby-mode .equipment-grid--showcase { gap: 1rem; }
body.lobby-mode .equipment-card {
  isolation: isolate;
  border-radius: 48% 52% 43% 57% / 38% 44% 56% 62%;
  border-color: rgba(255, 255, 255, 0.29);
  background:
    radial-gradient(circle at 24% 19%, rgba(255, 255, 255, 0.15), transparent 18%),
    radial-gradient(circle at 74% 74%, rgba(104, 78, 255, 0.22), transparent 48%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1.1rem 3.2rem rgba(0, 0, 0, 0.19);
}
body.lobby-mode .equipment-card:nth-child(even) { border-radius: 55% 45% 57% 43% / 53% 39% 61% 47%; }
body.lobby-mode .equipment-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -28%;
  left: -18%;
  width: 70%;
  height: 54%;
  border-radius: 56% 44% 52% 48% / 45% 57% 43% 55%;
  background: rgba(217, 255, 75, 0.095);
  filter: blur(0.3rem);
  transition: transform 0.8s var(--ease-editorial), background 0.5s ease;
}
body.lobby-mode .equipment-card:hover,
body.lobby-mode .equipment-card:focus-visible {
  border-radius: 61% 39% 49% 51% / 43% 60% 40% 57%;
  box-shadow: 0 1.7rem 3.8rem rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
body.lobby-mode .equipment-card:hover::before,
body.lobby-mode .equipment-card:focus-visible::before { background: rgba(240, 91, 58, 0.18); transform: scale(1.35) translate(0.7rem, 0.75rem); }

/* Partner and contact content remains deliberately restrained, but no longer
   lives in a rigid spreadsheet grid. */
body.lobby-mode .sponsors-grid,
body.lobby-mode .contact-grid { border: 0; gap: 0.9rem; }
body.lobby-mode .sponsor-card,
body.lobby-mode .contact-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 54% 46% 49% 51% / 42% 57% 43% 58%;
  background:
    radial-gradient(circle at 78% 22%, rgba(165, 237, 241, 0.13), transparent 27%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0.9rem 2.8rem rgba(0, 0, 0, 0.14);
}
body.lobby-mode .sponsor-card:nth-child(3n + 2),
body.lobby-mode .contact-card:nth-child(2n) { border-radius: 45% 55% 58% 42% / 57% 42% 58% 43%; }
body.lobby-mode .sponsor-card:hover,
body.lobby-mode .contact-card:hover {
  border-radius: 61% 39% 48% 52% / 46% 60% 40% 54%;
  box-shadow: 0 1.35rem 3.4rem rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.lobby-mode .contact-card:hover { background: var(--acid); }
body.lobby-mode .sponsor-card--free { min-height: 9rem; }

body.lobby-mode .origin-escape {
  border-radius: 55% 45% 48% 52% / 42% 58% 42% 58%;
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.28);
}
body.lobby-mode .gear-inspector__stage {
  border-radius: 51% 49% 43% 57% / 44% 57% 43% 56%;
  background: radial-gradient(circle at 50% 42%, rgba(104, 78, 255, 0.17), transparent 54%);
}

@keyframes liquid-current {
  0% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); border-radius: 44% 56% 51% 49% / 59% 42% 58% 41%; }
  100% { transform: translate3d(-7vw, -5vh, 0) rotate(13deg) scale(1.13); border-radius: 57% 43% 46% 54% / 43% 59% 41% 57%; }
}
@keyframes liquid-membrane {
  0% { border-radius: 58% 42% 57% 43% / 47% 57% 43% 53%; transform: rotate(-17deg) translate3d(0, 0, 0); }
  100% { border-radius: 42% 58% 47% 53% / 60% 43% 57% 40%; transform: rotate(13deg) translate3d(1.5rem, -1rem, 0); }
}

@media (max-width: 860px) {
  .lobby-nodes { gap: 0.48rem; }
  .lobby-node { min-height: 3.25rem; border-radius: 1.65rem 1.2rem 1.5rem 1.35rem; }
  body.lobby-mode .equipment-grid--showcase { gap: 0.68rem; }
  body.lobby-mode .equipment-card { border-radius: 2.4rem 1.65rem 2.2rem 1.8rem; }
  body.lobby-mode .sponsors-grid,
  body.lobby-mode .contact-grid { gap: 0.7rem; }
  body.lobby-mode .sponsor-card,
  body.lobby-mode .contact-card { border-radius: 2.5rem 1.6rem 2.3rem 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.lobby-mode .hero::after,
  body.lobby-mode .chapter:not(.chapter--hero)::before { animation: none; }
}

/* ========================================================================
   HERO PORTRAIT — a calm editorial stage with Fabrizio in the foreground.
   The reference is the central, collectible-card composition: the person is
   real, cut out from the supplied race photograph, not an AI-made athlete.
   ======================================================================== */
body.lobby-mode .hero {
  display: block;
  background: #07090e;
}
body.lobby-mode .hero-bg {
  filter: saturate(0.5) contrast(1.04) brightness(0.43) blur(9px);
  opacity: 0.62;
  transform: scale(1.12);
}
body.lobby-mode .hero-overlay {
  background:
    radial-gradient(ellipse at 50% 49%, rgba(43, 57, 116, 0.2), transparent 44%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.06) 0%, rgba(4, 6, 10, 0.31) 69%, rgba(4, 6, 10, 0.82) 100%);
}
body.lobby-mode .hero-overlay::before {
  top: -28%;
  right: 23%;
  width: min(56vw, 58rem);
  height: 64%;
  opacity: 0.55;
  background: radial-gradient(circle at 50% 50%, rgba(104, 78, 255, 0.34), transparent 67%);
}
body.lobby-mode .hero-overlay::after {
  right: auto;
  bottom: -46%;
  left: 7%;
  width: min(43vw, 44rem);
  height: 58%;
  opacity: 0.38;
  background: radial-gradient(circle at 50% 50%, rgba(240, 91, 58, 0.25), transparent 68%);
}
body.lobby-mode .hero::after {
  right: auto;
  bottom: 13%;
  left: 9%;
  width: clamp(9rem, 15vw, 15rem);
  height: clamp(6.5rem, 12vw, 12rem);
  opacity: 0.35;
}
.hero-athlete {
  position: absolute;
  z-index: 2;
  bottom: -6vh;
  left: 50%;
  width: auto;
  height: min(92svh, 62vw);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: brightness(0.83) contrast(1.1) saturate(0.9) drop-shadow(0 2.4rem 2.7rem rgba(0, 0, 0, 0.68));
  pointer-events: none;
  animation: athlete-arrival 1.3s var(--ease-editorial) both;
}
body.lobby-mode .hero-content {
  z-index: auto;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  text-align: center;
}
body.lobby-mode .hero-title {
  position: absolute;
  z-index: 1;
  top: clamp(6.7rem, 13vh, 10.4rem);
  left: 50%;
  width: min(94vw, 75rem);
  max-width: none;
  margin: 0;
  font-size: clamp(4.5rem, 11.4vw, 12rem);
  line-height: 0.72;
  letter-spacing: -0.1em;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 0.25rem 1.9rem rgba(0, 0, 0, 0.34);
  pointer-events: none;
  animation: none;
}
body.lobby-mode .hero-tagline {
  position: absolute;
  z-index: 4;
  top: clamp(5.1rem, 8vh, 6.7rem);
  left: 50%;
  margin: 0;
  color: rgba(255, 254, 250, 0.85);
  transform: translateX(-50%);
  animation: none;
}
body.lobby-mode .hero-subtitle {
  position: absolute;
  z-index: 4;
  right: var(--section-gutter);
  bottom: clamp(4.4rem, 9vh, 8.5rem);
  max-width: 20rem;
  margin: 0;
  color: rgba(255, 254, 250, 0.82);
  text-align: right;
  text-wrap: balance;
  animation: none;
}
body.lobby-mode .hero-cta {
  position: absolute;
  z-index: 4;
  bottom: clamp(1.75rem, 4vh, 3.5rem);
  left: var(--section-gutter);
  margin: 0;
  animation: none;
}

@keyframes athlete-arrival {
  from { opacity: 0; transform: translate(-50%, 3rem) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 760px) {
  body.lobby-mode .hero-bg { filter: saturate(0.4) contrast(1.06) brightness(0.26) blur(7px); }
  body.lobby-mode .hero-overlay { background: linear-gradient(180deg, rgba(4, 6, 10, 0.14), rgba(4, 6, 10, 0.38) 51%, rgba(4, 6, 10, 0.94) 100%); }
  .hero-athlete { bottom: -2vh; width: auto; height: min(76svh, 160vw); max-height: none; }
  body.lobby-mode .hero-title { top: 8.4rem; width: 96vw; font-size: clamp(3.9rem, 17vw, 6.2rem); line-height: 0.74; }
  body.lobby-mode .hero-tagline { top: 5.4rem; width: calc(100% - 2.5rem); font-size: 0.57rem; }
  body.lobby-mode .hero-subtitle { right: 1.25rem; bottom: 8.3rem; max-width: 15.5rem; font-size: 0.95rem; text-align: right; }
  body.lobby-mode .hero-cta { right: 1.25rem; bottom: 1.7rem; left: 1.25rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-athlete { animation: none; }
}

/* ========================================================================
   HERO NAVIGATION — keep the stage clean.  The sections live behind one
   deliberate hamburger rather than occupying a permanent top navigation.
   ======================================================================== */
body.lobby-mode .navbar {
  grid-template-columns: 1fr auto;
  min-height: 5.4rem;
}
body.lobby-mode .nav-logo {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 0;
}
body.lobby-mode .nav-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
body.lobby-mode .nav-links {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: var(--section-gutter);
  display: grid;
  width: min(18rem, calc(100vw - (2 * var(--section-gutter))));
  gap: 0;
  padding: 0.55rem;
  visibility: hidden;
  opacity: 0;
  color: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.8rem 1.3rem 1.65rem 1.45rem;
  background: rgba(6, 8, 14, 0.82);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  transform: translateY(-0.7rem) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: visibility 0s linear 0.35s, opacity 0.28s ease, transform 0.42s var(--ease-editorial);
}
body.lobby-mode .navbar.menu-open .nav-links {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}
body.lobby-mode .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
body.lobby-mode .nav-links li:last-child { border-bottom: 0; }
body.lobby-mode .nav-links a {
  padding: 0.78rem 0.7rem;
  font-size: 0.62rem;
}
body.lobby-mode .nav-language {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 0.7rem 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
body.lobby-mode .nav-language .lang-btn {
  min-width: 2.2rem;
  padding: 0.25rem 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: var(--paper-bright);
}
body.lobby-mode .nav-language .lang-btn.active { color: var(--night); background: var(--acid); border-color: var(--acid); }
body.lobby-mode .hamburger {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.34rem;
  width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.5rem 0.35rem;
  border: 0;
  border-radius: 0;
  color: var(--paper-bright);
  background: transparent;
  transition: color 0.3s ease, transform 0.35s var(--ease-editorial);
}
body.lobby-mode .hamburger span {
  display: block;
  width: 1.38rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease-editorial), opacity 0.25s ease;
}
body.lobby-mode .hamburger span:nth-child(2) { width: 0.98rem; }
body.lobby-mode .hamburger:hover,
body.lobby-mode .hamburger:focus-visible,
body.lobby-mode .hamburger.is-open { color: var(--acid); border-radius: 0; background: transparent; outline: none; transform: translateY(-0.12rem); }
body.lobby-mode .hamburger.is-open span:nth-child(1) { transform: translateY(0.42rem) rotate(45deg); }
body.lobby-mode .hamburger.is-open span:nth-child(2) { opacity: 0; }
body.lobby-mode .hamburger.is-open span:nth-child(3) { transform: translateY(-0.42rem) rotate(-45deg); }

/* No supporting copy competes with the name.  The click target at bottom left
   is a compact FIS mark, not a conventional button. */
body.lobby-mode .hero-tagline,
body.lobby-mode .hero-subtitle { display: none; }
body.lobby-mode .hero-title {
  top: clamp(7.3rem, 14vh, 11rem);
  font-size: clamp(4.3rem, 10.7vw, 11.4rem);
  letter-spacing: -0.042em;
}
body.lobby-mode .hero-cta { bottom: clamp(1.8rem, 4.5vh, 3.8rem); }
.hero-fis-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 54% 46% 48% 52% / 45% 56% 44% 55%;
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(5, 7, 12, 0.24);
  backdrop-filter: blur(8px);
  transition: color 0.3s ease, border-radius 0.45s var(--ease-editorial), background 0.3s ease, transform 0.4s var(--ease-editorial);
}
.hero-fis-link b {
  position: absolute;
  right: -0.16rem;
  bottom: -0.14rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  color: var(--night);
  background: var(--paper-bright);
  font-size: 0.68rem;
  line-height: 1;
}
.hero-fis-link:hover,
.hero-fis-link:focus-visible { color: var(--night); border-radius: 45% 55% 59% 41% / 55% 43% 57% 45%; background: var(--acid); outline: none; transform: translateY(-0.22rem) rotate(-4deg); }

@media (max-width: 760px) {
  body.lobby-mode .navbar { min-height: 4.7rem; }
  body.lobby-mode .nav-logo { width: 2.25rem; height: 2.25rem; }
  body.lobby-mode .nav-links { top: calc(100% + 0.35rem); right: 1.25rem; width: min(18rem, calc(100vw - 2.5rem)); }
  body.lobby-mode .hero-title { top: 8.8rem; font-size: clamp(3.5rem, 14.4vw, 5.7rem); letter-spacing: -0.035em; }
}

/* Hero cleanup: the athlete and type are the only layers on the stage. */
body.lobby-mode .hero-overlay::before,
body.lobby-mode .hero-overlay::after,
body.lobby-mode .hero::after { display: none; }
.hero-fis-link {
  width: 4.05rem;
  height: 3.45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.hero-fis-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-fis-text { display: none; }
.hero-fis-link b { display: none; }
.hero-fis-link:hover,
.hero-fis-link:focus-visible { border-radius: 0; color: inherit; background: transparent; outline: 2px solid var(--paper-bright); outline-offset: 0.4rem; transform: translateY(-0.18rem) scale(1.06); }

/* PARTNER LOGO WALL — official marks, monochrome water treatment and motion. */
body.lobby-mode #sponsors .sponsor-tier { margin-bottom: clamp(2rem, 4.5vw, 4.5rem); }
body.lobby-mode #sponsors .sponsors-grid {
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
  border: 0;
}
body.lobby-mode #sponsors .sponsor-card {
  --logo-rx: 0deg;
  --logo-ry: 0deg;
  --logo-tx: 0px;
  --logo-ty: 0px;
  position: relative;
  min-height: clamp(13rem, 21vw, 17.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  color: var(--paper-bright);
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  perspective: 700px;
  transition: color 0.4s ease, background 0.4s ease;
}
body.lobby-mode #sponsors .sponsor-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: var(--logo-mx, 50%);
  top: var(--logo-my, 50%);
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 211, 214, 0.19), rgba(105, 150, 157, 0.055) 43%, transparent 69%);
  filter: blur(0.55rem);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-editorial);
  pointer-events: none;
}
body.lobby-mode #sponsors .sponsor-card--logo:hover,
body.lobby-mode #sponsors .sponsor-card--logo:focus-visible {
  border-radius: 0;
  color: var(--paper-bright);
  background: rgba(177, 213, 216, 0.025);
  box-shadow: none;
  outline: none;
}
body.lobby-mode #sponsors .sponsor-card--logo:hover::before,
body.lobby-mode #sponsors .sponsor-card--logo:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.55);
}
body.lobby-mode #sponsors .sponsor-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(5.7rem, 10vw, 8.4rem);
  max-width: none;
  margin: 0;
}
body.lobby-mode #sponsors .sponsor-logo img {
  display: block;
  width: min(78%, 15rem);
  max-height: clamp(5.4rem, 9vw, 7.7rem);
  object-fit: contain;
  opacity: 0.43;
  filter: grayscale(1) brightness(2.15) contrast(0.68) sepia(0.12) hue-rotate(135deg) saturate(0.55);
  mix-blend-mode: screen;
  transform: translate3d(var(--logo-tx), var(--logo-ty), 0) rotateX(var(--logo-rx)) rotateY(var(--logo-ry));
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.16s ease-out;
  will-change: transform;
}
body.lobby-mode #sponsors .sponsor-card--comune .sponsor-logo img {
  width: clamp(7rem, 10vw, 8.4rem);
  max-height: clamp(7rem, 10vw, 8.4rem);
}
body.lobby-mode #sponsors .sponsor-card--logo:hover .sponsor-logo img,
body.lobby-mode #sponsors .sponsor-card--logo:focus-visible .sponsor-logo img {
  opacity: 0.94;
  filter: grayscale(1) brightness(2.8) contrast(0.9) sepia(0.08) hue-rotate(135deg) saturate(0.72) drop-shadow(0 0.75rem 1.5rem rgba(142, 190, 195, 0.18));
}
body.lobby-mode #sponsors .sponsor-desc {
  max-width: 30ch;
  margin: 0.9rem auto 0;
  color: rgba(225, 239, 241, 0.52);
  font-size: 0.78rem;
  line-height: 1.45;
  transition: color 0.35s ease, transform 0.35s var(--ease-editorial);
}
body.lobby-mode #sponsors .sponsor-link {
  margin-top: 0.7rem;
  color: rgba(225, 239, 241, 0.42);
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}
body.lobby-mode #sponsors .sponsor-card--logo:hover .sponsor-desc,
body.lobby-mode #sponsors .sponsor-card--logo:focus-visible .sponsor-desc,
body.lobby-mode #sponsors .sponsor-card--logo:hover .sponsor-link,
body.lobby-mode #sponsors .sponsor-card--logo:focus-visible .sponsor-link { color: rgba(239, 248, 249, 0.86); }
body.lobby-mode #sponsors .sponsor-card--logo:hover .sponsor-link,
body.lobby-mode #sponsors .sponsor-card--logo:focus-visible .sponsor-link { letter-spacing: 0.085em; }
body.lobby-mode #sponsors .sponsor-card--free {
  min-height: 7.5rem;
  border-radius: 0;
  color: rgba(223, 238, 240, 0.44);
  background: transparent;
  box-shadow: none;
}
body.lobby-mode #sponsors .sponsor-card--free::before { display: none; }

@media (max-width: 760px) {
  body.lobby-mode #sponsors .sponsor-card { min-height: 12.5rem; border-radius: 0; }
  body.lobby-mode #sponsors .sponsor-logo img { width: min(74%, 13rem); }
  body.lobby-mode #sponsors .sponsor-card--comune .sponsor-logo img { width: 7.3rem; }
}

/* CONTACT SKETCHES — large generic symbols, no emoji and no bubble shells. */
body.lobby-mode #contact .contact-grid--sketches {
  gap: clamp(0.9rem, 2vw, 1.5rem);
  border: 0;
}
body.lobby-mode #contact .contact-card--sketch {
  --contact-rx: 0deg;
  --contact-ry: 0deg;
  --contact-tx: 0px;
  --contact-ty: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: clamp(19rem, 33vw, 27rem);
  padding: clamp(1.3rem, 2.6vw, 2.2rem);
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  color: var(--paper-bright);
  text-align: left;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  perspective: 720px;
  transition: color 0.48s var(--ease-editorial), background 0.48s var(--ease-editorial);
}
body.lobby-mode #contact .contact-card--sketch::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: var(--contact-mx, 50%);
  top: var(--contact-my, 44%);
  width: 13rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 211, 214, 0.18), rgba(105, 150, 157, 0.05) 44%, transparent 70%);
  filter: blur(0.65rem);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.46);
  transition: opacity 0.42s ease, transform 0.7s var(--ease-editorial);
  pointer-events: none;
}
body.lobby-mode #contact .contact-card--sketch:hover,
body.lobby-mode #contact .contact-card--sketch:focus-visible,
body.lobby-mode #contact .contact-card--sketch:active {
  border-radius: 0;
  color: var(--paper-bright);
  background: transparent;
  box-shadow: none;
  outline: none;
}
body.lobby-mode #contact .contact-card--sketch:hover::before,
body.lobby-mode #contact .contact-card--sketch:focus-visible::before { opacity: 0.25; transform: translate(-50%, -50%) scale(1.6); }
body.lobby-mode #contact .contact-sketch {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(10.5rem, 18vw, 15rem);
  margin-bottom: auto;
  transform: translate3d(var(--contact-tx), var(--contact-ty), 0) rotateX(var(--contact-rx)) rotateY(var(--contact-ry));
  transition: transform 0.16s ease-out;
  will-change: transform;
}
body.lobby-mode #contact .contact-sketch svg {
  display: block;
  width: min(92%, 18rem);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: rgba(185, 215, 219, 0.42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0.8rem 1.5rem rgba(142, 190, 195, 0.08));
  transition: stroke 0.4s ease, filter 0.4s ease, transform 0.5s var(--ease-editorial);
}
body.lobby-mode #contact .contact-sketch .icon-solid {
  fill: rgba(185, 215, 219, 0.42);
  stroke: none;
  transition: fill 0.4s ease;
}
body.lobby-mode #contact .contact-sketch .icon-cut {
  fill: none;
  stroke: rgba(7, 9, 14, 0.76);
  stroke-width: 4;
  transition: stroke 0.4s ease;
}
body.lobby-mode #contact .contact-sketch .instagram-fill {
  fill: transparent;
  stroke: none;
  transition: fill 0.4s ease;
}
body.lobby-mode #contact .contact-sketch .instagram-outline {
  fill: none;
  stroke: rgba(185, 215, 219, 0.42);
  transition: stroke 0.4s ease;
}
body.lobby-mode #contact .contact-sketch--mail svg { transform: rotate(-3deg) scale(1.03); }
body.lobby-mode #contact .contact-sketch--phone svg { transform: rotate(2deg) scale(0.98); }
body.lobby-mode #contact .contact-sketch--instagram svg { transform: rotate(-2deg) scale(0.95); }
body.lobby-mode #contact .contact-card--sketch:hover .contact-sketch svg,
body.lobby-mode #contact .contact-card--sketch:focus-visible .contact-sketch svg,
body.lobby-mode #contact .contact-card--sketch:active .contact-sketch svg {
  stroke: rgba(201, 226, 229, 0.74);
  filter: drop-shadow(0 0.75rem 1.4rem rgba(217, 255, 75, 0.15));
  transform: rotate(0) scale(1.05);
}
body.lobby-mode #contact .contact-card--sketch:hover .contact-sketch .icon-solid,
body.lobby-mode #contact .contact-card--sketch:focus-visible .contact-sketch .icon-solid,
body.lobby-mode #contact .contact-card--sketch:active .contact-sketch .icon-solid { fill: var(--acid); }
body.lobby-mode #contact .contact-card--sketch:hover .contact-sketch .icon-cut,
body.lobby-mode #contact .contact-card--sketch:focus-visible .contact-sketch .icon-cut,
body.lobby-mode #contact .contact-card--sketch:active .contact-sketch .icon-cut { stroke: rgba(7, 9, 14, 0.78); }
body.lobby-mode #contact .contact-card--sketch:hover .contact-sketch .instagram-fill,
body.lobby-mode #contact .contact-card--sketch:focus-visible .contact-sketch .instagram-fill,
body.lobby-mode #contact .contact-card--sketch:active .contact-sketch .instagram-fill { fill: var(--acid); }
body.lobby-mode #contact .contact-card--sketch:hover .contact-sketch .instagram-outline,
body.lobby-mode #contact .contact-card--sketch:focus-visible .contact-sketch .instagram-outline,
body.lobby-mode #contact .contact-card--sketch:active .contact-sketch .instagram-outline { stroke: rgba(7, 9, 14, 0.82); }
body.lobby-mode #contact .contact-card--sketch h3 {
  margin-top: 1.1rem;
  color: rgba(225, 239, 241, 0.54);
  transition: color 0.4s ease;
}
body.lobby-mode #contact .contact-value {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(0.83rem, 1.25vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
body.lobby-mode #contact .contact-card--sketch:hover h3,
body.lobby-mode #contact .contact-card--sketch:focus-visible h3,
body.lobby-mode #contact .contact-card--sketch:active h3 { color: rgba(225, 239, 241, 0.75); }

@media (max-width: 760px) {
  body.lobby-mode #contact .contact-card--sketch { min-height: 18rem; border-radius: 0; }
  body.lobby-mode #contact .contact-sketch { min-height: 10rem; }
  body.lobby-mode #contact .contact-sketch svg { width: min(82%, 15rem); }
}

/* LIGHTBOX SAFETY — controls stay fixed and never overlap the lobby navbar. */
.lightbox {
  z-index: 2000;
  padding: clamp(3.8rem, 7vh, 5.5rem) clamp(3.5rem, 7vw, 6rem) clamp(2.2rem, 5vh, 4rem);
  overscroll-behavior: none;
}
.lightbox-content {
  display: grid;
  place-items: center;
  width: min(88vw, 72rem);
  height: min(84vh, 52rem);
  max-width: none;
  max-height: none;
}
.lightbox-content img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 4;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: var(--paper-bright);
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  touch-action: manipulation;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.lightbox-close {
  top: 1.15rem;
  right: 1.15rem;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 3.2rem;
  height: 4.5rem;
  padding: 0;
  font-size: 2.3rem;
  transform: translateY(-50%);
}
.lightbox-prev { left: 0.9rem; }
.lightbox-next { right: 0.9rem; }
.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  color: var(--night);
  border-color: var(--acid);
  background: var(--acid);
  outline: none;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { transform: scale(1.05); }
.lightbox-nav:hover,
.lightbox-nav:focus-visible { transform: translateY(-50%) scale(1.05); }
body.lightbox-open .navbar { visibility: hidden; pointer-events: none; opacity: 0; }
body.lightbox-open .chapter.is-lobby-open { overflow: hidden; }

@media (max-width: 760px) {
  .lightbox { padding: 4.7rem 2.8rem 2.2rem; }
  .lightbox-content { width: calc(100vw - 5.6rem); height: calc(100svh - 7rem); }
  .lightbox-close { top: 0.8rem; right: 0.8rem; width: 3rem; height: 3rem; }
  .lightbox-nav { width: 2.6rem; height: 4.2rem; }
  .lightbox-prev { left: 0.15rem; }
  .lightbox-next { right: 0.15rem; }
}

/* ========================================================================
   APPROVED HERO — monumental moving name behind the athlete.
   The small static name anchors the composition while the two large lines
   move in opposite directions as one continuous background environment.
   ======================================================================== */
body.lobby-mode .hero-name-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  padding: 2.6rem 0 0;
  overflow: hidden;
  pointer-events: none;
}
body.lobby-mode .hero-name-lane {
  display: flex;
  align-items: center;
  min-width: max-content;
  overflow: hidden;
  color: rgba(255, 254, 250, 0.21);
  text-shadow: 0 0.25rem 2rem rgba(0, 0, 0, 0.28);
}
body.lobby-mode .hero-name-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hero-name-flow-left 48s linear infinite;
}
body.lobby-mode .hero-name-lane--reverse .hero-name-track {
  animation-name: hero-name-flow-right;
  animation-duration: 58s;
}
body.lobby-mode .hero-name-word {
  flex: none;
  padding-right: 0.045em;
  font-family: 'Barlow Condensed', 'Arial Narrow', Impact, var(--font-sans);
  font-size: clamp(18rem, 72vh, 54rem);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: 0.012em;
  white-space: nowrap;
  text-transform: uppercase;
}
@keyframes hero-name-flow-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-33.333%, 0, 0); }
}
@keyframes hero-name-flow-right {
  from { transform: translate3d(-33.333%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

body.lobby-mode .hero-title {
  position: absolute;
  z-index: 6;
  top: clamp(3.35rem, 7.5vh, 4.9rem);
  left: 50%;
  width: auto;
  max-width: none;
  margin: 0;
  color: var(--paper-bright);
  font-size: clamp(0.78rem, 1.25vw, 1.18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.42);
  pointer-events: none;
  animation: none;
}
body.lobby-mode .hamburger { color: var(--acid); }
.hero-fis-mark {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--acid);
  -webkit-mask: url('../img/fis-logo-transparent.png') center / contain no-repeat;
  mask: url('../img/fis-logo-transparent.png') center / contain no-repeat;
}

@media (max-width: 760px) {
  body.lobby-mode .hero-name-stage { padding: 2.6rem 0 0; }
  body.lobby-mode .hero-name-word {
    font-size: clamp(17rem, 68svh, 36rem);
    line-height: 0.72;
  }
  body.lobby-mode .hero-title {
    top: 3.3rem;
    width: auto;
    font-size: 0.72rem;
    letter-spacing: -0.025em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lobby-mode .hero-name-track { animation: none; }
}

/* Full-screen navigation and site-wide sound control. */
body.lobby-mode .navbar.menu-open {
  z-index: 600;
  isolation: isolate;
  background: transparent;
  backdrop-filter: none;
}
body.lobby-mode .navbar.menu-open .nav-links {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, min-content);
  align-content: center;
  gap: clamp(1.5rem, 4vh, 3.2rem) clamp(1rem, 2.8vw, 3.5rem);
  width: 100vw;
  height: 100svh;
  padding: clamp(7rem, 18vh, 12rem) clamp(2rem, 12vw, 14rem) clamp(7rem, 16vh, 10rem);
  overflow: auto;
  visibility: visible;
  opacity: 1;
  color: var(--paper-bright);
  border: 0;
  border-radius: 0;
  background-color: #100f17;
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(97, 79, 129, 0.12), transparent 56%),
    radial-gradient(circle, rgba(211, 205, 220, 0.09) 0 1.5px, transparent 2px);
  background-size: auto, 12px 12px;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  pointer-events: auto;
  transition: visibility 0s, opacity 0.42s ease;
}
body.lobby-mode .navbar.menu-open .nav-links li {
  min-width: 0;
  border: 0;
}
body.lobby-mode .navbar.menu-open .nav-links a {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.12em 0 0.18em;
  color: rgba(255, 254, 250, 0.42);
  font-family: 'Barlow Condensed', 'Arial Narrow', Impact, var(--font-sans);
  font-size: clamp(4rem, 8.5vw, 10rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.45s var(--ease-editorial);
}
body.lobby-mode .navbar.menu-open .nav-links a::after {
  right: auto;
  bottom: 0;
  left: 0;
  width: 2.8rem;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-editorial);
}
body.lobby-mode .navbar.menu-open .nav-links a:hover,
body.lobby-mode .navbar.menu-open .nav-links a:focus-visible,
body.lobby-mode .navbar.menu-open .nav-links a.is-active {
  color: var(--paper-bright);
  letter-spacing: 0.012em;
  outline: none;
  transform: translateX(0.35rem);
}
body.lobby-mode .navbar.menu-open .nav-links a:hover::after,
body.lobby-mode .navbar.menu-open .nav-links a:focus-visible::after,
body.lobby-mode .navbar.menu-open .nav-links a.is-active::after { transform: scaleX(1); }
body.lobby-mode .navbar.menu-open .nav-logo,
body.lobby-mode .navbar.menu-open .hamburger {
  position: relative;
  z-index: 3;
}
body.lobby-mode .navbar.menu-open .hamburger { color: var(--paper-bright); }
body.lobby-mode .navbar.menu-open .hamburger:hover,
body.lobby-mode .navbar.menu-open .hamburger:focus-visible { color: var(--acid); }
.menu-footer {
  position: fixed;
  z-index: 1;
  right: clamp(2rem, 12vw, 14rem);
  bottom: clamp(1.4rem, 4vh, 3rem);
  left: clamp(2rem, 12vw, 14rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear 0.35s, opacity 0.3s ease;
}
body.lobby-mode .navbar.menu-open .menu-footer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
.menu-footer__identity,
.menu-language,
.menu-footer__socials {
  color: rgba(255, 254, 250, 0.54);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-footer__identity small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 254, 250, 0.38);
  font-size: 0.55rem;
  font-weight: 500;
}
.menu-footer__socials {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.menu-footer__socials a {
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  color: rgba(255, 254, 250, 0.56);
  font-size: 0.7rem;
  transition: color 0.25s ease, transform 0.3s var(--ease-editorial);
}
.menu-footer__socials a:hover,
.menu-footer__socials a:focus-visible { color: var(--paper-bright); transform: translateY(-0.18rem); }
.menu-footer__socials svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-footer__socials .social-dot { fill: currentColor; stroke: none; }
.menu-language {
  display: flex;
  justify-self: end;
  gap: 0.35rem;
}
.menu-language .lang-btn {
  min-width: 2.25rem;
  padding: 0.42rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: rgba(255, 254, 250, 0.54);
  font: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.menu-language .lang-btn.active,
.menu-language .lang-btn:hover { color: var(--night); border-color: var(--acid); background: var(--acid); }
.sound-toggle {
  position: fixed;
  z-index: 700;
  bottom: clamp(1rem, 3vh, 2rem);
  left: 50%;
  display: grid;
  grid-template-columns: 1.35rem auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.55rem 0.9rem;
  color: rgba(255, 254, 250, 0.77);
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 999px;
  background: rgba(10, 11, 17, 0.78);
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-editorial);
}
.sound-toggle:hover,
.sound-toggle:focus-visible,
.sound-toggle.is-active {
  color: var(--acid);
  border-color: rgba(217, 255, 75, 0.72);
  background: rgba(13, 16, 19, 0.94);
  outline: none;
}
.sound-toggle:hover { transform: translate(-50%, -0.15rem); }
.sound-toggle svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .mic-off { opacity: 1; stroke-width: 2; transition: opacity 0.2s ease; }
.sound-toggle.is-active .mic-off { opacity: 0; }
.sound-toggle__label { font-family: var(--font-mono); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 900px) {
  body.lobby-mode .navbar.menu-open .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, min-content);
    gap: clamp(1.5rem, 4vh, 2.5rem) 0.75rem;
    padding: 7rem 1.5rem 8.5rem;
  }
  body.lobby-mode .navbar.menu-open .nav-links a {
    width: 100%;
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    line-height: 0.88;
    overflow-wrap: anywhere;
  }
  .menu-footer { right: 1.5rem; bottom: 1.2rem; left: 1.5rem; grid-template-columns: 1fr auto; gap: 0.45rem 0.9rem; }
  .menu-footer__identity { grid-column: 1 / 2; }
  .menu-footer__socials { grid-column: 2 / 3; grid-row: 1; justify-self: end; }
  .menu-language { grid-column: 1 / -1; justify-self: center; }
  .sound-toggle { bottom: 1rem; }
}
@media (max-width: 480px) {
  body.lobby-mode .navbar.menu-open .nav-links { gap: 1.6rem 0.55rem; padding: 6.4rem 1.15rem 8.5rem; }
  body.lobby-mode .navbar.menu-open .nav-links a { font-size: clamp(2.3rem, 8.5vw, 3.35rem); }
  .menu-footer { right: 1.15rem; left: 1.15rem; }
  .menu-footer__identity { font-size: 0.55rem; }
  .menu-footer__identity small { font-size: 0.48rem; }
}

@media (max-width: 600px) {
  body.lobby-mode .navbar.menu-open .nav-links {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(6, min-content);
    align-content: center;
    justify-items: center;
    gap: clamp(0.55rem, 1.6vh, 0.9rem);
    padding: 5.8rem 1rem 8.8rem;
    overflow-y: auto;
    background-color: #100f17;
    background-image:
      radial-gradient(ellipse at 50% 45%, rgba(97, 79, 129, 0.12), transparent 56%),
      radial-gradient(circle, rgba(211, 205, 220, 0.09) 0 1.5px, transparent 2px);
    background-size: auto, 12px 12px;
  }
  body.lobby-mode .navbar.menu-open .nav-links a {
    width: auto;
    max-width: calc(100vw - 2rem);
    padding: 0.06em 0;
    font-size: clamp(1.9rem, 7.4vw, 2.45rem);
    line-height: 0.94;
    letter-spacing: 0.012em;
    text-align: center;
    white-space: nowrap;
  }
  body.lobby-mode .navbar.menu-open .menu-footer {
    z-index: 2;
    right: 1rem;
    bottom: 4.15rem;
    left: 1rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.35rem;
  }
  body.lobby-mode .navbar.menu-open .menu-footer__identity { grid-column: 1; font-size: 0.5rem; }
  body.lobby-mode .navbar.menu-open .menu-footer__identity small { font-size: 0.43rem; }
  body.lobby-mode .navbar.menu-open .menu-footer__socials { grid-column: 2; justify-self: center; gap: 0.2rem; }
  body.lobby-mode .navbar.menu-open .menu-language { grid-column: 3; justify-self: end; gap: 0.2rem; }
  body.lobby-mode .navbar.menu-open .menu-language .lang-btn { min-width: 1.85rem; padding: 0.36rem 0.32rem; }
  body.lobby-mode .hero-name-lane { color: rgba(255, 254, 250, 0.14); }
  body.lobby-mode .hero-name-word { font-size: clamp(15rem, 58svh, 30rem); }
}

@media (max-width: 600px) and (max-height: 560px) {
  body.lobby-mode .navbar.menu-open .nav-links { gap: 0.35rem; padding: 5rem 1rem 7rem; }
  body.lobby-mode .navbar.menu-open .nav-links a { font-size: clamp(1.7rem, 6vw, 2rem); }
}

@media (min-width: 601px) {
  body.lobby-mode .navbar.menu-open .nav-links a {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 5vw, 7.5rem);
    line-height: 0.88;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}
