/* Jaquez Construction v4 — plaster, graphite, oxblood, painter's tape.
   Archivo on its width axis: condensed for display, slightly expanded for meta. */

:root {
  --plaster: #eeebe5;
  --plaster-2: #e2ded6;
  --graphite: #1b1a18;
  --graphite-2: #282623;
  --chalk: #f4f1ec;
  --dust: #5c574f;
  --fog: #aaa49a;
  --red: #9e1219;
  --red-hi: #b5161e;
  --tape: #5e9deb;
  --tape-ink: #0f2a47;

  --f: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: 62%;
  --wide: 125%;

  --g: clamp(18px, 4vw, 48px);
  --sec: clamp(72px, 10vw, 140px);
  --head-h: 80px;
  --dock-h: 0px;
  --max: 1280px;

  --t-small: 14px;
  --t-body: 17px;
  --t-lead: clamp(22px, 2.4vw, 32px);
  --t-h2: clamp(40px, 6.2vw, 88px);
  --t-h1: clamp(52px, 9.2vw, 120px);
  /* Hero headline: longest line ("Building the future.") is 6.07em wide in Archivo 62%.
     This keeps each sentence on one line from a 320px phone (43px) up to 92px on desktop. */
  --t-hero: clamp(2.5rem, .5rem + 11vw, 5.75rem);

  --out: cubic-bezier(.23, 1, .32, 1);
}

@media (max-width: 899px) { :root { --dock-h: 72px; } }
@media (min-width: 900px) { :root { --t-body: 18px; --head-h: 92px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--plaster); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  background: var(--plaster);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 700; }
ul, ol { list-style: none; }
::selection { background: var(--tape); color: var(--tape-ink); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--graphite); color: var(--chalk); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* type */
.h1, .display {
  font-stretch: var(--narrow); font-weight: 820; letter-spacing: -.018em;
  line-height: .88; text-wrap: balance;
}
.h1 { font-size: var(--t-h1); }
.h2 {
  font-stretch: var(--narrow); font-weight: 820; font-size: var(--t-h2);
  line-height: .9; letter-spacing: -.015em; text-wrap: balance;
}
.meta {
  font-stretch: var(--wide); font-weight: 600; font-size: var(--t-small);
  letter-spacing: .01em; line-height: 1.4;
}
.lead { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -.01em; text-wrap: pretty; }

