/* MKB Surfacing — shared styles (en-GB, mobile-first)
   Palette: Manchester United–inspired red / black / white / muted dark greys
   (colours only — original MKB branding, no club logos or trademarks) */
:root {
  --ink: #0a0a0a;
  --ink-soft: #2c2c2c;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --paper: #ffffff;
  --sand: #f4f4f4;
  --sand-2: #ebebeb;
  --brand: #da291c;
  --brand-dark: #a01510;
  --brand-light: #fce8e6;
  --accent: #111111;
  --accent-dark: #000000;
  --trust: #525252;
  --ok: #16a34a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 10, 10, 0.14);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-soft); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 0.6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: #d4d4d4;
  font-size: 0.875rem;
  padding: 0.45rem 0;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: space-between; align-items: center; }
.topbar a { color: #e5e5e5; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0; min-height: 84px;
}
.logo {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none; color: var(--ink); font-weight: 800;
}
.logo-img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; display: block; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(218,41,28,0.35);
  background: #0a0a0a;
}
.logo-img.logo-lg,
.home-logo .logo-img {
  width: 80px; height: 80px;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(145deg, var(--brand), #f03a2d);
  color: #fff; display: grid; place-items: center; font-size: 0.7rem; letter-spacing: 0.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.2rem; }
.logo-text span { font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-logo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin-bottom: 0.75rem; background: #0a0a0a;
  box-shadow: 0 0 0 2px rgba(218,41,28,0.25);
}
@media (max-width: 640px) {
  .logo-img { width: 60px; height: 60px; }
  .logo-img.logo-lg,
  .home-logo .logo-img { width: 68px; height: 68px; }
  .logo-text strong { font-size: 1.05rem; }
  .logo-text span { font-size: 0.68rem; }
  .nav-row { min-height: 72px; padding: 0.55rem 0; }
  .footer-logo { width: 72px; height: 72px; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.25rem; box-shadow: var(--shadow);
}
.nav-panel.open { display: block; }
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-links a {
  display: block; padding: 0.7rem 0.85rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--brand-light); color: var(--brand-dark); }
.nav-ctas { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.85rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-panel {
    display: flex !important; position: static; border: 0; box-shadow: none;
    padding: 0; background: transparent; align-items: center; gap: 1rem;
  }
  .nav-links { flex-direction: row; align-items: center; gap: 0.15rem; }
  .nav-links a { padding: 0.45rem 0.7rem; font-size: 0.95rem; }
  .nav-ctas { flex-direction: row; margin-top: 0; margin-left: 0.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.8rem 1.15rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-size: 0.95rem; line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent; border-color: rgba(255,255,255,0.65); color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-ghost {
  background: var(--paper); border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.875rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(218,41,28,0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(218,41,28,0.18), transparent 50%),
    linear-gradient(160deg, #1a0505 0%, #2b0a0a 45%, #0a0a0a 100%);
  color: #fff; padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fecaca; padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: 0.85rem; }
.hero p.lead { color: #d4d4d4; font-size: 1.08rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.hero-points li {
  color: #e5e5e5; padding-left: 1.4rem; position: relative; font-size: 0.95rem;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: #da291c; box-shadow: 0 0 0 3px rgba(218,41,28,0.3);
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px; padding: 1.4rem; backdrop-filter: blur(8px);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 0.75rem; }
.hero-card dl { margin: 0; display: grid; gap: 0.75rem; }
.hero-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #a3a3a3; margin-bottom: 0.15rem; }
.hero-card dd { margin: 0; color: #fafafa; font-weight: 700; }
.hero-card a { color: #fecaca; text-decoration: none; }
.hero-card a:hover { text-decoration: underline; color: #fff; }

/* Trust strip */
.trust {
  background: var(--sand); border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
}
@media (min-width: 800px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; text-align: center;
}
.trust-item strong { display: block; color: var(--brand); font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--muted); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { margin-bottom: 0; }

/* Cards */
.card-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow); height: 100%;
  display: flex; flex-direction: column;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.9rem;
  font-size: 0.85rem;
}
.card h3 { margin-bottom: 0.45rem; }
.card p { flex: 1; margin-bottom: 1rem; font-size: 0.95rem; }
.card .more { font-weight: 700; text-decoration: none; color: var(--brand); }
.card .more:hover { text-decoration: underline; }

/* About blurb */
.split {
  display: grid; gap: 1.75rem; align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 0.55rem 0 0.55rem 1.7rem;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0.55rem;
  color: var(--brand); font-weight: 800;
}

/* Testimonials */
.note-banner {
  background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d;
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.quote-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .quote-grid { grid-template-columns: 1fr 1fr 1fr; } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 0.85rem; color: var(--ink-soft); font-size: 0.95rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.quote .tag {
  display: inline-block; margin-bottom: 0.6rem; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-dark);
  background: var(--brand-light); padding: 0.2rem 0.5rem; border-radius: 999px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #8b1210 55%, #0a0a0a 100%);
  color: #fff; padding: 2.75rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fecaca; max-width: 36rem; margin: 0 auto 1.25rem; }
.cta-band .hero-actions { justify-content: center; }

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(160deg, #1a0505, #2b0a0a 60%, #0a0a0a);
  color: #fff; padding: 2.75rem 0 2.5rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d4d4d4; max-width: 40rem; margin-bottom: 1.25rem; }
.breadcrumb {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0 0 1rem;
  font-size: 0.85rem; color: #a3a3a3;
}
.breadcrumb a { color: #fecaca; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #737373; }

/* Forms */
.form {
  display: grid; gap: 0.9rem;
}
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(218,41,28,0.4); border-color: var(--brand);
}
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.form-success {
  display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 1rem;
}
.form-success.show { display: block; }

/* Contact layout */
.contact-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.nap a { text-decoration: none; font-weight: 700; }
.nap p { margin-bottom: 0.65rem; }

/* Local SEO service page extras */
.content-prose { max-width: 48rem; }
.content-prose h2 { margin-top: 1.75rem; }
.local-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0;
}
.local-pills a {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  padding: 0.4rem 0.75rem; border-radius: 999px; text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
}
.local-pills a:hover { background: #fecaca; color: var(--brand-dark); }

/* Footer */
.site-footer {
  background: #0a0a0a; color: #a3a3a3; padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 1.75rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.site-footer h3 { color: #fafafa; font-size: 1rem; margin-bottom: 0.85rem; }
.site-footer a { color: #d4d4d4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-brand p { color: #a3a3a3; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #262626;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.85rem;
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Job photos — hero, cards, gallery */
.hero.has-photo {
  background:
    linear-gradient(105deg, rgba(10,10,10,0.88) 0%, rgba(26,5,5,0.78) 42%, rgba(10,10,10,0.55) 100%),
    url("../assets/photos/hero.jpg") center/cover no-repeat;
}
.hero.has-photo .hero-grid {
  position: relative;
  z-index: 1;
}
.hero-photo {
  display: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.18);
  aspect-ratio: 4 / 3;
  background: #1a0505;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 900px) {
  .hero-photo { display: block; }
  .hero.has-photo .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.card-media {
  margin: -1.35rem -1.35rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sand-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card.has-media { padding-top: 0; }

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a0a0a;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item > a {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-item > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover > a img { transform: scale(1.03); }

.gallery-item figcaption {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo {
  margin: -1.35rem -1.35rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sand-2);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Colour swatches — resin-colours.html */
.colour-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .colour-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .colour-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .colour-grid { grid-template-columns: repeat(4, 1fr); }
}
.colour-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.colour-swatch {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.colour-swatch--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.viz-swatch-chip--photo {
  background-size: cover !important;
  background-position: center;
}
.colour-card h3 {
  font-size: 1.05rem;
  margin: 0.9rem 1rem 0.35rem;
}
.colour-card p {
  font-size: 0.88rem;
  margin: 0 1rem 0.75rem;
  flex: 1;
}
.colour-tag {
  display: inline-block;
  margin: 0 1rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}
.supplier-credit {
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.supplier-credit a { font-weight: 700; }

/* —— Driveway visualiser —— */
.viz-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .viz-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
    align-items: start;
  }
}
.viz-stage.panel { padding: 1rem; }
.viz-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.viz-toolbar .btn.is-active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-light);
}
.viz-upload-btn { cursor: pointer; }
.viz-sliders {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 640px) {
  .viz-sliders {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}
.viz-slider {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.viz-slider input[type="range"] { width: 100%; accent-color: var(--brand); }
.viz-active-colour {
  margin: 0;
  font-size: 0.9rem;
  padding-bottom: 0.2rem;
}
.viz-canvas-wrap {
  position: relative;
  background: var(--sand);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.viz-canvas-wrap.is-drag {
  border-color: var(--brand);
  background: var(--brand-light);
}
.viz-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}
.viz-empty strong { color: var(--ink); }
#viz-canvas {
  display: block;
  max-width: 100%;
  cursor: crosshair;
  touch-action: none;
}
.viz-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 1.35em;
}
.viz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.viz-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.viz-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.viz-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.viz-palette-heading {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}
.viz-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 420px;
  overflow: auto;
}
.viz-swatch {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.45rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.viz-swatch:hover { border-color: var(--brand); }
.viz-swatch.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-light);
  background: var(--brand-light);
}
.viz-swatch-chip {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
}
.viz-swatch-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}


/* —— Job gallery page (filter + lightbox) —— */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.gallery-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.gallery-filter:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}
.gallery-filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.gallery-count {
  font-size: 0.9rem;
  color: var(--muted, #525252);
  margin: 0 0 1rem;
}
.gallery-jobs .gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-jobs .gallery-item.is-hidden,
.gallery-jobs .gallery-item[hidden] {
  display: none !important;
}
.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-jobs .gallery-item:hover .gallery-open img {
  transform: scale(1.03);
}
.gallery-jobs .gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fafafa;
  font-size: 0.78rem;
  line-height: 1.35;
  width: auto; height: auto;
  margin: 0;
  overflow: hidden;
  clip: auto;
  white-space: normal;
  pointer-events: none;
}
.gallery-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}
.gallery-teaser-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.lightbox-figure figcaption {
  color: #e5e5e5;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--brand);
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 2rem; }
.lightbox-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 3.5rem 0.75rem 1rem; }
  .lightbox-prev, .lightbox-next { width: 2.35rem; height: 2.35rem; font-size: 1.35rem; }
}


/* Before / after peel reveal */
.peel-section { padding-top: 2.5rem; }
.peel-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.peel {
  --peel: 18%;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
  box-shadow: var(--shadow-lg);
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}
.peel-layer {
  position: absolute;
  inset: 0;
  margin: 0;
}
.peel-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.peel-after { z-index: 1; }
.peel-before {
  z-index: 2;
  clip-path: polygon(
    var(--peel) 0%,
    100% 0%,
    100% 100%,
    var(--peel) 100%,
    calc(var(--peel) - 1.1%) 88%,
    var(--peel) 72%,
    calc(var(--peel) - 0.85%) 55%,
    var(--peel) 38%,
    calc(var(--peel) - 1.1%) 18%,
    var(--peel) 0%
  );
}
.peel-curl {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--peel);
  width: 28px;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.18) 28%,
    rgba(255,255,255,0.22) 48%,
    rgba(0,0,0,0.12) 62%,
    transparent 100%
  );
  box-shadow:
    -10px 0 22px rgba(0,0,0,0.28),
    4px 0 14px rgba(0,0,0,0.18);
  border-radius: 2px 10px 10px 2px / 40% 55% 55% 40%;
}
.peel-handle {
  position: absolute;
  top: 50%;
  left: var(--peel);
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 3px rgba(218,41,28,0.35);
  cursor: grab;
  display: grid;
  place-items: center;
  touch-action: none;
  padding: 0;
}
.peel-handle:active { cursor: grabbing; }
.peel-handle:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.peel-handle svg { width: 22px; height: 22px; display: block; }
.peel-label {
  position: absolute;
  z-index: 5;
  top: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.peel-label-before {
  right: 0.85rem;
  background: rgba(10,10,10,0.78);
  color: #fff;
}
.peel-label-after {
  left: 0.85rem;
  background: rgba(218,41,28,0.95);
  color: #fff;
}
.peel-caption {
  text-align: center;
  margin-top: 1.35rem;
}
.peel-caption p { max-width: 42rem; margin-inline: auto; }
.peel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}
.peel.is-dragging { cursor: grabbing; }
.peel.is-dragging .peel-handle { cursor: grabbing; }
@media (max-width: 640px) {
  .peel { aspect-ratio: 4 / 3; }
  .peel-handle { width: 44px; height: 44px; }
  .peel-curl { width: 22px; }
}

/* —— Homepage driveway slideshow (book page-flip) —— */
.slideshow-section,
[data-slideshow] {
  --slideshow-duration: 900ms;
  --slideshow-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  background: var(--ink);
  color: #f5f5f5;
  padding: 3.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.slideshow-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #f03a2d 40%, #fff 70%, var(--brand));
  opacity: 0.95;
}
.slideshow-section .section-head h2 { color: #fff; }
.slideshow-section .section-head p { color: #c4c4c4; }
.slideshow-section .section-head { margin-bottom: 1.5rem; }

.slideshow-stage {
  position: relative;
  outline: none;
}
.slideshow-stage:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
  border-radius: calc(var(--radius) + 4px);
}

.slideshow-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: min(68vh, 640px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06);
  perspective: 1600px;
  perspective-origin: left center;
  transform-style: preserve-3d;
}
@media (max-width: 640px) {
  .slideshow-viewport { aspect-ratio: 4 / 3; max-height: none; }
}

.slideshow-page {
  position: absolute;
  inset: 0;
  margin: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 1;
  background: #0a0a0a;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(0deg);
}
.slideshow-page.is-active {
  z-index: 3;
  visibility: visible;
  pointer-events: auto;
}
.slideshow-page.is-under {
  z-index: 2;
  visibility: visible;
  transform: rotateY(0deg);
}
.slideshow-page.is-flipping-forward {
  z-index: 5;
  visibility: visible;
  pointer-events: none;
  animation: slideshow-flip-forward 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation: slideshow-flip-forward var(--slideshow-duration, 900ms) var(--slideshow-ease, cubic-bezier(0.22, 0.61, 0.36, 1)) forwards;
}
.slideshow-page.is-flipping-back {
  z-index: 5;
  visibility: visible;
  pointer-events: none;
  animation: slideshow-flip-back 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation: slideshow-flip-back var(--slideshow-duration, 900ms) var(--slideshow-ease, cubic-bezier(0.22, 0.61, 0.36, 1)) forwards;
}

.slideshow-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.slideshow-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 18%, transparent 45%);
  opacity: 0;
}
.slideshow-page.is-flipping-forward::before,
.slideshow-page.is-flipping-back::before { opacity: 1; }
.slideshow-page::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 22px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.1) 70%, transparent);
  opacity: 0.5;
}
.slideshow-page.is-under::after {
  opacity: 0.9;
  width: 56px;
}

