/* Romanowski Classic Cars — mobile first. Breakpoints: 640 / 768 / 1024 / 1280 */

@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #050505;
  --core: #0c0c0c;
  --ink: #f4f1ec;
  --ink-2: rgba(244, 241, 236, .64);
  --ink-3: rgba(244, 241, 236, .4);
  --red: #e3121e;
  --red-2: #ff3340;
  --ok: #3ddc84; /* "valid / verified" statuses only */
  --hair: rgba(255, 255, 255, .085);
  --shell: rgba(255, 255, 255, .035);
  --r: 2rem;
  --bz: .375rem;
  --pad: 1.25rem;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* film grain — fixed layer, never scrolls */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 70; padding: .7rem 1rem; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 82rem; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .42rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.display { font-weight: 500; font-size: clamp(2.5rem, 11vw, 5rem); line-height: .98; letter-spacing: -.015em; text-transform: uppercase; }
.display em, .title em { font-style: normal; color: var(--red); }
.title { font-weight: 500; font-size: clamp(1.95rem, 8vw, 4.5rem); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.lead { color: var(--ink-2); font-size: 1.04rem; max-width: 36ch; }

/* ---------- double bezel ---------- */
.bezel { padding: var(--bz); border-radius: var(--r); background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.bezel > .core { border-radius: calc(var(--r) - var(--bz)); background: var(--core); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .07), 0 40px 80px -48px rgba(0, 0, 0, .9); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; padding: .45rem .45rem .45rem 1.6rem; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 500 .95rem/1.2 var(--sans); text-align: left; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 40px -18px rgba(227, 18, 30, .7); transition: transform .5s var(--ease), background-color .5s var(--ease), opacity .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-icon { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: rgba(0, 0, 0, .2); transition: transform .5s var(--ease); }
.btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-ghost .btn-icon { background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] .btn-icon svg { display: none; }
.btn[aria-busy="true"] .btn-icon::after { content: ""; width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s cubic-bezier(.5, .1, .5, .9) infinite; }
@media (hover: hover) {
  .btn:hover { background: var(--red-2); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
  .btn:hover .btn-icon { transform: translate(3px, -1px) scale(1.05); }
}
.link { padding: .5rem 0; border: 0; background: none; color: var(--ink-2); font: 500 .85rem var(--sans); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: .3em; cursor: pointer; }
.link:disabled { color: var(--ink-3); text-decoration: none; cursor: default; }

/* ---------- floating nav ---------- */
.nav { position: fixed; top: max(.75rem, env(safe-area-inset-top)); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 .75rem; pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; max-width: 36rem; padding: .4rem .4rem .4rem 1.25rem; border-radius: 999px; background: rgba(8, 8, 8, .55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06); }
.nav-logo img { width: 8.5rem; height: auto; }
.menu-btn { display: inline-flex; align-items: center; gap: .75rem; height: 2.9rem; padding: 0 .4rem 0 1.1rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink); font: 500 .68rem var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.burger { position: relative; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.burger span { position: absolute; left: 50%; top: 50%; width: 13px; height: 1.25px; margin-left: -6.5px; background: currentColor; transition: transform .7s var(--ease); }
.burger span:first-child { transform: translateY(-3px); }
.burger span:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] .burger span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; gap: 3rem; padding: 7rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom)); background: rgba(5, 5, 5, .84); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.menu.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu > * { width: 100%; max-width: 72rem; margin-inline: auto; }
.menu-list { border-top: 1px solid var(--hair); }
.menu-list li { position: relative; border-bottom: 1px solid var(--hair); }
/* red rule that sweeps along the divider on hover */
.menu-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.menu-link { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; column-gap: .75rem; align-items: start; padding: 1.4rem 0 1.5rem; text-decoration: none; transition: opacity .5s var(--ease); -webkit-tap-highlight-color: transparent; }
.menu-num { padding-top: .55rem; color: var(--ink-3); font-size: .68rem; font-weight: 500; letter-spacing: .2em; transition: color .5s var(--ease); }
.menu-link[aria-current] .menu-num { color: var(--red-2); }
.menu-label { display: block; overflow: hidden; padding: .08em 0 .14em; font-size: clamp(1.65rem, 7vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; }
.menu-reveal { display: block; transform: translateY(120%); transition: transform .9s var(--ease); }
.menu.open .menu-reveal { transform: none; }
.menu.open li:nth-child(2) .menu-reveal { transition-delay: .08s; }
/* hover: the label rolls up and a red copy rolls in from below */
.menu-roll { display: block; position: relative; transition: transform .7s var(--ease); }
.menu-roll::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: calc(100% + .45em); width: 100%; color: var(--red); }
.menu-link em { font-style: normal; color: var(--red); }
.menu-sub { grid-column: 2; margin-top: .7rem; color: var(--ink-3); font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: 0; transform: translateY(.5rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.menu.open .menu-sub { opacity: 1; transform: none; transition-delay: .22s; }
.menu-arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .6s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) {
  .menu-list:hover li:not(:hover) .menu-link { opacity: .35; }
  .menu-list li:hover::after { transform: scaleX(1); }
  /* the .45em gap keeps Polish ogonki (Ą, Ę) of the rolled-away copy out of the window */
  .menu-link:hover .menu-roll { transform: translateY(calc(-100% - .45em)); }
  .menu-link:hover .menu-num { color: var(--red-2); }
  .menu-link:hover .menu-arrow { background: var(--red); box-shadow: none; transform: translate(4px, -4px); }
}
.menu-link:focus-visible { outline-offset: -2px; }
.menu-list li:focus-within::after { transform: scaleX(1); }
.menu-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-3); font-size: .78rem; letter-spacing: .08em; opacity: 0; transform: translateY(1rem); transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; }
.menu.open .menu-foot { opacity: 1; transform: none; }