.link { position: relative; display: inline-block; font-weight: 600; padding-bottom: 4px; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--tape); transform-origin: right; transition: transform .4s var(--out);
}
.link:hover::after { transform: scaleX(0); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; font-weight: 600; font-size: 16px; line-height: 1;
  border-radius: 0; border: 2px solid transparent; white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn-chalk { background: transparent; color: var(--chalk); border-color: rgba(244,241,236,.55); }
.btn-chalk:hover { background: var(--chalk); color: var(--graphite); border-color: var(--chalk); }
.btn-ink { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-ink:hover { background: var(--graphite); color: var(--chalk); }
.arr { font-weight: 500; }

/* header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; padding: 0 var(--g);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }
.brand .logo-light { display: none; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 28px; height: 100%; }
.links { display: none; gap: 22px; font-weight: 600; font-size: 15px; }
.links a { position: relative; padding: 6px 0; }
.links a[aria-current="page"]::after,
.links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tape);
}
.tel { display: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.top .btn { display: none; min-height: 46px; padding: 0 16px; }
.burger { position: relative; width: 48px; height: 48px; margin-right: -10px; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor;
  transition: transform .35s var(--out), top .35s var(--out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 28px; }
body.m .burger span:first-child { top: 23px; transform: rotate(45deg); }
body.m .burger span:last-child { top: 23px; transform: rotate(-45deg); }

.top.is-dark { color: var(--chalk); background: linear-gradient(to bottom, rgba(27,26,24,.78), rgba(27,26,24,0)); }
.top.is-dark.is-solid { background: var(--graphite); }
.top.is-dark .logo-dark { display: none; }
.top.is-dark .logo-light { display: block; }
.top.is-light { color: var(--graphite); background: var(--plaster); border-bottom: 1px solid var(--plaster-2); }
.top.is-light .logo-dark { display: block; }
.top.is-light .logo-light { display: none; }

@media (min-width: 900px) {
  .brand img { height: 68px; }
  .links, .tel { display: flex; }
  .top .btn { display: inline-flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; display: none;
  flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + 16px) var(--g) 32px;
  background: var(--graphite); color: var(--chalk);
}
body.m .menu { display: flex; }
.menu a {
  font-stretch: var(--narrow); font-weight: 820;
  font-size: clamp(40px, 10vw, 64px); line-height: 1.05; letter-spacing: -.015em;
}
.menu a[aria-current="page"] { color: var(--tape); }
.menu-foot { margin-top: 28px; color: var(--fog); }

/* hero headline — shared by both versions */
.hero .h1, .pin .intro .h1 { font-size: var(--t-hero); line-height: .9; }
.h1 .ln { display: block; }
@media (min-width: 800px) {
  /* desktop: exactly two lines, one sentence each */
  .hero .h1 .ln, .pin .intro .h1 .ln { white-space: nowrap; }
}
.hero-sub { margin-top: 20px; max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: rgba(244,241,236,.9); text-wrap: pretty; }
.cta2 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero — static. Landscape: the real kitchen, full bleed.
   Phone / portrait: the same kitchen as a framed 4:5 print, copy set below it. */
.hero {
  position: relative; min-height: 100svh; color: var(--chalk);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--head-h) + 32px) var(--g) calc(var(--dock-h) + clamp(36px, 6vw, 72px));
  background: var(--graphite);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,26,24,.88) 0%, rgba(27,26,24,.42) 52%, rgba(27,26,24,.32) 100%);
}
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: 46rem; }

@media (max-width: 699px), (max-aspect-ratio: 4/5) {
  .hero {
    min-height: 0; justify-content: flex-start;
    padding: calc(var(--head-h) + 4px) var(--g) clamp(40px, 8vw, 64px);
  }
  .hero-media { position: relative; inset: auto; overflow: visible; }
  /* height follows the <source> width/height: 4:5 crop on phones, 1200×734 on portrait tablets */
  .hero-media img { height: auto; object-fit: fill; }
  /* a strip of painter's tape holds the print — no scrim, the photo stays clean */
  .hero-media::after {
    inset: -9px auto auto 22px; width: 76px; height: 20px;
    background: var(--tape); opacity: .9; transform: rotate(-3deg);
  }
  .hero-copy { margin-top: clamp(22px, 5vw, 36px); }
  .hero-sub { margin-top: 14px; }
  .cta2 { margin-top: 22px; }
}

/* hero — short scrub (~320vh total: 100vh pin + ~220vh scrub).
   Longer than the first 200vh cut, still well under the original 520vh. */
