/* PCEM: Prema Constructions & Earthmovers */

:root {
  --red: #800020;
  --red-dark: #62001a;
  --red-bright: #a3122f;
  --ink: #1d1d1d;
  --cream: #fff5e8;
  --cream-2: #f1e5d4;
  --muted: #6a645d;
  --line: #e2d4bf;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; font: 15px/1.6 var(--body); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

.h-xl {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.005em; color: var(--ink);
}
.h-xl.light { color: #fff; }
.mono-label { font: 400 .76rem var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.mono-label.center { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .74rem var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em;
  padding: 13px 22px; border-radius: 3px; border: 0; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); }
.btn-dark { background: #1d1d1d; color: #fff; }
.btn-dark:hover { background: #000; }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.site-header.solid { box-shadow: 0 1px 0 var(--line); }
.site-header.solid { background: var(--cream); color: var(--ink); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; padding: 0 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 132px; height: 26px; color: currentColor; }
.brand-divider { width: 2px; height: 32px; background: var(--red); }
.brand-name { font: 600 .55rem/1.45 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.site-header:not(.solid) { --logo-accent: #fff; }
.site-header:not(.solid) .brand-divider { background: rgba(255,255,255,.6); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font: 700 .76rem var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; opacity: .92; }
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-cta { display: none; }
.header-cta { justify-self: end; }
.hdr-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 .86rem var(--body); letter-spacing: .01em; padding: 11px 16px 11px 20px; border-radius: 999px;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.hdr-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.hdr-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hdr-btn:hover svg { transform: translateX(3px); }
.hdr-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-header.solid .hdr-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-header.solid .hdr-btn:hover { background: var(--red); border-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; color: inherit; cursor: pointer; justify-self: end; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #2a221c; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
video.hero-bg { pointer-events: none; }
.hero-shade { position: absolute; inset: 0; background: rgba(15, 10, 6, .5); }
.hero-center { position: relative; z-index: 1; padding: 0 20px; width: 100%; max-width: 1280px; }
.hero-eyebrow { margin: 0 0 22px; font: 500 .74rem var(--mono); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.hero-lead { max-width: 560px; margin: 24px auto 0; font-size: 1.06rem; line-height: 1.6; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hbtn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  font: 600 .95rem var(--body); letter-spacing: .01em;
  padding: 7px 7px 7px 26px; border-radius: 999px;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hbtn-icon {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.hbtn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
/* fill that grows out from the icon on hover */
.hbtn::before {
  content: ""; position: absolute; z-index: -1; right: 7px; top: 50%; width: 42px; height: 42px; border-radius: 50%;
  transform: translateY(-50%) scale(0); transition: transform .6s var(--ease);
}
.hbtn:hover::before { transform: translateY(-50%) scale(9); }
.hbtn:hover { transform: translateY(-2px); }

.hbtn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hbtn-white .hbtn-icon { background: var(--red); color: #fff; }
.hbtn-white::before { background: var(--red); }
.hbtn-white:hover { color: #fff; box-shadow: 0 14px 36px rgba(128,0,32,.45); }
.hbtn-white:hover .hbtn-icon { background: rgba(255,255,255,.18); }
.hbtn-white:hover .hbtn-icon svg { transform: translateX(3px); }

.hbtn-glass {
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.hbtn-glass .hbtn-icon { background: rgba(255,255,255,.2); }
.hbtn-glass::before { background: #fff; }
.hbtn-glass:hover { color: var(--ink); border-color: #fff; }
.hbtn-glass:hover .hbtn-icon { background: var(--cream-2); }
.hbtn-glass:hover .hbtn-icon svg { transform: translateY(3px); }
.hbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-title {
  position: relative; z-index: 1;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.01em; color: #fff;
}

/* ===== About ===== */
.eyebrow { margin: 0 0 18px; font: 500 .72rem var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.eyebrow.light { color: rgba(255,255,255,.7); }
.sec-head {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end;
  padding-bottom: 32px; margin-bottom: 48px; border-bottom: 1px solid var(--line);
}
.sec-head .h-xl { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.sec-intro { justify-self: end; max-width: 420px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.sec-intro p { margin: 0 0 22px; }
.about { padding: 112px 0 56px; }
.about-photos { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.about-photos .frame { aspect-ratio: 16 / 9; border-radius: 6px; }
.about-photos .frame + .frame { aspect-ratio: 1.147; }

/* Photo frames: every photo fills its frame edge to edge */
.frame { position: relative; display: block; overflow: hidden; background: var(--cream-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* framing for photos that aren't widescreen: keep their title and main subject in view */
img.fit-top { object-position: center 0%; }
img.fit-upper { object-position: center 28%; }

/* ===== Trusted ===== */
.trusted { padding: 8px 0 0; }
.trusted .mono-label { color: var(--ink); font-weight: 500; letter-spacing: .14em; margin-bottom: 36px; }
.marquee { display: flex; overflow: hidden; margin-bottom: 48px; }
.marquee-track { display: flex; flex: none; gap: 72px; padding: 0 36px; margin: 0; list-style: none; animation: marquee 42s linear infinite; }
.marquee-track li { font: 800 1.15rem var(--display); font-stretch: 125%; text-transform: uppercase; color: #8c8378; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ===== Services ===== */
.scope { padding: 104px 0 56px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-img { position: relative; overflow: hidden; border-radius: 6px; margin-bottom: 20px; aspect-ratio: 16 / 9; background: var(--cream-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc h3 { font: 800 1.15rem/1.15 var(--display); font-stretch: 125%; text-transform: uppercase; margin: 8px 0 8px; }
.svc p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== Stats ===== */
.stats { padding: 56px 0 112px; }
.stats-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.stats-grid > .frame { aspect-ratio: 16 / 9; border-radius: 6px; }
.figures { margin: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; background: #fff9f0; }
.figures > div { padding: 28px 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.figures > div:nth-child(odd) { border-right: 1px solid var(--line); }
.figures > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.figures dt { font: 700 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--display); font-stretch: 125%; color: var(--ink); }
.figures dd { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

/* ===== Work: endless 3D card carousel ===== */
.work { position: relative; padding: 110px 0 100px; overflow: hidden; background: #221d1a; }
.work-bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(30px) brightness(.45); }
.work-head, .pc { position: relative; z-index: 1; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.work-head .h-xl { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.work-sub { margin: 0; max-width: 340px; color: rgba(255,255,255,.75); }

.pc-stage {
  position: relative; list-style: none; margin: 0; padding: 0;
  height: clamp(380px, 62svh, 500px); overflow: hidden;
  touch-action: pan-y; cursor: grab; outline: none;
}
.pc-stage.is-dragging { cursor: grabbing; }
.pc-stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); border-radius: 30px; }
.pc-card {
  position: absolute; left: 50%; top: 50%;
  width: min(78vw, 440px); height: calc(100% - 36px);
  border-radius: 26px; overflow: hidden; background: #1d1917;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 12px 30px -12px rgba(0,0,0,.5);
  transform: translate(-50%, -50%); will-change: transform, opacity, filter;
  user-select: none; -webkit-user-select: none;
}
.pc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
/* the photos carry their title at the top-left: anchor them left so it stays whole */
.pc-card img, .pc-card img.fit-upper, .pc-card img.fit-top { object-position: 0% 50%; }
.pc-card img.pos-center { object-position: 50% 50%; }
.pc-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,10,9,.94) 0%, rgba(14,10,9,.7) 34%, rgba(14,10,9,.15) 62%, rgba(14,10,9,0) 78%); }
.pc-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 18px; padding: 26px 24px 24px 26px; color: #fff; }
.pc-text { flex: 1; min-width: 0; }
.pc-cat { margin: 0 0 12px; font: 500 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.pc-cat span { display: inline-block; background: var(--red); color: #fff; padding: 4px 9px; border-radius: 999px; margin-right: 6px; letter-spacing: .14em; }
.pc-card h3 { font: 800 1.45rem/1.08 var(--display); font-stretch: 125%; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.pc-desc { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-link {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.75); color: #fff; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.pc-link svg, .pc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-link:hover, .pc-link:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.pc-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pc-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; padding: 0 var(--gutter); }
.pc-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.3);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.pc-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.pc-btn:focus-visible, .pc-bar:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pc-play .i-play { display: none; }
.pc-play.is-paused .i-play { display: block; }
.pc-play.is-paused .i-pause { display: none; }
.pc-play .i-play { fill: currentColor; stroke: none; }
.pc-bars { display: flex; align-items: center; gap: 2px; margin: 0 6px; }
.pc-bar { width: 32px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.pc-bar-track { position: relative; display: block; width: 26px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.pc-bar-fill { position: absolute; inset: 0; background: #fff; transform-origin: left center; transform: scaleX(0); }

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

/* Without JavaScript the cards become a simple swipeable row */
.no-js .pc-stage { display: flex; gap: 16px; overflow-x: auto; height: auto; padding: 0 var(--gutter) 10px; scroll-snap-type: x mandatory; }
.no-js .pc-card { position: relative; left: auto; top: auto; transform: none; flex: 0 0 min(78vw, 440px); height: 460px; scroll-snap-align: center; }
.no-js .pc-controls { display: none; }

/* ===== CTA ===== */
.cta { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #3a332d; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,245,232,.9) 0%, rgba(30,24,20,.55) 32%, rgba(30,24,20,.65) 100%); }
.cta-inner { position: relative; z-index: 1; padding: 120px 20px 60px; }
.cta .h-xl { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.outline { color: transparent; -webkit-text-stroke: 2px #fff; }
.cta p { max-width: 420px; margin: 22px auto 30px; color: rgba(255,255,255,.92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: #151313; color: #b9b2aa; border-top: 4px solid var(--red); padding: 80px 0 0; font-size: .92rem; --logo-accent: #c4233f; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid #2c2826; }
.footer-brand { max-width: 440px; }
.footer-brand .brand { color: #fff; margin-bottom: 22px; }
.footer-brand .brand-divider { background: var(--red); }
.footer-brand p { margin: 0; line-height: 1.7; }
.footer-cta { text-align: right; }
.footer-cta-title { font: 700 1.25rem var(--display); font-stretch: 125%; text-transform: uppercase; color: #fff; margin: 0 0 16px; }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 56px 0; }
.footer-cols h4 { font: 600 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer-cols a { display: block; width: fit-content; margin-bottom: 10px; color: #b9b2aa; transition: color .3s var(--ease); }
.footer-cols a:hover { color: #fff; }
.footer-cols p { margin: 0 0 10px; line-height: 1.7; }
.footer-hours { color: #8a827a; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 26px; border-top: 1px solid #2c2826; font-size: .82rem; color: #8a827a; }
.footer-bottom p { margin: 0; }
.to-top { color: #b9b2aa; transition: color .3s var(--ease); }
.to-top:hover { color: #fff; }

/* ===== Opening intro ===== */
.intro-screen { display: none; }
.intro-on .intro-screen {
  display: block; position: fixed; inset: 0; z-index: 200; background: #0f0d0c; cursor: pointer;
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro-screen.leaving { opacity: 0; visibility: hidden; }
.intro-stage { position: absolute; inset: 0; }
.intro-name {
  position: absolute; left: 0; right: 0; bottom: 18vh; margin: 0; text-align: center;
  font: 400 .78rem var(--mono); letter-spacing: .38em; text-transform: uppercase; color: rgba(255,255,255,.7);
  opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.intro-screen.named .intro-name { opacity: 1; transform: none; }
.intro-skip {
  position: absolute; right: 28px; bottom: 26px; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  color: rgba(255,255,255,.7); font: 500 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 9px 16px; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.intro-skip:hover { color: #fff; border-color: rgba(255,255,255,.7); }
/* hold the page still (and its entrance animations) behind the intro */
.intro-on body { overflow: hidden; }
.intro-on .intro, .intro-on .hero-bg { animation-play-state: paused; }

/* ===== Quote dialog ===== */
.quote { border: 0; padding: 0; border-radius: 6px; width: min(640px, calc(100% - 32px)); background: var(--cream); color: var(--ink); }
.quote::backdrop { background: rgba(15, 10, 6, .6); }
.quote-form { display: grid; gap: 16px; padding: 32px; }
.quote-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.quote-head h2 { font: 800 1.4rem var(--display); font-stretch: 125%; text-transform: uppercase; }
.quote-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-form label { display: grid; gap: 4px; }
.quote-form label > span { font: 400 .66rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.quote-form input, .quote-form select, .quote-form textarea { font: 400 .98rem var(--body); color: var(--ink); width: 100%; padding: 9px 0; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; border-radius: 0; }
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-bottom-color: var(--red); }
.quote-form .invalid { border-bottom-color: #b3261e; }
.quote-form .btn { justify-self: start; margin-top: 6px; }
.form-note { margin: 0; font-size: .88rem; min-height: 1.2em; }
.form-note.ok { color: #1e6e3f; }
.form-note.err { color: #b3261e; }

/* ===== Motion ===== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.intro { animation: introUp 1.3s var(--ease) .25s both; }
.intro-2 { animation-delay: .5s; }
.intro-3 { animation-delay: .75s; }
@keyframes introUp { from { opacity: 0; transform: translate(var(--tx, 0), 30px); } to { opacity: 1; transform: translate(var(--tx, 0), 0); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-bg, .intro { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; padding: 0 var(--gutter); }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); color: var(--ink); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .main-nav .nav-cta { display: inline-flex; margin-top: 18px; }
  .site-header.menu-open { background: var(--cream); color: var(--ink); --logo-accent: #800020; }
  .site-header.menu-open .brand-divider { background: var(--red); }

  .svc-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }


  .stats-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sec-intro { justify-self: start; }
  .about { padding: 88px 0 48px; }
  .scope { padding: 88px 0 48px; }
  .stats { padding: 48px 0 88px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-cta { text-align: left; }
}

/* ===== Phone ===== */
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .header-inner { height: 66px; }
  .brand-mark { width: 104px; height: 21px; }
  .brand-divider { height: 26px; }
  .brand-name { font-size: .48rem; letter-spacing: .12em; }
  .hero-title { font-size: clamp(1.7rem, 9vw, 2.6rem); }
  video.hero-bg { object-position: 72% center; }
  .hero-actions { margin-top: 26px; }
  .hbtn { gap: 12px; padding: 5px 5px 5px 18px; font-size: .88rem; }
  .hbtn-icon, .hbtn::before { width: 36px; height: 36px; right: 5px; }
  .hbtn-icon { right: auto; }
  .h-xl, .work-head .h-xl, .cta .h-xl { font-size: clamp(1.45rem, 7.2vw, 2.1rem); }
    .about-photos { grid-template-columns: 1fr; }
  .about-photos .frame + .frame { aspect-ratio: 1; }
  .work { padding: 72px 0; }
  .about { padding: 72px 0 40px; }
  .scope { padding: 72px 0 40px; }
  .stats { padding: 40px 0 72px; }
  .sec-head { padding-bottom: 24px; margin-bottom: 32px; }
  .figures > div { padding: 22px 18px; }
  .hero-actions .hbtn-glass { display: none; }
  .hero-eyebrow { font-size: .62rem; letter-spacing: .2em; margin-bottom: 16px; }
  .hero-lead { font-size: .95rem; margin-top: 18px; }
  .svc h3 { font-size: .95rem; }
  .svc p { font-size: .84rem; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .cta { min-height: 640px; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 24px 18px; }
  .site-footer { padding-top: 56px; }
  .footer-top { padding-bottom: 40px; }
  .footer-cols { gap: 32px 20px; padding: 40px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pc-body { padding: 20px 18px 18px 20px; gap: 12px; }
  .pc-card h3 { font-size: 1.1rem; }
  .pc-body { flex-direction: column; align-items: flex-start; }
  .pc-link { width: 44px; height: 44px; }
  .pc-bar { width: 20px; }
  .pc-bar-track { width: 14px; }
  .pc-bars { gap: 0; margin: 0 2px; }
  .pc-controls { gap: 4px; padding: 0 12px; }
  .pc-btn { width: 44px; height: 44px; }
  .intro-name { font-size: .62rem; letter-spacing: .26em; bottom: 22vh; padding: 0 16px; }
  .intro-skip { right: 16px; bottom: 18px; }
}
