/* ==========================================================
   Festivo: The Festival Timetable
   ========================================================== */
:root {
  --paper: #F6F3FF;
  --paper-2: #EDE8FF;
  --ink: #1C1233;
  --ink-2: #4B4068;
  --ink-3: #6E6390;
  --line: rgba(28, 18, 51, .12);
  --line-2: rgba(28, 18, 51, .07);

  --tomato: #FF5436;
  --violet: #6B4BFF;
  --violet-soft: #A796FF;
  --sun: #FFC83D;
  --mint: #2ED3A0;
  --pink: #FF8AC9;
  --sky: #59BBFF;

  --night: #1C1233;
  --night-2: #251A41;
  --night-3: #30244F;
  --night-line: rgba(255, 255, 255, .09);
  --night-text: #EDE8FF;
  --night-text-2: #B3A8D6;

  --slot: 8px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;

  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-lift: 0 18px 40px -16px rgba(28, 18, 51, .45), 0 4px 10px -4px rgba(28, 18, 51, .2);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--violet) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 99px; border: 3px solid var(--paper-2); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  font-size: clamp(2.4rem, 5.2vw, 4.75rem);
  line-height: .95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h2--light { color: var(--night-text); }
.hl { font-style: normal; position: relative; white-space: nowrap; }
.hl--sun { background: var(--sun); border-radius: .18em; padding: 0 .12em; margin: 0 -.04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--f-body); letter-spacing: .02em;
  padding: 6px 10px; border-radius: 99px; white-space: nowrap;
}
.tag--quiet { background: var(--paper-2); color: var(--ink-2); }
.tag--dark { background: var(--night-3); color: var(--night-text-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 12px; border: 0;
  background: var(--bg); color: var(--fg);
  transition: translate .4s var(--ease-out), background-color .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn--lg { padding: 18px 26px; font-size: 16px; border-radius: 14px; }
.btn--tomato { --bg: var(--tomato); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
/* Hover: lift by offset only (no drop shadow) */
.btn:is(:hover, :focus-visible) { translate: 0 -3px; }
.btn:active { translate: 0 0; transition-duration: .1s; }

/* Inverted lens: an inverted copy of the CTA, visible only inside the cursor ring */
@property --lens-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.cta-lens {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: inherit; flex-direction: inherit; align-items: inherit; justify-content: inherit;
  gap: inherit; padding: inherit; border-radius: inherit; font: inherit; white-space: nowrap;
  background: var(--lens-bg, var(--ink)); color: var(--lens-fg, var(--tomato));
  clip-path: circle(var(--lens-r) at var(--lens-x, 50%) var(--lens-y, 50%));
  transition: --lens-r .45s var(--ease-out);
}
.cta-lens.is-on { --lens-r: 31px; }
.btn--tomato > .cta-lens { --lens-bg: var(--ink); --lens-fg: var(--tomato); }
.btn--ink > .cta-lens { --lens-bg: #fff; --lens-fg: var(--ink); }
/* on dark grounds the tomato button's lens is paper, so it never vanishes into the night */
.nav.on-dark .btn--tomato > .cta-lens { --lens-bg: var(--paper); --lens-fg: var(--ink); }
.btn--ghost { padding-inline: 8px; position: relative; }
.btn--ghost { padding-inline: 14px; }
.btn { position: relative; }
.btn--ghost::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--violet); transition: opacity .2s; }

/* Rolling label: each glyph (and the icon) slides up to reveal its twin, staggered left to right */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.roll { display: inline-flex; white-space: pre; }
.roll__c { display: inline-flex; flex-direction: column; height: 1.2em; line-height: 1.2em; overflow: hidden; }
.roll__c > * { display: flex; align-items: center; justify-content: center; height: 1.2em; flex: none; transition: transform .6s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--i) * 26ms); }
.roll__c--ico svg { width: 1.1em; height: 1.1em; }
.roll__c--ico { height: 1.2em; }
:is(.btn, .set--cta):is(:hover, :focus-visible) .roll__c > * { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  :is(.btn, .set--cta):is(:hover, :focus-visible) .roll__c > * { transform: none; }
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.on-dark { color: var(--night-text); }
.nav.on-dark.is-scrolled { background: color-mix(in srgb, var(--night) 82%, transparent); box-shadow: 0 1px 0 var(--night-line); }
.nav__logo { display: block; width: 116px; color: var(--ink); flex: none; transition: color .3s; }
.nav.on-dark .nav__logo { color: var(--night-text); }
.nav__logo svg { width: 100%; height: auto; display: block; }

.clock {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 99px;
  background: var(--ink); color: #fff;
  font: 600 13px/1 var(--f-body);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.nav.on-dark .clock { background: var(--night-3); }
.clock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }
.clock__time { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .01em; display: inline-block; }
.clock__label { color: #CFC6EE; display: inline-block; }

.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a { font-weight: 600; font-size: 15px; text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--tomato); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 12px 18px; }
.nav__menu { display: none; margin-left: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease-out); }
.nav__menu span:first-child { top: 17px; } .nav__menu span:last-child { top: 25px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 72px 12px auto 12px; z-index: 49; background: var(--ink); color: #fff; border-radius: 20px; padding: 16px; display: grid; gap: 4px; box-shadow: var(--shadow-lift); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 12px; font: 700 22px/1.1 var(--f-display); text-decoration: none; border-radius: 12px; }
.mobile-menu a:not(.btn):hover { background: var(--night-3); }
.mobile-menu .btn { margin-top: 8px; font-family: var(--f-body); font-size: 16px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding-top: clamp(104px, 13vh, 136px); position: relative; }
.hero__copy { display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 86, "opsz" 96;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: .9;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__side { padding-bottom: 8px; }
.hero__lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); margin: 0 0 24px; max-width: 42ch; text-wrap: pretty; }
.hero__lede strong { color: var(--ink); font-weight: 700; }
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- timetable ---------- */
.tt { margin-top: clamp(32px, 5vh, 56px); padding-inline: var(--gutter); }
.tt__legend { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-inline: 4px; }
.tt__legend span { display: inline-flex; align-items: center; gap: 8px; }
.tt__legend-note { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.lg { width: 22px; height: 14px; border-radius: 5px; display: inline-block; }
.lg--best { background: var(--mint); box-shadow: inset 0 0 0 3px var(--ink); }
.lg--low { background: repeating-linear-gradient(-45deg, #FFC9E7 0 4px, #FFDCEF 4px 8px); box-shadow: inset 0 0 0 2px var(--ink); }
.lg--now { width: 3px; height: 16px; border-radius: 3px; background: var(--tomato); }
.set--cta { text-decoration: none; padding-right: 44px; cursor: pointer; transition: translate .4s var(--ease-out), background-color .3s, color .3s; }
.set.set--cta:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 2px var(--ink); }
.set--cta .set__m { font-weight: 700; opacity: 1; }
.set__arrow { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; stroke-width: 2.5; }
.set__arrow svg { stroke-width: 2.5; }
.set__arrow.roll__c--ico { width: 20px; height: 20px; }
.set__arrow.roll__c--ico > * { height: 20px; }
.set__arrow.roll__c--ico svg { width: 20px; height: 20px; }
.tt__scroller { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: var(--r-lg); }
.tt__grid {
  --row-h: clamp(72px, 9.2vh, 92px);
  position: relative;
  display: grid;
  grid-template-columns: 112px repeat(var(--cols), minmax(58px, 1fr));
  grid-template-rows: 40px repeat(4, var(--row-h));
  gap: 6px;
  min-width: 960px;
  padding: 10px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(28,18,51,.35);
}
/* slot gridlines: whole-slot units */
.tt__grid::before {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: calc(10px + 112px + 6px); right: 10px;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((100% + 6px) / 7) 100%;
  pointer-events: none; border-radius: 8px;
}
.tt__corner { grid-column: 1; grid-row: 1; display: flex; align-items: center; }
.tt__hours { grid-column: 2 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; font: 700 13px/1 var(--f-display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tt__hours span { padding-left: 8px; }
.tt__stage { grid-column: 1; grid-row: var(--row); position: sticky; left: 0; z-index: 6; box-shadow: 6px 0 0 #fff; display: flex; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); }
.tt__stage-name { font: 800 15px/1 var(--f-display); letter-spacing: -0.01em; }

.set {
  grid-row: var(--row);
  grid-column: calc(var(--s) + 1) / calc(var(--e) + 1);
  position: relative;
  margin: 0;
  border-radius: 14px;
  padding: 12px 56px 12px 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  background: var(--c, var(--paper-2));
  color: var(--ink);
  overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.set:hover { translate: 0 -3px; box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-lift); z-index: 2; }
.set__t { font: 800 clamp(14px, 1.15vw, 17px)/1.1 var(--f-display); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set__m { font-size: 13px; line-height: 1.25; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set--mint { --c: var(--mint); }
.set--pink { --c: var(--pink); }
.set--sun { --c: var(--sun); }
.set--violet { --c: var(--violet); color: #fff; }
.set--violet .set__m { opacity: .85; }
.set--sky { --c: var(--sky); }
.set--tomato { --c: var(--tomato); }
.set.is-low { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 45%, #fff) 0 8px, color-mix(in srgb, var(--c) 30%, #fff) 8px 16px); color: var(--ink); }
.set.is-low .score { background: #fff; color: var(--ink-2); }
.set--photo { padding: 0; background: var(--ink); }
.set--photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--ink); pointer-events: none; }
.set--photo img { width: 100%; height: 100%; object-fit: cover; }
.score {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  min-width: 38px; height: 38px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: 800 16px/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.set--violet .score { background: #fff; color: var(--violet); }
.badge { position: absolute; top: 8px; right: 54px; font: 700 11px/1 var(--f-body); background: var(--ink); color: var(--mint); padding: 5px 8px; border-radius: 99px; letter-spacing: .02em; }
.set.is-best { box-shadow: inset 0 0 0 4px var(--ink); }

.now {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 3px; border-radius: 3px;
  background: var(--tomato); z-index: 0; pointer-events: none;
}
.set { z-index: 1; }
.set.is-live { box-shadow: inset 0 0 0 3px var(--tomato); }
.set.is-best.is-live { box-shadow: inset 0 0 0 4px var(--tomato); }
.now-tag { position: absolute; top: 16px; left: 0; z-index: 7; pointer-events: none; white-space: nowrap; font: 700 11px/1 var(--f-body); letter-spacing: .03em; color: var(--ink); background: var(--tomato); padding: 6px 9px; border-radius: 99px; }
.now::before { content: ""; position: absolute; left: 50%; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: var(--tomato); translate: -50% 0; box-shadow: 0 0 0 5px rgba(255, 84, 54, .22); }
.set.is-hit { animation: hit .7s var(--ease-out); }
@keyframes hit { 0% { scale: 1; } 30% { scale: 1.035; } 100% { scale: 1; } }

/* ==========================================================
   TICKER
   ========================================================== */
.ticker-band { overflow: hidden; margin-top: clamp(28px, 4vh, 56px); padding-block: 28px; }
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scaleX(1.05); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; gap: 44px; padding: 0 22px; margin: 0; list-style: none; flex: none; }
.ticker__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap; color: #CFC6EE; }
.ticker__list b { color: #fff; font: 700 17px/1 var(--f-display); }
.ticker__score { background: var(--sun); color: var(--ink); border-radius: 99px; padding: 5px 9px; font: 800 14px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.up { color: var(--mint); font-weight: 700; font-size: 13px; }
.down { color: var(--pink); font-weight: 700; font-size: 13px; }
.ticker__note { font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-soft) !important; }

/* ==========================================================
   HOW (horizontal running order)
   ========================================================== */
.how { padding-top: clamp(24px, 4vh, 48px); }
.how__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; overflow: hidden; }
.how__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vh, 56px); }
.how__hint { margin: 0; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-3); }
.how__rail { padding-left: var(--gutter); }
.how__track { position: relative; display: flex; gap: 20px; width: max-content; padding: 52px var(--gutter) 8px 0; }
.how__track::before { content: ""; position: absolute; left: 0; right: var(--gutter); top: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: .25; }
.how__times { position: absolute; inset: 0 var(--gutter) auto 0; display: flex; }
.how__times span { flex: 1; font: 600 13px/1 var(--f-body); color: var(--ink-3); position: relative; padding-left: 0; }
.how__times b { font: 800 13px/1 var(--f-display); color: var(--ink); margin-right: 4px; }
.act {
  --c: var(--paper-2);
  width: min(78vw, 520px); min-height: min(58vh, 460px);
  border-radius: var(--r-lg);
  background: var(--c);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.act::before { content: ""; position: absolute; top: -36px; left: 32px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--paper); }
.act--sun { --c: var(--sun); }
.act--violet { --c: var(--violet); color: #fff; }
.act--tomato { --c: var(--tomato); }
.act--mint { --c: var(--mint); }
.act h3 { font: 800 clamp(1.75rem, 2.6vw, 2.5rem)/1 var(--f-display); font-variation-settings: "wdth" 90; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.act p { margin: 0; max-width: 40ch; font-size: 16px; }
.act--violet p { color: #fff; }
.chips { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--ink); color: #fff; padding: 9px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.act__viz--compare { margin-top: auto; height: 130px; display: flex; align-items: end; gap: 10px; }
.act__viz--compare span { flex: 1; height: var(--h); background: rgba(255,255,255,.28); border-radius: 10px 10px 4px 4px; transform-origin: bottom; }
.act__viz--compare span.you { background: var(--sun); }
.act__score { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.act__score b { font: 800 clamp(6rem, 12vw, 9.5rem)/.8 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.act__score span { font: 700 24px/1 var(--f-display); opacity: .7; }
.recs { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.recs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(255,255,255,.55); padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.recs b { background: var(--ink); color: var(--mint); font: 800 14px/1 var(--f-display); padding: 6px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }

/* ==========================================================
   DASHBOARD
   ========================================================== */
.dash { background: var(--night); color: var(--night-text); padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 12vh, 140px); margin-top: clamp(80px, 12vh, 140px); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; position: relative; }
.dash__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vh, 56px); }
.dash__lede { max-width: 40ch; color: var(--night-text-2); margin: 0; }

.app {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  background: var(--night-2);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--night-line), 0 60px 120px -40px rgba(0,0,0,.7);
  overflow: hidden;
  min-height: 600px;
}
.app__side { background: var(--night); border-right: 1px solid var(--night-line); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.app__event { display: flex; gap: 10px; align-items: center; padding: 6px; }
.app__event-dot { width: 32px; height: 32px; border-radius: 10px; background: conic-gradient(from 90deg, var(--tomato) 0 25%, var(--sun) 0 50%, var(--mint) 0 75%, var(--violet) 0); flex: none; }
.app__event b { display: block; font-size: 14px; line-height: 1.2; }
.app__event small { color: var(--night-text-2); font-size: 12px; }
.app__tabs { display: grid; gap: 4px; }
.app__tabs button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--night-text-2); padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .25s, color .25s; }
.app__tabs button:hover { background: var(--night-3); color: #fff; }
.app__tabs button[aria-selected="true"] { background: var(--violet); color: #fff; }
.app__foot { margin-top: auto; }
.app__main { padding: 22px; min-width: 0; }
.app__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.app__bar h3 { margin: 0; font: 800 20px/1.15 var(--f-display); letter-spacing: -0.02em; color: #fff; }
.app__bar small { color: var(--night-text-2); font-size: 13px; }
.pill { display: inline-block; font: 700 12px/1 var(--f-body); padding: 6px 10px; border-radius: 99px; color: var(--ink); white-space: nowrap; }
.pill--mint { background: var(--mint); } .pill--sun { background: var(--sun); } .pill--tomato { background: var(--tomato); }

.view[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
.tile { background: var(--night-3); border-radius: var(--r); padding: 18px; min-width: 0; }
.tile__k { display: block; font-size: 13px; font-weight: 600; color: var(--night-text-2); margin-bottom: 10px; }
.tile__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile--score { background: var(--violet); color: #fff; display: flex; flex-direction: column; }
.tile--score .tile__k { color: #fff; }
.tile--score small { color: #fff; font-size: 13px; margin-top: auto; }
.tile--score .up { color: #B8FFE6; }
.bigscore { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 16px; }
.bigscore b { font: 800 clamp(4.5rem, 7vw, 6rem)/.82 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bigscore span { font: 700 20px/1 var(--f-display); opacity: .7; }
.scorebar { position: relative; height: 12px; background: rgba(255,255,255,.2); border-radius: 99px; margin-bottom: 14px; }
.scorebar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--sun); border-radius: 99px; transform-origin: left; }
.scorebar em { position: absolute; top: -5px; bottom: -5px; left: var(--l); width: calc(var(--r) - var(--l)); background: rgba(255,255,255,.28); border-radius: 4px; }
.scorebar em::before, .scorebar em::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; border-radius: 2px; }
.scorebar em::before { left: 0; } .scorebar em::after { right: 0; }
.tile--chart { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--night-text-2); margin-bottom: 10px; }
.legend i { width: 14px; height: 4px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.legend .l1 { background: var(--sun); } .legend .l2 { background: var(--night-text-2); opacity: .5; }
.chart { width: 100%; flex: 1; min-height: 220px; overflow: visible; }
.chart__grid line { stroke: var(--night-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__cap { stroke: var(--tomato); stroke-dasharray: 6 6; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart-wrap { position: relative; flex: 1; display: flex; flex-direction: column; }
.chart__caplabel { position: absolute; left: 0; top: 0; font: 700 12px/1 var(--f-body); color: #FF7A61; background: var(--night-3); padding-right: 8px; }
.chart__prev { fill: none; stroke: var(--night-text-2); stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.chart__area { fill: url(#chartFill); }
.chart__line { fill: none; stroke: var(--sun); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__dot { fill: var(--sun); stroke: var(--night-3); stroke-width: 4; }
.chart__x { display: flex; justify-content: space-between; font-size: 12px; color: var(--night-text-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.tile--drivers { grid-column: 3; grid-row: 1 / span 2; }
.drivers { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.drivers li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 14px; }
.drivers li i { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 99px; width: var(--w); background: var(--c); transform-origin: left; }
.drivers b { font: 800 15px/1 var(--f-display); font-variant-numeric: tabular-nums; color: #fff; }
.drivers .neg b { color: #FF7A61; }
.c-mint { --c: var(--mint); } .c-sky { --c: var(--sky); } .c-sun { --c: var(--sun); } .c-violet { --c: var(--violet-soft); } .c-tomato { --c: var(--tomato); }
.tile--aud { grid-column: 1; grid-row: 2; }
.aud { display: grid; gap: 14px; }
.aud__faces { display: flex; }
.aud__faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--night-3); }
.aud__faces img + img { margin-left: -10px; }
.aud ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.aud li { display: flex; justify-content: space-between; gap: 8px; color: var(--night-text-2); }
.aud li b { color: #fff; font-variant-numeric: tabular-nums; }
.tile--recs { grid-column: 1 / -1; }
.app-recs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-recs li { display: flex; align-items: center; gap: 10px; background: var(--night-2); padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.app-recs b { margin-left: auto; color: var(--mint); font: 800 14px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.cal__cell { aspect-ratio: 1.25; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; background: color-mix(in srgb, var(--mint) calc(var(--v) * 1%), var(--night-3)); color: var(--ink); font-size: 12px; font-weight: 600; transition: translate .4s var(--ease-out); }
.cal__cell.is-dim { color: var(--night-text-2); }
.cal__cell b { font: 800 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cal__cell.is-top { box-shadow: inset 0 0 0 3px var(--sun); }
.cal__cell:hover { translate: 0 -3px; }
.cal__legend { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12px; color: var(--night-text-2); }
.cal__legend i { width: 160px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--night-3), var(--mint)); }

/* simulator */
.sim { background: var(--night-3); border-radius: var(--r); padding: 24px; }
.sim__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--night-text-2); margin-bottom: 14px; }
.sim__label output { font: 800 40px/1 var(--f-display); color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--sun) var(--p, 45%), var(--night-2) var(--p, 45%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 6px solid var(--tomato); box-shadow: 0 6px 16px -4px rgba(0,0,0,.5); transition: transform .2s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 6px solid var(--tomato); }
.range:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 4px; }
.sim__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.sim__stats div { background: var(--night-2); border-radius: 12px; padding: 14px; }
.sim__stats span { display: block; font-size: 12px; color: var(--night-text-2); margin-bottom: 6px; }
.sim__stats b { font: 800 26px/1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sim__curve { width: 100%; height: 160px; }
.sim__path { fill: none; stroke: var(--sky); stroke-width: 3; vector-effect: non-scaling-stroke; }
.sim__marker { stroke: var(--tomato); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sim__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--night-text-2); }

/* venues table */
.vt { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14px; }
.vt th, .vt td { text-align: left; padding: 14px; font-variant-numeric: tabular-nums; }
.vt thead th { font-size: 12px; font-weight: 600; color: var(--night-text-2); padding-block: 4px; }
.vt tbody tr { background: var(--night-3); }
.vt tbody th { font-weight: 700; color: #fff; border-radius: 12px 0 0 12px; }
.vt tbody td:last-child { border-radius: 0 12px 12px 0; }
.vt tbody td b { font: 800 20px/1 var(--f-display); color: #fff; }
.vt tr.is-top { background: var(--violet); }
.fill { display: inline-block; width: 80px; height: 8px; border-radius: 8px; background: var(--night-2); margin-right: 10px; vertical-align: middle; overflow: hidden; }
.fill i { display: block; height: 100%; width: var(--w); background: var(--mint); }

.dash__feats { list-style: none; margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-top: 0; }
.dash__feats li { color: var(--night-text-2); font-size: 15px; border-top: 2px solid var(--night-3); padding-top: 16px; }
.dash__feats b { display: block; color: #fff; font: 800 20px/1.1 var(--f-display); margin-bottom: 6px; }

/* ==========================================================
   WHO
   ========================================================== */
.who { background: var(--paper); padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 12vh, 140px); position: relative; }
.who::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: clamp(28px, 4vw, 56px); background: var(--night); border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.who__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vh, 72px); }
.who__head p { margin: 0; color: var(--ink-2); max-width: 46ch; font-size: 18px; }
.roles { display: grid; gap: 24px; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.role {
  --c: var(--paper-2);
  --dim: 0;
  position: sticky; top: 92px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: min(68vh, 560px);
  background: var(--c);
  border-radius: var(--r-lg);
  overflow: hidden;
  transform-origin: center top;
}
.role::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim); pointer-events: none; border-radius: inherit; }
.role--tomato { --c: var(--tomato); }
.role--violet { --c: var(--violet); color: #fff; }
.role--sky { --c: var(--sky); }
.role__photo { position: relative; overflow: hidden; margin: 14px; border-radius: calc(var(--r-lg) - 10px); box-shadow: inset 0 0 0 3px var(--ink); }
.role__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--ink); pointer-events: none; }
.role__photo img { width: 100%; height: 115%; object-fit: cover; position: absolute; top: -7.5%; left: 0; }
.role__body { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 48px) clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 18px; }
.role__name { font: 800 clamp(2.4rem, 4.8vw, 4.5rem)/.92 var(--f-display); font-variation-settings: "wdth" 84; letter-spacing: -0.04em; margin: 0; }
.role__q { font: 700 clamp(1.15rem, 1.7vw, 1.5rem)/1.2 var(--f-display); margin: 0; letter-spacing: -0.01em; max-width: 24ch; }
.role__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 46ch; }
.role__list li { position: relative; padding-left: 30px; font-size: 16px; }
.role__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.role--violet .role__list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B4BFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.mini { margin-top: auto; align-self: flex-start; min-height: 64px; width: min(100%, 420px); }
.mini .set__t { white-space: normal; line-height: 1.22; }
.mini.set--mint { background: #fff; }
.role .mini { box-shadow: 0 16px 30px -18px rgba(28,18,51,.6); }
.role--tomato .mini { --c: #fff; }
.role--violet .mini { --c: var(--sun); color: var(--ink); }
.role--violet .mini .score { background: var(--ink); color: #fff; }
.role--sky .mini { --c: #fff; color: var(--ink); }
.role--sky .mini .score { background: var(--violet); color: #fff; }

/* ==========================================================
   INSURERS
   ========================================================== */
.ins { padding: clamp(96px, 14vh, 160px) 0; }
.ins__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ins__copy p { color: var(--ink-2); font-size: 18px; max-width: 44ch; margin: 24px 0 32px; }
.ins__card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--sun); border-radius: var(--r-lg); padding: 14px; }
.ins__photo { margin: 0; border-radius: calc(var(--r-lg) - 10px); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.ins__photo::after, .cta__pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--ink); pointer-events: none; }
.ins__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.risk { padding: 20px 18px 18px 26px; display: flex; flex-direction: column; gap: 18px; }
.risk__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.risk__head b { font: 800 22px/1 var(--f-display); letter-spacing: -0.02em; }
.risk__head .tag { background: rgba(255,255,255,.6); }
.risk ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.risk li { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; font-weight: 600; }
.risk li i { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: rgba(28,18,51,.14); position: relative; overflow: hidden; }
.risk li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); border-radius: 99px; }
.risk li b { font: 800 16px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.risk__grade { margin-top: auto; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.risk__grade span { font-size: 12px; color: #CFC6EE; }
.risk__grade b { font: 800 22px/1 var(--f-display); color: var(--sun); }

/* ==========================================================
   VOICES
   ========================================================== */
.voices { padding: 0 0 clamp(96px, 14vh, 160px); }
.voices__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vh, 56px); flex-wrap: wrap; }
.quotes { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.quote { margin: 0; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: var(--paper-2); }
.quote--big { grid-row: span 2; background: var(--ink); color: #fff; }
.quote--sun { background: var(--pink); }
.quote--mint { background: var(--mint); }
.quote blockquote { margin: 0; font: 700 clamp(1.3rem, 1.9vw, 1.75rem)/1.2 var(--f-display); letter-spacing: -0.02em; text-wrap: pretty; }
.quote--big blockquote { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.14; letter-spacing: -0.03em; font-weight: 800; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.quote--big figcaption img { width: 72px; height: 72px; border-radius: 20px; }
.quote figcaption b { display: block; font-size: 16px; }
.quote--big figcaption span { color: #CFC6EE; }
.quote--big figcaption b { color: #fff; }

/* ==========================================================
   CTA
   ========================================================== */
.cta { position: relative; background: var(--tomato); padding: clamp(96px, 14vh, 160px) 0; overflow: hidden; isolation: isolate; }
.cta__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta__title { font: 800 clamp(3rem, 7vw, 6rem)/.88 var(--f-display); font-variation-settings: "wdth" 84; letter-spacing: -0.045em; margin: 0 0 24px; color: var(--ink); }
.cta__copy p { font-size: 19px; max-width: 40ch; margin: 0; font-weight: 500; }
.cta__pic { position: relative; margin: clamp(28px, 4vh, 44px) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--ink); max-width: 600px; }
.cta__pic img { width: 100%; height: 120%; object-fit: cover; object-position: center 35%; position: absolute; top: -10%; left: 0; }
.cta__pic figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: #fff; font: 700 13px/1 var(--f-body); padding: 9px 12px; border-radius: 99px; }
.form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(28,18,51,.6); }
.form__row { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form label, .form legend { font-size: 14px; font-weight: 700; padding: 0; }
.form input[type="text"], .form input[type="email"] { font: 500 16px var(--f-body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 14px; transition: border-color .2s, box-shadow .2s; caret-color: var(--tomato); }
.form input:hover { border-color: rgba(28,18,51,.25); }
.form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(107,75,255,.18); }
.form input[aria-invalid="true"] { border-color: var(--tomato); box-shadow: 0 0 0 4px rgba(255,84,54,.15); }
.form__roles { display: flex; flex-wrap: wrap; gap: 8px; }
.form__roles legend { margin-bottom: 8px; width: 100%; }
.form__roles label { position: relative; }
.form__roles input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__roles span { display: inline-block; padding: 10px 14px; border-radius: 99px; background: #fff; border: 2px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.form__roles input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.form__roles input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.form__error { margin: 0; color: #C42A10; font-weight: 600; font-size: 14px; }
.form__submit { width: 100%; margin-top: 4px; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__done { margin: 0; background: var(--mint); border-radius: 14px; padding: 16px; font-size: 15px; }
.form__done b { display: block; font: 800 20px/1.1 var(--f-display); margin-bottom: 4px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.foot { background: var(--ink); color: #CFC6EE; padding-top: 64px; overflow: hidden; }
.foot__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot__line { margin: 0; font: 700 20px/1.2 var(--f-display); color: #fff; max-width: 30ch; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot__links a:hover { color: var(--sun); }
.foot__mark { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; color: var(--violet); }
.foot__mark svg { width: 100%; height: auto; display: block; }
.foot__base { display: flex; justify-content: space-between; padding-block: 24px; font-size: 13px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile--chart { grid-column: 1 / -1; grid-row: auto; }
  .tile--drivers { grid-column: 2; grid-row: auto; }
  .tile--aud { grid-column: 1; grid-row: auto; }
  .dash__feats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero__copy { grid-template-columns: 1fr; }
  .dash__head, .how__head { flex-direction: column; align-items: flex-start; }
  .who__head, .ins__grid, .cta__grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app__bar { flex-wrap: wrap; }
  .app__tabs { scrollbar-width: none; }
  .app__side { border-right: 0; border-bottom: 1px solid var(--night-line); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; }
  .app__tabs { display: flex; gap: 4px; overflow-x: auto; width: 100%; order: 3; }
  .app__tabs button { width: auto; flex: none; }
  .app__event { flex: 1; min-width: 0; }
  .app__foot { margin: 0; }
  .app__main { padding: 14px; }
  .app-recs { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(5, 1fr); }
  .sim__stats { grid-template-columns: repeat(2, 1fr); }
  .vt { font-size: 13px; }
  .vt th:nth-child(4), .vt td:nth-child(4) { display: none; }
  .fill { display: none; }
  .role { grid-template-columns: minmax(0, 1fr); position: relative; top: 0; min-height: 0; }
  .role__photo { aspect-ratio: 16 / 10; margin-bottom: 0; }
  .role__body { padding: 24px; }
  .quotes { grid-template-columns: 1fr; }
  .quote--big { grid-row: auto; }
  .dash__feats { grid-template-columns: 1fr 1fr; }
  .how__pin { min-height: 0; }
  .how__rail { padding-inline: var(--gutter); }
  .how__track { flex-direction: column; width: auto; padding: 0; }
  .how__track::before, .how__times, .act::before, .how__hint { display: none; }
  .act { width: 100%; min-height: 0; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; padding-block: 12px; }
  .nav__logo { width: 96px; }
  .nav__cta { display: none; }
  .nav__menu { display: block; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .cal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim__label output { font-size: 32px; }
  .clock { display: inline-flex; padding: 6px 10px 6px 8px; }
  .clock__label { display: none; }
  .tile--drivers, .tile--aud { grid-column: 1; }
  .ins__card { grid-template-columns: 1fr; }
  .ins__photo { aspect-ratio: 16 / 11; }
  .risk { padding: 18px 8px 8px; }
  .dash__feats { grid-template-columns: 1fr; gap: 18px; }
  .hero__actions .btn--lg { flex: 1 1 auto; }
  .tt { padding-inline: 0; }
  .tt__scroller { border-radius: 0; padding-inline: 16px; }
  .tt__legend { padding-inline: 16px; }
  .tt__legend-note { margin-left: 0; }
  .foot__base { flex-direction: column; gap: 6px; }
}

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

/* ==========================================================
   CUSTOM CURSOR (fine pointers only)
   ========================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ink); border: 10px solid var(--paper); scale: .19; transition: scale .45s var(--ease-out), background-color .3s, border-width .3s, border-color .3s; }
.cursor.is-cta .cursor__dot { scale: 1; background: transparent; border-width: 2px; border-color: var(--ink); }
.cursor.is-cta.on-ink .cursor__dot { border-color: var(--tomato); }
.cursor.is-down .cursor__dot { scale: .14; }
.cursor.is-cta.is-down .cursor__dot { scale: .85; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none; }
  html.has-cursor :is(input[type="text"], input[type="email"], textarea) { cursor: text; }
  html.has-cursor input[type="range"] { cursor: grab; }
}

/* ==========================================================
   PRELOADER: the timetable warms up
   ========================================================== */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  color: var(--ink);
}
html.is-loading, html.is-loading body { overflow: hidden; }
.preloader__lanes { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(4, 1fr); }
.preloader__lanes i { display: block; position: relative; overflow: hidden; background: var(--pink); margin-bottom: -1px; }
.pre-wipe { position: absolute; inset: 0; }
.preloader__stage { position: relative; display: flex; align-items: flex-start; gap: .14em; font: 800 clamp(48px, 8.5vw, 120px)/1 var(--f-display); font-variation-settings: "wdth" 84, "opsz" 96; letter-spacing: -0.02em; text-transform: uppercase; }
.preloader__words { display: grid; }
.pw { grid-area: 1 / 1; display: flex; justify-content: center; overflow: hidden; padding-block: .06em; }
.pw span { display: inline-block; will-change: transform; }
.preloader__score {
  font: 800 .3em/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  min-width: 1.9em; height: 1.9em; padding: 0 .3em; border-radius: 99px;
  display: grid; place-items: center; background: var(--ink); color: #fff; margin-top: .25em;
}
.pre-logo { position: absolute; width: min(64vw, 600px); pointer-events: none; }
.pre-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.preloader__rail { position: absolute; left: 50%; bottom: clamp(28px, 6vh, 56px); translate: -50% 0; width: min(78vw, 460px); display: flex; align-items: center; gap: 14px; font: 800 13px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.preloader__rail i { flex: 1; height: 3px; border-radius: 3px; position: relative; overflow: hidden; background: color-mix(in srgb, currentColor 22%, transparent); }
.preloader__rail b { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { html.js .preloader { display: none; } }

/* ==========================================================
   LANGUAGE SELECTOR
   ========================================================== */
.lang { position: relative; flex: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 12px;
  border: 2px solid currentColor; border-radius: 12px; background: transparent; cursor: pointer;
  font: 800 14px/1 var(--f-display); letter-spacing: .02em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav.on-dark .lang__btn:hover, .nav.on-dark .lang.is-open .lang__btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.lang__chev { width: 16px; height: 16px; transition: rotate .35s var(--ease-out); }
.lang.is-open .lang__chev { rotate: 180deg; }
.lang__list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 196px; margin: 0; padding: 6px; list-style: none;
  background: #fff; color: var(--ink); border-radius: 16px;
  box-shadow: inset 0 0 0 2px var(--ink), 0 24px 48px -20px rgba(28, 18, 51, .45);
}
.lang__list[hidden] { display: none; }
.lang__list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
  font: 600 15px/1 var(--f-body); cursor: pointer; outline: none;
}
.lang__list li b { font: 800 12px/1 var(--f-display); letter-spacing: .03em; background: var(--paper-2); padding: 6px 7px; border-radius: 7px; min-width: 30px; text-align: center; }
.lang__list li:hover, .lang__list li:focus-visible { background: var(--paper); }
.lang__list li:focus-visible { box-shadow: inset 0 0 0 2px var(--violet); }
.lang__list li[aria-selected="true"] b { background: var(--tomato); }
.lang__check { margin-left: auto; width: 18px; height: 18px; stroke-width: 2.6; opacity: 0; }
.lang__list li[aria-selected="true"] .lang__check { opacity: 1; }
@media (max-width: 640px) {
  .lang__btn { height: 44px; padding: 0 9px; gap: 5px; }
  .lang__btn > .ico:first-child { display: none; }
}
/* Spanish copy runs longer: give the hero headline a touch more room */
html[lang="es"] .hero__title { font-size: clamp(2.5rem, 5.3vw, 4.9rem); }
