/* Matte Black Studio: website additions on top of base.css (v5).
   Only new components live here. Same tokens, type and spacing as v5; nothing in base.css is restyled
   except where a v5 part has to work on more than one page (header nav width, tiles as links).

   - Header: six-link nav needs more room than v5's four, so the burger stays until 1280px.
   - .hero-page: shorter photo hero for service pages. .page-head: plain header for the other pages.
   - .split / .prose: text beside a photo. .options: option cards. .info: key facts list.
   - .shot figcaption: captions on the photo reel. .more: text link with arrow.
   - Gallery: .filters, .gallery, .lightbox.
   - Contact: .contact-list. Privacy: .legal. 404: .lost.
   - Quote form: .form-legal privacy line (also in flow.css), .field textarea. */

/* ---------- Header ---------- */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-links a[aria-current="page"] { color: var(--ink-2); }
.menu-links a[aria-current="page"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 12px .18em 0; border-radius: 50%; background: var(--ink); vertical-align: middle; }
.menu-links a { font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.75rem); }

@media (min-width: 1024px) and (max-width: 1279px) {
  .bar-site .nav { display: none; }
  .bar-site .burger { display: grid; }
  .bar-site .bar-cta { margin-left: auto; }
}

/* ---------- Kicker (small line above a title) ---------- */
.kicker { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 10px; }

/* ---------- Service page hero ---------- */
.hero-page { min-height: min(88vh, 940px); min-height: min(88svh, 940px); }
.hero-page .hero-poster { transform: none; }
.hero-page .hero-title { max-width: 14ch; }
.hero-page .kicker { color: var(--ink-2); }
.hero-ppf .hero-poster { object-position: 50% 32%; }
.hero-wrap .hero-poster { object-position: 50% 62%; }
.hero-finish .hero-poster { object-position: 50% 50%; }
.hero-livery .hero-poster { object-position: 46% 50%; }

/* ---------- Plain page header (gallery, contact, privacy, 404) ---------- */
.page-head { padding: calc(var(--bar-h) + clamp(44px, 7vw, 128px)) 0 clamp(32px, 4vw, 72px); }
.page-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.75rem, 1rem + 3.4vw, 4.25rem); line-height: 1.04; letter-spacing: 0; text-wrap: balance; max-width: 16ch; }
.page-head .lead { margin-top: clamp(14px, 1.4vw, 26px); }

/* ---------- Text beside a photo ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 110px); align-items: start; }
.split-media { overflow: hidden; border-radius: 2px; background: var(--card); aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption { padding: 12px 0 0; font-size: var(--fs-small); color: var(--ink-3); }
.split-media:has(figcaption) { aspect-ratio: auto; overflow: visible; background: none; }
.split-media:has(figcaption) img { aspect-ratio: 4 / 5; border-radius: 2px; background: var(--card); }
.prose { max-width: 36em; }
.prose p { color: var(--ink-2); text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose .title { margin-bottom: clamp(18px, 1.8vw, 30px); }
.prose a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Option cards ---------- */
.options { display: grid; gap: var(--gap); }
.option { background: var(--card); border-radius: 2px; padding: clamp(20px, 2vw, 34px); }
.option h3 { font-size: clamp(1.0625rem, 1rem + .3vw, 1.3rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 8px; }
.option p { color: var(--ink-2); text-wrap: pretty; }

/* ---------- Key facts list (time, warranty, price) ---------- */
.info { border-top: 1px solid var(--line); margin-top: clamp(28px, 3vw, 52px); }
.info div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: var(--fs-small); color: var(--ink-3); }
.info dd { color: var(--ink); text-wrap: pretty; }

/* ---------- Photo reel captions, "see more" link ---------- */
.shot { position: relative; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-2); background: linear-gradient(180deg, rgba(11, 11, 12, 0), rgba(11, 11, 12, .82)); }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(24px, 2.6vw, 44px); font-size: var(--fs-small); text-decoration: none; color: var(--ink); padding: 10px 0 6px; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.more:hover { border-color: var(--ink); }

