/* Master Plastering Contractors — website v4
   Dark architectural treatment: charcoal, warm plaster, logo purple + teal as accents. */

:root {
  --ink: #0e0d0c;
  --char: #161514;
  --char-2: #1f1d1b;
  --char-3: #2a2724;
  --line: rgba(239, 233, 223, .14);
  --line-strong: rgba(239, 233, 223, .28);
  --text: #efe9df;
  --muted: #b9b0a2;
  --dim: #8d8578;
  --plaster: #e8e1d5;
  --plaster-2: #d8cebd;
  --plaster-ink: #1d1a17;
  --plaster-muted: #5a5248;
  --purple: #3f2d82;          /* logo purple, for fills */
  --purple-lift: #9c8cf0;     /* readable on charcoal */
  --teal: #8fd3cf;            /* logo teal */
  --teal-deep: #1f6e6a;       /* readable on plaster */
  --focus: #8fd3cf;
  --radius: 4px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  font-stretch: 100%;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 800; line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--teal); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: .7em;
}
.label::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.display {
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 6.8rem);
  line-height: .9;
  letter-spacing: -.005em;
}
.h2 {
  font-stretch: 78%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: .92;
}
.h3 { font-stretch: 85%; font-weight: 800; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.08; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.prose { max-width: 66ch; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }

/* Buttons */
.btn {
  --bg: var(--teal); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.4em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: var(--radius);
  font: 700 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:hover { background: #b2e4e1; border-color: #b2e4e1; }
.btn:active { transform: translateY(1px); }
.btn-ghost { --bg: transparent; --fg: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(239, 233, 223, .08); border-color: var(--text); }
.btn-dark { --bg: var(--plaster-ink); --fg: var(--plaster); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; gap: .5em; align-items: center; font-weight: 700; text-decoration: none; color: var(--teal); min-height: 44px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, border-color .3s, transform .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(14, 13, 12, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 52px; height: auto; }
.brand-name { font: 800 .98rem/1.05 var(--head); font-stretch: 82%; text-transform: uppercase; letter-spacing: .04em; }
.brand-name small { display: block; font: 500 .66rem/1.3 var(--mono); letter-spacing: .16em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 10px 12px; border-radius: var(--radius); color: var(--text);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:not(.btn):hover { background: rgba(239, 233, 223, .08); }
.nav a[aria-current="true"] { color: var(--teal); }
.nav .btn { min-height: 44px; margin-left: 10px; }
.menu-btn { display: none; }
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-weight: 700; cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
}
.menu-panel {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--ink);
  padding: 24px var(--gutter) 120px;
  overflow-y: auto;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font: 850 1.9rem/1 var(--head); font-stretch: 78%; text-transform: uppercase; text-decoration: none;
}
.menu-panel li a span { font: 500 .75rem var(--mono); color: var(--dim); letter-spacing: .12em; }
.menu-panel .menu-contact { margin-top: 28px; display: grid; gap: 12px; }

/* ── Opening (scroll-scrubbed) ──────────────────── */
.opening { position: relative; background: var(--ink); }
.opening-track { position: relative; height: 400vh; }
.opening-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.opening-stage canvas, .opening-stage .opening-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.opening-stage canvas { opacity: 0; transition: opacity .5s; }
.opening.is-ready .opening-stage canvas { opacity: 1; }
.opening-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,13,12,.72) 0%, rgba(14,13,12,.05) 24%, rgba(14,13,12,0) 50%, rgba(14,13,12,.55) 74%, rgba(14,13,12,.94) 100%),
    linear-gradient(90deg, rgba(14,13,12,.55) 0%, rgba(14,13,12,0) 60%);
}
.opening-copy {
  position: absolute; inset: auto 0 0; padding-bottom: clamp(28px, 7vh, 72px);
}
.opening-copy .wrap { display: grid; gap: 22px; }
.opening h1 { max-width: 13ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.opening h1 em { font-style: normal; color: var(--teal); }
.opening .lede { color: #f4efe7; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.opening-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.opening-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--plaster-2);
}
.opening-meta span { display: inline-flex; align-items: center; gap: 8px; }
.opening-meta span::before { content: ""; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.opening-chapters {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px; text-align: right;
  font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(239,233,223,.5);
}
.opening-chapters li { list-style: none; transition: color .3s; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.opening-chapters li::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s; }
.opening-chapters li.is-on { color: var(--text); }
.opening-chapters li.is-on::after { width: 40px; background: var(--teal); }
@media (max-width: 767px) { .opening-chapters { display: none; } }
.opening-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(239,233,223,.1); }
.opening-progress i { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(0); }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--plaster-2);
}
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--teal), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue i { animation: cue 2.2s var(--ease-out) infinite; } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.opening-copy, .opening-end { will-change: opacity, transform; }
.opening-end { position: absolute; inset: auto 0 0; padding-bottom: clamp(36px, 9vh, 96px); opacity: 0; pointer-events: none; }
.opening-end .wrap { display: grid; gap: 18px; justify-items: start; }
.opening-end .h2 { max-width: 12ch; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.opening-end.is-on { pointer-events: auto; }
/* Static opening: reduced motion, or no JS */
.opening.is-static .opening-track { height: auto; }
.opening.is-static .opening-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.opening.is-static .opening-chapters, .opening.is-static .opening-progress, .opening.is-static .scroll-cue, .opening.is-static .opening-end { display: none; }

/* ── Sections ───────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .section-head.split { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.on-plaster { background: var(--plaster); color: var(--plaster-ink); }
.on-plaster .label { color: var(--teal-deep); }
.on-plaster .muted, .on-plaster .prose { color: var(--plaster-muted); }
.on-plaster .prose strong { color: var(--plaster-ink); }
.on-plaster .link-arrow { color: var(--teal-deep); }
.on-plaster .btn-ghost { --fg: var(--plaster-ink); border-color: rgba(29,26,23,.35); }
.on-plaster .btn-ghost:hover { background: rgba(29,26,23,.06); border-color: var(--plaster-ink); }
.on-char { background: var(--char); }

/* Featured work */
.featured { padding-top: clamp(56px, 7vw, 96px); }
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(140px, 15vw); }
  .feature-grid .f-a { grid-column: 1 / 5; grid-row: span 3; }
  .feature-grid .f-b { grid-column: 5 / 7; grid-row: span 2; }
  .feature-grid .f-c { grid-column: 5 / 7; grid-row: span 2; }
  .feature-grid .f-d { grid-column: 1 / 5; grid-row: span 2; }
}
@media (min-width: 1360px) { .feature-grid { grid-auto-rows: 200px; } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--char-2); min-height: 260px; isolation: isolate;
  text-decoration: none; color: var(--text); display: block;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,12,0) 45%, rgba(14,13,12,.88) 100%); z-index: 1; }
