/* First Tier Painting: the fan deck system */
:root {
  /* Blue strip, light to dark. Names come from Worcester places. */
  --frost: #EAF0F8;     /* FT-050 Frost */
  --mist: #C9D7EC;      /* FT-150 Harbor Mist */
  --shore: #8FAAD6;     /* FT-300 Shore */
  --tier: #3363AC;      /* FT-500 Tier Blue (logo) */
  --quinsig: #254D8C;   /* FT-650 Quinsig */
  --elm: #1A3360;       /* FT-800 Elm Park */
  --ink: #121E30;       /* FT-900 Worcester Navy (logo) */

  --paper: #F5F7FB;
  --white: #FFFFFF;
  --muted: #47546B;
  --line: #D3DCEA;
  --error: #B3261E;
  --tier-hover: #2A5698;

  --f: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --f-label: "Lexend Zetta", "Lexend", ui-sans-serif, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header: 76px;

  --shadow: 0 22px 44px -22px rgba(18, 30, 48, .38), 0 2px 6px rgba(18, 30, 48, .07);
  --shadow-lift: 0 34px 60px -26px rgba(18, 30, 48, .45), 0 4px 10px rgba(18, 30, 48, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Roller texture: fine paint grain. Navy specks on light walls, white specks on dark walls. */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .12 0 0 0 0 .19 .2 0 0 0 -.075'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .16 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Long horizontal roller streaks, very faint */
  --streaks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .09' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .12 0 0 0 0 .19 .09 0 0 0 -.035'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--tier);
  scrollbar-color: var(--shore) var(--frost);
}
/* Paper grain over the whole page. Sits above content but ignores pointer events. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--tier); color: var(--white); }
:focus-visible { outline: 2px solid var(--tier); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--frost); }
::-webkit-scrollbar-thumb { background: var(--shore); border: 3px solid var(--frost); }
::-webkit-scrollbar-thumb:hover { background: var(--tier); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

code {
  font-family: var(--f-label);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Type */
.display {
  font-size: clamp(2.5rem, 1.2rem + 3.3vw, 4.4rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.display .tier { color: var(--tier); }
.h2 {
  font-size: clamp(2rem, 1.15rem + 2.7vw, 3.45rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
  max-width: 17ch;
}
p { text-wrap: pretty; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .25s, color .25s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn .ic { transition: transform .4s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
/* Wet coat: a sheen sweeps the surface on hover and focus */
.btn::after, .service-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, rgba(255, 255, 255, .06) 56%, transparent 70%);
  transform: translateX(-130%);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(130%); transition: transform .9s var(--ease); }
.btn-tier { background: var(--tier); color: var(--white); box-shadow: 0 10px 22px -12px rgba(51, 99, 172, .8); }
.btn-tier:hover { background: var(--tier-hover); transform: translateY(-2px); }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--elm); transform: translateY(-2px); }
.btn-navy .ic:last-child, .btn-navy:hover .ic:last-child { transform: none; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(18, 30, 48, .5); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand img { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone .ic { color: var(--tier); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: var(--frost); cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu ul { padding: 8px var(--gutter) 20px; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 1.125rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--frost); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(64px, 8vw, 120px) clamp(150px, 13vw, 190px);
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Navy wash keeps the headline readable over any photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 30, 48, .82) 0%, rgba(18, 30, 48, .7) 50%, rgba(18, 30, 48, .88) 100%);
}
.hero-grid { display: grid; justify-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: center; max-width: 900px; }
.hero-copy .display { max-width: 16ch; font-size: clamp(2.5rem, 1.2rem + 4vw, 5rem); }
.hero .lede { margin-inline: auto; }
.hero-ctas { justify-content: center; }
.hero .display .tier { color: var(--shore); }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--mist); max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

