/* 1LTU F1 diena 2027, version 2
   Colour, taken from the logo:
     60%  carbon black, the logo's own background
     30%  silver and aluminium, the colour of the LTU letters
     10%  the tricolour of the "1": yellow leads, green and red only appear together in the ribbon
   Type: Saira. Titles in Expanded ExtraBold Italic to echo the logo lettering, text in regular width. */

:root {
  --carbon: #0A0A0B;
  --carbon-2: #151517;
  --line-dark: rgba(255, 255, 255, 0.14);
  --white: #F6F6F4;
  --silver: #C6C8CB;
  --silver-dim: #8E9196;
  --alu: #E7E8EA;
  --ink: #0A0A0B;
  --ink-2: #3A3D42;
  --line-light: #C9CCD0;
  --yellow: #FBD205;
  --yellow-hover: #E9C300;
  --green: #0A5A26;
  --red: #D70112;

  --wrap: 1344px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --top: 64px;
  --split-gap: clamp(32px, 5vw, 80px);
  --split-right: calc((100% - var(--split-gap)) * 7 / 12 + var(--split-gap));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 30px); }

body {
  margin: 0;
  background: var(--carbon);
  color: var(--silver);
  font-family: "Saira", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--silver-dim); }

h1, h2, h3 { margin: 0; color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.012em; }
h1 { font-size: clamp(2rem, 6.3vw, 6.4rem); line-height: 0.98; }
h2 { font-size: clamp(1.85rem, 3.9vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 700; line-height: 1.15; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.tickets :focus-visible { outline-color: var(--ink); }

.ribbon { height: 6px; background: linear-gradient(to bottom, var(--yellow) 0 33.34%, var(--green) 33.34% 66.67%, var(--red) 66.67% 100%); }

/* WhatsApp mark shown in front of every WhatsApp link */
.wa { display: inline-block; width: 1.2em; height: 1.2em; margin-right: .38em; vertical-align: -0.24em; }
/* Envelope shown in front of the email address */
.em { display: inline-block; width: 1.2em; height: 1.2em; margin-right: .38em; vertical-align: -0.24em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 0 26px; border: 2px solid transparent; border-radius: 3px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-hover); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #26272B; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-line-light { background: transparent; border-color: var(--line-dark); color: var(--white); }
.btn-line-light:hover { border-color: var(--white); }

/* Top bar: stays in view. The yellow tab leans at the same angle as the logo,
   and the tricolour line under the bar fills as the page is read. */
.top { position: sticky; top: 0; z-index: 70; background: var(--carbon); overflow: hidden; overflow: clip; }
.top-in { display: flex; align-items: stretch; height: var(--top); padding-left: var(--gutter); }
.logo { display: flex; align-items: center; padding-right: 28px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: stretch; margin-left: auto; margin-right: 22px; }
.nav a {
  position: relative; display: flex; align-items: center; padding: 0 18px;
  color: var(--silver); text-decoration: none; font-weight: 700; font-style: italic; font-stretch: 125%; font-size: 0.86rem; letter-spacing: 0.01em;
}
.nav a:hover { color: var(--white); }
.nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 14px; height: 3px; background: var(--yellow); transform: skewX(-18deg) scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a.on, .nav a[aria-current="page"] { color: var(--white); }
.nav a.on::after { transform: skewX(-18deg) scaleX(1); }
.top-cta {
  display: flex; align-items: center; padding: 0 var(--gutter) 0 40px;
  background: var(--yellow); color: var(--ink); text-decoration: none; white-space: nowrap;
  font-weight: 800; font-style: italic; font-stretch: 125%; font-size: 0.92rem;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  transition: background-color .15s ease;
}
.top-cta:hover { background: var(--yellow-hover); }
.js .top-cta { transform: translateX(104%); visibility: hidden; transition: transform .25s ease, visibility .25s, background-color .15s ease; }
.js .top-cta.show { transform: none; visibility: visible; }
.progress { height: 6px; background: #1C1C1F; }
.progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(to bottom, var(--yellow) 0 33.34%, var(--green) 33.34% 66.67%, var(--red) 66.67% 100%); }

/* Hero: the view through the visor, then the headline */
.hero { background: var(--carbon); padding: clamp(14px, 1.8vw, 26px) 0 clamp(40px, 5vw, 64px); }
.hero-in { max-width: 1600px; margin: 0 auto; padding: 0 clamp(14px, 2vw, 32px); text-align: center; }
.visor { position: relative; }
.visor-shape {
  position: relative; overflow: hidden;
  height: clamp(230px, min(31vw, 46vh), 540px);
  background: #BFC6CC url("media/hero-poster.jpg") 50% 62% / cover no-repeat;
  border-radius: 17% 17% 12% 12% / 68% 68% 44% 44%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 0 0 12px #141416, 0 0 0 13px rgba(255, 255, 255, .06);
  animation: visor-open 1.1s cubic-bezier(.2, .75, .15, 1) .1s both;
}
.visor-shape::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 24%), linear-gradient(to top, rgba(10, 10, 11, .28), rgba(10, 10, 11, 0) 30%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@keyframes visor-open {
  from { clip-path: inset(46% 6% 46% 6% round 999px); }
  to { clip-path: inset(-20px -20px -20px -20px round 0); }
}
.visor-frame { position: relative; }
.visor figcaption { margin: 16px 2.5% 0 0; text-align: right; font-size: 0.82rem; color: var(--silver-dim); }
.visor-pause {
  position: absolute; left: 0.4%; bottom: 0; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(21, 21, 23, .9); border: 1px solid var(--line-dark); border-radius: 50%; color: var(--silver); cursor: pointer;
}
.visor-pause::before { content: ""; width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.visor-pause.paused::before { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.visor-pause:hover { color: var(--white); border-color: var(--white); }
.visor-pause[hidden] { display: none; }
/* Sound: the video starts silent; this button turns the engine sound on and off. It sits on the right, where the eye lands first; pause is on the left */
.visor-sound {
  position: absolute; right: 0.4%; bottom: 0; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  background: rgba(21, 21, 23, .9); border: 1px solid var(--line-dark); border-radius: 50%; color: var(--silver); cursor: pointer;
}
.visor-sound svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visor-sound .spk { fill: currentColor; stroke: none; }
.visor-sound .wave { display: none; }
.visor-sound[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.visor-sound[aria-pressed="true"] .wave { display: inline; }
.visor-sound[aria-pressed="true"] .off { display: none; }
.visor-sound:hover { color: var(--white); border-color: var(--white); }
.visor-sound[aria-pressed="true"]:hover { color: var(--ink); border-color: var(--yellow-hover); background: var(--yellow-hover); }
.visor-sound[hidden] { display: none; }


.hero h1 { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(1.9rem, 4.75vw, 5rem); white-space: nowrap; }
.hero-sub { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(18px, 2vw, 26px); text-align: left; }
.hero-sub p { color: var(--silver); font-size: 1.1rem; line-height: 1.4; max-width: 50ch; margin: 0; }

/* „Jūs prie vairo“: the word „Jūs“ fills the width and the onboard footage runs inside its letters.
   The letters are white on the page colour and blended with "darken", so the video shows only through them. */
.you { padding: clamp(20px, 3vw, 44px) 0 0; overflow: hidden; overflow: clip; }
.jus { container-type: inline-size; }
.jus h2 { margin: 0; font-size: 1rem; line-height: 1; }
.jus-stage { position: relative; display: block; isolation: isolate; margin-left: -.026em; font-size: 40vw; font-size: 45cqw; background: var(--carbon); }
.jus-video { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; }
.jus-big { position: relative; display: block; margin-bottom: -1px; padding: .15em .1em 1px .05em; line-height: .8; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; background: var(--carbon); color: #fff; mix-blend-mode: darken; }
/* Very dark parts of the footage would show as shapes darker than the page; this layer lifts them back to the page colour */
.jus-stage::after { content: ""; position: absolute; inset: 0; background: var(--carbon); mix-blend-mode: lighten; pointer-events: none; }
/* A solid frame over the edges: browsers can leave a hairline where a blended layer ends */
.jus-stage::before { content: ""; position: absolute; inset: -3px; z-index: 2; border: 6px solid var(--carbon); pointer-events: none; }
.jus-rest { display: block; margin: -.04em 0 0 var(--split-right); white-space: nowrap; font-size: clamp(2.1rem, 6.6vw, 5.8rem); line-height: 1; }
.jus-text { margin: clamp(22px, 2.6vw, 36px) 0 0 var(--split-right); }
.lede { color: var(--white); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.3; font-weight: 500; max-width: 28ch; }
.jus-text p:not(.lede) { margin-top: 18px; }
/* The word is wiped in from the left and „prie vairo“ follows it. The script hides it first (class "wait"),
   so without the script, or with an old cached one, the word is simply there. */
.jus.wait .jus-stage { clip-path: inset(-3px 100% -3px -3px); }
.jus.wait .jus-rest { opacity: 0; transform: translateX(-28px); }
.jus.in .jus-stage { clip-path: inset(-3px); transition: clip-path 1.1s cubic-bezier(.2, .75, .15, 1); }
.jus.in .jus-rest { transition: opacity .6s ease .55s, transform .8s cubic-bezier(.2, .75, .15, 1) .55s; }
/* Wide screens: „JŪS“ with „prie vairo“ tucked under its right end on the left, the text on the right,
   on the same two columns as the day plan below. The text starts level with the top of the letters. */
@media (min-width: 901px) {
  @supports (grid-template-columns: subgrid) {
    .jus { --jus-fs: calc((100cqw - var(--split-gap)) * 7 / 24); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: var(--split-gap); align-items: start; }
    .jus h2 { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
    .jus-stage { grid-column: 1; grid-row: 1; align-self: start; font-size: var(--jus-fs); }
    .jus-big { padding-right: 0; }
    .jus-rest { grid-column: 1; grid-row: 2; justify-self: end; align-self: start; margin: calc(var(--jus-fs) * .03) calc(var(--jus-fs) * .05) 0 0; font-size: calc(var(--jus-fs) * .2); }
    .jus-text { grid-column: 2; grid-row: 1 / -1; margin: 0; padding-top: calc(var(--jus-fs) * .2); }
  }
}

/* On wide screens the photo and the track card are placed straight into the section's grid */
.car-photos { display: contents; }
.swipe-count, .mnav { display: none; }

/* Section heads */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(36px, 4.6vw, 64px); }
.head h2 { grid-column: 1 / span 7; }
.head p { grid-column: 9 / span 4; max-width: 40ch; }

/* The day */
.day { padding: var(--section) 0; }
.day-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--split-gap); align-items: stretch; }
.day-media { position: relative; min-width: 0; border-radius: 4px; overflow: hidden; background: var(--carbon-2); }
.day-media::before { content: ""; display: block; padding-top: 75%; }
.day-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.day-media img.on { opacity: 1; }
/* Lines only between the steps: none above the first and none under the last */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { flex: 1; display: flex; border-bottom: 1px solid var(--line-dark); }
.steps li:last-child { border-bottom: 0; }
.steps li > img { display: none; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: center;
  width: 100%; padding: 14px 8px 14px 0; background: none; border: 0; color: var(--silver); font: inherit; text-align: left; cursor: pointer;
}
.step .num { grid-row: 1 / span 2; align-self: start; padding-top: 5px; font-weight: 800; font-style: italic; font-stretch: 125%; font-size: 1.05rem; color: var(--silver-dim); }
.step-t { color: var(--white); font-weight: 700; font-style: italic; font-stretch: 125%; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.15; }
.step-d { font-size: 0.98rem; line-height: 1.45; max-width: 44ch; }
.steps li.on .num, .steps li.on .step-t { color: var(--yellow); }
.step:hover .step-t { color: var(--yellow); }

/* Car */
.car { padding: 0 0 var(--section); }
.car-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
  grid-template-areas:
    "main main main main main main main main text text text text"
    "main main main main main main main main side side side side"
    "dash dash dash dash dash dash dash dash dash dash dash dash";
}
.car-main { grid-area: main; }
.car-main img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; border-radius: 4px; }
.car-text { grid-area: text; padding: 4px 0 12px 12px; }
.car-text h2 { margin-bottom: 20px; }
.car-text p { max-width: 34ch; }
/* The two drivers who raced the car */
.drivers { list-style: none; margin: 22px 0 0; padding: 0; }
.drivers li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.drivers li:last-child { border-bottom: 0; }
.drivers img { flex: none; width: 68px; height: 68px; object-fit: cover; border-radius: 4px; filter: grayscale(1); }
.drivers strong { display: block; color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.drivers small { display: block; margin-top: 5px; color: var(--silver-dim); font-size: 0.95rem; line-height: 1.35; }
.car-side { grid-area: side; align-self: end; padding-left: 12px; }
.car-side figcaption { margin: 0; }
/* The track outline lies half on the photo and half off it (drawn in once when it comes on screen, with a dot
   lapping it); the name and two figures stand beside the part that is off the photo */
.car-main { position: relative; }
.car-main::after { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background: radial-gradient(ellipse 70% 75% at 100% 100%, rgba(10, 10, 11, .88) 0, rgba(10, 10, 11, .55) 45%, rgba(10, 10, 11, 0) 100%); }
.car-side { position: relative; z-index: 1; }
.track { --map: clamp(160px, 16vw, 220px); display: grid; grid-template-columns: var(--map) minmax(0, 1fr); align-items: end; gap: clamp(16px, 1.8vw, 26px); margin-left: calc(var(--map) * -0.7); }
.track-map { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.track-map path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.track-base { stroke: rgba(10, 10, 11, .62); stroke-width: 10; }
.track-line { stroke: var(--yellow); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(.45, 0, .2, 1); }
.track-dot { fill: var(--white); stroke: var(--carbon); stroke-width: 2; transition: opacity .4s ease 2.2s; }
.track.wait .track-line { stroke-dashoffset: 1; transition: none; }
.track.wait .track-dot { opacity: 0; transition: none; }
.track-name { margin: 0; }
.track-name strong { display: block; color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.track-name span { display: block; margin-top: 5px; color: var(--silver-dim); font-size: 0.95rem; }
.track-facts ul { list-style: none; margin: clamp(16px, 2vw, 24px) 0 0; padding: 0; display: grid; gap: 14px; }
.track-facts li b { display: block; color: var(--yellow); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.track-facts li span { display: block; margin-top: 4px; color: var(--silver); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .track-dot { display: none; } }
/* 0–200 km/h shown at its real pace: the speed, the clock and the bar all take five seconds */
/* The car in numbers: one panel, like the order form card. On top the 0–200 run with a time scale,
   underneath a darker strip with three figures side by side. */
.dash { grid-area: dash; margin-top: clamp(20px, 3vw, 44px); background: var(--carbon-2); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.run { padding: clamp(22px, 3vw, 40px) clamp(22px, 3.2vw, 44px) clamp(20px, 2.6vw, 34px); }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.run-label { color: var(--white); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; }
.run-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: clamp(14px, 2vw, 26px); font-variant-numeric: tabular-nums; }
.run-row p { display: flex; align-items: baseline; gap: .5em; }
.run-row b { font-weight: 800; font-style: italic; font-stretch: 125%; line-height: .9; letter-spacing: -0.02em; }
.run-row span { color: var(--silver-dim); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.run-speed b { min-width: 1.9em; font-size: clamp(5rem, 12.5vw, 11rem); color: var(--yellow); }
.run-time b { font-size: clamp(2.2rem, 4.4vw, 4rem); color: var(--white); }
.run-bar { height: 6px; margin-top: 18px; background: #26272B; border-radius: 3px; overflow: hidden; }
.run-bar i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; }
/* The bar is time: one mark per second */
.run-ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: space-between; color: var(--silver-dim); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.run-ticks li { position: relative; width: 0; white-space: nowrap; }
.run-ticks li:not(:first-child):not(:last-child) { display: flex; justify-content: center; }
.run-ticks li:last-child { display: flex; justify-content: flex-end; }
.run-again { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--line-dark); border-radius: 3px; background: none; color: var(--white); font: inherit; font-size: 0.92rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.run-again svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.2, .75, .15, 1); }
.run-again:hover { border-color: var(--yellow); color: var(--yellow); }
.run-again:hover svg { transform: rotate(-360deg); }
.run-again[hidden] { display: none; }
/* Three figures beside the run. Each has its own icon; the numbers count up when the run starts,
   and the icon moves once then and again when the row is pointed at. */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin: 0; padding: clamp(18px, 2.2vw, 28px) clamp(22px, 3.2vw, 44px); background: #0D0D0F; }
.spec { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-content: center; align-items: center; }
.spec dt { display: contents; color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1; letter-spacing: -0.01em; }
.spec dt svg { grid-row: 1 / span 2; width: 52px; height: 52px; padding: 12px; border: 1px solid var(--line-dark); border-radius: 50%; fill: none; stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: border-color .2s ease, background-color .2s ease; }
.spec dt span { align-self: end; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.spec dd { grid-column: 2; align-self: start; margin: 5px 0 0; color: var(--silver); line-height: 1.35; }
.spec dd small { display: block; color: var(--silver-dim); font-size: 0.9rem; }
.spec:hover dt svg, .spec.live dt svg { border-color: var(--yellow); }
.spec:hover dt svg { background: rgba(251, 210, 5, .08); }
.spec:hover dt span { color: var(--yellow); }
.spec-power dt svg path { fill: var(--yellow); stroke: none; transform-origin: 12px 12px; }
.spec-speed .needle { transform-origin: 12px 14.5px; transform: rotate(52deg); }
.spec-weight dt svg { transform-origin: 50% 100%; }
.spec-power.live dt svg path, .spec-power:hover dt svg path { animation: spec-bolt .7s ease 2; }
.spec-speed.live .needle, .spec-speed:hover .needle { animation: spec-needle 1.5s cubic-bezier(.2, .75, .15, 1); }
.spec-weight.live dt svg, .spec-weight:hover dt svg { animation: spec-drop .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes spec-bolt { 0%, 100% { opacity: 1; transform: none; } 35% { opacity: .25; transform: scale(.86); } 60% { opacity: 1; transform: scale(1.14); } }
@keyframes spec-needle { 0% { transform: rotate(-72deg); } 70% { transform: rotate(60deg); } 85% { transform: rotate(46deg); } 100% { transform: rotate(52deg); } }
@keyframes spec-drop { 0% { transform: translateY(-9px); } 55% { transform: translateY(0) scaleY(.9); } 100% { transform: none; } }

/* Film and short videos */
.film-sec { padding: 0 0 var(--section); }
.film { position: relative; border-radius: 4px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px);
  display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 24px 0 8px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700;
}
.film-play span, .reel .play {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23FBD205'/%3E%3C/svg%3E") 56% 50% / 20px no-repeat;
}
.film.started .film-play { display: none; }

.reels-h { margin: clamp(40px, 5vw, 64px) 0 20px; }
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.reel { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--white); font: inherit; text-align: left; cursor: pointer; }
.reel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; transition: opacity .15s ease; }
.reel:hover img { opacity: .82; }
.reel .play { position: absolute; left: 14px; top: 14px; background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%230A0A0B'/%3E%3C/svg%3E"); }
.reel-t { display: block; margin-top: 12px; font-weight: 600; }

/* Date and gifts: the August page of the printed calendar, redrawn for the screen, and the calendar itself */
.when { padding: 0 0 var(--section); }
.when-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.when-place { margin: 14px 0 30px; color: var(--white); font-size: 1.15rem; }
.month { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.month caption { text-align: left; padding-bottom: 12px; color: var(--silver-dim); font-size: 0.92rem; }
.month th { padding: 0 0 10px; font-weight: 600; font-size: 0.82rem; color: var(--silver-dim); border-bottom: 1px solid var(--line-dark); }
.month td { position: relative; height: 54px; padding: 0; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
.month small { font-size: 0.66rem; line-height: 1; white-space: nowrap; }
.month .gp { color: var(--white); }
.month .gp small { position: absolute; right: 2px; bottom: 5px; color: var(--silver-dim); }
/* The two event days are marked the way the printed 1LTU calendar marks them: a light tile with two cut corners,
   the logo between the dates and the line "Pirmas lietuvis" underneath */
.month .hit { height: 70px; }
.month .hit::before { content: ""; position: absolute; inset: 5px 2px; background: #ECEEF0; clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px); }
.month .hit div { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--ink); }
.hit-days { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1vw, 14px); }
.month .hit b { font-weight: 800; font-style: italic; font-stretch: 125%; font-size: 1.35rem; line-height: 1; }
.month .hit img { display: block; height: 19px; width: auto; }
.month .hit small { display: flex; align-items: center; gap: 6px; font-size: 0.56rem; font-weight: 700; font-style: italic; letter-spacing: 0.06em; text-transform: uppercase; }
.month .hit small::before, .month .hit small::after { content: ""; width: 12px; height: 1px; background: currentColor; }
/* Add to calendar: one button per calendar, each with its own icon */
.cal-add { margin-top: 24px; }
.cal-add p { margin-bottom: 10px; color: var(--silver-dim); font-size: 0.92rem; }
.cal-add ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cal-add a { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 13px; background: var(--carbon-2); border: 1px solid var(--line-dark); border-radius: 3px; color: var(--white); font-weight: 600; text-decoration: none; transition: transform .18s cubic-bezier(.2, .75, .15, 1), border-color .15s ease, background-color .15s ease; }
.cal-add svg { flex: none; border-radius: 4px; transition: transform .18s cubic-bezier(.2, .75, .15, 1); }
.cal-add a:hover { transform: translateY(-2px); border-color: var(--yellow); background: #1D1E21; }
.cal-add a:hover svg { transform: scale(1.12) rotate(-4deg); }
.cal-add a:active { transform: none; }
/* The box stands a little right of the middle of its column, and the text sits exactly under the box */
.when-gifts { justify-self: center; width: min(560px, 100%); margin-left: calc(var(--split-gap) * .6); }
.gift { position: relative; aspect-ratio: 16 / 10; max-width: 560px; margin-bottom: 30px; }
.gift-copy { margin: 0 17%; }
.gift > span { position: absolute; display: block; }
.gift-glow { left: 0; right: 0; top: 0; bottom: 18%; background: radial-gradient(ellipse 38% 48% at 58% 70%, rgba(251, 210, 5, .46), rgba(251, 210, 5, .13) 55%, transparent 100%); }
/* Three calendar pages stand in the box like a hand of tickets. Pointing at the box spreads them wider and
   lifts the lid; pointing at one page pulls that page up. On touch screens the script spreads them once. */
.gift-cal { left: 35%; top: 6%; width: 30%; aspect-ratio: 745 / 1045; will-change: transform; }
.gift-cal img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 2px; transform-origin: 50% 118%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .55); transition: transform .55s cubic-bezier(.2, .75, .15, 1); }
.gift-cal img:nth-child(1) { transform: rotate(-13deg); }
.gift-cal img:nth-child(2) { transform: translateY(-3%); }
.gift-cal img:nth-child(3) { transform: rotate(13deg); }
.gift:hover .gift-cal img:nth-child(1), .gift.open .gift-cal img:nth-child(1) { transform: rotate(-25deg) translateY(-6%); }
.gift:hover .gift-cal img:nth-child(2), .gift.open .gift-cal img:nth-child(2) { transform: translateY(-11%); }
.gift:hover .gift-cal img:nth-child(3), .gift.open .gift-cal img:nth-child(3) { transform: rotate(25deg) translateY(-6%); }
.gift .gift-cal img:nth-child(1):hover { z-index: 2; transform: rotate(-25deg) translateY(-16%); }
.gift .gift-cal img:nth-child(2):hover { z-index: 2; transform: translateY(-20%); }
.gift .gift-cal img:nth-child(3):hover { z-index: 2; transform: rotate(25deg) translateY(-16%); }
.gift-body { left: 17%; right: 17%; bottom: 0; height: 45%; border: 1px solid rgba(255, 255, 255, .16); border-top-color: rgba(255, 255, 255, .3); border-radius: 0 0 4px 4px; background: linear-gradient(#202023, #111113); box-shadow: inset 0 14px 18px -10px rgba(0, 0, 0, .9), 0 22px 40px rgba(0, 0, 0, .5); }
.gift-body img { position: absolute; right: 8%; bottom: 14%; width: 24%; height: auto; opacity: .92; }
.gift-lid { left: 13.5%; width: 71%; bottom: 45%; height: 17%; border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; background: linear-gradient(#2c2c30, #1a1a1d); transform-origin: 3% 100%; transform: rotate(-7deg); box-shadow: 0 10px 22px rgba(0, 0, 0, .55); transition: transform .55s cubic-bezier(.2, .75, .15, 1); }
.gift:hover .gift-lid, .gift.open .gift-lid { transform: rotate(-12deg); }
.gift-body i, .gift-lid i { position: absolute; top: 0; bottom: 0; left: 24%; width: 7%; background: linear-gradient(90deg, var(--yellow) 0 33.3%, var(--green) 33.3% 66.6%, var(--red) 66.6%); }
.gift-lid i { left: 26.4%; width: 6.3%; }
.when-gifts h3 { margin-bottom: 14px; }
.gift-text { max-width: 46ch; color: var(--white); font-size: 1.1rem; line-height: 1.45; }
.gift-more { margin-top: 10px; }

/* Partners: plain logos. The script puts four random ones first on every visit and hides the rest
   behind a button; without the script the whole list is simply shown. */
.partners { background: #17181A; padding: clamp(44px, 5.4vw, 76px) 0; }
.partners .head { margin-bottom: clamp(18px, 2.2vw, 30px); }
.film-sec + .partners { margin-top: 0; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 48px); }
.logos li { height: clamp(84px, 8vw, 112px); display: flex; align-items: center; justify-content: center; padding: 0 12%; }
.logos img { width: 100%; height: 100%; max-height: 60px; object-fit: contain; opacity: .9; transition: opacity .15s ease; }
.logos li:hover img { opacity: 1; }
/* Closed: the rows after the first four have no height. Opening lets them grow and fade in one after another. */
.logos.ready li:nth-child(n+5) { height: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: height .45s cubic-bezier(.2, .75, .15, 1), opacity .35s ease, transform .45s cubic-bezier(.2, .75, .15, 1), visibility 0s .45s; }
.logos.ready.open li:nth-child(n+5) { height: clamp(84px, 8vw, 112px); opacity: 1; visibility: visible; transform: none; transition-delay: 0s, calc(var(--i, 0) * 30ms), calc(var(--i, 0) * 30ms), 0s; }
.logos-more { margin-top: clamp(20px, 2.6vw, 36px); text-align: center; }

/* Tickets: the light 30% */
.tickets { background: var(--alu); color: var(--ink-2); padding: var(--section) 0; }
.tickets h2, .tickets h3 { color: var(--ink); }
.prices { border-top: 2px solid var(--ink); }
.price-row {
  display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 4.6fr) auto auto; column-gap: clamp(24px, 3vw, 48px); align-items: center;
  padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-light);
}
.price-row h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.price-row p { margin: 0; max-width: 48ch; }
.price-row .sum { color: var(--ink); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1; letter-spacing: -0.012em; white-space: nowrap; text-align: right; }
/* A price given in words is plain upright text, so it does not read as a second heading next to the row's title */
.price-row .sum-text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 600; font-style: normal; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); }
.price-row .sum span { font-size: 0.42em; font-weight: 600; font-style: normal; font-stretch: 100%; letter-spacing: 0; margin-right: 4px; }
.price-row .btn { min-width: 268px; }
/* Wide screens: the head and both rows share one set of columns, so titles, texts, prices and buttons
   start on the same lines. Without subgrid support the rows keep their own columns as before. */
@supports (grid-template-columns: subgrid) {
  @media (min-width: 1101px) {
    .tickets .wrap { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto clamp(216px, 21vw, 268px); column-gap: clamp(24px, 3vw, 48px); }
    .tickets .head, .prices, .price-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: clamp(24px, 3vw, 48px); }
    .tickets .head h2 { grid-column: 1 / span 2; }
    /* width 0 + min-width 100%: the long sentence fills the two columns without widening the price column */
    .tickets .head p { grid-column: 3 / span 2; max-width: none; width: 0; min-width: 100%; }
    .price-row .btn { min-width: 0; width: 100%; }
  }
}

/* Signup */
.signup { padding: var(--section) 0; }
.signup-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.signup h1, .signup h2 { font-size: clamp(2.2rem, 5.2vw, 4.8rem); margin-bottom: 18px; }
.signup-lead { font-size: 1.2rem; max-width: 34ch; }
.signup-alt { margin-top: 22px; }
.signup-alt a { color: var(--white); white-space: nowrap; }
/* The question on one line, the two ways to write on the next */
.signup-alt .contacts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 8px; }

.form { display: grid; gap: 18px; }
.form label, .choice legend { display: block; color: var(--white); font-weight: 600; margin-bottom: 8px; padding: 0; }
.form input[type="text"] {
  width: 100%; height: 58px; padding: 0 16px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 2px solid var(--white); border-radius: 3px;
}
.form input::placeholder { color: #8B8E93; }
.form input[aria-invalid="true"] { border-color: var(--red); }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { min-height: 58px; }
.form .check { display: flex; gap: 12px; align-items: flex-start; color: var(--silver); font-weight: 400; margin: 0; line-height: 1.4; }
.form .check input, .choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yellow); flex: none; }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice label { display: flex; gap: 12px; align-items: center; color: var(--silver); font-weight: 400; margin: 0; }
.note { font-size: 0.92rem; color: var(--silver-dim); margin: 0; }
.form-msg { min-height: 1.5em; margin: 0; color: var(--white); font-weight: 600; }
.form-msg.error { color: #FF8A8F; }
.form[data-mode="subscribe"] .tickets-only { display: none; }
.form[data-mode="tickets"] .subscribe-only { display: none; }

/* Order and company request: a ticket that fills in on the left, three short steps on the right */
.order { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--split-gap); align-items: start; }
.pass { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 520px; margin-top: 36px; }
.order-company { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; max-width: 520px; margin-top: 26px; }
.pass-main, .pass-stub { padding: 22px 24px 24px; }
.pass-main { background: #1D1E21; color: var(--silver); border-radius: 6px 0 0 6px; -webkit-mask: radial-gradient(circle 10px at 100% 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 100% 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat; }
.pass-main img { width: 86px; height: auto; }
.pass-title { margin-top: 22px; color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.05; letter-spacing: -0.01em; }
.pass-meta { margin-top: 8px; line-height: 1.4; }
.pass-name { margin-top: 22px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .22); color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.pass-name.empty { color: var(--silver-dim); font-weight: 400; }
.pass-stub { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 9.5em; background: var(--yellow); color: var(--ink); border-radius: 0 6px 6px 0; -webkit-mask: radial-gradient(circle 10px at 0 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 0 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat; }
.pass-stub span { display: block; font-size: 0.85rem; font-weight: 600; }
.pass-stub b { display: block; font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.pass-stub .small { font-size: 1.05rem; white-space: normal; }
/* More than one ticket: further tickets slide out from behind the first */
.pass::before, .pass::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: linear-gradient(90deg, #2A2B2F 0 70%, #B99A00 70%); opacity: 0; transition: transform .35s cubic-bezier(.2, .75, .15, 1), opacity .25s ease; }
.pass:not([data-n="1"])::before { opacity: 1; transform: rotate(-3deg) translate(-4px, 6px); }
.pass[data-n="many"]::after { opacity: 1; transform: rotate(3.2deg) translate(6px, 8px); }

.wiz [hidden] { display: none !important; }
.wiz { background: var(--carbon-2); border: 1px solid var(--line-dark); border-radius: 6px; padding: clamp(22px, 2.6vw, 36px); }
.wiz-nav { list-style: none; margin: 0 0 clamp(22px, 2.4vw, 32px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: step; font-size: 0.9rem; color: var(--silver-dim); }
.wiz-nav li { counter-increment: step; padding-top: 10px; border-top: 3px solid var(--line-dark); transition: border-color .25s ease, color .25s ease; }
.wiz-nav li::before { content: counter(step) ". "; }
.wiz-nav li.on, .wiz-nav li.done { border-color: var(--yellow); color: var(--white); }
.wiz-nav li.on { font-weight: 600; }
/* A finished step is a button: pressing it goes back to that step */
.wiz-nav button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.wiz-nav li.done button:not(:disabled) { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.wiz-nav li.done button:not(:disabled):hover { color: var(--yellow); text-decoration-color: currentColor; }
.step-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.step-panel legend { margin-bottom: 20px; padding: 0; color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; }
.step-panel legend:focus { outline: none; }
.step-center { text-align: center; }
.step-center legend { width: 100%; text-align: center; }
.step-center .qty, .step-center .qty-sum { justify-content: center; }
.step-panel.on, .step-done { animation: step-in .4s cubic-bezier(.2, .75, .15, 1); }
.step-panel.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-22px); } }
.wiz .field { margin-bottom: 14px; }
.wiz .field label { display: block; margin-bottom: 6px; color: var(--white); font-weight: 600; font-size: 0.95rem; }
.wiz .field label small { color: var(--silver-dim); font-weight: 400; font-size: inherit; }
.wiz input[type="text"], .wiz input[type="email"], .wiz input[type="tel"], .wiz textarea { width: 100%; height: 54px; padding: 0 14px; font: inherit; font-size: 1.05rem; color: var(--white); background: #0D0D0F; border: 1.5px solid var(--line-dark); border-radius: 3px; transition: border-color .15s ease; }
.wiz textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.wiz input::placeholder, .wiz textarea::placeholder { color: #6F7277; }
.wiz input:hover, .wiz textarea:hover { border-color: rgba(255, 255, 255, .3); }
.wiz input:focus, .wiz textarea:focus { border-color: var(--yellow); outline: none; }
.wiz [aria-invalid="true"] { border-color: #FF8A8F; }
.wiz .field-gap { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wiz .check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 14px; color: var(--silver); line-height: 1.4; cursor: pointer; }
.wiz .check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yellow); }
.qty { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); }
.qty button { flex: none; width: 56px; height: 56px; padding: 0 0 3px; border: 1.5px solid var(--line-dark); border-radius: 50%; background: none; color: var(--white); font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: border-color .15s ease, color .15s ease, transform .1s ease; }
.qty button:hover { border-color: var(--yellow); color: var(--yellow); }
.qty button:active { transform: scale(.94); }
.qty button:disabled { opacity: .3; cursor: default; border-color: var(--line-dark); color: var(--white); }
.qty input { width: 2.4ch; padding: 0; border: 0; background: none; color: var(--yellow); font: inherit; font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(3.6rem, 6.4vw, 5.4rem); line-height: 1; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty input.bump { animation: bump .25s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
.qty-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 14px; }
.qty-sum b { color: var(--white); font-weight: 800; font-style: italic; font-stretch: 125%; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: -0.01em; }
.qty-sum span { color: var(--silver-dim); flex-basis: 100%; }
.qty-sum i { color: var(--silver-dim); font-style: normal; font-weight: 600; margin-right: -6px; }
.step-center .note { text-wrap: balance; }
.wiz .note { margin-top: 6px; }
.wiz .note a, .review a { color: var(--white); }
.step-msg { min-height: 1.5em; margin: 10px 0 0; color: #FF8A8F; font-weight: 600; }
.step-btns { display: flex; gap: 10px; margin-top: 12px; }
.step-btns .btn-accent { flex: 1; }
.review { margin: 0 0 18px; border-bottom: 1px solid var(--line-dark); }
.review div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-dark); }
.review dt { color: var(--silver-dim); }
.review dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.step-done { padding: clamp(10px, 2vw, 28px) 0; }
.step-done:focus { outline: none; }
.step-done h3 { display: flex; align-items: center; gap: 16px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.step-done h3::before { content: ""; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat; }
.step-done p { margin-top: 16px; color: var(--white); font-size: 1.15rem; max-width: 34ch; }
/* Email signup for people who are not ready to buy: a card like the order form, with the field and the
   button joined into one bar. The button has the same slanted edge as the button in the page header. */
.notify { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--split-gap); align-items: center; margin-top: clamp(28px, 4vw, 56px); padding: clamp(24px, 3.2vw, 44px); background: var(--carbon-2); border: 1px solid var(--line-dark); border-radius: 6px; }
.notify h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.notify-text p { margin-top: 10px; max-width: 38ch; font-size: 1.1rem; }
.notify-form { gap: 10px; }
.notify-bar { display: flex; height: 62px; background: #0D0D0F; border: 1.5px solid var(--line-dark); border-radius: 3px; overflow: hidden; transition: border-color .15s ease; }
.notify-bar:hover { border-color: rgba(255, 255, 255, .3); }
.notify-bar:focus-within { border-color: var(--yellow); }
.notify-bar:has([aria-invalid="true"]) { border-color: #FF8A8F; }
.form .notify-bar input[type="text"] { flex: 1; min-width: 0; width: auto; height: 100%; padding: 0 18px; background: none; border: 0; border-radius: 0; color: var(--white); }
.form .notify-bar input[type="text"]:focus { outline: none; }
.notify-btn { flex: none; padding: 0 26px 0 40px; border: 0; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800; font-style: italic; font-stretch: 125%; font-size: 0.95rem; white-space: nowrap; cursor: pointer; clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); transition: background-color .15s ease; }
.notify-btn:hover { background: var(--yellow-hover); }
.notify-btn:disabled { opacity: .6; cursor: default; }
.notify .note { margin: 0; }
.notify .form-msg:empty { display: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Company page */
.company { padding-bottom: clamp(48px, 6vw, 88px); }
/* Three plain statements about the company day in one strip, each with a round icon, in the same
   style as the figures in the Williams F1 panel. */
.co-points ul { list-style: none; margin: 0; padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3.2vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); background: var(--carbon-2); border: 1px solid var(--line-dark); border-radius: 6px; }
.co-points li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: center; }
.co-points svg { width: 56px; height: 56px; padding: 13px; border: 1px solid var(--line-dark); border-radius: 50%; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: border-color .2s ease, background-color .2s ease, transform .6s cubic-bezier(.2, .75, .15, 1); }
.co-points .dot { fill: var(--yellow); stroke: none; }
.co-points h2 { font-size: clamp(1.25rem, 1.9vw, 1.7rem); transition: color .2s ease; }
.co-points p { margin-top: 6px; max-width: 30ch; }
.co-points li:hover svg { border-color: var(--yellow); background: rgba(251, 210, 5, .08); }
.co-points li:hover h2 { color: var(--yellow); }
.co-wheel:hover svg { transform: rotate(-50deg); }
.co-team:hover svg, .co-dates:hover svg { transform: translateY(-3px); }
.co-ask { padding: 0 0 var(--section); }
.co-ask .notify { margin-top: 0; }
.co-ask h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.co-ask-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; justify-content: flex-end; }
.co-ask-btns a:not(.btn) { color: var(--white); }
/* The header is sticky and takes its own room, so the first section only needs a modest gap under it */
.company { padding-top: clamp(28px, 4.5vw, 64px); }

/* FAQ */
.faq { background: var(--alu); color: var(--ink-2); padding: var(--section) 0; }
.faq h2 { color: var(--ink); }
.faq :focus-visible { outline-color: var(--ink); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-bottom: 1px solid var(--line-light); }
.faq details { border-top: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 18px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; max-width: 62ch; }
.faq details a { color: var(--ink); }

/* Footer */
.footer { font-size: 0.95rem; color: var(--silver-dim); }
.footer-in { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 44px; }
.footer img { height: 34px; width: auto; }
.footer p { margin: 0; }
/* Keeps a short piece such as a date range on one line */
.nw { white-space: nowrap; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Lightbox, consent */

.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox video { width: min(92vw, 484px, 80vh * 9 / 16); width: min(92vw, 484px, 80dvh * 9 / 16); height: auto; aspect-ratio: 9 / 16; border-radius: 6px; background: #000; }
/* The page behind an open video stays still */
html:has(dialog[open]) { overflow: hidden; }
.lightbox-close { display: block; margin: 14px auto 0; min-height: 44px; padding: 0 22px; border: 2px solid var(--line-dark); border-radius: 3px; background: transparent; color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.lightbox-close:hover { border-color: var(--white); }

.consent { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: var(--carbon-2); color: var(--white); border: 1px solid var(--line-dark); border-radius: 6px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
/* The phone layout below sets display: flex, which would otherwise override the hidden attribute and keep the bar on screen after a choice */
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.45; }
.consent-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1100px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .price-row h3 { grid-column: 1; }
  .price-row .sum { grid-column: 2; grid-row: 1; }
  .price-row p:not(.sum) { grid-column: 1 / -1; }
  .price-row .btn { grid-column: 1 / -1; justify-self: start; min-width: 0; }
}

@media (max-width: 900px) {
  /* Header: logo, menu button, and the yellow tab once the first screen is passed */
  .nav { display: none; }
  .top-cta { margin-left: 0; }
  .js .top-cta:not(.show) { position: absolute; right: 0; top: 0; height: var(--top); }
  .mnav { display: block; margin-left: auto; margin-right: 10px; align-self: center; }
  .mnav summary {
    list-style: none; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 12px;
    border: 1px solid var(--line-dark); border-radius: 999px; color: var(--white); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary::before { content: ""; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .mnav nav {
    position: fixed; left: 0; right: 0; top: calc(var(--top) + 6px); z-index: 80; display: grid;
    padding: 4px var(--gutter) 18px; background: var(--carbon-2); border-bottom: 1px solid var(--line-dark); box-shadow: 0 24px 40px rgba(0, 0, 0, .6);
  }
  .mnav nav a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); color: var(--white); text-decoration: none; font-weight: 700; font-style: italic; font-stretch: 125%; font-size: 1.05rem; }
  .mnav nav a:last-child { margin-top: 16px; padding: 15px; border: 0; border-radius: 3px; background: var(--yellow); color: var(--ink); text-align: center; font-style: normal; font-stretch: 100%; }

  /* First screen: video, then headline, text and button, all on the left edge */
  .hero { padding-bottom: 36px; }
  .hero-in { padding: 0 var(--gutter); text-align: left; }
  .visor-shape { height: min(86vw, 42vh); border-radius: 34% 34% 22% 22% / 30% 30% 18% 18%; }
  .hero-video { object-position: 50% 58%; }
  .visor figcaption { display: none; }
  .visor-pause { width: 36px; height: 36px; left: 0; }
  .visor-sound { width: 36px; height: 36px; right: 0; }
  .hero h1 { white-space: normal; font-size: 8.6vw; margin-top: 22px; }
  .hero h1 span { display: block; }
  .hero-sub { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 14px; }
  .hero-sub p { max-width: none; }

  /* Swipe rows */
  .steps, .reels {
    display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain;
    margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
  }
  /* The rows only move sideways, so a focus ring is drawn inside the card where it cannot be cut off */
  .steps .step:focus-visible, .reel:focus-visible { outline-offset: -3px; }
  .steps::-webkit-scrollbar, .reels::-webkit-scrollbar { display: none; }
  .steps > *, .reels > * { scroll-snap-align: start; }
  .swipe-count { display: block; margin-top: 12px; font-size: 0.88rem; color: var(--silver-dim); font-variant-numeric: tabular-nums; }

  .head { display: block; }
  .head p { margin-top: 16px; }

  .you { padding: 24px 0 0; }
  .lede { max-width: none; }
  .jus-stage { font-size: 42vw; font-size: 47cqw; }
  .jus-rest { margin: 0; text-align: right; }
  .jus-text { margin-left: 0; max-width: none; }
  .jus-text p:not(.lede) { margin-top: 16px; }

  .day-grid { display: block; }
  .day-media { display: none; }
  .steps { grid-auto-columns: 82%; border-top: 0; }
  .steps li { display: block; border-bottom: 0; }
  .steps li > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
  .step { padding: 16px 0 0; cursor: default; }
  .steps li.on .step-t, .step:hover .step-t { color: var(--white); }
  .steps li .num { color: var(--yellow); }

  .car-grid { display: block; }
  .car-text { padding: 0 0 24px; }
  .dash { margin-top: 32px; }
  .run-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .run-speed b { font-size: clamp(4rem, 19vw, 7rem); }
  .run-row { gap: 10px; }
  .run-row p { gap: .3em; }
  .car-photos { display: block; }
  .car-main, .car-side { grid-area: auto; align-self: auto; padding-left: 0; }
  .car-main img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  /* Phones: the outline hangs over the photo's lower right corner, the text stands to its left under the photo */
  .track { --map: min(50%, 240px); grid-template-columns: minmax(0, 1fr) var(--map); align-items: start; gap: 12px; margin-left: 0; }
  .track-map { order: 2; margin-top: -48%; }
  .track-facts { padding-top: 18px; }
  .track-name strong { font-size: 1.15rem; white-space: nowrap; }
  .track-facts ul { grid-template-columns: auto auto; justify-content: start; gap: 12px 14px; margin-top: 16px; }
  .track-facts li b { font-size: 1.4rem; }
  .track-facts li span { font-size: 0.85rem; }

  .reels { grid-template-columns: none; grid-auto-columns: 46%; gap: 12px; }

  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .logos li, .logos.ready.open li:nth-child(n+5) { height: 78px; }
  .logos img { max-height: 46px; }

  .when-grid { display: block; }
  .when-date { margin-bottom: 44px; }
  .cal-add ul { flex-wrap: nowrap; gap: 8px; }
  .cal-add li { flex: 1 1 0; min-width: 0; }
  .cal-add a { justify-content: center; gap: 6px; padding: 0 6px; font-size: 0.92rem; }
  .when-gifts { width: auto; margin-left: 0; }
  .gift { margin-left: auto; margin-right: auto; }
  .gift-copy { margin: 0; }
  .month td { height: 46px; }
  .month .hit { height: 62px; }
  .month .hit b { font-size: 1.15rem; }
  .month .hit img { height: 15px; }
  .month .hit small { font-size: 0.5rem; letter-spacing: 0.03em; gap: 3px; }
  .month .hit small::before, .month .hit small::after { width: 4px; }
  .hit-days { gap: 6px; }

  .price-row .btn { justify-self: stretch; width: 100%; }
  .signup-grid, .faq-grid, .order, .notify { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .notify { gap: 20px; }
  .pass { max-width: none; margin-top: 26px; }
  /* One column: heading and lead first, then the form, then the ticket card and the line under it */
  .order { gap: 0; }
  .order-side { display: contents; }
  .order > .wiz { order: 1; margin-top: 24px; }
  .order-side > .pass { order: 2; margin-top: 28px; }
  .order-side > .order-company, .order-side > .signup-alt { order: 3; }
  .order-company { justify-content: center; max-width: none; text-align: center; }
  .co-points ul { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .co-ask-btns { justify-content: flex-start; }
  .footer-in { grid-template-columns: 1fr; gap: 12px; }

  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
  .consent p { margin: 0; font-size: 0.82rem; line-height: 1.35; flex: 1; }
  .consent-btns { flex-wrap: nowrap; gap: 8px; }
  .consent .btn-small { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
}
/* Very narrow phones: the two figures go one under the other so they stay clear of the outline */
@media (max-width: 360px) {
  .track-facts ul { grid-template-columns: auto; }
  /* The date tile is narrow here: the caption stands without its two rules */
  .month .hit small::before, .month .hit small::after { display: none; }
  .month .hit small { letter-spacing: 0; }
}

/* Tablets: the swipe cards are narrower, so two or three are in view */
@media (min-width: 601px) and (max-width: 900px) {
  .steps { grid-auto-columns: 44%; }
  .reels { grid-auto-columns: 27%; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Phones held sideways: the video sits on the left at its natural shape, headline, text and button beside it */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 12px 0 28px; }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(22px, 3.4vw, 36px); align-items: center; padding: 0 var(--gutter); text-align: left; }
  .visor { grid-column: 1; grid-row: 1 / span 2; }
  .visor-shape { height: min(30vw, calc(100vh - var(--top) - 44px)); height: min(30vw, calc(100svh - var(--top) - 44px)); border-radius: 28% 28% 20% 20% / 40% 40% 26% 26%; }
  .hero-video { object-position: 50% 60%; }
  .visor figcaption { display: none; }
  .visor-pause { width: 36px; height: 36px; left: 0; }
  .visor-sound { width: 36px; height: 36px; right: 0; }
  .hero h1 { grid-column: 2; align-self: end; white-space: normal; font-size: clamp(1.4rem, 3.8vw, 2.3rem); margin-top: 0; }
  .hero h1 span { display: block; }
  .hero-sub { grid-column: 2; align-self: start; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 10px; }
  .hero-sub p { max-width: none; font-size: 0.95rem; line-height: 1.35; }

  .jus-stage { font-size: min(47cqw, 64vh); }

  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
  .consent p { margin: 0; font-size: 0.82rem; line-height: 1.35; flex: 1; }
  .consent-btns { flex-wrap: nowrap; gap: 8px; }
  .consent .btn-small { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --top: 56px; }
  .logo img { height: 30px; }
  .top-cta { padding-left: 32px; font-size: 0.86rem; }
  .inline { flex-direction: column; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* On phones the ticket is stacked: the main part on top, the yellow stub as a strip below */
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass-main { border-radius: 6px 6px 0 0; -webkit-mask: none; mask: none; padding: 16px 18px; }
  .pass-main img { width: 62px; }
  .pass-title { margin-top: 12px; font-size: 1.3rem; }
  .pass-meta { margin-top: 5px; font-size: 0.95rem; }
  .pass-name { margin-top: 12px; padding-top: 10px; font-size: 0.95rem; }
  .pass-stub { flex-direction: row; align-items: flex-end; min-width: 0; padding: 11px 18px 12px; border-radius: 0 0 6px 6px; -webkit-mask: none; mask: none; }
  .pass-stub b { font-size: 1.35rem; }
  .pass-stub p:last-child { text-align: right; }
  .pass::before, .pass::after { background: linear-gradient(#2A2B2F 0 72%, #B99A00 72%); }
  .qty button { width: 52px; height: 52px; }
  .review div { grid-template-columns: 6.5em minmax(0, 1fr); }
  .inline input { flex: none; width: 100%; }
  .inline .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .visor-shape { animation: none; }
  * { transition: none !important; }
  .step-panel.on, .step-done, .qty input.bump { animation: none; }
  .spec dt svg, .spec dt svg path, .spec .needle { animation: none !important; }
}