.slideshow-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 6;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(10,10,10,0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 1px rgba(218,41,28,0.35);
  pointer-events: none;
}
.slideshow-caption::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 0.45rem;
  vertical-align: 0.05em;
}

@keyframes slideshow-flip-forward {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-100deg); }
}
@keyframes slideshow-flip-back {
  0%   { transform: rotateY(-100deg); }
  100% { transform: rotateY(0deg); }
}

/* Book flip kept even with reduced-motion preference — user requested the effect.
   Flip duration is shortened via JS if needed. */
.slideshow-page.is-turning::before { opacity: 1; }

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 2px rgba(218,41,28,0.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.slideshow-nav:hover { background: var(--brand); color: #fff; }
.slideshow-nav:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: var(--brand);
  color: #fff;
}
.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }
.slideshow-nav svg { width: 22px; height: 22px; display: block; }
@media (max-width: 640px) {
  .slideshow-nav { width: 42px; height: 42px; }
  .slideshow-prev { left: 0.45rem; }
  .slideshow-next { right: 0.45rem; }
}

.slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.15rem;
}
.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.slideshow-dot.is-active { background: var(--brand); box-shadow: 0 0 0 3px rgba(218,41,28,0.35); }
.slideshow-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.slideshow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}
.slideshow-status { margin: 0; color: #d4d4d4; font-size: 0.95rem; }
.slideshow-status strong { color: #fff; }
.slideshow-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.slideshow-section .btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.slideshow-section .btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Cinematic mode overrides (crossfade + ken burns) */
.slideshow-section.is-cinematic .slideshow-viewport,
[data-slideshow].is-cinematic .slideshow-viewport {
  perspective: none;
  transform-style: flat;
}
.slideshow-section.is-cinematic .slideshow-page,
[data-slideshow].is-cinematic .slideshow-page {
  transform: none;
  backface-visibility: visible;
  transition: none;
  animation: none !important;
}
.slideshow-section.is-cinematic .slideshow-page img,
[data-slideshow].is-cinematic .slideshow-page img {
  will-change: transform, opacity;
  transform-origin: center center;
}
.slideshow-section.is-cinematic .slideshow-page::before,
.slideshow-section.is-cinematic .slideshow-page::after,
[data-slideshow].is-cinematic .slideshow-page::before,
[data-slideshow].is-cinematic .slideshow-page::after {
  display: none;
}