/* Estimate starter band between hero and about */
.start { position: relative; z-index: 2; margin-top: calc(clamp(96px, 9vw, 130px) * -1); }
.starter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: center;
  gap: 20px 28px;
  padding: 26px 28px 0;
  background: var(--white);
  box-shadow: var(--shadow-lift);
}
.starter-head h2 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.starter-head p { margin-top: 4px; font-size: .9375rem; color: var(--muted); }
.starter-band {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 2px -28px 0;
  padding: 12px 28px;
  background: var(--frost);
}
.starter-band code { color: var(--muted); }
.starter-band > span { margin-left: auto; font-size: .9375rem; color: var(--muted); }
.starter-band a { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.starter-services { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.starter-services label { position: relative; }
.starter-services input, .opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.starter-services span {
  display: block;
  padding: 9px 16px;
  font-size: .9375rem;
  font-weight: 500;
  background: var(--frost);
  border: 1px solid transparent;
  transition: background-color .2s, color .2s;
}
.starter-services label:hover span { border-color: var(--shore); }
.starter-services input:checked + span { background: var(--ink); color: var(--white); }
.starter-services input:focus-visible + span { outline: 2px solid var(--tier); outline-offset: 2px; }
.starter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.starter-zip { flex: 1 1 150px; }
.starter-zip input, .field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  font-size: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.starter-zip input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #5C6880; }
.starter-zip input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--tier); box-shadow: 0 0 0 3px rgba(51, 99, 172, .2); }
.starter-row .btn { flex: 1 1 auto; }



/* Sections */
.section { padding-block: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { max-width: 40ch; color: var(--muted); }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .h2 { margin-inline: auto; }
.section-cta { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }

/* About */
.about { background: var(--white); overflow-x: clip; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo-chip { background: var(--white); box-shadow: var(--shadow); transform: rotate(-2deg); }
.photo-chip img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 60%; }
.about-photo img { aspect-ratio: 4 / 5; object-position: 50% 45%; }
.photo-chip figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 18px; background: var(--ink); color: var(--white); }
.photo-chip figcaption b { font-weight: 600; }
.photo-chip figcaption code { color: var(--mist); }
.about-copy { display: grid; gap: 20px; justify-items: start; }
.about-copy > p { max-width: 54ch; color: var(--muted); }
.about-copy .h2 { margin-bottom: 4px; }
.ticks { display: grid; gap: 10px; margin: 6px 0 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks .ic { color: var(--white); background: var(--tier); padding: 3px; width: 22px; height: 22px; margin-top: 2px; }

/* 3D repaint */
.repaint { background: var(--ink); color: var(--white); }
.repaint-pin { min-height: calc(100svh - var(--header)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(40px, 5vw, 64px); }
.repaint-grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.repaint-copy { display: grid; gap: 18px; justify-items: start; }
.repaint-copy .h2 { font-size: clamp(2rem, 1.3rem + 1.6vw, 2.75rem); max-width: 14ch; }
.repaint-copy .stages span { font-size: .875rem; line-height: 1.45; }
.repaint-sub { color: var(--mist); max-width: 36ch; }
.repaint-btn { margin-top: 10px; }
.stages { display: grid; gap: 2px; counter-reset: st; width: 100%; }
.stages li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding: 8px 0;
  opacity: .62;
  transition: opacity .4s;
}
.stages li::before {
  content: counter(st);
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9375rem;
  background: rgba(255, 255, 255, .08);
  transition: background-color .4s;
}
.stages li.is-on { opacity: 1; }
.stages li.is-on::before { background: var(--tier); }
.stages b { font-size: 1.125rem; font-weight: 600; }
.stages span { font-size: .9375rem; color: var(--mist); }
.stage-bar { width: 100%; height: 3px; background: rgba(255, 255, 255, .12); }
.stage-bar i { display: block; height: 100%; width: 0; background: var(--tier); }

.stage-wrap { background: var(--frost); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); display: grid; }
.house-canvas { display: block; width: 100%; height: clamp(300px, 58vh, 600px); touch-action: pan-y; }
.swatches {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--white);
  color: var(--ink);
}
.swatches p { font-size: .875rem; font-weight: 600; }
.swatch-row { display: flex; gap: 8px; }
.swatch-row button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18, 30, 48, .18);
  border-radius: 0;
  background: var(--c);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.swatch-row button:hover { transform: translateY(-3px); }
