/* Winterton Wheels: "showroom fresh" design system
   Paint colour (accent) is user-selectable and stored in localStorage. */
:root {
  --paint: #0fa3a3;
  --paint-ink: #ffffff;
  --paint-soft: color-mix(in oklab, var(--paint) 14%, transparent);
  --gold: #f2a93b;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --ink: #0e1116;
  --muted: #5d6471;
  --line: #e2dfd7;
  --night: #0b0e13;
  --night-2: #141922;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(14 17 22 / .05), 0 8px 24px -12px rgb(14 17 22 / .18);
  --shadow-lg: 0 30px 60px -30px rgb(14 17 22 / .45);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e13;
  --surface: #131820;
  --surface-2: #1a202a;
  --ink: #eef1f5;
  --muted: #9aa3b2;
  --line: #252c38;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 30px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--paint) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--paint); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font: 600 .78rem/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--paint); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 52ch; }
.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- buttons, chips, forms ---------- */
.btn {
  --b: var(--paint); display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b); color: var(--paint-ink); font: 600 .95rem/1 var(--display); text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s; box-shadow: 0 10px 24px -12px var(--b);
}
.btn:hover { color: var(--paint-ink); transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--b); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paint); color: var(--paint); }
.on-dark .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }
.btn.small { padding: .55rem .95rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn.gold { --b: var(--gold); color: #1d1406; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line);
}
.chip.on, .chip:hover { background: var(--paint); color: var(--paint-ink); border-color: var(--paint); }
.chip.paint { background: var(--paint-soft); color: var(--paint); border-color: transparent; }
.chip.gold { background: color-mix(in oklab, var(--gold) 18%, transparent); color: #a8650a; border-color: transparent; }
:root[data-theme="dark"] .chip.gold { color: var(--gold); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.form { display: grid; gap: 1.1rem; }
.form > div, .field { display: grid; gap: .35rem; }
.form label { font-weight: 600; font-size: .9rem; }
.form .helptext, .form [id$="_helptext"] { color: var(--muted); font-size: .8rem; }
.form ul.errorlist, .errorlist { color: #d93a3a; font-size: .85rem; margin: 0; padding: 0; list-style: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date],
input[type=search], select, textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; transition: border .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--paint); box-shadow: 0 0 0 4px var(--paint-soft); }
input[type=color] { width: 64px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
input[type=checkbox] { accent-color: var(--paint); width: 18px; height: 18px; }
.form > div:has(> input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: start; gap: .7rem; align-items: start; }
.form > div:has(> input[type=checkbox]) label { font-weight: 500; }
.form ul:not(.errorlist) { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.inline-form { display: flex; gap: .5rem; }
.inline-form input { flex: 1; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); position: relative;
}
.card.flush { padding: 0; overflow: hidden; }
.card.hover { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--paint) 40%, var(--line)); }
.card .body { padding: 1.3rem 1.4rem 1.5rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .chip, .card .btn, .card form { position: relative; z-index: 1; }
.cover {
  aspect-ratio: 16/10; background: var(--surface-2); position: relative; overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card.hover:hover .cover img { transform: scale(1.05); }
.cover.gen {
  background:
    radial-gradient(120% 90% at 90% 0%, color-mix(in oklab, var(--c, var(--paint)) 70%, transparent), transparent 60%),
    linear-gradient(135deg, var(--night-2), var(--night));
  display: grid; place-items: center; color: #fff; font-size: 3rem;
}
.cover .tag { position: absolute; top: 1rem; left: 1rem; }

/* ---------- header ---------- */
.scroll-road {
  position: fixed; inset: 0 0 auto; height: 4px; z-index: 60; background: transparent; pointer-events: none;
}
.scroll-road i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--paint), var(--gold)); }
.scroll-road b {
  position: absolute; top: -3px; left: calc(var(--p, 0%) - 14px); width: 22px; height: 10px; border-radius: 6px 8px 3px 3px;
  background: var(--paint); box-shadow: 4px 0 10px var(--gold); transition: opacity .3s; opacity: var(--o, 0);
}
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in oklab, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: -.02em; }
.brand:hover { color: inherit; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font: 500 .68rem/1.2 var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--muted); }
.main-nav a:hover, .main-nav a.on { color: var(--ink); background: var(--surface-2); }
.header-tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--paint); color: var(--paint); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--paint); color: var(--paint-ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.paint-picker { position: relative; }
.paint-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none;
}
.paint-picker.open .paint-pop { display: block; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.paint-pop h4 { font-size: .85rem; margin-bottom: .2rem; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: .8rem 0; }
.swatch {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / .7), transparent 35%), var(--s);
  box-shadow: inset 0 -6px 10px rgb(0 0 0 / .25), 0 4px 10px -4px var(--s); transition: transform .15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); }