/* ---------- registration hero ---------- */
.register { display: grid; grid-template-areas: "hero" "form"; padding-bottom: 5rem; }
.register-media, .register-copy { grid-area: hero; }
.register-media { position: relative; min-height: 66svh; overflow: hidden; }
.register-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%; animation: settle 2.6s var(--ease-out) both; }
.register-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, .7) 0%, rgba(5, 5, 5, .1) 22%, rgba(5, 5, 5, .55) 45%, rgba(5, 5, 5, .9) 72%, var(--bg) 100%); }
.register-copy .eyebrow { background: rgba(5, 5, 5, .55); color: var(--ink); }
.register-copy { position: relative; z-index: 1; align-self: end; display: grid; justify-items: start; gap: 1.1rem; padding: 7rem var(--pad) 2.25rem; will-change: transform, opacity; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: var(--ink-2); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: .6rem; }
.hero-meta span::before { content: ""; width: .9rem; height: 1px; background: var(--red); }
.hero-meta span:empty { display: none; }
.register-form { grid-area: form; position: relative; z-index: 2; padding: 0 .625rem; }
.register-form > .bezel { background: #0e0e0e; } /* opaque: hero copy slides under it */

.card { padding: 1.5rem 1.15rem 1.35rem; }
.card-title { font-weight: 600; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.015em; outline: none; }
.card-sub { margin: .6rem 0 1.6rem; color: var(--ink-2); font-size: .92rem; }
.card-sub strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.75rem; }
.steps li { flex: 1; color: var(--ink-3); font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: color .6s var(--ease); }
.steps li::before { content: ""; display: block; height: 2px; margin-bottom: .65rem; border-radius: 2px; background: rgba(255, 255, 255, .1); transition: background-color .6s var(--ease); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--red); }
.step { animation: rise .8s var(--ease) both; }
.step[hidden] { display: none; }