.swatch-row button[aria-checked="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch-name { margin-left: auto; font-family: var(--f-label); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Services */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.service-grid li { display: flex; }
.service-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.service-chip:hover, .service-chip:focus-visible { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.service-chip:hover::after, .service-chip:focus-visible::after { transform: translateX(130%); transition: transform 1.1s var(--ease); }
.sc-photo { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.photo-note { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; background: rgba(18, 30, 48, .85); color: white; font-size: .6875rem; line-height: 1.4; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-chip:hover .sc-photo img { transform: scale(1.05); }
.sc-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; background: var(--c); color: var(--t); }
.sc-body code { opacity: .95; }
.sc-body b { font-size: clamp(1.2rem, 1.05rem + .4vw, 1.375rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.sc-text { font-size: .9688rem; line-height: 1.5; opacity: .9; }
.sc-body em { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 600; font-size: .9375rem; }
.sc-body em .ic { transition: transform .4s var(--ease); }
.service-chip:hover em .ic { transform: translateX(4px); }

/* Portfolio */
.work { background: var(--white); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 16vw, 230px);
  gap: clamp(8px, 1vw, 14px);
}
.work-grid figure { position: relative; overflow: hidden; background: var(--frost); cursor: zoom-in; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
/* Navy wash lifts on hover so the photo comes forward */
.work-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: .12;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.work-grid figure:hover img, .work-grid figure:focus-visible img { transform: scale(1.06); }
.work-grid figure:hover::after, .work-grid figure:focus-visible::after { opacity: 0; }
.work-grid figure:focus-visible { outline: 3px solid var(--tier); outline-offset: 3px; }
.work-grid .w-a img { object-position: 50% 59%; }
.work-grid .w-b img { object-position: 50% 57%; }
.work-grid .w-d img { object-position: 50% 45%; }
.work-grid .w-f img { object-position: 50% 52%; }

.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 16, 28, .9); }
.lightbox img { display: block; width: 100%; max-height: 86vh; object-fit: contain; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.lb-btn:hover { background: var(--tier); color: var(--white); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-close { top: -58px; right: 0; }
.lb-close .ic { rotate: 45deg; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 12px; }
.lb-prev .ic { rotate: 180deg; }
.lb-next { right: 12px; }

/* Rivet hole on every chip's label band */
.rivet-dot {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--ink), 0 1px 2px rgba(18, 30, 48, .25);
}
.sc-band { display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: var(--white); color: var(--muted); }
.why-code { display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; }
.why-strip .rivet-dot { box-shadow: inset 0 0 0 3px currentColor; background: transparent; }
.photo-chip figcaption .rivet-dot { background: var(--ink); box-shadow: inset 0 0 0 3px var(--mist); }
.photo-chip figcaption { justify-content: flex-start; }
.photo-chip figcaption code { margin-left: auto; }
.w-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.w-b { grid-column: 3; grid-row: 1; }
.w-c { grid-column: 4; grid-row: 1 / 3; }
.w-d { grid-column: 3; grid-row: 2; }
.w-e { grid-column: 1; grid-row: 3; }
.w-f { grid-column: 2 / 4; grid-row: 3; }
.w-g { grid-column: 4; grid-row: 3; }

/* Reviews */
.reviews { background: var(--tier); color: var(--white); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.review {
  --pad: clamp(26px, 3vw, 36px);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--pad);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 50px -30px rgba(10, 20, 40, .55);
}
.review-feature { background: var(--ink); color: var(--white); position: relative; top: -18px; box-shadow: 0 40px 60px -30px rgba(5, 10, 20, .75); }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stars { display: flex; gap: 4px; color: var(--tier); }
.review-feature .stars { color: var(--shore); }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
.qmark { width: 38px; height: 28px; fill: var(--mist); }
.review-feature .qmark { fill: var(--tier); }
.review-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.review p:not(.review-title) { font-size: 1rem; line-height: 1.65; color: var(--muted); }
.review-feature p:not(.review-title) { color: var(--mist); }
.review footer { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.review-feature footer { border-color: rgba(201, 215, 236, .18); }
.avatar { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--frost); color: var(--tier); font-weight: 700; font-size: 1.0625rem; }
.review-feature .avatar { background: var(--tier); color: var(--white); }
.who { display: grid; gap: 2px; min-width: 0; }
.who b { font-weight: 600; }
.who small { font-size: .875rem; color: var(--muted); }
.review-feature .who small { color: var(--shore); }

/* Why */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-copy { display: grid; gap: 24px; justify-items: start; }
.why-lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 48ch; }
.why-strip { display: grid; box-shadow: var(--shadow); }
.why-strip li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg);
  color: var(--fg);
}
.why-strip .ic { width: 26px; height: 26px; }
.why-strip b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 4px; }
.why-strip span { font-size: .9688rem; opacity: .88; }
.why-strip code { opacity: .95; padding-top: 6px; }