.tile-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: grid; gap: 6px; }
.tile-cap .label { color: var(--teal); }
.tile-cap strong { font: 800 clamp(1.3rem, 2.2vw, 2rem)/1.02 var(--head); font-stretch: 80%; text-transform: uppercase; }
.tile-cap span.note { font-size: .9rem; color: var(--plaster-2); }
.tile-open { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(14,13,12,.6); border: 1px solid var(--line-strong); }
.tile-open svg { width: 18px; height: 18px; }
@media (hover: hover) { .tile:hover img { transform: scale(1.045); } }
button.tile { border: 0; padding: 0; width: 100%; text-align: left; cursor: zoom-in; }
.feature-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-top: 26px; }
.ba-mini { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.ba-mini figure { height: 100%; overflow: hidden; }
.tile .ba-mini img { position: static; height: 100%; }
.ba-mini figure { margin: 0; position: relative; }
.ba-mini { position: absolute; inset: 0; }
.ba-mini .tag { position: absolute; top: 12px; left: 12px; z-index: 3; }

.tag {
  display: inline-block; padding: 5px 9px; border-radius: 3px;
  font: 600 .68rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(14,13,12,.75); color: var(--text); border: 1px solid var(--line-strong);
}
.tag-teal { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.tag-concept { background: #f2c94c; color: #1a1500; border-color: #f2c94c; }

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts li { padding: clamp(26px, 3.5vw, 44px) clamp(14px, 2vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .facts li { border-bottom: 0; } .facts li:last-child { border-right: 0; } }
@media (max-width: 959px) { .facts li:nth-child(2n) { border-right: 0; } .facts li:nth-child(n+3) { border-bottom: 0; } }
.facts b { display: block; font: 900 clamp(2.4rem, 5vw, 4.2rem)/.9 var(--head); font-stretch: 75%; color: var(--text); }
.facts b sup { color: var(--teal); font-size: .5em; vertical-align: top; position: relative; top: .15em; }
.facts span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* Scene: triggered motion moment */
.scene {
  position: relative; height: clamp(420px, 78vh, 820px); overflow: hidden; background: var(--ink);
}
.scene-media { position: absolute; inset: 0; }
.scene-media img, .scene-media video { width: 100%; height: 100%; object-fit: cover; }
.scene-media img { transform: scale(1.18) translate3d(var(--sx, 0), var(--sy, 0), 0); transform-origin: var(--origin, 50% 50%); }
.scene.is-played .scene-media img { transform: scale(1.02) translate3d(0, 0, 0); transition: transform 2.6s cubic-bezier(.2,.7,.1,1); }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,12,.86) 0%, rgba(14,13,12,.35) 55%, rgba(14,13,12,.1) 100%), linear-gradient(0deg, rgba(14,13,12,.7), rgba(14,13,12,0) 45%); }
.scene-copy { position: absolute; inset: auto 0 0; padding-bottom: clamp(32px, 7vw, 80px); }
.scene-copy .wrap { display: grid; gap: 18px; }
.scene-copy h2 { max-width: 14ch; }
.scene-copy p { max-width: 50ch; color: var(--plaster-2); }
.scene-copy > .wrap > * { opacity: 0; transform: translateY(18px); }
.scene.is-played .scene-copy > .wrap > * { opacity: 1; transform: none; transition: opacity .8s .5s, transform .9s .5s var(--ease-out); }
.scene.is-played .scene-copy > .wrap > *:nth-child(2) { transition-delay: .65s; }
.scene.is-played .scene-copy > .wrap > *:nth-child(3) { transition-delay: .8s; }
.scene-ctrl {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 4vw, 48px); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,13,12,.6); border: 1px solid var(--line-strong); cursor: pointer;
}
.scene-ctrl svg { width: 18px; height: 18px; }
.scene-src { position: absolute; right: var(--gutter); top: 18px; z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .scene-media img { transform: none !important; transition: none !important; }
  .scene-copy > .wrap > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scene-ctrl { display: none; }
}
html.no-js .scene-copy > .wrap > * { opacity: 1; transform: none; }
html.no-js .scene-media img { transform: none; }

