/* PRM Eurowerks. Race-team livery: carbon black, tech-sheet paper, one red. */
:root {
  --ink: #0c0c0d;
  --carbon: #151517;
  --panel: #1d1d20;
  --line-dark: rgba(255, 255, 255, .12);
  --paper: #ecebe6;
  --paper-2: #e2e0d9;
  --line-light: rgba(12, 12, 13, .16);
  --text-on-dark: #f2f1ed;
  --mute-on-dark: #9b9a96;
  --text-on-light: #121214;
  --mute-on-light: #5c5b57;
  --red: #d8231f;
  --red-deep: #a8150f;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-base: clamp(1rem, .95rem + .25vw, 1.0625rem);
  --t-lg: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  --t-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --t-h2: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --t-hero: clamp(1.9rem, .4rem + 7vw, 7.25rem);

  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 8.5rem);
  --max: 1320px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms;
  --slow: 520ms;
  --slant: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font: 400 var(--t-base)/1.6 var(--f-display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 8px; }

/* type roles */
.wide { font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; }
.wide-i { font-variation-settings: "wdth" 125; font-weight: 800; font-style: italic; text-transform: uppercase; }
.mono, .tag { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; }
.tag { display: inline-flex; gap: .6em; align-items: center; color: var(--mute-on-dark); }
.tag::before { content: ""; width: 22px; height: 3px; background: var(--red); transform: skewX(-30deg); }
.on-light .tag { color: var(--mute-on-light); }

/* buttons */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95rem 1.6rem .95rem 1.3rem;
  background: var(--bg); color: var(--fg);
  font: 700 var(--t-sm)/1 var(--f-display); font-variation-settings: "wdth" 115;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  clip-path: var(--slant); border: 0; cursor: pointer;
  transition: background var(--fast), transform var(--fast) var(--ease);
}
.btn:hover { --bg: var(--red-deep); transform: translateX(3px); }
.btn:active { transform: translateX(1px) scale(.98); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; clip-path: none; }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .08); }
.on-light .btn--ghost:hover { --bg: rgba(0, 0, 0, .06); }
.btn svg { width: 1.05em; height: 1.05em; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-arrow:hover { color: var(--red); }

/* header */
.topbar { background: var(--red); color: #fff; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { text-decoration: none; }
.topbar span:nth-child(2) { display: none; }
@media (min-width: 760px) { .topbar span:nth-child(2) { display: inline; } }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 13, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand b { font-size: 1.05rem; line-height: 1; }
.brand small { display: block; margin-top: .3rem; color: var(--mute-on-dark); font-size: .62rem; }
.nav { display: none; gap: 1.6rem; list-style: none; }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 600; color: var(--mute-on-dark); padding-block: .4rem; border-bottom: 2px solid transparent; transition: color var(--fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-on-dark); border-color: var(--red); }
.head-call { display: none; }
.menu-btn { background: none; border: 1.5px solid var(--line-dark); color: inherit; padding: .55rem .8rem; font: 600 var(--t-xs)/1 var(--f-mono); letter-spacing: .08em; cursor: pointer; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .head-call { display: inline-flex; }
  .menu-btn { display: none; }
}
.drawer { display: none; border-top: 1px solid var(--line-dark); background: var(--ink); }
.drawer.open { display: block; }
.drawer ul { list-style: none; }
.drawer a { display: flex; justify-content: space-between; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line-dark); text-decoration: none; font-weight: 700; }

/* hero */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(.9) contrast(1.05); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,12,13,.25) 0%, rgba(12,12,13,.55) 45%, var(--ink) 96%), linear-gradient(90deg, rgba(12,12,13,.8), transparent 70%); }
.hero__body { padding-block: 9rem 3rem; }
.hero h1 .kicker { display: block; font: 600 var(--t-lg)/1.3 var(--f-display); font-variation-settings: "wdth" 100; text-transform: none; font-style: normal; color: var(--text-on-dark); max-width: 30ch; margin-bottom: 1.2rem; letter-spacing: 0; }
.hero h1 .big { display: block; font-size: var(--t-hero); line-height: .86; letter-spacing: -.02em; }
.hero h1 .big em { color: var(--red); font-style: inherit; }
.hero__lede { max-width: 46ch; color: #d6d5d0; margin-top: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* timing board */
.board { border-block: 1px solid var(--line-dark); background: var(--carbon); }
.board ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
.board li { padding: 1rem 1.1rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.board li span { display: block; color: var(--mute-on-dark); margin-bottom: .3rem; }
.board li b { font: 600 var(--t-sm)/1.3 var(--f-mono); }
.board a { text-decoration: none; }
@media (min-width: 900px) { .board ul { grid-template-columns: repeat(4, 1fr); } .board li { border-bottom: 0; } }

/* sections */
.section { padding-block: var(--section); }
.on-light { background: var(--paper); color: var(--text-on-light); }
.on-light .mute { color: var(--mute-on-light); }
.mute { color: var(--mute-on-dark); }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.sec-head h2 { font-size: var(--t-h2); line-height: .95; }
.sec-head p { max-width: 52ch; font-size: var(--t-lg); line-height: 1.5; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; } }

/* platform bento */
.platforms { display: grid; gap: 4px; grid-template-columns: 1fr; }
.plat { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 1.4rem; text-decoration: none; overflow: hidden; background: var(--panel); }
.plat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--slow) var(--ease); }
.plat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(12,12,13,.92)); }
.plat:hover img { transform: scale(1.04); }
.plat h3 { font-size: var(--t-h3); }
.plat .codes { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.plat .codes span { font: 500 .7rem/1 var(--f-mono); padding: .35rem .45rem; border: 1px solid rgba(255,255,255,.3); }
.plat .go { position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); clip-path: var(--slant); transition: transform var(--fast) var(--ease); }
.plat:hover .go { transform: translateX(4px); }
@media (min-width: 700px) { .platforms { grid-template-columns: 1fr 1fr; } .plat { min-height: 380px; } }
@media (min-width: 1100px) { .platforms { grid-template-columns: repeat(4, 1fr); } .plat { min-height: 520px; } }

