/* Self-hosted variable fonts: Archivo (wide display) + Inter (text) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* =========================================================
   R2 Performance — site styles (v2, premium)
   Brand: black, chrome and race red. Accent colour is set from the admin panel.
   ========================================================= */
:root {
  --c-bg: #07070a;
  --c-bg-alt: #0c0c10;
  --c-surface: #131318;
  --c-surface-2: #1a1a21;
  --c-line: rgba(255, 255, 255, .08);
  --c-line-strong: rgba(255, 255, 255, .16);
  --c-text: #f5f5f7;
  --c-text-muted: #a9a9b3;
  --c-red: #e10600;
  --c-red-hover: #c20500;
  --c-red-deep: #830300;
  --c-red-text: #ff4a3d;
  --c-plate: #f7d117;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d4d4da 42%, #8a8a93 52%, #ececf0 100%);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --radius: 14px; --radius-lg: 22px; --radius-xl: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 180ms; --t-med: 320ms;
  --topbar-h: 40px; --header-h: 76px;
  --z-header: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 800; font-style: italic; text-transform: uppercase; text-wrap: balance; }
h3 { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-red); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.noscript { padding: 24px; text-align: center; }

/* Grain overlay for depth */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  background-image: 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");
}

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-med) ease;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 19px; height: 19px; transition: transform var(--t-med) var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { background: var(--c-red); color: #fff; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--c-red) 70%, transparent); }
.btn-primary:hover { background: var(--c-red-hover); box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--c-red) 85%, transparent); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--c-text); border: 1px solid var(--c-line-strong); background: rgba(255,255,255,.03);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; transform: translateY(-1px); }
.icon-btn.is-wa:hover { background: #1fa855; border-color: #1fa855; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s-4);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-red-text);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--c-red); }
.kicker { font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-red-text); }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: 41; background: #050507; border-bottom: 1px solid var(--c-line); font-size: .88rem; color: var(--c-text-muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--topbar-h); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar-item .icon { width: 15px; height: 15px; color: var(--c-red-text); }
a.topbar-item:hover { color: #fff; }
.topbar-rating strong { color: #fff; }
.topbar-rating .icon { color: #fbbc04; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med) ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 7, 10, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: background-color var(--t-med) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header.is-scrolled::before, .menu-open .site-header::before { background: rgba(7, 7, 10, .94); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.brand img { width: 148px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav ul a {
  position: relative; display: block; padding: 10px 14px; border-radius: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--c-text-muted); transition: color var(--t-fast) ease;
}
.main-nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.main-nav ul a:hover, .main-nav ul a.is-active { color: #fff; }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.header-social { display: flex; gap: 6px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line-strong); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(860px, calc(100svh - var(--topbar-h) - var(--header-h))); display: flex; align-items: center; padding: var(--s-9) 0 calc(var(--s-10) + 40px); }
.hero-media { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; width: 58%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--c-bg) 0%, var(--c-bg) 38%, rgba(7,7,10,.85) 50%, rgba(7,7,10,.25) 72%, rgba(7,7,10,.35) 100%),
    linear-gradient(0deg, var(--c-bg) 0%, rgba(7,7,10,0) 30%),
    radial-gradient(50% 60% at 20% 80%, color-mix(in srgb, var(--c-red) 22%, transparent), transparent 70%);
}
.hero-inner { width: min(1240px, 100% - 48px); }
.hero-copy { max-width: 760px; }
.hero-copy .lead { max-width: 52ch; }
.hero h1 { font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .9; }
.h1-line { display: block; font-size: clamp(3.2rem, 7.4vw, 6.1rem); }
.h1-accent {
  display: block; margin-top: 6px; font-size: clamp(3.2rem, 7.4vw, 6.1rem);
  background: linear-gradient(180deg, var(--c-red-text) 0%, var(--c-red) 55%, var(--c-red-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px color-mix(in srgb, var(--c-red) 40%, transparent));
  padding-right: .1em;
}
.lead { margin-top: var(--s-5); max-width: 54ch; font-size: 1.15rem; color: #c9c9d1; }
.hero .btn-row { margin-top: var(--s-6); }
.stats { display: flex; gap: var(--s-7); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; }
.stat-suffix { color: var(--c-red-text); margin-left: 2px; font-size: .7em; }
.stat-label { margin-top: 6px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 120px; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; transform: translateX(-50%); display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Lookup ---------- */
.lookup { position: relative; z-index: 5; margin-top: -120px; }
.lookup-card {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); align-items: center;
  padding: var(--s-6) var(--s-7); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(26,26,33,.92), rgba(12,12,16,.96));
  border: 1px solid var(--c-line-strong); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lookup-title { font-size: 2rem; font-style: italic; font-weight: 800; text-transform: uppercase; margin-top: 4px; }
.lookup-form { display: flex; gap: var(--s-3); }
.plate { flex: 1; display: flex; min-height: 60px; background: var(--c-plate); border-radius: 10px; overflow: hidden; border: 2px solid #111; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.plate-band { display: flex; align-items: flex-end; justify-content: center; width: 44px; padding-bottom: 7px; background: #0a3fa8; color: #fff; font-weight: 700; font-size: .8rem; }
.plate input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: #111; font-family: var(--f-display); font-weight: 800; font-size: 2rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 0 12px; }
.plate input::placeholder { color: rgba(17,17,17,.5); }
.plate input:focus { outline: none; }
.plate:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.plate.has-error { border-color: var(--c-red); }
.lookup-help { margin-top: var(--s-3); font-size: .95rem; color: var(--c-text-muted); }
.field-error { margin-top: var(--s-2); color: var(--c-red-text); font-weight: 600; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.remapdash-wrap { min-height: 80px; }
.remapdash-wrap iframe { width: 100%; border: 0; display: block; }
.lookup-result {
  margin-top: var(--s-4); padding: var(--s-5) var(--s-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: var(--c-surface); border: 1px solid var(--c-line); border-left: 3px solid var(--c-red); border-radius: var(--radius);
  animation: rise var(--t-med) var(--ease);
}
.lookup-result h3 { font-size: 1.5rem; }
.lookup-result p { color: var(--c-text-muted); margin-top: 4px; }
.result-reg { display: inline-block; background: var(--c-plate); color: #111; font-family: var(--f-display); font-weight: 800; letter-spacing: .1em; padding: 2px 10px; border-radius: 6px; margin-bottom: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Makes marquee ---------- */
.marquee { margin-top: var(--s-8); padding: var(--s-5) 0; border-block: 1px solid var(--c-line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-row { display: flex; align-items: center; flex: none; }
.make { padding: 0 var(--s-6); font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 1.9rem; text-transform: uppercase; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.38); white-space: nowrap; }
.make-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-red); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--s-10) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-8); align-items: end; }
.section-head--split .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-head--split .section-sub { margin-top: 0; }
.section-sub { margin-top: var(--s-5); color: var(--c-text-muted); font-size: 1.12rem; max-width: 60ch; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-8); }
.section-head-row .section-head { margin-bottom: 0; }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.stage-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; padding: var(--s-6);
  border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface) 60%);
  border: 1px solid var(--c-line); transition: transform var(--t-med) var(--ease), border-color var(--t-med) ease;
}
.stage-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 100% 0%, rgba(255,255,255,.06), transparent 60%); pointer-events: none; }
.stage-card:hover { transform: translateY(-6px); border-color: var(--c-line-strong); }
.stage-index { position: absolute; right: 18px; top: 4px; font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 7.5rem; line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16; }
.stage-card h3 { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.stage-card h3 span { font-size: 2.6rem; font-style: italic; font-weight: 800; }
.stage-card h3 small { font-family: var(--f-body); font-size: .85rem; letter-spacing: .16em; color: var(--c-red-text); font-weight: 700; }
.stage-card p { margin-top: var(--s-4); color: var(--c-text-muted); }
.stage-link { margin-top: var(--s-5); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: #fff; align-self: flex-start; border-bottom: 1px solid var(--c-line-strong); padding-bottom: 2px; transition: border-color var(--t-fast) ease, color var(--t-fast) ease; }
.stage-link .icon { width: 16px; height: 16px; }
.stage-link:hover { color: var(--c-red-text); border-color: var(--c-red-text); }
.stage-card--hot { border-color: color-mix(in srgb, var(--c-red) 50%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c-red) 22%, #121216), var(--c-surface) 65%); }
.stage-card--hot .stage-index { background: linear-gradient(180deg, var(--c-red-text), var(--c-red-deep)); -webkit-background-clip: text; background-clip: text; opacity: .45; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: var(--s-5); background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.service { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); background: var(--c-bg); transition: background-color var(--t-med) ease; }
.section-alt .service { background: var(--c-bg-alt); }
.service:hover { background: var(--c-surface); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--c-red) 14%, transparent); color: var(--c-red-text); border: 1px solid color-mix(in srgb, var(--c-red) 30%, transparent); }
.service h3 { font-size: 1.25rem; }
.service p { margin-top: var(--s-2); font-size: .97rem; color: var(--c-text-muted); }

.callout { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-5); padding: var(--s-5) var(--s-6); border-radius: var(--radius-lg); background: linear-gradient(110deg, color-mix(in srgb, var(--c-red) 20%, #0d0d10), var(--c-surface) 70%); border: 1px solid color-mix(in srgb, var(--c-red) 40%, transparent); }
.callout-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--c-red) 18%, transparent); color: var(--c-red-text); }
.callout-icon .icon { width: 26px; height: 26px; }
.callout-copy { flex: 1; }
.callout-copy h3 { font-size: 1.5rem; font-style: italic; }
.callout-copy p { margin-top: 6px; color: var(--c-text-muted); }
.services-more { margin-top: var(--s-6); color: var(--c-text-muted); text-align: center; }
.services-more a { color: var(--c-red-text); font-weight: 700; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-9); align-items: center; }
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--c-line); }
.about-media::before { content: ""; pointer-events: none; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--c-red) 45%, transparent); z-index: -1; }
.about-badge { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(7,7,10,.82); border: 1px solid var(--c-line-strong); backdrop-filter: blur(10px); font-size: .95rem; }
.about-badge .icon { color: #fbbc04; width: 18px; height: 18px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); margin-top: var(--s-7); }
.points li { display: flex; gap: var(--s-3); }
.points .icon { width: 22px; height: 22px; padding: 3px; margin-top: 2px; border-radius: 50%; background: var(--c-red); color: #fff; stroke-width: 3; }
.points h3 { font-size: 1.15rem; }
.points p { margin-top: 4px; color: var(--c-text-muted); font-size: .97rem; }

/* Process */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-line-strong), transparent); }
.step { position: relative; text-align: center; padding: 0 var(--s-4); }
.step-num { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--c-bg); border: 1px solid var(--c-line-strong); font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 1.9rem; color: var(--c-red-text); box-shadow: 0 0 0 8px var(--c-bg); }
.step h3 { margin-top: var(--s-5); font-size: 1.45rem; }
.step p { margin-top: var(--s-3); color: var(--c-text-muted); max-width: 34ch; margin-inline: auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: var(--s-3); }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.gallery-item.is-large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), filter var(--t-med) ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 45%); pointer-events: none; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-video a { display: block; height: 100%; text-decoration: none; color: inherit; }
.gallery-tag { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.play-badge { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(7,7,10,.6); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); transition: background-color var(--t-fast) ease, transform var(--t-med) var(--ease); }
.play-badge .icon { width: 16px; height: 16px; fill: #fff; stroke: none; margin-left: 2px; }
.gallery-video a:hover .play-badge { background: var(--c-red); transform: scale(1.08); }
.gallery-video a:focus-visible { outline-offset: -3px; }

/* Reviews */
.reviews-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-8); align-items: center; margin-bottom: var(--s-8); }
.reviews-head .btn-row { margin-top: var(--s-6); }
.rating-score { display: flex; flex-direction: column; align-items: center; padding: var(--s-7); border-radius: var(--radius-xl); background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--c-red) 20%, transparent), transparent 70%), var(--c-surface); border: 1px solid var(--c-line); }
.score { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 7rem; line-height: .9; }
.stars { display: inline-flex; gap: 4px; color: #fbbc04; }
.stars .icon { width: 17px; height: 17px; }
.stars-lg { margin-top: var(--s-3); }
.stars-lg .icon { width: 26px; height: 26px; }
.score-sub { margin-top: var(--s-3); color: var(--c-text-muted); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; font-weight: 600; }
.review-grid { columns: 3 320px; column-gap: var(--s-4); }
.review-card { break-inside: avoid; margin-bottom: var(--s-4); display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-line); transition: border-color var(--t-med) ease; }
.review-card:hover { border-color: var(--c-line-strong); }
.review-card blockquote { margin: 0; }
.review-card blockquote p { font-size: 1.05rem; color: #e4e4ea; }
.review-card blockquote p::before { content: "\201C"; } .review-card blockquote p::after { content: "\201D"; }
.review-meta { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--c-red), var(--c-red-deep)); font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.review-name { display: block; font-weight: 700; }
.review-car { display: block; font-size: .88rem; color: var(--c-red-text); font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-8); align-items: center; }
.contact-list { display: grid; gap: var(--s-4); margin: var(--s-6) 0; }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-red-text); }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 700; }
.contact-list a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--c-red-text); }
.map-card { position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--c-line-strong); background: #f4f3f1; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.map-card img { width: 100%; height: auto; transition: transform 900ms var(--ease); }
.map-card:hover img { transform: scale(1.02); }
.map-pill { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 11px 20px; border-radius: 999px; background: var(--c-red); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.map-pill .icon { width: 18px; height: 18px; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: var(--s-10) 0; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,10,.95) 0%, rgba(7,7,10,.8) 45%, color-mix(in srgb, var(--c-red-deep) 55%, transparent) 100%); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); }
.cta-inner h2 { max-width: 16ch; }
.cta-inner p { margin-top: var(--s-4); color: #d2d2d9; font-size: 1.12rem; }

/* Footer */
.site-footer { background: #040406; padding: var(--s-9) 0 var(--s-6); border-top: 1px solid var(--c-line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: var(--s-8); }
.footer-brand img { width: 170px; }
.footer-brand p { margin-top: var(--s-4); color: var(--c-text-muted); max-width: 42ch; }
.footer-social { margin-top: var(--s-5); }
.footer-col h3 { font-size: 1rem; letter-spacing: .18em; color: #fff; }
.footer-col ul { display: grid; gap: var(--s-2); margin-top: var(--s-4); color: var(--c-text-muted); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--c-line); display: grid; gap: var(--s-2); font-size: .86rem; color: #8d8d97; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.is-preview .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .main-nav ul a { padding: 10px 10px; font-size: .95rem; }
}
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-mid { display: none; }
  .about { gap: var(--s-7); }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; gap: var(--s-2); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: var(--s-6) 24px;
    background: rgba(7,7,10,.98); backdrop-filter: blur(16px);
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease), visibility var(--t-med);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { font-size: 2.2rem; font-style: italic; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--c-line); color: #fff; letter-spacing: .02em; }
  .main-nav ul a::after { display: none; }
  .nav-mobile-extra { display: grid; gap: var(--s-4); padding-bottom: var(--s-6); }
  .nav-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--c-text-muted); }
  .hero { min-height: auto; padding: 0 0 calc(var(--s-9) + 60px); align-items: flex-end; }
  .hero-media { position: relative; width: 100%; height: 62vh; min-height: 380px; z-index: -2; }
  .hero { flex-direction: column; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,7,10,.15) 0%, rgba(7,7,10,.55) 32%, var(--c-bg) 50%), radial-gradient(60% 40% at 10% 70%, color-mix(in srgb, var(--c-red) 20%, transparent), transparent 70%); }
  .hero-inner { margin-top: -16vh; }
  .stats { gap: var(--s-6); }
  .lookup { margin-top: -80px; }
  .lookup-card { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
  .section { padding: var(--s-9) 0; }
  .section-head--split { grid-template-columns: 1fr; }
  .stages, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 76px 1fr; column-gap: var(--s-5); padding: 0; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 10px; }
  .step p { margin: var(--s-2) 0 0; max-width: none; }
  .about, .contact, .reviews-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .container, .hero-inner { width: min(1240px, 100% - 32px); }
  .brand img { width: 112px; }
  .icon-btn { width: 38px; height: 38px; }
  .header-social { gap: 4px; }
  .nav-toggle { width: 40px; height: 40px; }
  .lookup-form { flex-direction: column; }
  .lookup-form .btn { width: 100%; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service { padding: var(--s-4); gap: var(--s-3); }
  .service h3 { font-size: 1.05rem; }
  .service p { font-size: .88rem; }
  .service-icon { width: 40px; height: 40px; }
  .points { grid-template-columns: 1fr; }
  .stats { justify-content: space-between; gap: var(--s-4); }
  .stat-value { font-size: 2.1rem; }
  .stat-label { font-size: .72rem; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .btn { width: 100%; }
  .gallery { grid-auto-rows: 170px; gap: var(--s-2); }
  .gallery-tag { font-size: .9rem; left: 10px; right: 10px; bottom: 10px; }
  .play-badge { width: 36px; height: 36px; top: 8px; right: 8px; }
  .score { font-size: 5.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .btn-row .btn { flex: 1 1 auto; }
  .map-pill { bottom: 30px; padding: 9px 14px; font-size: .9rem; }
}
@media (max-width: 370px) {
  .header-social .icon-btn:nth-child(n+3) { display: none; }
}
@media (min-width: 961px) and (min-height: 760px) { .scroll-cue { display: block; } }

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

@media (max-width: 960px) { .about-media::before { display: none; } }

/* ---------- Intro reveal ---------- */
.intro { display: none; }
.js .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 22px; background: var(--c-bg); transition: opacity 600ms var(--ease), visibility 600ms; }
.intro img { width: 200px; height: auto; opacity: 0; transform: translateY(8px) scale(.98); animation: intro-in 700ms var(--ease) 80ms forwards; }
.intro-line { width: 200px; height: 2px; background: var(--c-line); position: relative; overflow: hidden; }
.intro-line::after { content: ""; position: absolute; inset: 0; background: var(--c-red); transform: translateX(-100%); animation: intro-line 800ms var(--ease) 150ms forwards; }
.intro.is-done { opacity: 0; visibility: hidden; }
@keyframes intro-in { to { opacity: 1; transform: none; } }
@keyframes intro-line { to { transform: none; } }

/* ---------- Inside a remap ---------- */
.section-tech { overflow: hidden; background: #060608; border-block: 1px solid var(--c-line); }
.tech-glow { position: absolute; inset: auto -20% -40% auto; width: 70%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-red) 20%, transparent), transparent); pointer-events: none; }
.section-tech::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent); }
.tech { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-9); align-items: start; }
.tech-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.tech-copy .btn { margin-top: var(--s-6); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.tech-item { padding: var(--s-6); background: rgba(10,10,13,.92); transition: background-color var(--t-med) ease; }
.tech-item:hover { background: var(--c-surface); }
.tech-num { display: inline-block; font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 1.05rem; color: var(--c-red-text); letter-spacing: .08em; padding-bottom: 6px; border-bottom: 2px solid var(--c-red); }
.tech-item h3 { margin-top: var(--s-4); font-size: 1.35rem; }
.tech-item p { margin-top: var(--s-2); color: var(--c-text-muted); font-size: .98rem; }

@media (max-width: 960px) {
  .tech { grid-template-columns: 1fr; gap: var(--s-7); }
  .tech-copy { position: static; }
}
@media (max-width: 640px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-item { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

.tech-media { margin: var(--s-7) 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); position: relative; }
.tech-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tech-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,8,.5), transparent 50%); pointer-events: none; }
@media (max-width: 960px) { .tech-media { margin-top: var(--s-6); } }