/* Two-column story layouts */
.cols { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .cols.wide-left { grid-template-columns: 1.2fr 1fr; }
  .cols.wide-right { grid-template-columns: 1fr 1.2fr; }
}
.plate { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--char-2); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { font-size: .85rem; color: var(--muted); padding: 10px 2px 0; background: transparent; }
.on-plaster .plate figcaption { color: var(--plaster-muted); }
.plate.framed { background: transparent; overflow: visible; }
.plate.framed img { border-radius: var(--radius); }
.stack { display: grid; gap: 14px; }
.stack-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.zoomable { cursor: zoom-in; border: 0; padding: 0; background: none; display: block; width: 100%; text-align: left; }

/* Services */
.service-list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: clamp(20px, 2.6vw, 30px) 0; min-height: 64px;
}
.service > summary::-webkit-details-marker { display: none; }
.service .num { font: 500 .78rem var(--mono); color: var(--teal); letter-spacing: .1em; }
.service .h3 { font-size: clamp(1.5rem, 3vw, 2.6rem); text-transform: uppercase; font-stretch: 78%; font-weight: 850; }
.service .plus { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--ease-out), background .2s; }
.service .plus svg { width: 16px; height: 16px; }
.service[open] .plus { transform: rotate(45deg); background: var(--teal); color: var(--ink); border-color: var(--teal); }
@media (hover: hover) { .service > summary:hover .h3 { color: var(--teal); } }
.service-body { display: grid; gap: clamp(24px, 4vw, 56px); padding: 0 0 clamp(28px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .service-body { grid-template-columns: 1.1fr 1fr; padding-left: 52px; } }
.service-body dl { margin: 18px 0 0; display: grid; gap: 14px; }
.service-body dt { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.service-body dd { margin: 4px 0 0; color: var(--muted); }
.service-body .plate { aspect-ratio: 4 / 3; }

/* Builders */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid rgba(29,26,23,.18); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process li { padding: 26px 22px 30px 0; border-bottom: 1px solid rgba(29,26,23,.18); counter-increment: step; }
@media (min-width: 900px) { .process li { padding-right: 32px; } }
.process li::before { content: "0" counter(step); display: block; font: 600 .78rem var(--mono); color: var(--teal-deep); letter-spacing: .1em; margin-bottom: 12px; }
.process h3 { font-size: 1.3rem; font-stretch: 85%; margin-bottom: 8px; }
.process p { color: var(--plaster-muted); font-size: .98rem; }
.pending {
  border: 1px dashed currentColor; border-radius: var(--radius); padding: 14px 16px;
  font-size: .9rem; opacity: .85;
}
.pending b { font: 600 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* Regional */
.route { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .route { grid-template-columns: 1fr 1fr; } }
.route-card { background: var(--char-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.route-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; font: 600 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.route-line .track { height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 10px, transparent 10px 18px); position: relative; }
.route-line .track::after { content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(143,211,207,.18); }
@media (prefers-reduced-motion: no-preference) { .route-card.is-in .route-line .track::after { animation: travel 3.2s var(--ease-out) forwards; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 12px); } }
.route-facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.route-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.route-facts svg { width: 18px; height: 18px; color: var(--teal); margin-top: 4px; }
.fine { font-size: .88rem; color: var(--dim); }

/* PCH */
.pch-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pch-grid { grid-template-columns: 1.3fr 1fr; } }
.pch-grid .plate { aspect-ratio: 4 / 3; }
.spec { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.spec li span:first-child { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding-top: 4px; }

/* Before / after */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--char-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; aspect-ratio: 1147 / 600; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efe9df' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 2px solid var(--text);
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba .tag { position: absolute; top: 14px; z-index: 2; pointer-events: none; }
.ba .tag.l { left: 14px; } .ba .tag.r { right: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tabs button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); font-weight: 600; font-size: .92rem;
}
.tabs button[aria-selected="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.pair { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair .plate { aspect-ratio: 4 / 3; }
.pair .tag { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* Galleries */
.gal-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gal-filter button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; }
.gal-filter button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.gal-filter button small { font: 500 .72rem var(--mono); opacity: .7; margin-left: 6px; }
.gallery { columns: 1; column-gap: 14px; }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery figure { break-inside: avoid; margin: 0 0 14px; }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--char-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.03); } }
.gallery figcaption { font-size: .86rem; color: var(--muted); padding: 8px 2px 4px; line-height: 1.4; }
.gallery figcaption .tag { margin-right: 6px; vertical-align: 1px; }
.gal-note { color: var(--dim); font-size: .9rem; margin: -6px 0 20px; }