.scrub {
  position: relative;
  height: 320vh;
  background: var(--graphite);
}
.pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--chalk);
}
.stage-media, #room { position: absolute; inset: 0; width: 100%; height: 100%; }
/* first frame as a poster before the canvas draws (and without JS); orientation matches build.js */
.stage-media { z-index: 0; background: var(--graphite) url("../frames-desktop/f000.webp") center 45%/cover no-repeat; }
@media (orientation: portrait) { .stage-media { background-image: url("../frames/f000.webp"); } }
#room { display: block; max-width: none; max-height: none; opacity: 0; }
#room.is-ready { opacity: 1; }
.scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(27,26,24,.74) 0%, rgba(27,26,24,.2) 50%, rgba(27,26,24,.4) 100%);
}
.pin .intro {
  position: absolute; z-index: 2; left: var(--g); right: var(--g);
  bottom: calc(var(--dock-h) + clamp(64px, 11vh, 120px));
  max-width: 46rem;
  transition: opacity .25s ease, transform .25s ease;
}
.pin .intro.is-away { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.pin .hint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; color: rgba(244,241,236,.85);
}
.pin .hint i {
  display: block; width: 2px; height: 20px; background: var(--chalk);
  transform-origin: top; animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.skip-build {
  position: absolute; z-index: 3; right: var(--g); bottom: calc(16px + var(--dock-h));
  font-weight: 600; padding: 10px 0; color: var(--chalk);
}
.skip-build::after {
  content: ""; display: block; height: 4px; margin-top: 4px; background: var(--tape);
}
.stages-live {
  position: absolute; z-index: 2; left: var(--g); right: var(--g);
  top: calc(var(--head-h) + 10px);
  display: grid; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  max-width: 720px;
}
.scrub.going .stages-live { opacity: 1; }
.stages-track {
  display: block; height: 2px; background: rgba(244,241,236,.28);
  position: relative;
}
.stages-fill {
  display: block; width: 100%; height: 100%;
  background: var(--chalk);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.stages-mark {
  position: absolute; top: -3px; left: calc(var(--at) * 100%);
  width: 2px; height: 8px; background: rgba(244,241,236,.55);
  transform: translateX(-50%);
}
.stages-mark:first-of-type { transform: none; }
.stages-live ol {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0; gap: 12px;
}
.stages-live li {
  color: rgba(244,241,236,.55);
  font-stretch: var(--wide); font-weight: 600; font-size: 12px;
  white-space: nowrap; letter-spacing: .01em;
}
@media (min-width: 900px) { .stages-live li { font-size: 14px; } }
.stages-live li.on { color: var(--chalk); }
.stages-live li.on::after {
  content: ""; display: block; width: 100%; height: 2px; margin-top: 2px; background: var(--red);
}
/* sits clear of "Skip to services" (bottom right) and the phone dock */
.stage-copy {
  position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: calc(var(--dock-h) + 76px); max-width: 36ch;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--out);
}
.stage-copy.on { opacity: 1; transform: none; }
.stage-copy h2 {
  font-stretch: var(--narrow); font-weight: 820;
  font-size: clamp(56px, 10vw, 96px); line-height: .85; letter-spacing: -.02em;
}
.stage-copy p { margin-top: 10px; color: rgba(244,241,236,.9); }

/* reduced motion (and no JS): one still hero, then the four stages as a static recap */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin .hint i { animation: none; }
  .scrub { height: auto; }
  .pin { position: relative; height: 100svh; }
  .stages-live, .stage-copy, .pin .hint { display: none; }
  .pin .intro.is-away { opacity: 1; transform: none; pointer-events: auto; }
}
html:not(.js) .scrub { height: auto; }
html:not(.js) .pin { position: relative; height: 100svh; }
html:not(.js) :is(.stages-live, .stage-copy, .pin .hint, .skip-build) { display: none; }
.rm-recap { display: none; }
html:not(.js) .rm-recap { display: block; padding-top: var(--sec); }
@media (prefers-reduced-motion: reduce) { .rm-recap { display: block; padding-top: var(--sec); } }

/* statement */
.statement { padding: var(--sec) var(--g); }
.statement .big { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.16; letter-spacing: -.018em; max-width: 24ch; text-wrap: pretty; }
.figs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--plaster-2); padding-top: 28px;
}
.figs dt { color: var(--dust); font-stretch: var(--wide); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.figs dd {
  font-stretch: var(--narrow); font-weight: 850;
  font-size: clamp(56px, 10vw, 140px); line-height: .82; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.permit {
  display: grid; gap: 28px; margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 56px); background: var(--graphite); color: var(--chalk);
}
.permit h2 { color: var(--chalk); }
.permit .lic { color: var(--fog); }
.permit .lic b {
  display: block; margin-top: 6px; color: var(--chalk);
  font-stretch: var(--narrow); font-weight: 800;
  font-size: clamp(36px, 5.5vw, 72px); line-height: .9; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.permit ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.permit li { position: relative; padding-left: 18px; }
.permit li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--tape); }
.permit a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .permit { grid-template-columns: 1.2fr .8fr; align-items: end; }
}