/* How it works */
.how { background: var(--ink); color: var(--white); overflow-x: clip; }
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
/* Brush that paints the steps on scroll; hidden until JS drives it */
.brush {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 3;
  width: clamp(54px, 5vw, 76px);
  height: auto;
  pointer-events: none;
  transform-origin: 50% 100%;
  margin: calc(clamp(54px, 5vw, 76px) * -3.75) 0 0 calc(clamp(54px, 5vw, 76px) * -.5);
  rotate: 50deg;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35));
  opacity: 0;
}
.steps-wrap.is-painting .brush { opacity: 1; }
.steps li {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 250px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
  color: var(--fg);
}
.step-n { font-size: clamp(3.5rem, 2.6rem + 3vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; padding-bottom: 36px; }
.steps b { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.steps li > span:last-child { opacity: .86; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { display: grid; gap: 18px; position: sticky; top: calc(var(--header) + 32px); }
.faq-head p { color: var(--muted); }
.faq-head a { color: var(--tier); font-weight: 600; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 22px; height: 22px; color: var(--tier); transition: transform .4s var(--ease); }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; }

/* Estimate */
.estimate { background: var(--paper); }
.estimate-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.estimate-info { display: grid; gap: 28px; align-content: start; }
.estimate .wizard { align-content: start; }
.estimate-info > p { color: var(--muted); }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.contact-list li:hover { box-shadow: inset 0 0 0 1px var(--tier); }
.contact-list .ic { flex: none; width: 44px; height: 44px; padding: 11px; background: var(--frost); color: var(--tier); }
.contact-list span { display: block; font-size: .8125rem; color: var(--muted); }
.contact-list a, .contact-list p { font-weight: 600; font-size: 1.0625rem; text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--tier); }
.map { background: var(--white); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; filter: saturate(.75); }
.map-label { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: .9375rem; font-weight: 500; }
.map-label .ic { color: var(--tier); }

.wizard { position: relative; background: var(--white); box-shadow: var(--shadow-lift); border-top: 4px solid var(--tier); padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); }
.wizard-progress li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: .875rem; font-weight: 600; background: var(--frost); color: var(--muted); transition: background-color .4s, color .4s; }
.wizard-progress li span { font-size: 1.125rem; font-weight: 800; }
.wizard-progress li.is-done { background: var(--mist); color: var(--ink); }
.wizard-progress li.is-on { background: var(--tier); color: var(--white); }
.wizard-count { font-size: .8125rem; color: var(--muted); }
.wstep { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.wstep[hidden] { display: none; }
.wstep legend { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; padding: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt-wide { grid-column: 1 / -1; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: block; }
.opt span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.opt:hover span { border-color: var(--tier); background: var(--frost); }
.opt input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.opt-grid .opt input:checked + span::after { content: ""; flex: none; width: 6px; height: 11px; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.opt input:focus-visible + span { outline: 2px solid var(--tier); outline-offset: 2px; }
.opt-row .opt span { min-height: 44px; padding: 9px 15px; font-size: .9375rem; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .9375rem; font-weight: 600; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8125rem; margin-left: 4px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .9375rem; font-weight: 500; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .wizard-nav .btn:not([hidden]) { flex: 1; justify-content: center; } }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.wizard-nav .btn[disabled] { opacity: .6; cursor: progress; }
.wizard-note { font-size: .8125rem; color: var(--muted); }
.wizard.is-sent > *:not(.wizard-done) { display: none; }
.wizard-done { display: grid; gap: 14px; justify-items: start; padding: 24px 0; outline: none; }
.wizard-done[hidden] { display: none; }
.wizard-done h3 { display: flex; align-items: center; gap: 14px; font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; }
.wizard-done h3 .ic { width: 1.1em; height: 1.1em; color: var(--tier); stroke-width: 2.4; }
.wizard-done p { color: var(--muted); }
.wizard-done a { color: var(--tier); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding-top: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { color: var(--mist); font-size: .9375rem; max-width: 36ch; }
.footer-insta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.site-footer h3 { font-family: var(--f-label); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--shore); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 9px; font-size: .9375rem; color: var(--mist); }
.site-footer ul a { text-decoration: none; color: var(--mist); transition: color .2s; }
.site-footer ul a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid rgba(201, 215, 236, .16); font-size: .8125rem; color: var(--shore); }
.footer-base .tagline a { color: var(--white); text-decoration: none; transition: color .2s; }
.footer-base .tagline a:hover { color: var(--shore); }
.footer-base .tagline { font-family: var(--f-label); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }

/* Brand watermark: the brush "F" icon, large and faint, behind the content */
.about, .reviews, .faq, .site-footer { position: relative; isolation: isolate; overflow: clip; }
.about::after, .reviews::after, .faq::after, .site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(320px, 42vw, 620px);
  aspect-ratio: 1385 / 1377;
  background: url("../logo/icon-black.webp") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}
.about::after { right: -6%; bottom: -12%; rotate: -12deg; }
.faq::after { right: -8%; top: 8%; rotate: 10deg; }
.reviews::after { left: -10%; top: -6%; rotate: -8deg; background-image: url("../logo/icon-white.webp"); opacity: .07; }
.site-footer::after { right: -4%; bottom: -18%; rotate: -10deg; background-image: url("../logo/icon-white.webp"); opacity: .05; }

/* Painted-wall texture on section grounds; cards, photos and buttons stay smooth */
body,
.about, .services, .work, .why, .faq, .estimate { background-image: var(--grain-light), var(--streaks); }
.repaint, .how, .reviews, .site-footer { background-image: var(--grain-dark); }

/* FAQ: real project photo behind a heavy light wash so the copy stays crisp */
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    var(--grain-light),
    linear-gradient(90deg, rgba(245, 247, 251, .86) 0%, rgba(245, 247, 251, .76) 55%, rgba(245, 247, 251, .66) 100%),
    url("../fotos/resultados/deck-madeira-dourada.webp") center 60% / cover no-repeat;
  pointer-events: none;
}