/* discipline rows */
.disc { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line-light); }
.disc:first-of-type { border-top: 0; padding-top: 0; }
.disc__num { font: 800 clamp(3.5rem, 2.5rem + 4vw, 6.5rem)/.8 var(--f-display); font-variation-settings: "wdth" 125; font-style: italic; color: transparent; -webkit-text-stroke: 1.5px var(--text-on-light); }
.disc h3 { font-size: var(--t-h2); margin-block: .6rem 1rem; }
.disc ul { list-style: none; columns: 2; column-gap: 1.5rem; margin-block: 1.4rem; }
.disc li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--line-light); font-size: var(--t-sm); font-weight: 600; }
.disc figure { margin: 0; position: relative; }
.disc figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) {
  .disc { grid-template-columns: auto 1fr 1.1fr; gap: 3rem; align-items: center; }
  .disc--flip figure { order: -1; grid-column: 1 / 2; }
  .disc--flip { grid-template-columns: 1.1fr 1fr auto; }
  .disc--flip .disc__num { order: 3; text-align: right; }
}

/* photo grid: plain, even, no captions */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.photos img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) { .photos { grid-template-columns: repeat(4, 1fr); gap: 10px; } }

/* reviews */
.reviews { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.review { background: var(--paper); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.review p { font-size: var(--t-lg); line-height: 1.45; margin: 0; }
.review footer { margin-top: auto; display: grid; gap: .3rem; font-size: var(--t-sm); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* steps */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line-dark); }
.steps li::before { content: "0" counter(s); font: 800 1.6rem/1 var(--f-display); font-variation-settings: "wdth" 125; font-style: italic; color: var(--red); }
.steps h3 { font-size: var(--t-lg); margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--mute-on-dark); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps li { grid-template-columns: 1fr; border-top: 3px solid var(--panel); }
}

/* page hero (inner) */
.page-hero { padding-block: 3rem clamp(3rem, 2rem + 4vw, 6rem); border-bottom: 1px solid var(--line-dark); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; color: var(--mute-on-dark); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--red); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text-on-dark); }
.page-hero__grid { display: grid; gap: 2.5rem; align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 5.6rem); line-height: .9; }
.page-hero .lede { font-size: var(--t-lg); line-height: 1.5; max-width: 48ch; margin-top: 1.5rem; color: #d6d5d0; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.4fr 1fr; } .page-hero figure img { aspect-ratio: 4/4.4; } }

/* prose + spec sheet */
.content-grid { display: grid; gap: 3rem; }
@media (min-width: 980px) { .content-grid { grid-template-columns: 1fr 360px; gap: 5rem; } }
.prose h2 { font-size: var(--t-h3); margin: 2.5rem 0 1rem; text-transform: uppercase; font-variation-settings: "wdth" 120; font-weight: 800; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 66ch; }
.prose ul { list-style: none; margin-bottom: 1.2rem; }
.prose li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid var(--line-light); }
.prose li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 3px; background: var(--red); transform: skewX(-30deg); }
.prose strong { font-weight: 700; }
.spec { position: sticky; top: 96px; align-self: start; background: var(--ink); color: var(--text-on-dark); padding: 1.6rem; }
.spec h2 { font-size: 1rem; margin-bottom: 1.2rem; }
.spec dl { margin: 0 0 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; font-size: var(--t-sm); }
.spec dt { font: 500 var(--t-xs)/1.6 var(--f-mono); color: var(--mute-on-dark); text-transform: uppercase; letter-spacing: .05em; }
.spec dd { margin: 0; font-weight: 600; }
.spec .btn { width: 100%; justify-content: center; }
.spec .btn + .btn { margin-top: .5rem; }