/* trades / services preview */
.trades { padding: 0 var(--g) var(--sec); }
.trade-list { margin-top: 28px; border-top: 1px solid var(--plaster-2); }
.trade-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--plaster-2);
  font-stretch: var(--narrow); font-weight: 760;
  font-size: clamp(28px, 4.4vw, 56px); line-height: 1; letter-spacing: -.01em;
}
.trade-list a .arr { margin-left: auto; color: var(--dust); flex: none; transition: transform .4s var(--out); }
.trade-list a:hover .arr { transform: translate(4px, -4px); color: var(--red); }
.trades-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; color: var(--dust); }

/* stages (static) */
.stages-sec { padding: 0 0 var(--sec); }
.stages-sec .sec-head { padding: 0 var(--g) 28px; }
.stages-sec .sec-head p { margin-top: 12px; color: var(--dust); }
.stage-row {
  display: grid; gap: 0;
  border-top: 1px solid var(--plaster-2);
}
.stage-row figure { overflow: hidden; background: var(--graphite-2); }
.stage-row picture { display: block; height: 100%; }
/* phone: the 1350px portrait still, cropped to 4:5 around the island */
.stage-row img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; aspect-ratio: 4/5; }
.stage-row .stage-txt { padding: 28px var(--g) 36px; }
.stage-row .num {
  font-stretch: var(--wide); font-weight: 600; font-size: 13px; letter-spacing: .08em;
  color: var(--red);
}
.stage-row h3 {
  font-stretch: var(--narrow); font-weight: 820;
  font-size: clamp(40px, 6vw, 72px); line-height: .9; letter-spacing: -.015em;
  margin: 8px 0 12px;
}
.stage-row p { max-width: 32ch; color: var(--dust); }
@media (min-width: 800px) {
  .stage-row { grid-template-columns: 1.2fr .8fr; align-items: stretch; min-height: 380px; }
  .stage-row:nth-of-type(even) figure { order: 2; }
  .stage-row img { aspect-ratio: 16/9; object-position: center; }
  .stage-row .stage-txt { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
}

/* before / after */
.ba-sec {
  padding: var(--sec) var(--g);
  display: grid; gap: 32px;
}
@media (min-width: 900px) {
  .ba-sec { grid-template-columns: .7fr 1.1fr; align-items: center; gap: 56px; }
}
.ba-sec p { margin-top: 12px; max-width: 32ch; color: var(--dust); }
.ba {
  position: relative; overflow: hidden; background: var(--graphite-2);
  aspect-ratio: 812/1096; max-height: 80vh; cursor: ew-resize; touch-action: none;
  --p: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.ba img.after { clip-path: inset(0 0 0 var(--p)); }
.ba .tag {
  position: absolute; top: 12px; z-index: 2;
  background: var(--graphite); color: var(--chalk);
  font-stretch: var(--wide); font-weight: 600; font-size: 14px;
  padding: 5px 9px 6px;
}
.ba .tag.b { left: 12px; }
.ba .tag.a { right: 12px; }
.ba .h {
  position: absolute; top: 0; bottom: 0; left: var(--p); z-index: 2;
  width: 2px; background: var(--chalk); transform: translateX(-1px); pointer-events: none;
}
.ba .knob {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px;
  margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--chalk); color: var(--graphite);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.ba-sec figcaption { margin-top: 10px; color: var(--dust); }

/* work teaser */
.work { padding: 0 0 var(--sec); }
.work-split {
  display: grid; gap: 28px; padding: 0 var(--g) 36px;
}
@media (min-width: 800px) {
  .work-split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}
.work-copy p { margin: 12px 0 24px; color: var(--dust); }
.work-img img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--g) 8px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); -webkit-overflow-scrolling: touch;
}
.strip figure { flex: 0 0 min(70vw, 300px); scroll-snap-align: start; }
.strip a { display: block; color: inherit; }
.strip img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.strip figcaption { padding-top: 8px; font-weight: 600; font-size: 15px; }
.strip figcaption span { display: block; color: var(--dust); font-stretch: var(--wide); font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.pro { display: flex; align-items: center; gap: 8px; padding: 16px var(--g) 0; color: var(--dust); font-size: 14px; }
.pro::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }

/* inner pages */
.pagehead {
  padding: calc(var(--head-h) + 48px) var(--g) 36px;
}
.pagehead .kicker { color: var(--dust); margin-bottom: 12px; }
.page { padding: 0 var(--g) var(--sec); }
.page .lead { max-width: 42ch; }
.group { margin-top: clamp(48px, 7vw, 88px); }
.group h2 { margin-bottom: 8px; }
.group .sub { color: var(--dust); margin-bottom: 22px; }
.svc { border-top: 1px solid var(--plaster-2); }
.svc details { border-bottom: 1px solid var(--plaster-2); }
.svc summary {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-stretch: var(--narrow); font-weight: 760;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.01em;
}
.svc summary::-webkit-details-marker { display: none; }
.svc .pm {
  position: relative; flex: none; margin-left: auto; width: 22px; height: 22px;
}
.svc .pm::before, .svc .pm::after {
  content: ""; position: absolute; background: var(--red);
}
.svc .pm::before { left: 0; right: 0; top: 10px; height: 2.5px; }
.svc .pm::after { top: 0; bottom: 0; left: 10px; width: 2.5px; transition: transform .3s var(--out); }
.svc details[open] .pm::after { transform: scaleY(0); }
.svc details p { padding: 0 0 22px; max-width: 52ch; color: var(--dust); }

.people { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }
.people dt { color: var(--dust); }
.people dd b {
  display: block; font-stretch: var(--narrow); font-weight: 820;
  font-size: clamp(36px, 5vw, 64px); line-height: .95; letter-spacing: -.012em;
}
.areas {
  font-stretch: var(--narrow); font-weight: 760;
  font-size: clamp(28px, 4vw, 52px); line-height: 1.05; max-width: 18ch;
  margin-top: 12px;
}
.creds { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.creds li { position: relative; padding-left: 18px; }
.creds li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--tape); }

/* quote form */
.form { margin-top: 36px; max-width: 640px; }
.form fieldset { border: 0; margin: 0 0 28px; }
.form legend {
  font-stretch: var(--narrow); font-weight: 760;
  font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; letter-spacing: -.01em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--plaster-2); font-weight: 600; cursor: pointer;
}
.chips input { appearance: none; width: 0; height: 0; position: absolute; }
.chips input:checked + span,
.chips label:has(input:checked) { background: var(--graphite); color: var(--chalk); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field span, .field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select {
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--plaster-2);
  min-height: 50px; padding: 10px 12px; width: 100%; border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.form .note { margin-top: 16px; color: var(--dust); }
.form .form-error { margin-top: 16px; padding: 14px 16px; background: #fbe9e7; color: #8a1c12; font-weight: 600; }
.form .form-error[hidden] { display: none; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.thanks {
  display: none; margin-top: 28px; padding: 28px; background: var(--plaster-2);
}
.form.is-sent .fields, .form.is-sent .btn { display: none; }
.form.is-sent .thanks { display: block; }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.filters button {
  min-height: 44px; padding: 0 18px; background: var(--plaster-2); font-weight: 600;
}
.filters button[aria-pressed="true"] { background: var(--graphite); color: var(--chalk); }
.masonry {
  columns: 1; column-gap: 12px;
}
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin: 0 0 12px; cursor: pointer; }
.masonry figure.hide { display: none; }
.masonry img { width: 100%; height: auto; background: var(--plaster-2); }
.masonry figcaption { padding: 8px 0 4px; font-weight: 600; font-size: 15px; }
.masonry figcaption span { display: block; color: var(--dust); font-size: 13px; font-stretch: var(--wide); }

.lb { margin: auto; padding: 0; border: 0; background: rgba(14,12,10,.97); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--chalk); }
.lb::backdrop { background: rgba(14,12,10,.97); }
.lb-inner { display: grid; place-items: center; height: 100%; padding: 64px var(--g) 88px; }
.lb img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }
.lb-cap { margin-top: 12px; text-align: center; }
.lb-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 8px; padding: 16px;
}
.lb-bar button { min-width: 48px; min-height: 48px; background: var(--graphite-2); color: var(--chalk); font-size: 20px; }