/* ---------- form ---------- */
.stack { display: grid; gap: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label { color: var(--ink-2); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.input { width: 100%; height: 3.5rem; padding: 0 1.05rem; border: 0; border-radius: 1rem; background: rgba(255, 255, 255, .045); color: var(--ink); font: 400 1rem var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .04); transition: box-shadow .45s var(--ease), background-color .45s var(--ease); -webkit-appearance: none; appearance: none; }
.input::placeholder { color: rgba(244, 241, 236, .26); }
.input:focus { outline: none; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(227, 18, 30, .85), 0 0 0 4px rgba(227, 18, 30, .16); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red-2); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 0 0 100px #1a1a1a; caret-color: var(--ink); }
.err { color: var(--red-2); font-size: .78rem; }
.err:empty { display: none; }
.form-error { padding: .8rem 1rem; border-radius: 1rem; background: rgba(227, 18, 30, .1); box-shadow: inset 0 0 0 1px rgba(227, 18, 30, .35); color: #ffd7d9; font-size: .86rem; }
.form-error:empty { display: none; }

.consents { display: grid; gap: .5rem; margin: .25rem 0 0; padding: 0; border: 0; }
.check { position: relative; display: grid; grid-template-columns: 1.4rem 1fr; gap: .85rem; align-items: start; padding: .9rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: var(--ink-2); font-size: .8rem; line-height: 1.5; cursor: pointer; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); -webkit-tap-highlight-color: transparent; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check:has(input:checked) { background: rgba(227, 18, 30, .06); box-shadow: inset 0 0 0 1px rgba(227, 18, 30, .3); }
.check:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1px var(--red-2); }
.box { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: .05rem; border-radius: .42rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.box svg { opacity: 0; transform: scale(.5); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.check input:checked + .box { background: var(--red); box-shadow: none; }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--red-2); outline-offset: 2px; }
.check .err { grid-column: 2; }
.tag { display: inline-block; margin-left: .3rem; font-size: .58rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tag-req { color: var(--red-2); }
.info { color: var(--ink-3); font-size: .74rem; line-height: 1.55; }
.info summary { width: max-content; max-width: 100%; color: var(--ink-2); cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: .3em; }
.info summary::-webkit-details-marker { display: none; }
.info p { margin-top: .6rem; }
.fine { color: var(--ink-3); font-size: .74rem; text-align: center; }

.code-input { height: 4.4rem; padding: 0 0 0 .55em; text-align: center; font-size: 1.9rem; font-weight: 500; letter-spacing: .55em; font-variant-numeric: tabular-nums; }
.code-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: .25rem; }

/* ---------- ticket ---------- */
.ticket { position: relative; overflow: hidden; margin-bottom: 1rem; border-radius: 1.5rem; background: #111; box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ticket-top { padding: 1.4rem 1.35rem 1.5rem; background: radial-gradient(130% 90% at 100% 0%, rgba(227, 18, 30, .42), transparent 62%); }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ticket-head img { width: 7.5rem; height: auto; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(61, 220, 132, .14); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .4); color: var(--ok); font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ticket-kicker { margin-top: 1.6rem; color: var(--ink-2); font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.ticket-name { margin-top: .35rem; font-weight: 600; font-size: 1.85rem; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ticket-meta { display: grid; gap: .9rem; margin-top: 1.5rem; }
.ticket-date { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.cal { position: relative; }
.cal summary { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem .42rem .62rem; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--hair); font-size: .68rem; font-weight: 500; letter-spacing: .04em; list-style: none; cursor: pointer; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); -webkit-tap-highlight-color: transparent; }
.cal summary::-webkit-details-marker { display: none; }
.cal[open] summary { background: var(--red); box-shadow: none; }
.cal-menu { position: absolute; top: calc(100% + .45rem); left: 0; z-index: 2; display: grid; min-width: 12rem; padding: .35rem; border-radius: 1rem; background: #1b1b1b; box-shadow: inset 0 0 0 1px var(--hair), 0 24px 48px -16px rgba(0, 0, 0, .85); animation: rise .45s var(--ease) both; }
.cal-menu a { padding: .7rem .85rem; border-radius: .7rem; font-size: .82rem; text-decoration: none; transition: background-color .3s var(--ease); }
@media (hover: hover) {
  .cal:not([open]) summary:hover { background: rgba(255, 255, 255, .14); }
  .cal-menu a:hover { background: rgba(255, 255, 255, .07); }
}
.ticket-meta dt { color: var(--ink-3); font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.ticket-meta dd { margin-top: .2rem; font-size: .9rem; }
.ticket-perf { position: relative; margin: 0 1.35rem; border-top: 1.5px dashed rgba(255, 255, 255, .16); }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -.95rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--core); box-shadow: inset 0 0 0 1px var(--hair); }
.ticket-perf::before { left: -2.3rem; }
.ticket-perf::after { right: -2.3rem; }
.ticket-bottom { display: grid; justify-items: center; gap: .9rem; padding: 1.6rem 1.35rem 1.5rem; }
.ticket-qr { width: min(15rem, 72%); padding: .85rem; border-radius: 1.15rem; background: #fff; }
.ticket-qr svg { width: 100%; height: auto; }
.ticket-code { font-size: 1rem; font-weight: 500; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.ticket-hint { margin-top: -.5rem; color: var(--ink-3); font-size: .74rem; }

/* ---------- sections ---------- */
.section { padding: 6.5rem 0; }
.section-head { display: grid; justify-items: start; gap: 1.25rem; margin-bottom: 2.75rem; }
.section-head .lead { max-width: 40ch; }
.rail { display: flex; gap: .75rem; overflow-x: auto; padding: 0 var(--pad) 1rem; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 80%; scroll-snap-align: start; }
.rail .core { overflow: hidden; }
.rail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r) - var(--bz)); }
.rail figcaption { display: flex; justify-content: space-between; padding: .9rem .6rem .35rem; color: var(--ink-2); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.rail figcaption span:first-child { color: var(--red-2); }
.rail-cta { flex: 0 0 80%; scroll-snap-align: start; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rail-cta .core { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; aspect-ratio: 4 / 5; padding: 1.5rem; background: radial-gradient(120% 90% at 100% 0%, rgba(227, 18, 30, .45), transparent 62%), var(--core); }
.rail-cta-title { font-size: clamp(1.6rem, 6.5vw, 2.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.rail-cta .btn-icon { width: 3.4rem; height: 3.4rem; background: var(--red); }
@media (hover: hover) { .rail-cta:hover .btn-icon { transform: translate(3px, -3px) scale(1.06); } }

/* pinned horizontal carousel (enabled by site.js when smooth scroll is on) */
.teaser.is-pinned { padding: 0; }
.is-pinned .teaser-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.25rem, 4svh, 3rem); padding-top: 4.5rem; }
.is-pinned .section-head { margin-bottom: 0; }
.is-pinned .rail { --h: min(42svh, 34rem); overflow: visible; scroll-snap-type: none; padding-bottom: 0; will-change: transform; }
.is-pinned .rail figure, .is-pinned .rail-cta { flex: none; }
.is-pinned .rail img, .is-pinned .rail-cta .core { width: calc(var(--h) * .8); height: var(--h); }

/* ---------- collection page ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 82svh; overflow: hidden; padding: 8rem 0 3rem; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.6s var(--ease-out) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, .65), rgba(5, 5, 5, .1) 35%, rgba(5, 5, 5, .55) 70%, var(--bg)); }
.page-hero .wrap { position: relative; z-index: 1; display: grid; justify-items: start; gap: 1.25rem; }
.crumbs { display: flex; gap: .6rem; color: var(--ink-2); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.crumbs a { text-decoration: none; color: var(--ink); }

.stats { display: grid; gap: .75rem; }
.stat .core { display: grid; gap: 1.25rem; padding: 1.75rem 1.5rem 1.6rem; }
.stat-label { color: var(--ink-2); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.stat-num { display: flex; align-items: flex-end; font-size: clamp(3.5rem, 16vw, 5.25rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-num small { margin: 0 0 1.05em .25em; font-size: .3em; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); }
/* odometer: digit strips roll vertically, window fades out at top and bottom */
.roll { display: inline-block; height: 1.4em; line-height: 1.4; letter-spacing: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
.roll-strip { display: block; text-align: center; transition: transform 2.8s cubic-bezier(.16, 1, .3, 1) calc(.15s + var(--i) * .14s); }
.in .roll-strip { transform: translateY(calc(var(--stop) * -1.4em)); }

.cars { display: grid; gap: .75rem; }
.car a { display: block; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.car .core { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #121212; }
.car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.car .core::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 5, .92)); }
.car-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.25rem; }
.car-year { color: var(--red-2); font-size: .66rem; font-weight: 600; letter-spacing: .24em; }
.car-title { margin-top: .35rem; font-weight: 600; font-size: 1.15rem; line-height: 1.2; letter-spacing: -.01em; }
.car-arrow { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .6s var(--ease), background-color .6s var(--ease); }
.badge { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .38rem .75rem; border-radius: 999px; background: rgba(5, 5, 5, .72); box-shadow: inset 0 0 0 1px var(--hair); font-size: .58rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
@media (hover: hover) {
  .car a:hover img { transform: scale(1.045); }
  .car a:hover .car-arrow { transform: translate(2px, -2px) scale(1.06); background: var(--red); }
}

.cta-card .core { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 1.5rem; padding: 2.5rem 1.5rem; background: radial-gradient(120% 100% at 100% 0%, rgba(227, 18, 30, .35), transparent 60%), var(--core); }

/* ---------- footer ---------- */
.footer { padding: 4.5rem 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); color: var(--ink-2); font-size: .85rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer img { width: 12rem; height: auto; }
.footer address { font-style: normal; line-height: 1.8; }
.footer nav ul { display: grid; gap: .5rem; }
.footer a { text-decoration: none; transition: color .4s var(--ease); }
.footer a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 3.5rem; color: var(--ink-3); font-size: .74rem; }
.plain-head { display: flex; justify-content: center; padding: calc(1.75rem + env(safe-area-inset-top)) 0 1.5rem; }
.plain-head img { width: 11rem; height: auto; }

/* ---------- admin ---------- */
.admin { padding-top: 2rem; padding-bottom: 4rem; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.5rem 0 1.5rem; }
.admin-stats .core { padding: 1.1rem 1.2rem; }
.admin-stats b { display: block; font-size: 2.2rem; font-weight: 300; line-height: 1; }
.admin-stats span { color: var(--ink-3); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.admin-search { display: flex; gap: .6rem; margin-bottom: .9rem; }
.admin-search .input { flex: 1; min-width: 0; height: 3.6rem; border-radius: 999px; padding: 0 1.4rem; }
.admin-search .btn { flex: none; }
.admin-result { margin-bottom: 1rem; color: var(--ink-2); font-size: .85rem; }
.admin-result b { color: var(--ink); }
.admin-result a { color: var(--red-2); }
.table-wrap { border-radius: 1.25rem; box-shadow: inset 0 0 0 1px var(--hair); }
.admin table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin thead th { position: sticky; top: 0; z-index: 1; padding: 1rem 1.25rem; background: #0b0b0b; color: var(--ink-3); font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin thead th:first-child { border-top-left-radius: 1.25rem; }
.admin thead th:last-child { border-top-right-radius: 1.25rem; }
.admin tbody td { padding: 1.15rem 1.25rem; border-top: 1px solid var(--hair); vertical-align: middle; }
.admin tbody tr:not(.history-row):hover td { background: rgba(255, 255, 255, .025); }
.admin td a { text-decoration: none; transition: color .3s var(--ease); }
.admin td a:hover { color: var(--ink); }
.who strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }
.who a { display: block; margin-top: .15rem; width: max-content; max-width: 100%; color: var(--ink-2); font-size: .8rem; overflow-wrap: anywhere; }
.tkt .code { display: block; margin-bottom: .45rem; color: var(--ink); font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tkt a.code:hover { color: var(--red-2); }
.tkt .code.none { color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ink-3); font-size: .58rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.status.ok { background: rgba(61, 220, 132, .12); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .38); color: var(--ok); }
.status.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chips { white-space: nowrap; }
.chip { display: inline-block; margin: .15rem .3rem .15rem 0; padding: .3rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-3); font-size: .7rem; }
.chip.on { background: rgba(255, 255, 255, .08); box-shadow: none; color: var(--ink); }
.when span { display: block; color: var(--ink); font-size: .85rem; white-space: nowrap; }
.when small { color: var(--ink-3); font-size: .75rem; }
.hist-cell { text-align: right; }
.hist summary { display: inline-block; padding: .45rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ink-2); font-size: .72rem; list-style: none; cursor: pointer; white-space: nowrap; transition: background-color .3s var(--ease); }
.hist summary::-webkit-details-marker { display: none; }
.hist[open] summary { background: var(--red); color: #fff; }
/* the history row stays hidden until "Historia" in the row above is opened */
.history-row { display: none; }
tr:has(.hist[open]) + .history-row { display: table-row; }
.history-row td { padding-top: 0; border-top: 0; }
.empty { padding: 2.5rem 1.25rem !important; color: var(--ink-3); text-align: center; }
.yes { color: #fff; }
.no { color: var(--ink-3); }
.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .6rem; }
.history li { padding: .8rem .9rem; border-radius: .8rem; background: rgba(255, 255, 255, .03); color: var(--ink-2); font-size: .76rem; }
.history small { display: block; margin-top: .25rem; color: var(--ink-3); word-break: break-all; }
/* phones: every registration becomes a card */
@media (max-width: 767px) {
  .admin-search .btn span:first-child { display: none; }
  .admin-search .btn { padding: .45rem; }
  .table-wrap { box-shadow: none; }
  .admin table, .admin tbody, .admin tbody tr, .admin tbody td { display: block; }
  .admin thead { display: none; }
  .admin tbody tr:not(.history-row) { margin-top: .75rem; padding: .4rem 0; border-radius: 1.25rem; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--hair); }
  .admin tbody tr:not(.history-row):hover td { background: none; }
  .admin tbody td { padding: .6rem 1.1rem; border-top: 0; }
  .admin tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .35rem; color: var(--ink-3); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
  .chips { white-space: normal; }
  .hist-cell { text-align: left; }
  .admin tbody tr.history-row { display: none; }
  .admin tbody tr:has(.hist[open]) + tr.history-row { display: block; }
  .history-row td { padding: .5rem 0 0; }
}

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(2.25rem); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- ≥ 640 ---------- */
@media (min-width: 640px) {
  :root { --pad: 2rem; }
  .cars { grid-template-columns: 1fr 1fr; }
  .rail figure, .rail-cta { flex-basis: 46%; }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 2rem 1.75rem 1.75rem; }
}