.paint-name { font: 600 .8rem var(--display); color: var(--muted); }
.menu-toggle { display: none; }
.user-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .85rem; background: var(--surface); }

@media (max-width: 1060px) {
  .menu-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; padding: 1rem 1.25rem 1.5rem; background: var(--bg);
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; margin: 0; z-index: -1;
  }
  .main-nav a { font-size: 1.1rem; padding: .8rem 1rem; }
  body.nav-open .main-nav { transform: none; }
  .header-tools { margin-left: auto; }
  .user-pill span { display: none; }
}

/* ---------- hero ---------- */
.on-dark { background: var(--night); color: #eef1f5; --muted: #9aa3b2; --line: #232a35; --surface: #131820; --surface-2: #1a202a; }
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--paint) 45%, transparent), transparent);
  filter: blur(20px); opacity: .55; animation: drift 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate(-8vw, 6vw) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .hl { color: var(--paint); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .3em; }
.hero h1 .hl path { stroke: var(--gold); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .9s ease-out forwards; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.hero-badges span { display: inline-flex; gap: .45rem; align-items: center; }
.hero-badges b { color: #fff; }
.blueprint { position: relative; }
.blueprint svg.car { width: 100%; height: auto; overflow: visible; }
.car .line { fill: none; stroke: #e9eef5; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s cubic-bezier(.6,.1,.3,1) forwards; }
.car .line.thin { stroke-width: 1.4; opacity: .7; animation-delay: .8s; }
.car .accent { stroke: var(--paint); }
.car .glass { fill: color-mix(in oklab, var(--paint) 22%, transparent); opacity: 0; animation: fade 1s 2s forwards; }
.car .beam { fill: url(#beam); opacity: 0; animation: beam 4s 2.6s ease-in-out infinite; }
.car .wheel { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
.car .shadow { fill: rgb(0 0 0 / .5); filter: blur(6px); }
.car .dim { fill: #8b95a6; font: 500 11px var(--body); letter-spacing: .06em; opacity: 0; animation: fade 1s 2.4s forwards; }
.car .dimline { stroke: #4a5363; stroke-width: 1; stroke-dasharray: 3 4; fill: none; opacity: 0; animation: fade 1s 2.2s forwards; }
.road { position: relative; height: 2px; margin-top: -2px; background: #232a35; overflow: hidden; }
.road::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #9aa3b2 0 34px, transparent 34px 70px); animation: lane 1.6s linear infinite; opacity: .45; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beam { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
@keyframes lane { to { background-position: -70px 0; } }
.countdown {
  margin-top: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: var(--radius); background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08);
  backdrop-filter: blur(10px); text-decoration: none;
}
.countdown:hover { color: inherit; border-color: color-mix(in oklab, var(--paint) 60%, transparent); }
.countdown .clock { display: flex; gap: .35rem; }
.countdown .clock div { min-width: 54px; padding: .45rem .3rem; border-radius: 10px; background: rgb(255 255 255 / .06); text-align: center; }
.countdown .clock b { display: block; font: 700 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown .clock small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.countdown .what small { color: var(--paint); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.countdown .what strong { display: block; font-family: var(--display); font-size: 1.05rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .countdown { grid-template-columns: 1fr; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 1.8rem 1.2rem; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 700 clamp(1.8rem, 4vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- values / code ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.value { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--paint-soft); margin-bottom: 1rem; }
.value h3 { margin-bottom: .4rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- events ---------- */
.event-card { display: grid; grid-template-columns: 84px 1fr; gap: 1.1rem; align-items: start; }
.datebox {
  border-radius: 16px; background: var(--night); color: #fff; text-align: center; padding: .7rem .3rem; overflow: hidden; position: relative;
}
.datebox::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--paint); }
.datebox small { display: block; font: 700 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--paint); margin-top: 2px; }
.datebox b { display: block; font: 700 2rem/1.1 var(--display); }
.datebox span { font-size: .72rem; color: #9aa3b2; }
.event-card h3 { margin: .1rem 0 .3rem; }
.event-meta { display: flex; gap: .9rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.calendar .dow { padding: .7rem; font: 600 .75rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface-2); }
.calendar .day { min-height: 118px; padding: .5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar .day:nth-child(7n+1) { border-left: 0; }
.calendar .day.out { background: color-mix(in oklab, var(--surface-2) 60%, transparent); color: var(--muted); }
.calendar .day.today .n { background: var(--paint); color: var(--paint-ink); }
.calendar .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 600; font-size: .85rem; }
.calendar .ev { display: block; margin-top: .3rem; padding: .3rem .45rem; border-radius: 8px; font-size: .76rem; font-weight: 600; line-height: 1.25; text-decoration: none; background: var(--paint-soft); color: var(--ink); border-left: 3px solid var(--paint); }
.calendar .ev.charity { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 16%, transparent); }
@media (max-width: 760px) {
  .calendar { grid-template-columns: 1fr; }
  .calendar .dow, .calendar .day.out:not(:has(.ev)), .calendar .day:not(:has(.ev)) { display: none; }
  .calendar .day { min-height: 0; border-left: 0; }
}
.attendees { display: flex; flex-wrap: wrap; }
.avatar {
  --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 700 calc(var(--size) * .38) var(--display); color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--paint), color-mix(in oklab, var(--paint) 40%, #000)); border: 2px solid var(--surface);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.attendees .avatar { margin-right: -8px; }
.avatar.lg { --size: 96px; }
.avatar.sm { --size: 30px; }
.map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map.tall { height: 560px; }

/* ---------- charity ---------- */
.charity-band { position: relative; overflow: hidden; }
.charity-band .total { font: 700 clamp(3.2rem, 9vw, 6.5rem)/1 var(--display); letter-spacing: -.04em; color: var(--gold); }
.meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c, var(--gold)), color-mix(in oklab, var(--c, var(--gold)) 60%, #fff)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.in .meter i { width: var(--w); }
.cause { display: grid; gap: .6rem; }
.cause .spread b { font-family: var(--display); }

/* ---------- trading cards (garage) ---------- */
.tcard { perspective: 1200px; aspect-ratio: 5/7; cursor: pointer; }
.tcard-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.tcard:hover .tcard-inner, .tcard:focus-within .tcard-inner, .tcard.flipped .tcard-inner { transform: rotateY(180deg); }
.tface {
  position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; overflow: hidden; padding: 14px;
  background: linear-gradient(160deg, var(--car), color-mix(in oklab, var(--car) 35%, #07090c)); color: #fff;
  box-shadow: 0 25px 50px -25px color-mix(in oklab, var(--car) 70%, #000), inset 0 0 0 1px rgb(255 255 255 / .15);
  display: flex; flex-direction: column;
}
.tface::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .22) 45%, transparent 60%); transform: translateX(-100%); transition: transform .9s; pointer-events: none; }
.tcard:hover .tface::after { transform: translateX(100%); }
.tface.back { transform: rotateY(180deg); background: linear-gradient(160deg, #141922, #07090c); border: 2px solid var(--car); }
.tface .top { display: flex; justify-content: space-between; align-items: center; font: 700 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.tface .pic { flex: 1; margin: 10px 0; border-radius: 12px; overflow: hidden; background: rgb(0 0 0 / .25); display: grid; place-items: center; }
.tface .pic img { width: 100%; height: 100%; object-fit: cover; }
.tface .pic svg { width: 80%; }
.tface h3 { font-size: 1.15rem; margin: 0; }
.tface .sub { font-size: .8rem; opacity: .8; }
.tstats { display: grid; gap: 6px; margin-top: auto; }
.tstats div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: rgb(255 255 255 / .07); font-size: .82rem; }
.tstats b { font-family: var(--display); }
.tface .tlink { margin-top: 10px; text-align: center; padding: .6rem; border-radius: 10px; background: var(--car); color: #fff; font-weight: 700; text-decoration: none; font-size: .85rem; }

/* UK number plate */
.plate {
  display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; border: 2px solid #111;
  font: 700 1.1rem/1 "Charles Wright", var(--display); letter-spacing: .08em; color: #111; box-shadow: 0 3px 8px rgb(0 0 0 / .25);
}
.plate .gb { background: #003399; color: #ffcc00; font-size: .55rem; padding: 4px 4px; display: grid; place-items: end center; letter-spacing: 0; }
.plate .num { background: #ffd200; padding: .35rem .7rem; }
.plate.front .num { background: #f7f7f2; }
.plate.lg { font-size: 1.8rem; }

/* build progress */
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--paint); border-radius: inherit; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .entry { position: relative; padding-bottom: 2rem; }
.timeline .entry::before { content: ""; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--paint); }
.timeline time { font: 600 .78rem var(--display); color: var(--paint); letter-spacing: .08em; text-transform: uppercase; }
.modlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.modlist li { display: flex; gap: .6rem; align-items: center; }
.modlist li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paint); color: var(--paint-ink); font-size: .75rem; font-weight: 700; flex: none; }
.modlist li.todo { color: var(--muted); }
.modlist li.todo::before { content: ""; background: transparent; border: 2px dashed var(--line); }

/* ---------- before / after ---------- */
.ba { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; user-select: none; --pos: 50%; background: var(--surface-2); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 12px rgb(0 0 0 / .4); }
.ba .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 700; }
.ba .lbl { position: absolute; bottom: .8rem; padding: .25rem .6rem; border-radius: 6px; background: rgb(0 0 0 / .6); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba .lbl.l { left: .8rem; } .ba .lbl.r { right: .8rem; }

/* ---------- gallery ---------- */
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1rem; border-radius: 14px; overflow: hidden; position: relative; background: var(--surface-2); cursor: zoom-in; }
.masonry figure img { width: 100%; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0; padding: 2rem .9rem .8rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgb(0 0 0 / .7)); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption { opacity: 1; }
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; gap: .7rem; }
.photo-strip a { border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.photo-strip a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-strip a:nth-child(5) { grid-column: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-strip a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } .photo-strip a:nth-child(5) { grid-column: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(5 7 10 / .92); display: none; place-items: center; padding: 2rem; }
.lightbox.open { display: grid; animation: fadein .25s; }
.lightbox img { max-height: 85vh; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.lightbox p { color: #ddd; text-align: center; margin-top: 1rem; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- shop ---------- */
.product .art { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface), var(--surface-2)); position: relative; }
.product .art svg { width: 70%; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .18)); transition: transform .4s; }
.product:hover .art svg { transform: translateY(-6px) rotate(-2deg); }
.product .art img { width: 100%; height: 100%; object-fit: cover; }
.product .art .tag { position: absolute; top: .8rem; left: .8rem; }
.price { font: 700 1.2rem var(--display); }
.price s { color: var(--muted); font-weight: 500; font-size: .9rem; margin-left: .3rem; }
.sizes { display: flex; gap: .5rem; flex-wrap: wrap; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 .8rem; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; }
.sizes input:checked + span { border-color: var(--paint); background: var(--paint-soft); color: var(--paint); }
.sizes input:focus-visible + span { outline: 3px solid var(--paint); outline-offset: 2px; }
table.basket { width: 100%; border-collapse: collapse; }
table.basket td, table.basket th { padding: 1rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.basket th { font: 600 .78rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
table.basket .qty { width: 72px; }

/* ---------- forum ---------- */
.forum-cat { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; text-decoration: none; }
.forum-cat .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--paint-soft); display: grid; place-items: center; font-size: 1.6rem; }
.forum-cat .nums { text-align: right; color: var(--muted); font-size: .85rem; }
.forum-cat .nums b { color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.list .item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.3rem; text-decoration: none; transition: background .2s; }
.list a.item:hover { background: var(--surface-2); color: inherit; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item h4 { margin: 0 0 .2rem; font-size: 1rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.post { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post aside { padding: 1.4rem; background: var(--surface-2); text-align: center; font-size: .85rem; }
.post aside .avatar { margin: 0 auto .6rem; --size: 58px; }
.post .content { padding: 1.4rem 1.6rem; min-width: 0; overflow-wrap: anywhere; }
.post .tools { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; }
.respect { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 .82rem var(--body); color: var(--muted); }
.respect.on { background: var(--paint-soft); color: var(--paint); border-color: transparent; }
.respect.pop { animation: respect .4s; }
@keyframes respect { 50% { transform: scale(1.18); } }
@media (max-width: 700px) { .post { grid-template-columns: 1fr; } .post aside { display: flex; gap: .7rem; align-items: center; text-align: left; padding: .8rem 1rem; } .post aside .avatar { margin: 0; --size: 36px; } }

/* ---------- sponsors ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sponsor-pill { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.3rem .8rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--display); color: #fff; background: var(--b); flex: none; overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-mark.lg { width: 80px; height: 80px; font-size: 1.5rem; border-radius: 22px; }
.sponsor-card { display: grid; gap: 1rem; border-top: 4px solid var(--b); }
.sponsor-card.headline { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; background: linear-gradient(120deg, color-mix(in oklab, var(--b) 14%, var(--surface)), var(--surface)); }
@media (max-width: 760px) { .sponsor-card.headline { grid-template-columns: 1fr; } }
.offer { display: flex; gap: .6rem; align-items: center; padding: .7rem 1rem; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.code { font: 700 .95rem ui-monospace, monospace; padding: .25rem .6rem; border-radius: 6px; background: var(--ink); color: var(--bg); letter-spacing: .08em; cursor: copy; }

/* ---------- poll ---------- */
.poll-opt { position: relative; display: block; width: 100%; text-align: left; padding: .8rem 1rem; margin-bottom: .5rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: 500 .95rem var(--body); color: var(--ink); overflow: hidden; }
.poll-opt:hover { border-color: var(--paint); }
.poll-opt i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--paint-soft); transition: width 1s; }
.poll-opt span { position: relative; display: flex; justify-content: space-between; }

/* ---------- article ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose p:first-of-type::first-letter { font: 700 3.6em/.8 var(--display); float: left; margin: .1em .12em 0 0; color: var(--paint); }
.article-hero { aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

/* ---------- pledge ---------- */
.pledge { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 28px; background: linear-gradient(135deg, var(--paint), color-mix(in oklab, var(--paint) 55%, #05070a)); color: #fff; position: relative; overflow: hidden; }
.pledge::after { content: "🤝"; position: absolute; right: -2rem; bottom: -3rem; font-size: 14rem; opacity: .08; transform: rotate(-15deg); }
.pledge ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.pledge li { margin-bottom: .35rem; }
.pledge .form input { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .25); color: #fff; }
.pledge .form input::placeholder { color: rgb(255 255 255 / .7); }
.pledge .btn { --b: #fff; color: #0e1116; }
.pledge .count { font: 700 3rem/1 var(--display); }
@media (max-width: 860px) { .pledge { grid-template-columns: 1fr; } }

/* ---------- messages / misc ---------- */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; gap: .5rem; max-width: min(92vw, 420px); }
.toast { padding: .9rem 1.1rem; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); display: flex; gap: .7rem; align-items: start; animation: toast .4s cubic-bezier(.2,.8,.2,1); }
.toast.error { background: #c93636; color: #fff; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; opacity: .7; }
@keyframes toast { from { transform: translateY(20px); opacity: 0; } }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 2.6rem; display: block; margin-bottom: .5rem; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.badge-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem .35rem .4rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.badge i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.side { grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 900px) { .split, .split.side { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 92px; }
.cta-band { border-radius: 28px; padding: clamp(2rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in oklab, var(--paint) 50%, transparent), transparent); opacity: .6; }
.cta-band > * { position: relative; }
.village-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.5rem 0 2rem; }

/* footer */
.site-footer { padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; color: #c9d0db; }
.footer-grid a:hover { color: var(--paint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* shine easter egg */
.shine-sweep { position: fixed; inset: 0; z-index: 200; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 1.3s ease-in-out forwards; }
@keyframes sweep { to { transform: translateX(100%); } }

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