/* reviews */
.score { padding: calc(var(--head-h) + 48px) var(--g) 24px; }
.score b {
  display: block; font-stretch: var(--narrow); font-weight: 850;
  font-size: clamp(120px, 24vw, 280px); line-height: .78;
}
.reviews-list { padding: 0 var(--g) var(--sec); display: grid; gap: 16px; }
.reviews-list blockquote {
  padding: 24px; background: var(--plaster-2);
  min-height: 120px; color: var(--dust);
}

/* footer */
.end { background: var(--graphite); color: var(--chalk); padding: var(--sec) var(--g) 32px; }
.endcta {
  display: block; font-stretch: var(--narrow); font-weight: 820;
  font-size: clamp(56px, 10vw, 140px); line-height: .86; letter-spacing: -.02em;
  margin-bottom: clamp(48px, 8vw, 88px);
}
.endcta .arr { color: var(--red); }
.endcta:hover { color: var(--tape); }
.endgrid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* long emails break instead of widening the page on a 390px phone */
.endgrid dd { overflow-wrap: anywhere; }
@media (min-width: 900px) { .endgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; } }
.endgrid dt { color: var(--fog); font-stretch: var(--wide); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.endgrid a:hover { text-decoration: underline; }
.endgrid .soc { display: flex; flex-direction: column; gap: 4px; }
.endlogo { width: min(280px, 60vw); height: auto; margin: 56px 0 28px; }
.legal { display: flex; flex-direction: column; gap: 8px; color: var(--fog); font-size: 13px; }
@media (min-width: 800px) { .legal { flex-direction: row; justify-content: space-between; gap: 16px; } }

.dock {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: var(--dock-h); background: var(--graphite); color: var(--chalk);
  border-top: 1px solid var(--graphite-2);
  grid-template-columns: 1fr auto 1.2fr; align-items: stretch;
}
@media (max-width: 899px) { .dock { display: grid; } }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; padding: 0 12px; white-space: nowrap; }
.dock .q { background: var(--red); }

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

/* art-directed finish still: portrait 1350px on phones, 2400px landscape on desktop */
.rm-fallback {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%; z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .rm-fallback { display: block !important; }
  #room { display: none !important; }
}
html:not(.js) .rm-fallback { display: block; }

/* chooser */
.chooser { min-height: 100svh; padding: 72px var(--g) 80px; max-width: 980px; }
.chooser h1 { margin: 12px 0 16px; }
.chooser .lead { margin-bottom: 48px; }
.choose-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .choose-grid { grid-template-columns: 1fr 1fr; } }
.choose-card {
  display: block; padding: 28px; background: var(--plaster-2);
  min-height: 220px;
}
.choose-card h2 { font-size: clamp(32px, 4vw, 48px); margin: 8px 0 12px; }
.choose-card p { color: var(--dust); }
.choose-card:hover { background: var(--graphite); color: var(--chalk); }
.choose-card:hover p { color: var(--fog); }


br.m { display: none; }
@media (max-width: 699px) { br.m { display: inline; } }

.trade-list a svg.arr, svg.arr {
  width: 16px; height: 16px; overflow: hidden; flex: none;
}
.work { overflow: hidden; }
.strip-wrap { width: 100%; max-width: 100%; overflow: hidden; }
.strip { max-width: 100%; }