/* ---------- ≥ 768 ---------- */
@media (min-width: 768px) {
  .section { padding: 8.5rem 0; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-card .core { padding: 4rem 3.5rem; }
  .register-form { width: 100%; max-width: 34rem; justify-self: center; }
}

/* ---------- ≥ 1024: editorial split ---------- */
@media (min-width: 1024px) {
  .nav { justify-content: flex-start; padding: 0 var(--pad); }
  .nav-pill { width: auto; gap: 2rem; }
  :root { --pad: 3rem; }
  .register { position: relative; grid-template-columns: minmax(0, 1fr) minmax(27.5rem, 34.1rem); grid-template-areas: "copy form"; grid-template-rows: minmax(calc(max(100dvh, 46rem) - 1.5rem), auto); column-gap: clamp(3rem, 6vw, 7rem); align-items: start; padding: max(.75rem, env(safe-area-inset-top)) var(--pad) 4.5rem; }
  .register-media { position: absolute; inset: 0 0 auto; height: max(100dvh, 46rem); grid-area: auto; min-height: 0; }
  .register-media::after { background: linear-gradient(90deg, rgba(5, 5, 5, .82), rgba(5, 5, 5, .2) 50%, rgba(5, 5, 5, .55)), linear-gradient(0deg, var(--bg), transparent 35%); }
  .register-copy { grid-area: copy; align-self: start; min-height: calc(100dvh - 5.25rem); align-content: end; padding: 0 0 1.5rem; container-type: inline-size; }
  /* headline scales with its column so the longest word ("KOLEKCJI." ≈ 5.1em) never runs under the form */
  .register-copy .display { font-size: min(5rem, 18.5cqi); }
  .page-hero::after { background: linear-gradient(90deg, rgba(5, 5, 5, .8), rgba(5, 5, 5, .1) 60%), linear-gradient(180deg, rgba(5, 5, 5, .6), transparent 30%, transparent 60%, var(--bg)); }
  /* shorter than the hero → vertically centred; taller → the row grows and it stays at the top */
  .register-form { grid-area: form; align-self: center; max-width: none; padding: 0; }
  .register-form > .bezel { background: var(--shell); }
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .section-head > :first-child, .section-head .title { grid-column: 1; }
  .section-head .lead { grid-column: 2; grid-row: 2; padding-bottom: .5rem; }
  .rail figure, .rail-cta { flex-basis: 31%; }
  .is-pinned .rail { --h: min(48svh, 36rem); }
  .cars { grid-template-columns: repeat(6, 1fr); }
  .car { grid-column: span 2; }
  .car:nth-child(5n + 1), .car:nth-child(5n + 2) { grid-column: span 3; }
  .car:nth-child(5n + 1) .core, .car:nth-child(5n + 2) .core { aspect-ratio: 16 / 10; }
  .car-title { font-size: 1.3rem; }
}
@media (min-width: 1280px) {
  .rail { padding-left: max(var(--pad), calc((100vw - 82rem) / 2 + var(--pad))); }
  .rail figure, .rail-cta { flex-basis: 26%; }
}