/* Mobile action bar */
.action-bar { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 980px) {
  :root { --header: 66px; }
  .brand img { height: 40px; }
  .header-phone span { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(18, 30, 48, .92) 0%, rgba(18, 30, 48, .82) 55%, rgba(18, 30, 48, .7) 100%); }
  .starter { grid-template-columns: 1fr; gap: 16px; }
  .about-grid, .why-grid, .faq-grid, .estimate-grid { grid-template-columns: 1fr; }
  .estimate-info { position: static; }
  .about-photo { max-width: 460px; }
  .repaint-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .review-feature { top: 0; }
  .faq-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* Touch targets: 44px minimum */
  .header-phone { width: 44px; height: 44px; justify-content: center; background: var(--frost); }
  .header-phone .ic { width: 20px; height: 20px; }
  .swatch-row button { width: 44px; height: 44px; }
  .contact-list a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .site-footer ul { gap: 0; }
  .site-footer ul li { padding-block: 4px; }
  .site-footer ul a { display: inline-block; padding-block: 8px; margin-block: -4px; }
  .footer-insta { padding-block: 10px; }
  .footer-base .tagline a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}
@media (max-width: 899px) {
  body { padding-bottom: 64px; }
  .header-actions .btn-sm { display: none; }
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.25fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    box-shadow: 0 -10px 30px -16px rgba(18, 30, 48, .45);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font-weight: 600; font-size: .9688rem; text-decoration: none; }
  .ab-text { background: var(--tier); color: var(--white); }
  .ab-call { background: var(--white); color: var(--ink); }
  .ab-est { background: var(--ink); color: var(--white); }
}
/* Narrow desktops: starter band goes to two rows so nothing is squeezed */
@media (min-width: 981px) and (max-width: 1240px) {
  .starter { grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; }
  .starter-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
  .starter-head p { margin-top: 0; }
  .starter-row { flex-wrap: nowrap; }
}

/* Short laptop screens (768px tall and similar): keep the pinned 3D panel inside the viewport */
@media (min-width: 981px) and (max-height: 860px) {
  .repaint-pin { padding-block: 28px; }
  .repaint-copy { gap: 14px; }
  .repaint-sub, .stages span { display: none; }
  .stages li { padding: 5px 0; align-items: center; }
  .stages li::before { grid-row: auto; }
  .house-canvas { height: min(60vh, 560px); }
}

