/* Paint Protection Pro: the site's one stylesheet. Dark only, by the shop's choice.
   Reds stay true red, never pink: --red for fills (white on it 5.9:1), --red-bright only
   for big type and icons (4.1:1 on the page), and never red for small text. */

@font-face { font-family: "Saira Semi Condensed"; font-weight: 600; font-display: swap; src: url("/fonts/saira-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/saira-700.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/saira-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url("/fonts/plex-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  --bg: #101215;
  --panel: #191c20;
  --raise: #23272c;
  --chrome: #111316;
  --ink: #f1f2f3;
  --mute: #a8adb3;
  --line: #2d3136;
  --grid: rgb(255 255 255 / .04);
  --red: #c8102e;
  --red-hover: #a60c25;
  --red-bright: #e8192f;
  --gut: clamp(16px, 4vw, 56px);
  --head: "Saira Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
p, ul, dl, figure { margin: 0; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag { font: 500 .82rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.tag::before { content: "// "; color: var(--red-bright); font-weight: 700; }
.lede { margin-top: 20px; max-width: 30em; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--mute); }
.fine { margin-top: 10px; font-size: .92rem; color: var(--mute); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; background: var(--red); color: #fff; font: 700 1.1rem/1.1 var(--head); text-decoration: none; border: 0; border-radius: 3px; cursor: pointer; transition: background .15s; }
.button:hover { background: var(--red-hover); }
.button-line { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.button-line:hover { background: rgb(255 255 255 / .08); }

/* Header */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 99; padding: 10px 14px; background: #fff; color: #000; font-weight: 600; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--chrome); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 124px; }
.main-nav { position: static; inset: auto; display: flex; gap: 24px; margin: 0 0 0 auto; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.02rem/1 var(--head); text-decoration: none; }
.main-nav a:hover { box-shadow: inset 0 -2px 0 var(--red-bright); }
.header-tel { display: inline-flex; align-items: center; min-height: 44px; font: 500 1rem/1 var(--mono); text-decoration: none; white-space: nowrap; }
.menu-button { display: none; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }

/* Hero: the shop's words beside the package viewer */
.hero { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 72px); }
.hero h1 { margin-top: 16px; font-size: clamp(3.1rem, 6.8vw, 6.2rem); line-height: .96; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.viewer { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; }
.seg input, .packages input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 3px; font: 600 .98rem/1 var(--head); color: var(--mute); white-space: nowrap; cursor: pointer; }
.seg input:checked + label { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + label, .packages input:focus-visible + label { outline: 3px solid var(--red-bright); outline-offset: -3px; }
.stage { padding: 14px clamp(16px, 3vw, 36px) 6px; }
.stage img { width: min(100%, 620px); margin-inline: auto; aspect-ratio: 744 / 319; object-fit: contain; }
.packages { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.packages label { position: relative; display: block; min-height: 92px; padding: 14px 16px 16px; cursor: pointer; }
.packages label + input + label { border-left: 1px solid var(--line); }
.packages input:checked + label { background: var(--raise); box-shadow: inset 0 -4px 0 var(--red); }
.packages strong { display: block; font: 700 1.2rem/1.1 var(--head); }
.packages span { display: block; margin-top: 4px; font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--head); }
.pop { position: absolute; top: 14px; right: 14px; padding: 4px 7px; border-radius: 2px; background: var(--red); color: #fff; font: 500 .7rem/1 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.viewer-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: .97rem; }
.viewer-foot b { font-weight: 600; }
.viewer-note { margin-top: 10px; font-size: .95rem; color: var(--mute); }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.specs > div { padding: 18px var(--gut); }
.specs > div + div { border-left: 1px solid var(--line); }
.specs dt { font: 500 .78rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.specs dd { margin: 4px 0 0; font: 700 clamp(1.2rem, 2vw, 1.65rem)/1.1 var(--head); }

.section { padding-block: clamp(60px, 8vw, 110px); }
.section-ruled { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2, .film-copy h2, .faq-head h2, .contact h2 { margin-top: 10px; }
.more { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 10px; font-weight: 600; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

/* The film */
.film { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.layers { border-radius: 4px; overflow: hidden; font: 500 .88rem/1.2 var(--mono); }
.layers > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 16px; }
.layer-1 { height: 54px; background: #2c4656; color: #e5f3fb; }
.layer-2 { height: 86px; background: #1f5875; color: #e5f3fb; }
.layer-3 { height: 26px; background: #57533f; color: #f5f2dd; font-size: .8rem; }
.layer-4 { height: 40px; background: #3a3d42; color: #f1f1f1; }
.layer-5 { height: 66px; background: var(--red); color: #fff; }
.film-copy > p:not(.tag) { margin-top: 14px; color: var(--mute); }
/* Nothing sits on top of the video: Chrome can draw a video two ways, and anything over
   it that changes makes it switch between them, which shows as flickering colors. */
.video { margin-top: 24px; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video-bar { display: flex; justify-content: flex-end; margin-top: 4px; }
.video-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--mute); font: 500 .85rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.video-button:hover { color: var(--ink); }
.video-button[hidden] { display: none; }
.video-button .icon-play, .video-button[data-state="paused"] .icon-pause { display: none; }
.video-button[data-state="paused"] .icon-play { display: block; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(36px, 5vw, 64px); padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.features li { padding: 18px 22px 4px 0; }
.features li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.features h3 { font-size: 1.3rem; }
.features p { margin-top: 8px; color: var(--mute); font-size: 1rem; }

/* Recent work: a strip that scrolls sideways */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 12px; margin: 0; padding: 0 0 14px; overflow-x: auto; scroll-snap-type: x proximity; list-style: none; }
.strip li { scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.strip p { margin-top: 8px; font: 500 .85rem/1.35 var(--mono); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 90px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .22s ease, content-visibility .22s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 58px; padding-block: 12px; list-style: none; cursor: pointer; font: 700 1.2rem/1.2 var(--head); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 500 1.25rem/1 var(--mono); color: var(--red-bright); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: 20px; max-width: 44em; color: var(--mute); }

/* Contact */
.contact { background: var(--chrome); --panel: #1a1d21; --line: #33373c; }
.contact-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.big-tel { display: inline-flex; align-items: center; min-height: 52px; margin-top: 14px; font: 800 clamp(2.4rem, 4.6vw, 3.7rem)/1 var(--head); text-decoration: none; }
.contact-panel { display: grid; gap: 0; margin: 0; padding: 4px 24px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.contact-panel li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 14px; font-size: 1.1rem; }
.contact-panel li + li { border-top: 1px solid var(--line); }
.contact-panel .tag { flex: 0 0 100%; }
.contact-panel a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; font-weight: 600; }
/* The call-back form, parked until its email is set up (src/parts/callback-form.html). */
.form { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: clamp(18px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.form h3 { grid-column: 1 / -1; font-size: 1.7rem; }
.form label { display: grid; gap: 6px; grid-column: span 3; font: 500 .8rem/1.3 var(--mono); text-transform: uppercase; color: var(--mute); }
.form label.wide { grid-column: 1 / -1; }
.form label.third { grid-column: span 2; }
.form input { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1.05rem/1.3 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; }
.form .button, .form-status { grid-column: 1 / -1; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--mute); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Other pages */
.page-head { padding-bottom: 0; }
.page-head h1 { margin-top: 12px; font-size: clamp(2.8rem, 6vw, 5rem); }
.gallery-section { padding-top: clamp(28px, 4vw, 44px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.gallery-wide { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.025); }
.gallery p { margin-top: 8px; font: 500 .85rem/1.35 var(--mono); }
.cta-band { background: var(--chrome); border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(40px, 6vw, 72px); }
.cta-inner h2 { margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose p, .prose ul { margin-top: 1rem; }
.prose p:not(.lede):not(.tag), .prose li { color: var(--mute); }
.prose a { color: var(--ink); }

/* Footer */
.site-footer { background: var(--chrome); border-top: 1px solid var(--line); color: var(--mute); font-size: .97rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding-block: 32px; }
.footer-name { color: var(--ink); font: 700 1.2rem/1.2 var(--head); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { grid-column: 1 / -1; font-size: .9rem; }

/* A blank still to fill in, on previews only: the build never publishes one. */
.todo { border-bottom: 2px dotted currentColor; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Tablet and narrower laptops: the menu folds away and the hero stacks */
@media (max-width: 1040px) {
  .main-nav { position: fixed; inset: 64px 0 auto auto; margin: 0; width: min(300px, 100vw); padding: 10px 20px 18px; flex-direction: column; gap: 0; background: var(--chrome); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .main-nav:not(.is-open) { display: none; }
  .main-nav:popover-open { display: flex; } /* its own rule, so older browsers that don't know it keep the one above */
  .main-nav a { min-height: 50px; font-size: 1.2rem; }
  .menu-button { display: grid; }
  .header-tel { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .features li:nth-child(3) { padding-left: 0; border-left: 0; }
  .features li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:nth-child(3) { border-left: 0; }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .film, .faq, .contact-inner { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .strip { grid-auto-columns: minmax(260px, 62%); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
/* Phones */
@media (max-width: 600px) {
  .header-inner { gap: 4px; }
  .logo { margin-right: auto; }
  .hero-inner { padding-block: 28px 32px; }
  .hero-actions .button-line { display: none; }
  .hero-actions .button { flex: 1; }
  .viewer-tag { display: none; }
  .seg { width: 100%; }
  .seg label { flex: 1; justify-content: center; padding: 0 6px; font-size: .95rem; }
  .packages label { padding: 12px 10px 14px; }
  .packages strong { font-size: 1.02rem; }
  .pop { position: static; display: inline-block; margin-top: 8px; }
  .specs > div { padding: 14px 16px; }
  .features { grid-template-columns: 1fr; }
  .features li, .features li + li { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .features li:first-child { border-top: 0; }
  .form label { grid-column: 1 / -1; }
  .form label.third { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; grid-row: auto; }
  .cta-actions .button { flex: 1 1 100%; }
}
@media (max-width: 360px) {
  .header-tel { font-size: .9rem; }
  .form label.third { grid-column: 1 / -1; }
  .seg label { font-size: .86rem; }
}