/* Family / fleet */
.fleet-strip { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 40px; }
@media (min-width: 900px) { .fleet-strip { grid-template-columns: 2fr 1fr 1fr; } }
.fleet-strip .plate { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .fleet-strip .plate:first-child { grid-row: span 2; aspect-ratio: auto; } }
@media (max-width: 899px) { .fleet-strip .plate:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* Texture sample */
.finish-wrap { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .finish-wrap { grid-template-columns: 1fr 1.25fr; } }
.finish-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #2b2926; cursor: crosshair; transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease-out); }
.finish-stage.is-active { transition: transform .12s linear; }
.finish-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; outline: none; }
.finish-stage:has(canvas:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.finish-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finish-tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.finish-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; pointer-events: none; transition: opacity .4s; }
.finish-stage.touched .finish-hint { opacity: 0; }
.finish-controls { display: grid; gap: 16px; margin-top: 24px; }
.finish-controls fieldset { border: 0; margin: 0; padding: 0; }
.finish-controls legend { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 8px; }
.finish-controls .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.finish-controls button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.finish-controls button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.direct { display: grid; gap: 12px; margin: 30px 0; }
.direct a.big {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, background .2s;
}
.direct a.big:hover { border-color: var(--teal); background: rgba(143,211,207,.06); }
.direct a.big > span > span { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); display: block; margin-bottom: 4px; }
.direct a.big > span { min-width: 0; }
.direct a.big strong { font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--head); font-stretch: 82%; overflow-wrap: anywhere; display: block; }
.direct a.big strong.email { font-size: clamp(1.02rem, 1.7vw, 1.3rem); font-stretch: 90%; }
.direct svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.form-card { background: var(--char-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.demo-banner { display: flex; gap: 12px; align-items: flex-start; background: rgba(242,201,76,.1); border: 1px solid rgba(242,201,76,.45); color: #f6dc8a; padding: 14px 16px; border-radius: var(--radius); font-size: .93rem; margin-bottom: 22px; }
.demo-banner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.who legend { font-weight: 600; margin-bottom: 10px; font-size: .95rem; }
.who label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: .93rem; font-weight: 600; line-height: 1.25; }
.who input { accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.who label:has(input:checked) { border-color: var(--teal); background: rgba(143,211,207,.08); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.field .err { color: #ff9d8f; font-size: .88rem; font-weight: 600; }
.row-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form-result { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line-strong); font-size: .93rem; }
.form-result pre { white-space: pre-wrap; font: 400 .85rem/1.5 var(--mono); color: var(--muted); margin: 10px 0; }

/* Footer */
.site-footer { background: #090908; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 90px) 0 120px; font-size: .95rem; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: var(--muted); display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; display: grid; gap: 6px; }

/* Mobile contact bar */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,13,12,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease-out);
}
.contact-bar.is-on { transform: none; }
.contact-bar .btn { min-height: 48px; }
@media (min-width: 1024px) { .contact-bar { display: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,8,7,.96); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); gap: 12px; }
.lb-count { font: 500 .78rem var(--mono); letter-spacing: .12em; color: var(--muted); }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(14,13,12,.7); cursor: pointer; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage { overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-cap { padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom)); text-align: center; color: var(--plaster-2); font-size: .95rem; }

/* Film modal */
.film { position: fixed; inset: 0; z-index: 310; background: rgba(8,8,7,.96); display: grid; place-items: center; padding: 60px var(--gutter) 30px; }
.film[hidden] { display: none; }
.film video { width: min(100%, 1280px); max-height: 78vh; background: #000; border-radius: 2px; }
.film .lb-btn { position: absolute; top: 12px; right: var(--gutter); }
.film p { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
html.no-js .reveal { opacity: 1; transform: none; }

/* Grid children must be allowed to shrink below their content's intrinsic width (prevents sideways scroll on phones). */
.cols > *, .pch-grid > *, .pair > *, .stack > *, .stack-2 > *, .feature-grid > *, .section-head > *, .contact-grid > *,
.route > *, .finish-wrap > *, .service-body > *, .foot-grid > *, .fleet-strip > *, .row-2 > *, .who > * { min-width: 0; }

@media (max-width: 767px) {
  .opening-copy .label { display: none; }
    .brand-name { white-space: nowrap; font-size: .9rem; }
  .brand-name small { display: none; }
  .brand img { width: 44px; }
  .opening-meta { gap: 6px 16px; }
}

/* Regional map */
.route-map svg { width: 100%; max-width: 340px; margin: 0 auto; display: block; height: auto; }
.route-map .land { fill: rgba(239,233,223,.05); }
.route-map .coast { fill: none; stroke: rgba(239,233,223,.35); stroke-width: 1.5; }
.route-map .sea { fill: rgba(143,211,207,.45); font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.route-map .route { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 6; }
@media (prefers-reduced-motion: no-preference) {
  .route-map .route { stroke-dashoffset: 600; transition: stroke-dashoffset 2.6s var(--ease-out); }
  .route-card.is-in .route-map .route { stroke-dashoffset: 0; }
}
.route-map .town circle { fill: var(--ink); stroke: var(--teal); stroke-width: 2.5; }
.route-map .town.base circle { fill: var(--teal); }
.route-map .town text { fill: var(--text); font: 700 15px var(--body); }
.route-map .town text tspan { fill: var(--muted); font-weight: 500; }

/* Builder names */
.builder-list { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 28px 0; margin-bottom: 40px; border-top: 1px solid rgba(29,26,23,.18); border-bottom: 1px solid rgba(29,26,23,.18); }
@media (min-width: 900px) { .builder-list { grid-template-columns: 2fr 1fr; gap: 56px; } }
.builder-list ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.builder-list li { font: 800 clamp(1.15rem, 2vw, 1.6rem)/1.1 var(--head); font-stretch: 80%; text-transform: uppercase; padding: 10px 14px; border: 1px solid rgba(29,26,23,.25); border-radius: var(--radius); }
.builder-list p { margin-top: 14px; color: var(--plaster-muted); }
.pch-band .section-head { margin-bottom: 0; }