/* Recent Projects tabs (scrollable chips on mobile) */
.filters[role="tablist"] {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin: 8px 0 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 0 10px;
}
.filters[role="tablist"]::-webkit-scrollbar { height: 4px; }
.filters[role="tablist"] [role="tab"] {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 18px; background: var(--plaster-2); font-weight: 600;
  border: 0; color: inherit; cursor: pointer;
}
.filters[role="tablist"] [role="tab"][aria-selected="true"] {
  background: var(--graphite); color: var(--chalk);
}
@media (min-width: 800px) {
  .filters[role="tablist"] { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
}
.projects-empty { display: grid; place-items: center; min-height: 40vh; padding: 48px var(--g); text-align: center; }
.projects-empty[hidden], [data-projects] [role="tabpanel"][hidden] { display: none; }
.coming-soon {
  font-stretch: var(--narrow); font-weight: 760;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: -.015em;
  max-width: 16ch;
}

/* homepage category chips */
.work-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  overflow: visible;
  margin: 0 0 24px; padding-bottom: 4px;
  scrollbar-width: thin;
}
@media (min-width: 800px) { .work-chips { flex-wrap: wrap; overflow: visible; } }
.work-chips a {
  flex: none; display: inline-flex; align-items: center;
  max-width: 100%; white-space: normal;
  min-height: 44px; padding: 0 16px;
  background: var(--plaster-2); font-weight: 600;
}
.work-chips a:hover, .work-chips a:focus-visible { background: var(--graphite); color: var(--chalk); }

/* homepage reviews rotator */
.reviews-rotator { padding: 0 0 var(--sec); }
.rev-head { padding: 0 var(--g) 24px; }
.rev-head p { margin-top: 10px; color: var(--dust); }
.rev-stage { padding: 0 var(--g); min-height: 12rem; touch-action: pan-y; }
.rev-card {
  margin: 0; padding: clamp(24px, 4vw, 40px);
  background: var(--plaster-2); max-width: 44rem;
}
.rev-stars { display: block; letter-spacing: .08em; color: var(--red); margin-bottom: 12px; font-size: 16px; }
.rev-card p {
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -.01em;
  text-wrap: pretty;
}
.rev-card cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; color: var(--dust); }
.rev-empty { max-width: 36ch; color: var(--dust); }
.rev-empty .btn { margin: 16px 16px 0 0; }
.rev-nav { display: flex; gap: 8px; padding: 16px var(--g) 0; }
.rev-nav button {
  min-width: 48px; min-height: 48px; background: var(--plaster-2); font-weight: 600;
}
.rev-nav button:hover { background: var(--graphite); color: var(--chalk); }
/* Auto-rotate: reduced-motion keeps fading, never disables the rotator */
@media (prefers-reduced-motion: reduce) {
  .rev-card.is-fade,
  .rev-card.is-in-next,
  .rev-card.is-in-prev {
    animation: rev-fade .45s ease both !important;
  }
}

.dock a.rp { font-size: 14px; padding: 0 8px; line-height: 1.15; text-align: center; white-space: normal; }

.rev-nav[hidden],
.reviews-rotator:has(.rev-empty) .rev-nav { display: none; }

/* mobile: featured photo sits between the lede and the category chips */
@media (max-width: 799px) {
  .work-split { display: flex; flex-direction: column; }
  .work-img { order: 2; }
  .work-actions { order: 3; }
  .work-copy { display: contents; }
  .work-copy .h2 { order: 0; }
  .work-copy p { order: 1; }
}

/* Recent Projects nav link — same treatment as the other nav links */
.links { flex-wrap: nowrap; align-items: center; flex: none; }

@media (min-width: 900px) {
  .top-r { gap: 16px; }
  .links { gap: 16px; }
}
@media (min-width: 1200px) {
  .top-r { gap: 22px; }
  .links { gap: 18px; }
}