/* ---------- Home: service tiles as links ---------- */
a.tile { color: var(--ink); text-decoration: none; }
.tile-go { position: absolute; right: 16px; bottom: 18px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(244, 244, 241, .4); border-radius: 50%; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.tile-go .arr { width: 14px; height: 14px; }
.tile:hover .tile-go, .tile:focus-visible .tile-go { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tile-ppf img { object-position: 50% 38%; }
.tile-wrap img { object-position: 62% 78%; }
.tile-finish img { object-position: 50% 45%; }
.tile-livery img { object-position: 50% 55%; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 48px); }
.filter { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; font-size: var(--fs-small); color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-count { margin: -16px 0 clamp(20px, 2.4vw, 36px); font-size: var(--fs-small); color: var(--ink-3); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px) var(--gap); }
.gallery li[hidden] { display: none; }
.gallery figure { display: grid; gap: 10px; align-content: start; }
.gallery a { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--card); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.tag { display: inline-block; margin-right: 6px; padding: 1px 8px; font-size: .75rem; line-height: 1.6; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; vertical-align: 1px; }
.gallery-note { margin-top: clamp(28px, 3vw, 52px); font-size: var(--fs-small); color: var(--ink-3); max-width: 40em; }

.lightbox { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #060607; color: var(--ink); overflow: hidden; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox[open] { display: block; }
.lb-stage { position: absolute; inset: 64px 0 calc(150px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 var(--gutter); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb-cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 2px; text-align: center; font-size: var(--fs-small); color: var(--ink-2); }
.lb-count { color: var(--ink-3); }
.lb-btn { position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(11, 11, 12, .72); color: var(--ink); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.lb-btn:hover { background: var(--ink); color: var(--bg); }
.lb-btn .arr { width: 18px; height: 18px; }
.lb-close { top: 10px; right: 10px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-prev, .lb-next { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.lb-prev { left: 10px; }
.lb-prev .arr { transform: scaleX(-1); }
.lb-next { right: 10px; }
.lb-prev:hover > .arr { transform: scaleX(-1) translateX(4px); }

/* ---------- Contact ---------- */
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--fs-small); color: var(--ink-3); }
.contact-list dd { color: var(--ink); text-wrap: pretty; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); word-break: break-word; }
.contact-list a:hover { border-color: var(--ink); }
.contact-list .sub { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--ink-3); }

/* ---------- Privacy (long text) ---------- */
.legal { max-width: 44rem; }
.legal h2 { font-size: clamp(1.125rem, 1.04rem + .4vw, 1.5rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin: clamp(36px, 3.6vw, 56px) 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); text-wrap: pretty; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 1em; }
.legal ul { display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 24px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--ink-3); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); text-underline-offset: 3px; word-break: break-word; }
.legal-date { font-size: var(--fs-small); color: var(--ink-3); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; min-height: 70svh; }
.lost-links { display: grid; gap: 0; margin-top: clamp(28px, 3vw, 52px); max-width: 32rem; border-top: 1px solid var(--line); }
.lost-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lost-links a:hover { color: var(--ink); }

/* ---------- Quote form extras ---------- */
.form-note.form-legal { margin-top: 6px; font-size: .8125rem; line-height: 1.45; }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
textarea { font: inherit; color: inherit; }
.field[data-field="message"] { grid-column: 1 / -1; }
.field textarea { display: block; width: 100%; min-height: 112px; padding: 14px 16px; font-size: max(1rem, 16px); line-height: 1.5; background: rgba(244, 244, 241, .04); border: 1px solid var(--line); border-radius: 2px; outline: 0; resize: vertical; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.field textarea:hover { border-color: var(--ink-3); }
.field textarea:focus { border-color: var(--ink); background: rgba(244, 244, 241, .07); }

/* ---------- Footer: link columns ---------- */
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }
.foot-h { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 12px; }
.foot-cols ul { display: grid; gap: 10px; }
.foot-cols a { padding: 2px 0; }
.foot-cols li { min-width: 0; overflow-wrap: anywhere; }
.foot-cols > div:last-child { grid-column: 1 / -1; }

/* Phones and touch screens: footer links and the menu's email link get a 44px tap target */
@media (max-width: 899px), (pointer: coarse) {
  .foot-cols ul { gap: 0; }
  .foot-cols a { min-height: 44px; padding: 0; }
  .menu-foot a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- 640 and up ---------- */
@media (min-width: 640px) {
  .options { grid-template-columns: repeat(2, 1fr); }
  .info div, .contact-list div { grid-template-columns: 11em 1fr; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; margin-top: -24px; }
  .lb-stage { inset: 64px 72px calc(84px + env(safe-area-inset-bottom, 0px)); padding: 0; }
  .lb-cap { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .foot-grid-site { grid-template-columns: 1fr; }
}

/* ---------- 900 and up ---------- */
@media (min-width: 900px) {
  .split { grid-template-columns: 6fr 5fr; }
  .split-flip { grid-template-columns: 5fr 6fr; }
  .split-flip .split-media { order: -1; }
  .split-media { position: sticky; top: calc(var(--bar-h) + 24px); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid-site { grid-template-columns: 1fr 1.5fr; }
}

@media (min-width: 1200px) {
  .options-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1400px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery a:hover img { transform: none; }
}

/* Contact details beside the form, and the privacy date */
.quote-copy .contact-list { margin-top: clamp(24px, 2.6vw, 44px); }
.legal-date { margin-top: 14px; }