.gallery-item.is-large img { object-position: center 62%; }
.cta-bg img { object-position: center 70%; }


/* =========================================================
   Luxury typography & refinement layer
   ========================================================= */
body { font-size: 1rem; line-height: 1.75; letter-spacing: -0.003em; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, .stat-value, .stat-suffix, .step-num, .tech-num, .stage-index, .score, .make, .lookup-title, .callout-copy h3, .stage-card h3 span, .gallery-tag, .main-nav ul a, .eyebrow, .kicker, .h1-accent, .h1-line { font-style: normal !important; }
h1, h2, h3, .lookup-title, .stat-value, .score, .step-num, .stage-index, .make { font-family: var(--f-display); font-stretch: 125%; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.04; }
h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: .02em; line-height: 1.25; font-stretch: 112%; }
p { text-wrap: pretty; }

.eyebrow, .kicker { font-family: var(--f-body); font-weight: 600; font-size: .72rem; letter-spacing: .3em; }
.eyebrow::before { width: 28px; height: 1px; }

/* Hero */
.hero h1 { line-height: .98; letter-spacing: -0.02em; font-weight: 800; }
.h1-line, .h1-accent { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.h1-accent { background: none; color: var(--c-red); -webkit-text-fill-color: currentColor; filter: none; margin-top: 4px; }
.lead { font-size: 1.08rem; color: #b9b9c2; line-height: 1.8; }
.stats { gap: var(--s-8); border-top-color: rgba(255,255,255,.1); }
.stat-value { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-suffix { font-size: .55em; vertical-align: top; margin-left: 4px; }
.stat-label { font-size: .68rem; letter-spacing: .24em; font-weight: 500; }

/* Buttons: tailored, squared-off */
.btn { border-radius: 4px; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; min-height: 52px; padding: 14px 28px; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .7rem; }
.btn-lg { min-height: 58px; padding: 16px 34px; font-size: .78rem; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--c-red) 80%, transparent); }
.btn-outline, .btn-glass { border-color: rgba(255,255,255,.22); }
.btn .icon { width: 17px; height: 17px; }

/* Header & nav */
.main-nav ul a { font-family: var(--f-body); font-weight: 500; font-size: .74rem; letter-spacing: .2em; }
.main-nav ul a::after { height: 1px; bottom: 6px; }
.topbar { font-size: .78rem; letter-spacing: .02em; }
.icon-btn { width: 40px; height: 40px; border-color: rgba(255,255,255,.14); }

/* Lookup */
.lookup-card { border-radius: 10px; padding: var(--s-6) var(--s-7); }
.lookup-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.plate { border-radius: 6px; }
.plate input { font-family: "Archivo", sans-serif; font-stretch: 100%; font-weight: 800; letter-spacing: .1em; font-size: 1.85rem; }
.result-reg { font-family: "Archivo", sans-serif; font-stretch: 100%; }

/* Makes strip */
.make { font-weight: 300; font-size: 1.4rem; letter-spacing: .12em; color: rgba(255,255,255,.42); -webkit-text-stroke: 0; }
.make-dot { width: 4px; height: 4px; }

/* Stages & services */
.stage-card, .service-grid, .callout, .tech-grid, .rating-score, .review-card, .map-card, .about-media img, .tech-media, .lookup-result { border-radius: 10px; }
.stage-card { min-height: 340px; padding: var(--s-7) var(--s-6) var(--s-6); }
.stage-index { font-weight: 200; font-size: 6.5rem; top: 10px; right: 22px; letter-spacing: -0.04em; opacity: .14; }
.stage-card h3 span { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
.stage-card h3 small { font-size: .7rem; letter-spacing: .26em; font-weight: 600; }
.stage-card::after { display: none; }
.service-icon { width: 44px; height: 44px; border-radius: 8px; background: transparent; border-color: rgba(255,255,255,.12); }
.service h3 { font-size: .98rem; }
.service p, .tech-item p, .step p, .points p { font-size: .93rem; line-height: 1.7; }
.callout-copy h3 { font-size: 1.15rem; }
.callout-icon { border-radius: 8px; }
.stage-link { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }

/* Tech, process, about */
.tech-num { font-family: var(--f-body); font-weight: 600; font-size: .72rem; letter-spacing: .24em; border-bottom-width: 1px; }
.tech-item h3 { font-size: 1.05rem; }
.step-num { font-weight: 300; font-size: 1.5rem; letter-spacing: -0.02em; border-radius: 50%; }
.step h3 { font-size: 1.1rem; }
.points h3 { font-size: .98rem; }
.points .icon { width: 20px; height: 20px; }
.about-badge { border-radius: 4px; font-size: .85rem; }

/* Gallery */
.gallery-item { border-radius: 6px; }
.gallery-tag { font-family: var(--f-body); font-weight: 600; font-size: .7rem; letter-spacing: .2em; line-height: 1.5; }
.play-badge { width: 40px; height: 40px; }

/* Reviews */
.score { font-weight: 200; font-size: 6.5rem; letter-spacing: -0.04em; }
.score-sub { font-size: .7rem; letter-spacing: .24em; }
.review-card blockquote p { font-size: 1rem; line-height: 1.75; color: #d6d6dc; }
.avatar { border-radius: 50%; font-family: var(--f-body); font-weight: 600; font-size: .95rem; background: #1f1f26; border: 1px solid rgba(255,255,255,.14); }
.review-car { font-size: .78rem; letter-spacing: .06em; }

/* Contact, CTA, footer */
.contact-list .label { font-size: .68rem; letter-spacing: .22em; }
.contact-icon { border-radius: 8px; }
.map-pill { border-radius: 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.footer-col h3 { font-family: var(--f-body); font-stretch: 100%; font-size: .7rem; letter-spacing: .26em; font-weight: 600; }
.site-footer { font-size: .92rem; }

@media (max-width: 960px) {
  .main-nav ul a { font-family: var(--f-display); font-stretch: 125%; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
  .stats { gap: var(--s-5); }
}
@media (max-width: 640px) {
  .h1-line, .h1-accent { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .stat-value { font-size: 1.7rem; }
  .stage-card h3 span { font-size: 1.7rem; }
  .gallery-tag { font-size: .62rem; letter-spacing: .14em; }
}
.hero-copy { max-width: 820px; }
.h1-line, .h1-accent { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
@media (max-width: 640px) { .h1-line, .h1-accent { font-size: clamp(1.9rem, 9vw, 2.6rem); } }

.hero-media img { object-position: center 62%; }
@media (max-width: 960px) { .hero-media img { object-position: center 58%; } }


/* =========================================================
   v3 — glass header, serif accents, motion
   ========================================================= */
:root { --f-serif: "Instrument Serif", "Times New Roman", serif; --header-h: 78px; }

/* ---- Serif italic accents ---- */
h2 em, .h1-accent {
  font-family: var(--f-serif); font-style: italic !important; font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: -0.01em;
}
h2 em { font-size: 1.12em; line-height: .9; color: #fff; padding-right: .04em;
  background: linear-gradient(180deg, #fff 0%, #ffd9d6 55%, var(--c-red-text) 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.h1-accent { font-size: clamp(3.4rem, 6.4vw, 6.2rem) !important; line-height: .95 !important; margin-top: .06em; color: var(--c-red);
  background: linear-gradient(100deg, #ff5246 0%, var(--c-red) 45%, #ff8a7a 60%, var(--c-red) 75%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 6s ease-in-out 2.2s infinite; padding-right: .1em; }
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -120% 0; } }

/* ---- Glass top bar + header floating over the hero ---- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 41; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25)); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 500ms var(--ease), opacity 400ms ease; }
.scrolled .topbar { transform: translateY(-100%); opacity: 0; }
.site-header { position: fixed; top: var(--topbar-h); left: 0; right: 0; border-bottom: 1px solid transparent; transition: transform 500ms var(--ease), border-color 400ms ease; }
.site-header::before { background: linear-gradient(180deg, rgba(5,5,7,.55) 0%, rgba(5,5,7,0) 100%); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 500ms ease, backdrop-filter 500ms ease; }
.scrolled .site-header { transform: translateY(calc(-1 * var(--topbar-h))); border-bottom-color: rgba(255,255,255,.08); }
.scrolled .site-header::before, .site-header.is-scrolled::before { background: rgba(12,12,16,.52); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c-red) 70%, transparent), transparent); opacity: 0; transition: opacity 500ms ease; }
.scrolled .site-header::after { opacity: .7; }
.header-inner { transition: height 400ms var(--ease); }
.scrolled .header-inner { height: 66px; }
.brand img { transition: width 400ms var(--ease); }
.scrolled .brand img { width: 124px; }
.icon-btn { background: rgba(255,255,255,.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.menu-open .site-header::before { background: rgba(7,7,10,.96); }

/* Hero fills the screen under the glass header */
.hero { min-height: 100svh; padding-top: calc(var(--topbar-h) + var(--header-h) + 40px); }
.hero-media { width: 62%; overflow: hidden; }
.hero-media img { will-change: transform; transform: scale(1.12); }
.hero-shade { background:
  linear-gradient(90deg, var(--c-bg) 0%, var(--c-bg) 34%, rgba(7,7,10,.82) 48%, rgba(7,7,10,.2) 72%, rgba(7,7,10,.35) 100%),
  linear-gradient(180deg, rgba(7,7,10,.6) 0%, rgba(7,7,10,0) 22%),
  linear-gradient(0deg, var(--c-bg) 0%, rgba(7,7,10,0) 30%),
  radial-gradient(45% 55% at 18% 78%, color-mix(in srgb, var(--c-red) 20%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(600px 300px at var(--gx, 70%) 30%, rgba(255,255,255,.05), transparent 70%); }

/* Hero entrance */
.js .hero .h1-line, .js .hero .h1-accent { overflow: hidden; padding-bottom: .04em; }
.js .hero .ln { display: inline-block; transform: translateY(105%); transition: transform 1100ms var(--ease); }
.js .hero .h1-line:nth-child(2) .ln { transition-delay: 90ms; }
.js .hero .h1-accent .ln { transition-delay: 180ms; }
.js .hero .eyebrow, .js .hero .lead, .js .hero .btn-row, .js .hero .stats { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .hero .lead { transition-delay: 350ms; } .js .hero .btn-row { transition-delay: 480ms; } .js .hero .stats { transition-delay: 620ms; }
.js .hero .hero-media img { opacity: 0; transition: opacity 1600ms ease, transform 200ms linear; }
.js .hero.hero-in .ln { transform: none; }
.js .hero.hero-in .eyebrow, .js .hero.hero-in .lead, .js .hero.hero-in .btn-row, .js .hero.hero-in .stats { opacity: 1; transform: none; }
.js .hero.hero-in .hero-media img { opacity: 1; }
.js .hero.hero-in .h1-accent .ln { -webkit-text-fill-color: inherit; }
.hero .h1-accent .ln { background: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Word-by-word headline reveal */
h2.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
h2.split .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; opacity: 0; transition: transform 900ms var(--ease), opacity 700ms ease; }
h2.split.words-in .wi { transform: none; opacity: 1; }
h2.split em .wi, h2 em .wi { background: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h2 em .w { padding-right: .06em; }

/* Image reveal: curtain wipe + settle */
.img-reveal { clip-path: inset(0 0 100% 0 round 10px); transition: clip-path 1200ms var(--ease) !important; }
.img-reveal img { transform: scale(1.18); transition: transform 1600ms var(--ease); }
.img-reveal.img-in { clip-path: inset(0 0 0 0 round 10px); }
.img-reveal.img-in img { transform: scale(1); }
.gallery-item.img-reveal.img-in:hover img { transform: scale(1.05); transition-duration: 900ms; }
.about-media.img-reveal img, .tech-media.img-reveal img { transform: scale(1.12); }

/* Softer, blur-in reveal for everything else */
.js .reveal { filter: blur(8px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.js .reveal.is-visible { filter: none; }

/* Glassy lookup card */
.lookup-card { background: linear-gradient(180deg, rgba(28,28,36,.72), rgba(12,12,16,.82)); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-color: rgba(255,255,255,.12); box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08); }

/* Button shine */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; transition: background-color var(--t-fast) ease, transform 350ms var(--ease), box-shadow var(--t-med) ease; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 800ms var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-glass, .icon-btn { transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform 350ms var(--ease); }

/* Card spotlight follows the cursor */
.stage-card, .service, .tech-item, .review-card { position: relative; }
.stage-card::before, .service::before, .tech-item::before, .review-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c-red) 14%, transparent), transparent 60%); }
.stage-card:hover::before, .service:hover::before, .tech-item:hover::before, .review-card:hover::before { opacity: 1; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-red-deep), var(--c-red), var(--c-red-text)); box-shadow: 0 0 12px var(--c-red); pointer-events: none; }

/* Cursor */
.cursor-trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; mix-blend-mode: screen; }
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 300ms ease; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(255,255,255,.45); transition: opacity 300ms ease, width 300ms var(--ease), height 300ms var(--ease), margin 300ms var(--ease), background-color 300ms ease, border-color 300ms ease; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: color-mix(in srgb, var(--c-red) 80%, white); background: color-mix(in srgb, var(--c-red) 12%, transparent); }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 10px var(--c-red); }

@media (max-width: 960px) {
  :root { --topbar-h: 0px; --header-h: 66px; }
  .site-header, .scrolled .site-header { top: 0; transform: none; }
  .hero { padding-top: 0; min-height: auto; }
  .hero-media { width: 100%; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,7,10,.55) 0%, rgba(7,7,10,0) 18%, rgba(7,7,10,.5) 34%, var(--c-bg) 52%), radial-gradient(60% 40% at 10% 70%, color-mix(in srgb, var(--c-red) 20%, transparent), transparent 70%); }
  .h1-accent { font-size: clamp(2.6rem, 12vw, 3.6rem) !important; }
  .scrolled .brand img { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero .ln, .js .hero .eyebrow, .js .hero .lead, .js .hero .btn-row, .js .hero .stats, .js .hero .hero-media img { opacity: 1 !important; transform: none !important; }
  .h1-accent { animation: none; }
  .img-reveal { clip-path: none !important; }
}
.is-preview .hero .ln, .is-preview .hero .eyebrow, .is-preview .hero .lead, .is-preview .hero .btn-row, .is-preview .hero .stats, .is-preview .hero .hero-media img { opacity: 1 !important; transform: none !important; }

.about-media img { aspect-ratio: 1400 / 1197; }

/* Terms & disclaimer pop-up */
.terms-link { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-red); text-underline-offset: 4px; }
.terms-link:hover { color: #fff; text-decoration-color: #fff; }
.contact-terms { margin-top: var(--s-5); font-size: .92rem; color: var(--c-text-muted); }
html.terms-open { overflow: hidden; }
.terms-dialog { width: min(820px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 0; margin: auto; border: 1px solid var(--c-line-strong); border-radius: var(--radius-xl); background: linear-gradient(180deg, #121217, #0b0b0f); color: var(--c-text); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(225,6,0,.08); overflow: hidden; }
.terms-dialog[open] { display: flex; animation: termsIn .45s cubic-bezier(.2,.8,.2,1); }
.terms-dialog::backdrop { background: rgba(4,4,6,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@keyframes termsIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.terms-inner { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.terms-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-5); padding: 32px 40px 22px; border-bottom: 1px solid var(--c-line); }
.terms-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; margin-top: 10px; }
.terms-close { flex: none; }
.terms-body { overflow-y: auto; padding: 26px 40px 40px; overscroll-behavior: contain; }
.terms-intro { font-size: 1.05rem; color: var(--c-text); margin-bottom: var(--s-6); }
.terms-body section { padding: 22px 0; border-top: 1px solid var(--c-line); }
.terms-body section:first-of-type { border-top: 0; padding-top: 0; }
.terms-body h3 { display: flex; align-items: baseline; gap: 14px; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.terms-body h3 span { font-family: var(--f-display); font-size: .78rem; color: var(--c-red-text); letter-spacing: .1em; }
.terms-body p, .terms-body li { color: var(--c-text-muted); line-height: 1.7; font-size: .97rem; }
.terms-body p + p, .terms-body p + ul, .terms-body ul + p { margin-top: 12px; }
.terms-body ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.terms-body li { position: relative; padding-left: 22px; }
.terms-body li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--c-red); }
.terms-foot { margin-top: var(--s-6); padding-top: 18px; border-top: 1px solid var(--c-line); font-size: .88rem !important; color: #8d8d97 !important; }
@media (max-width: 640px) {
  .terms-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .terms-head { padding: 22px 20px 16px; }
  .terms-body { padding: 20px 20px 32px; }
}
