/* 4HW Welding & Construction: "Shop Drawing" design system
   Dark steel-blue drawing sheet, white linework, molten-orange accent, mono drawing labels. */

/* ---------- fonts (self-hosted latin subsets; tools/fetch-fonts.sh) ---------- */
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-500.woff2) format('woff2'); }

/* ---------- tokens ---------- */
:root {
  /* color */
  --bg: #0d1824;          /* drawing sheet */
  --bg-2: #102031;        /* raised sheet */
  --panel: #13263a;       /* cards */
  --text: #e8eff6;        /* linework / body */
  --muted: #a3b7cb;       /* 8.4:1 on --bg */
  --line: #26445f;        /* rules, borders */
  --line-2: #3a5f80;      /* stronger rule */
  --hot: #ff7a1f;         /* molten orange: CTAs, accents (6.9:1 on --bg) */
  --hot-2: #ffb064;
  --on-hot: #170b02;
  --grid: rgba(140, 190, 240, .085);
  --grid-fine: rgba(140, 190, 240, .045);
  --ok: #7fd6a0;
  --err: #ff9b8a;
  --ink-logo: #eef2f6;

  /* type */
  --f-head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --t-xs: 12px; --t-sm: 15px; --t-base: 17px; --t-lg: 19px;
  --t-h3: clamp(24px, 2.6vw, 30px);
  --t-h2: clamp(38px, 5.4vw, 68px);
  --t-h1: clamp(46px, 7vw, 92px);

  /* space (4/8 base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 9vw, 120px);
  --gutter: 16px;
  --max: 1200px;

  --shadow: 0 24px 48px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;

  /* set by rig.js while the welder works */
  --arc: 0; --tip-x: 50%; --tip-y: 40%;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 var(--t-base)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
::selection { background: var(--hot); color: var(--on-hot); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--hot); color: var(--on-hot); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* blueprint sheet background, reusable */
.sheet {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(var(--grid-fine) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px) 0 0 / 8px 8px,
    var(--bg);
}

/* ---------- type helpers ---------- */
.label { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label.hot { color: var(--hot); }
h1, h2, h3 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1 { font-weight: 800; font-size: var(--t-h1); line-height: .9; }
h2 { font-weight: 800; font-size: var(--t-h2); line-height: .92; }
h3 { font-weight: 700; font-size: var(--t-h3); line-height: 1; letter-spacing: .02em; }
.hot { color: var(--hot); }
.lead { font-size: var(--t-lg); color: var(--muted); max-width: 54ch; }
.lead a { color: var(--text); text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead a:hover { color: var(--hot); }
p { max-width: 68ch; }
.todo { color: var(--hot-2); font-family: var(--f-mono); font-size: .82em; border-bottom: 1px dashed currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 2px solid var(--hot); background: var(--hot); color: var(--on-hot);
  font: 800 17px/1 var(--f-head); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--hot-2); border-color: var(--hot-2); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .04); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- preview banner ---------- */
.preview-banner { background: var(--hot); color: var(--on-hot); font: 600 14px/1.4 var(--f-body); text-align: center; padding: 8px var(--gutter); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: block; width: 48px; aspect-ratio: 715 / 694; background: var(--ink-logo); -webkit-mask: url(../img/logo-ink.webp) center / contain no-repeat; mask: url(../img/logo-ink.webp) center / contain no-repeat; flex: none; }
.brand-name { font: 800 21px/1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; }
.brand-name small { display: block; margin-top: 4px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav a { font: 700 15px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 12px 0; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-call { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1 var(--f-head); letter-spacing: .06em; text-decoration: none; padding: 12px 0; }
.header-call svg { width: 18px; height: 18px; color: var(--hot); }
.nav .btn { min-height: 46px; padding: 0 18px; color: var(--on-hot); }
.nav .btn::after { display: none; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn path { transition: transform .25s var(--ease), opacity .2s; transform-origin: center; }
.menu-open .menu-btn path:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn path:nth-child(2) { opacity: 0; }
.menu-open .menu-btn path:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-top, 72px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-3) var(--gutter) var(--s-5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
  .nav a { padding: 16px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .header-call { border: 0; }
  .nav .btn { margin-top: var(--s-3); min-height: 54px; }
}

/* ---------- live logo rig ---------- */
.rig { position: relative; aspect-ratio: 715 / 694; width: 100%; isolation: isolate; }
.rig-ink, .rig-torch { position: absolute; inset: 0; background: var(--ink-logo); }
/* two soft-split layers that add back up to the exact logo; the torch layer is moved by rig.js */
.rig-ink { -webkit-mask: url(../img/logo-base.webp) 0 0 / 100% 100% no-repeat; mask: url(../img/logo-base.webp) 0 0 / 100% 100% no-repeat; }
.rig-torch { -webkit-mask: url(../img/logo-torch.webp) 0 0 / 100% 100% no-repeat; mask: url(../img/logo-torch.webp) 0 0 / 100% 100% no-repeat;
  mix-blend-mode: plus-lighter; transform-origin: 34.97% 67.72%; will-change: transform; }
.rig-arc { position: absolute; left: 67.83%; top: 48.99%; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 4%, rgba(225, 242, 255, .95) 7%, rgba(160, 210, 255, .55) 15%, rgba(255, 170, 80, .28) 30%, rgba(255, 110, 30, .1) 48%, transparent 68%); }
.rig-lens { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  clip-path: polygon(47.9% 33.86%, 57.69% 34.94%, 57.34% 41.79%, 47.41% 40.49%);
  background: linear-gradient(120deg, rgba(255, 200, 120, .2), rgba(255, 236, 200, .95) 55%, rgba(255, 150, 60, .4)); }
.sparks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.scene-light { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: calc(var(--arc) * .9);
  background: radial-gradient(circle at var(--tip-x) var(--tip-y), rgba(190, 225, 255, .2), rgba(255, 140, 50, .09) 22%, transparent 50%); }
.spark-toggle { position: absolute; z-index: 4; right: var(--gutter); bottom: var(--s-4); display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(13, 24, 36, .8); color: var(--muted); font: 600 13px/1 var(--f-body); cursor: pointer; }
.spark-toggle:hover { color: var(--text); border-color: var(--text); }
.spark-toggle svg { width: 14px; height: 14px; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero > .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: var(--s-5) 0; }
.hero .lead { margin-bottom: var(--s-6); }
.spec { margin-top: var(--s-7); border-top: 1px dashed var(--line-2); padding-top: var(--s-4); display: grid; grid-template-columns: repeat(4, auto); gap: var(--s-3) var(--s-6); justify-content: start; }
.spec div { font: 500 11px/1.5 var(--f-mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.spec strong { display: block; color: var(--text); font: 700 22px/1.2 var(--f-head); letter-spacing: .03em; }
.drawing { position: relative; padding: 9%; }
.drawing .ring { position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 50%; }
.drawing .ring.r2 { inset: 4.5%; border: 1px dashed var(--line); animation: spin 120s linear infinite; }
.drawing .ticks { position: absolute; inset: -2%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--line-2) 0 .4deg, transparent .4deg 6deg); -webkit-mask: radial-gradient(circle, transparent 69.5%, #000 70%, #000 71.5%, transparent 72%); mask: radial-gradient(circle, transparent 69.5%, #000 70%, #000 71.5%, transparent 72%); opacity: .7; }
.drawing .cross { position: absolute; inset: -4%; background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; opacity: .55; }
.drawing .dim { position: absolute; font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; background: var(--bg); padding: 2px 6px; }
.drawing .dim.t { top: -8px; left: 50%; transform: translateX(-50%); }
.drawing .dim.b { bottom: -8px; left: 50%; transform: translateX(-50%); }
.drawing .callout { position: absolute; right: -2%; top: 8%; font: 500 11px/1.5 var(--f-mono); color: var(--hot); text-transform: uppercase; letter-spacing: .1em; border-left: 1px solid var(--hot); padding-left: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .drawing { width: min(100%, 420px); margin: 0 auto; order: -1; }
  .spec { grid-template-columns: repeat(2, auto); }
  .drawing .callout { display: none; }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-5); margin-bottom: var(--s-7); }
.sec-head .label { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.sec-head .label::after { content: ""; flex: 1; height: 1px; background: var(--line-2); transform-origin: left; transition: transform 1s var(--ease); }
.sec-head p { color: var(--muted); max-width: 44ch; }
.sec-head .btn { white-space: nowrap; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* page header for inner pages: drawing title block */
.page-head { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head .wrap { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: var(--s-7); align-items: end; }
.page-head h1 { margin: var(--s-4) 0 var(--s-5); }
.title-block { border: 1px solid var(--line-2); font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.title-block div { display: grid; grid-template-columns: 96px 1fr; border-bottom: 1px solid var(--line); }
.title-block div:last-child { border-bottom: 0; }
.title-block dt, .title-block dd { padding: 10px 12px; }
.title-block dt { color: var(--muted); border-right: 1px solid var(--line); }
.title-block dd { color: var(--text); }
@media (max-width: 820px) { .page-head .wrap { grid-template-columns: 1fr; } .title-block { max-width: 420px; } }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: var(--hot); transform: translateY(-3px); }
.card figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card .no { position: absolute; top: 12px; left: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--hot); border: 1px solid var(--hot); background: rgba(13, 24, 36, .75); padding: 6px 8px; }
.card .body { padding: var(--s-4) 18px 20px; display: grid; gap: 6px; }
.card p { color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.card .go { margin-top: auto; padding: 0 18px 18px; font: 700 14px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--hot); display: flex; gap: 8px; align-items: center; }
.card .go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .go svg { transform: translateX(4px); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { gap: var(--s-3); } .card p { display: none; } .card h3 { font-size: 21px; } .card .body { padding: 12px 14px 4px; } .card .go { padding: 8px 14px 14px; } }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: all .2s; }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
.filters .count { opacity: .7; margin-left: 6px; }
.filters button[aria-pressed="true"] .count { opacity: 1; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery.featured { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; }
.gallery.featured .shot { aspect-ratio: auto; }
.gallery.featured .shot:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery.featured .shot:nth-child(2) { grid-column: span 3; }
.gallery.featured .shot:nth-child(3) { grid-column: span 2; }
.gallery.featured .shot:nth-child(4) { grid-column: span 1; }
.gallery.featured .shot:nth-child(n+5) { grid-column: span 2; }
.shot { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--panel); border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; text-align: left; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.shot:hover img { transform: scale(1.04); }
.shot::before, .shot::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--hot); z-index: 2; opacity: .9; transition: all .25s var(--ease); }
.shot::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.shot::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.shot:hover::before { top: 12px; left: 12px; } .shot:hover::after { bottom: 12px; right: 12px; }
.shot[hidden] { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery.featured { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery.featured .shot { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery.featured .shot:nth-child(1) { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; color: var(--text); }
.lightbox::backdrop { background: rgba(4, 8, 13, .97); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; padding-bottom: 24px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; box-shadow: var(--shadow); }
.lb-btn { width: 48px; height: 48px; border: 1px solid var(--line-2); background: rgba(13, 24, 36, .8); cursor: pointer; display: inline-grid; place-items: center; }
.lb-btn:hover { border-color: var(--text); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: 64px; transform: none; } }

/* ---------- before / after ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.ba-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; width: 100%; max-width: 520px; border: 1px solid var(--line-2); --pos: 50%; touch-action: pan-y; user-select: none; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-frame .after { clip-path: inset(0 0 0 var(--pos)); }
.ba-frame .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--hot); transform: translateX(-50%); pointer-events: none; z-index: 2; }
.ba-frame .knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; transform: translate(-50%, -50%); background: var(--hot); color: var(--on-hot); display: grid; place-items: center; pointer-events: none; z-index: 3; }
.ba-frame .knob svg { width: 26px; height: 26px; }
.ba-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.ba-frame input:focus-visible ~ .knob { outline: 3px solid var(--text); outline-offset: 3px; }
.ba-frame .tag { position: absolute; top: 12px; z-index: 2; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; background: rgba(5, 10, 16, .78); color: #fff; padding: 8px 10px; }
.ba-frame .tag.l { left: 12px; } .ba-frame .tag.r { right: 12px; }
.ba h2 { margin: var(--s-4) 0; }
.ba p { color: var(--muted); }
@media (max-width: 820px) { .ba { grid-template-columns: 1fr; } .ba-frame { margin-inline: auto; } }

/* before/after jobs (Projects page) */
.jobs { display: grid; gap: clamp(56px, 8vw, 96px); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.job:nth-child(even) .ba-frame { order: 2; justify-self: end; }
.job h3 { font-size: clamp(30px, 3.6vw, 44px); margin: var(--s-3) 0 var(--s-4); }
.job-copy > p:not(.label) { color: var(--muted); font-size: var(--t-lg); max-width: 46ch; }
.job-copy > .label:not(.hot) { margin: var(--s-6) 0 var(--s-3); }
.gallery.job-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.job-steps .shot::before, .job-steps .shot::after { width: 12px; height: 12px; }
@media (max-width: 820px) { .job { grid-template-columns: 1fr; } .job:nth-child(even) .ba-frame { order: 0; justify-self: auto; } }

/* ---------- pits teaser (home) ---------- */
.pits-band { border-top: 1px solid var(--line); }
.pits-band .wrap { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .pits-band .wrap { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; }
.step { position: relative; border-top: 2px solid var(--line-2); padding-top: var(--s-5); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--hot); }
.step .label { display: block; margin-bottom: var(--s-3); color: var(--hot); }
.step p { color: var(--muted); margin-top: var(--s-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- service area band ---------- */
.area { position: relative; overflow: hidden; }
.area .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; position: relative; z-index: 1; }
.area-map { position: relative; aspect-ratio: 5 / 4; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden; }
.area-map svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .area .wrap { grid-template-columns: 1fr; } }

/* ---------- quote band + form ---------- */
.quote-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.phone-big { display: inline-flex; align-items: center; gap: 14px; margin-top: var(--s-5); font: 800 clamp(36px, 5vw, 58px)/1 var(--f-head); letter-spacing: .02em; text-decoration: none; border-bottom: 3px solid var(--hot); padding-bottom: 6px; }
.phone-big:hover { color: var(--hot); }
.facts { list-style: none; margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.facts li::before { content: "+"; font: 600 14px/1 var(--f-mono); color: var(--hot); }
.form { display: grid; gap: var(--s-4); background: var(--panel); border: 1px solid var(--line-2); padding: clamp(20px, 3vw, 32px); position: relative; }
.form::before { content: "FORM 4HW-Q1 · FREE QUOTE"; position: absolute; top: -9px; left: 16px; background: var(--panel); padding: 0 8px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .14em; color: var(--hot); }
.section.alt .form::before { background: var(--panel); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font: 700 14px/1.2 var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255, 122, 31, .25); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-size: 14px; min-height: 0; }
.field input[type="file"] { padding: 10px; min-height: 0; cursor: pointer; font-size: 15px; }
.field input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 8px 12px; font: 600 14px/1 var(--f-body); cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form .btn { width: 100%; min-height: 56px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .quote-band .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- services page detail ---------- */
.svc-nav { position: sticky; top: calc(var(--header-h) + 1px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.svc-nav .wrap { display: flex; gap: var(--s-2); overflow-x: auto; overscroll-behavior-x: contain; padding-block: 10px; scrollbar-width: none; }
.svc-nav .wrap::-webkit-scrollbar { display: none; }
.svc-nav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.svc-nav a { transition: background-color .25s, color .25s, border-color .25s; }
.svc-nav a:hover { color: var(--text); border-color: var(--text); }
.svc-nav a.on { color: var(--on-hot); background: var(--hot); border-color: var(--hot); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 48px; }
.svc:nth-of-type(even) .svc-pics { order: 2; }
.svc-pics { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: end; }
.svc-pics .shot:nth-child(2) { margin-bottom: 15%; }
.svc h2 { margin: var(--s-3) 0 var(--s-4); }
.svc p { color: var(--muted); }
.svc ul { list-style: none; margin: var(--s-5) 0 var(--s-6); display: grid; gap: 10px; }
.svc li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.svc li svg { width: 18px; height: 18px; color: var(--hot); margin-top: 4px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc:nth-of-type(even) .svc-pics { order: 0; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story p:not(.label) + p { margin-top: var(--s-4); }
.story p:not(.label) { color: var(--muted); font-size: var(--t-lg); }
.about-grid > :last-child { position: sticky; top: 96px; }
.story h2 .hot { color: var(--hot); }
.verse { margin: var(--s-6) 0 0; padding: var(--s-4) 0 var(--s-4) var(--s-5); border-left: 3px solid var(--hot); }
.story .verse p { font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--f-head); color: var(--text); letter-spacing: .01em; }
.verse cite { display: block; margin-top: var(--s-3); font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.story .signoff { margin-top: var(--s-6); font: 800 clamp(26px, 3vw, 36px)/1 var(--f-head); text-transform: uppercase; color: var(--text); letter-spacing: .02em; }
.creds { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creds li { background: var(--panel); padding: var(--s-4) var(--s-5); color: var(--text); }
.creds .label { display: block; margin-bottom: var(--s-1); }
@media (max-width: 860px) { .about-grid > :last-child { position: static; } }
.placeholder { border: 1px dashed var(--hot-2); padding: var(--s-5); color: var(--hot-2); font-family: var(--f-mono); font-size: 14px; line-height: 1.6; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.value { border: 1px solid var(--line-2); padding: var(--s-5); background: var(--panel); }
.value svg { width: 32px; height: 32px; color: var(--hot); margin-bottom: var(--s-4); }
.value p { color: var(--muted); margin-top: var(--s-2); }
@media (max-width: 860px) { .about-grid, .values { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta-strip { padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.cta-strip h2 { max-width: 14ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); background: var(--bg-2); padding: var(--s-8) 0 calc(var(--s-6) + 76px); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-7); }
.foot-grid h2 { font-size: 16px; letter-spacing: .14em; margin-bottom: var(--s-4); color: var(--muted); font-family: var(--f-mono); font-weight: 500; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--text); }
.foot-grid a:hover { color: var(--hot); }
.foot-brand .brand-mark { width: 88px; margin-bottom: var(--s-4); }
.foot-brand p { color: var(--muted); max-width: 36ch; }
.foot-base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; color: var(--muted); font: 500 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 761px) { .site-footer { padding-bottom: var(--s-6); } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 24, 36, .96); border-top: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .callbar .btn { min-height: 50px; padding: 0 12px; }
}

/* ---------- reveal motion (only when JS sets html.motion) ---------- */
.motion .reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .sec-head .label::after { transform: scaleX(0); }
.motion .sec-head.in .label::after { transform: scaleX(1); }

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

/* service-area towns (home page) */
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 var(--s-4); padding: 0; }
.towns li { border: 1px solid var(--line-2); padding: 8px 12px; font: 500 13px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.towns li.home { border-color: var(--hot); color: var(--hot); }
.towns li.home span { color: var(--muted); margin-left: 6px; font-size: 11px; }