/* Review cards — plaster / graphite / tape */
.rev-card {
  margin: 0; padding: clamp(24px, 4vw, 40px);
  background: var(--plaster-2); max-width: 44rem;
  border-left: 4px solid var(--red);
}
.rev-stars { display: block; letter-spacing: .08em; color: var(--red); margin-bottom: 12px; font-size: 16px; }
.rev-card p {
  font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; letter-spacing: -.01em;
  text-wrap: pretty; white-space: pre-line;
}
.rev-attribution { font-size: 14px; color: var(--dust); }
.rev-who-text cite a { color: inherit; text-decoration: none; }
.rev-who-text cite a:hover { text-decoration: underline; }
.rev-card--teaser p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  overflow: hidden;
}
.rev-meta { margin-top: 16px; }
.rev-card cite { font-style: normal; font-weight: 700; color: var(--graphite); }
.rev-who {
  display: flex; align-items: center; gap: 12px;
}
.rev-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex: none;
  background: var(--plaster);
}
.rev-avatar--initial {
  display: grid; place-items: center;
  background: var(--red);
  color: var(--plaster);
  font-weight: 700; font-size: 20px; line-height: 1;
  letter-spacing: 0;
}
.rev-avatar--initial[hidden] { display: none; }
.rev-who-text {
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  align-items: baseline;
  min-width: 0;
}
.rev-who-text cite {
  display: block; margin-top: 0;
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  color: var(--graphite);
}
.rev-src {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tape-ink);
}
.rev-date { font-size: 14px; color: var(--dust); }
.rev-all { margin-top: 12px; }
.reviews-grid { display: grid; gap: 20px; margin: 8px 0 32px; }
@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* reviews rotator transitions, dots, progress */
.rev-stage { position: relative; overflow: hidden; }
.rev-card.is-in-next { animation: rev-slide-next .45s ease both; }
.rev-card.is-in-prev { animation: rev-slide-prev .45s ease both; }
.rev-card.is-fade { animation: rev-fade .45s ease both; }
@keyframes rev-slide-next {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes rev-slide-prev {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}
@keyframes rev-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* reviews rotator ruler — same weights as the hero .stages-track / .stages-mark */
.rev-ruler {
  margin: 14px var(--g) 0;
  max-width: 44rem;
}
.rev-ruler-track {
  display: block; height: 2px;
  background: rgba(27, 26, 24, .22);
  position: relative;
}
.rev-ruler-fill {
  display: block; width: 100%; height: 100%;
  background: var(--graphite);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.rev-ruler-mark {
  position: absolute; top: -3px;
  left: calc(var(--at) * 100%);
  width: 2px; height: 8px;
  background: rgba(27, 26, 24, .45);
  transform: translateX(-50%);
}
.rev-ruler-mark:first-of-type { transform: none; }
.rev-ruler-mark.is-on { background: var(--red); }
.rev-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 14px var(--g) 0;
  max-width: 44rem;
  flex-wrap: nowrap;
}
.rev-count {
  margin-right: auto;
  font-stretch: var(--wide); font-weight: 600;
  font-size: 13px; letter-spacing: .08em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.rev-nav button {
  min-width: 44px; min-height: 44px;
  background: transparent;
  font-weight: 600; font-size: 18px; line-height: 1;
  color: var(--graphite);
}
.rev-nav button:hover, .rev-nav button:focus-visible {
  background: var(--graphite); color: var(--chalk);
}
.rev-more {
  display: inline-block; margin-top: 10px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.rev-dots, .rev-progress { display: none; }

/* photo strip auto-scroll */
.strip.is-auto {
  scroll-snap-type: none;
  scrollbar-width: none;
}
.strip.is-auto::-webkit-scrollbar { display: none; }
.strip.is-interacting { scroll-snap-type: x mandatory; }
@media (prefers-reduced-motion: reduce) {
  .strip.is-auto { scroll-snap-type: x mandatory; }
}