/* Tablet: the pinned 3D panel must fit between header and action bar */
@media (min-width: 641px) and (max-width: 980px) {
  .repaint-pin { padding-block: 32px; justify-content: flex-start; }
  .repaint-grid { gap: 24px; }
  .repaint-copy { gap: 14px; }
  .repaint-sub, .repaint-btn { display: none; }
  .stages { grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
  .stages li { grid-template-columns: 30px 1fr; column-gap: 10px; padding: 4px 0; align-items: center; }
  .stages li::before { width: 30px; height: 30px; grid-row: auto; }
  .stages span { display: none; }
  .house-canvas { height: min(54vh, 560px); }
}
/* Phones held sideways: copy and house side by side, house fills the height */
@media (max-height: 520px) and (orientation: landscape) {
  .repaint-pin { min-height: calc(100svh - var(--header) - 64px); padding-block: 10px; justify-content: center; }
  .repaint-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: center; }
  .repaint-copy { gap: 10px; }
  .repaint-copy .h2 { font-size: 1.5rem; }
  .repaint-sub, .repaint-btn, .stage-bar, .stages span { display: none; }
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stages li { padding: 3px 0; align-items: center; grid-template-columns: 26px 1fr; }
  .stages li::before { width: 26px; height: 26px; grid-row: auto; font-size: .8125rem; }
  .stages b { font-size: .9375rem; }
  .house-canvas { height: calc(100svh - var(--header) - 64px - 20px - 58px); min-height: 0; }
  .swatches { padding: 8px 12px; gap: 8px; }
  .swatches p, .swatch-name, .swatches .rivet-dot { display: none; }
  .swatch-row { width: 100%; justify-content: space-between; }
  .swatch-row button { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .display, .hero-copy .display { font-size: clamp(2.3rem, 1rem + 7vw, 2.9rem); }
  .hero-copy { gap: 20px; }
  .hero .lede { font-size: 1rem; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero { padding-block: 48px 120px; }
  .start { margin-top: -84px; }
  .starter { padding: 20px 16px 0; gap: 14px; }
  .starter-band { margin: 0 -16px; padding: 12px 16px; }
  .starter-band > span { margin-left: 0; }
  .starter-band a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .starter-services { gap: 6px; flex-wrap: nowrap; }
  .starter-services label { flex: 1 1 auto; }
  .starter-services span { padding: 9px 6px; text-align: center; font-size: .875rem; }
  .starter-row .btn { width: 100%; }
  .stages li { grid-template-columns: 28px 1fr; column-gap: 10px; padding: 8px 0; }
  .stages li::before { width: 28px; height: 28px; font-size: .8125rem; }
  .stages span { display: none; }
  .repaint-pin { padding-block: 20px 16px; justify-content: flex-start; }
  .repaint-grid { gap: 16px; }
  .repaint-copy { gap: 10px; }
  .repaint-sub, .repaint-btn { display: none; }
  .house-canvas { height: 34svh; min-height: 230px; }
  .swatches { padding: 10px 14px 12px; gap: 8px 10px; }
  .swatches p { font-size: .8125rem; }
  .swatch-name { margin-left: auto; }
  .swatch-row { width: 100%; justify-content: space-between; }
  .swatch-row button { flex: 1 1 0; max-width: 52px; height: 44px; }
  /* Services become a swipe row with the next card peeking */
  .service-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 28px;
    scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-grid li { scroll-snap-align: start; }
  .service-chip:hover, .service-chip:focus-visible { transform: none; }
  .photo-chip { transform: rotate(-1deg); }
  .photo-chip figcaption code { display: none; }
  .why-code { display: none; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; gap: 8px; }
  .work-grid figure { grid-column: auto; grid-row: auto; }
  .work-grid .w-a, .work-grid .w-f { grid-column: 1 / -1; }
  .work-grid .w-g { display: none; }
  .why-strip li { grid-template-columns: auto 1fr; }
  .why-strip code { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; grid-template-columns: auto 1fr; column-gap: 20px; }
  .step-n { grid-row: span 2; padding-bottom: 0; font-size: 3.25rem; }
  .wizard-progress li { padding: 10px; font-size: .75rem; gap: 6px; }
  .wizard-progress li span { font-size: 1rem; }
  .faq-list details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .section-cta .btn { width: 100%; }
}

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