/* chips + related */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1rem 1.5rem; }
.chips span { font: 500 var(--t-xs)/1 var(--f-mono); padding: .45rem .55rem; border: 1px solid var(--line-light); background: var(--paper-2); }
.related { display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related a { display: flex; justify-content: space-between; align-items: end; min-height: 120px; padding: 1.2rem; background: var(--panel); text-decoration: none; border-bottom: 3px solid transparent; transition: border-color var(--fast), background var(--fast); }
.related a:hover { border-color: var(--red); background: #26262a; }
.related b { font-size: var(--t-lg); text-transform: uppercase; font-variation-settings: "wdth" 115; }

/* faq */
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 700; font-size: var(--t-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.4rem/1 var(--f-mono); color: var(--red); transition: transform var(--fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 66ch; padding-bottom: 1.2rem; margin: 0; }

/* towns */
.towns { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-top: 1px solid var(--line-light); }
.towns li { padding: .9rem 0; border-bottom: 1px solid var(--line-light); font-weight: 700; display: flex; justify-content: space-between; padding-right: 1rem; }

/* contact + form */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 2rem + 3vw, 5rem); align-items: center; }
.cta-band h2 { font-size: var(--t-h2); }
.cta-band .btn { --bg: var(--ink); }
.cta-band .btn:hover { --bg: #000; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; } }

.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .4rem; font: 500 var(--t-xs)/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.form input, .form select, .form textarea { width: 100%; font: 500 1rem/1.4 var(--f-display); padding: .85rem .9rem; background: #fff; color: var(--text-on-light); border: 1.5px solid var(--line-light); border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(216, 35, 31, .15); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* footer */
.site-foot { background: #070708; padding-block: 4rem 6rem; border-top: 4px solid var(--red); font-size: var(--t-sm); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h2 { font-size: var(--t-xs); font-family: var(--f-mono); color: var(--mute-on-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-foot ul { list-style: none; display: grid; gap: .5rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--red); }
.foot-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--mute-on-dark); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.callbar a { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: 1rem; font: 700 var(--t-sm)/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; background: var(--carbon); }
.callbar a:first-child { background: var(--red); }
@media (min-width: 1080px) { .callbar { display: none; } .site-foot { padding-bottom: 4rem; } }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* small screens: keep the wordmark on one line */
.brand b { white-space: nowrap; }
@media (max-width: 520px) {
  .brand small { display: none; }
  .brand img { width: 38px; height: 38px; }
  .site-head .wrap { height: 62px; }
  .topbar .wrap { font-size: .68rem; }
}
@media (max-width: 400px) {
  .hero h1 .big { font-variation-settings: "wdth" 108; }
  .site-head .wrap { gap: .75rem; }
  .brand b { font-size: .92rem; }
  .topbar span:first-child { display: none; }
}

/* audit fixes: AA contrast on red, 44px tap targets, 12px minimum text */
.callbar a:first-child { color: #fff; }
.brand small { font-size: .75rem; }
.plat .codes span { font-size: .75rem; }
@media (max-width: 520px) { .topbar .wrap { font-size: .75rem; } }
.menu-btn { min-height: 44px; min-width: 64px; }
.site-foot li > a, .site-foot address a { display: inline-block; padding-block: .7rem; }
.site-foot ul { gap: 0; }
.link-arrow { display: inline-block; padding-block: .65rem .35rem; }
.crumbs a { display: inline-block; padding-block: .8rem; }
.topbar a { display: inline-block; padding-block: .45rem; margin-block: -.45rem; }
.crumbs { align-items: center; }
.foot-legal a { display: inline-block; padding-block: .75rem; }
.topbar a { padding-block: .7rem; margin-block: -.7rem; }

/* hours table */
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: var(--t-sm); }
.hours caption { text-align: left; color: var(--mute-on-dark); padding-bottom: .6rem; }
.hours th, .hours td { padding: .45rem 0; border-top: 1px solid var(--line-dark); text-align: left; }
.hours th { font-weight: 500; color: var(--mute-on-dark); }
.hours td { text-align: right; font-weight: 600; }

/* rating line + in-page review */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: var(--t-lg); margin: 0; }
.stars { color: var(--red); letter-spacing: .1em; }
.page-review { margin: 2.5rem 0; padding: 1.6rem 1.8rem; background: var(--paper-2); border-left: 4px solid var(--red); }
.page-review p { font-size: var(--t-lg); font-weight: 600; line-height: 1.45; margin: 0 0 .8rem; max-width: 50ch; }
.page-review footer { color: var(--mute-on-light); }
