/* H2O Pressure Solutions LLC — offline preview build
   Direction: "lake and limestone". Ink and teal sampled from the owner's logo,
   a lime accent taken from the hose reel on his own trailer, warm concrete paper.
   Display: Bricolage Grotesque. Text: Instrument Sans. Labels: IBM Plex Mono.
   All three are self-hosted (SIL OFL, licences in assets/fonts/). */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f3f1ec;
  --paper-2: #e8e4da;
  --card: #fbfaf7;
  --ink: #0f2a2f;
  --ink-2: #3a5055;
  --ink-3: #5d7074;
  --teal: #17636d;
  --teal-2: #4aa3ae;
  --teal-wash: #d8ecee;
  --lime: #cfe36a;
  --line: rgba(15, 42, 47, 0.16);
  --line-strong: rgba(15, 42, 47, 0.32);
  --night: #0c2226;
  --night-2: #133238;
  --on-night: #eef3f1;
  --on-night-2: #a9bec0;
  --error: #a3261b;

  --f-display: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Instrument", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 78rem;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-night :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
.eyebrow,
.tag,
.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}
.on-night .eyebrow {
  color: var(--lime);
}
.display {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 80%;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 90%;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.1;
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36ch;
  text-wrap: pretty;
}
.on-night .lead {
  color: var(--on-night-2);
}
.prose {
  max-width: 60ch;
  color: var(--ink-2);
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ink);
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover {
  background: #fff;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--card);
}
.on-night .btn--ghost {
  color: var(--on-night);
  border-color: rgba(238, 243, 241, 0.4);
}
.on-night .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--on-night);
}
.btn--large {
  min-height: 3.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 1.0625rem;
}
.btn:active {
  transform: translateY(1px);
}
.call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  font-weight: 650;
  text-decoration: none;
}
.call svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal);
}
.call span {
  border-bottom: 2px solid var(--teal-2);
  padding-bottom: 1px;
}
.call:hover span {
  border-color: var(--ink);
}
.on-night .call svg {
  color: var(--lime);
}
.on-night .call span {
  border-color: var(--lime);
}
.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
.text-link:hover {
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.break-anywhere {
  overflow-wrap: anywhere;
}

/* ---------- preview notice, skip link ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  border-radius: var(--radius);
}
.skip:focus {
  top: 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 241, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f4f9fb;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand__name {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 85%;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}
.brand__line {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.2rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__links {
  display: flex;
  gap: 0.25rem;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.975rem;
  border-radius: var(--radius);
}
.nav__links a:hover {
  background: var(--paper-2);
}
.nav__links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--teal);
  border-radius: 0;
}
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone svg {
  width: 1rem;
  height: 1rem;
  color: var(--teal);
}
.nav .btn {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  margin-left: 0.25rem;
}
.menu {
  display: none;
}
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 650;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary .bars {
  width: 1.1rem;
  height: 0.7rem;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.menu[open] summary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.menu[open] summary .bars {
  height: 1.1rem;
  border: 0;
}
.menu[open] summary .bars::before,
.menu[open] summary .bars::after {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.menu[open] summary .bars::after {
  transform: rotate(-45deg);
}
.menu__panel {
  position: absolute;
  inset: 100% 0 auto;
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--card);
  border-block: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(15, 42, 47, 0.45);
  padding: 0.5rem var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
}
.menu:not([open]) .menu__panel {
  display: none;
}
.menu__panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-weight: 650;
  border-radius: var(--radius);
}
.menu__panel a + a:not(.btn) {
  border-top: 1px solid var(--line);
}
.menu__panel svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}
.menu__panel a:hover {
  background: var(--paper-2);
}
.menu__panel a[aria-current="page"] {
  color: var(--teal);
}
.menu__panel .btn {
  margin-top: 0.4rem;
  margin-left: 0;
  min-height: 3.25rem;
  justify-content: center;
}
.menu__panel .btn:hover {
  background: var(--ink);
}
@media (max-width: 67.99em) {
  .nav__links,
  .nav__phone {
    display: none;
  }
}
@media (max-width: 47.99em) {
  .site-header {
    z-index: 50;
  }
  .nav > .btn {
    display: none;
  }
  .menu {
    display: block;
  }
  .brand img {
    width: 2.75rem;
    height: 2.75rem;
  }
  .brand__name {
    font-size: 1.02rem;
  }
}
@media (min-width: 48em) and (max-width: 67.99em) {
  .menu {
    display: block;
  }
}

/* ---------- phone action bar ---------- */
.action-bar {
  display: none;
}
@media (max-width: 47.99em) {
  html {
    scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
  body:has(.action-bar) {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
  .action-bar {
    position: fixed;
    inset: auto 0 calc(.6rem + env(safe-area-inset-bottom)) 0;
    width: min(23rem, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
    margin-inline: auto;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: .375rem;
    padding: .375rem;
    border: 1px solid rgba(238, 243, 241, .2);
    border-radius: 999px;
    background: var(--night);
    box-shadow: 0 5px 20px rgba(12, 34, 38, .28);
  }
  .action-bar .btn {
    min-height: 44px;
    padding-inline: .65rem;
    border-radius: 999px;
    gap: .4rem;
    line-height: 1.2;
  }
  .action-bar .btn--ghost {
    color: var(--on-night);
    border-color: rgba(238, 243, 241, 0.4);
  }
  .action-bar :focus-visible {
    outline-color: var(--lime);
  }
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  position: relative;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 56em) {
  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}
.hero__title {
  font-size: clamp(3.4rem, 10.5vw, 8.4rem);
}
.hero__title span {
  display: block;
}
.hero__title .dot {
  display: inline;
  color: var(--teal-2);
}
.hero__lead {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 33ch;
}
.hero__lead strong {
  color: var(--ink);
  font-weight: 650;
}
.hero .actions {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- before and after ---------- */
.proof {
  position: relative;
}
.proof__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.proof__head .mono {
  color: var(--ink-3);
}
.compare {
  --pos: 50%;
  --scale: 1.4;
  --ox: 71.2%;
  --oy: 28%;
  position: relative;
}
.compare__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-2);
  box-shadow: 0 30px 60px -35px rgba(15, 42, 47, 0.6);
  touch-action: pan-y;
}
.compare__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--pos));
}
/* The after photograph is a slightly wider view of the same wall: scaled about
   the point that lands its upper right window on the before photograph's. */
.compare__after img {
  transform: scale(var(--scale));
  transform-origin: var(--ox) var(--oy);
}
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(15, 42, 47, 0.25);
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.25rem;
  height: 3.25rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease);
}
.compare__knob svg {
  width: 1.6rem;
  height: 1.6rem;
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare__range:focus ~ .compare__divider .compare__knob {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  transform: translate(-50%, -50%) scale(1.08);
}
.compare__frame:hover .compare__knob {
  transform: translate(-50%, -50%) scale(1.06);
}
.compare__label {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  background: rgba(12, 34, 38, 0.82);
  color: #fff;
  pointer-events: none;
}
.compare__label--before {
  left: 0.75rem;
}
.compare__label--after {
  right: 0.75rem;
  background: var(--lime);
  color: var(--ink);
}
.compare__steps {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.compare__steps button {
  flex: 1;
  min-height: 2.75rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.compare__steps button:hover {
  background: var(--card);
  border-color: var(--ink);
}
.compare__caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.compare__hint {
  color: var(--ink-3);
}
/* Without JavaScript: the two photographs side by side, each labelled. */
.compare--static .compare__frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 3 / 2;
  background: var(--lime);
}
.compare--static .compare__frame > img,
.compare--static .compare__after {
  position: relative;
  clip-path: none;
  height: 100%;
}
.compare--static .compare__after img {
  position: absolute;
}
.compare--static .compare__divider,
.compare--static .compare__range,
.compare--static .compare__steps,
.compare--static .compare__hint {
  display: none;
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section__head {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 56em) {
  .section__head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}
.on-night {
  background: var(--night);
  color: var(--on-night);
}

/* ---------- services ledger (home) ---------- */
.ledger {
  border-top: 2px solid var(--ink);
}
.ledger__row a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.2s;
}
@media (min-width: 48em) {
  .ledger__row a {
    grid-template-columns: 2.5rem 7.5rem 1fr 15rem 2.5rem;
    gap: 1.5rem;
    padding-block: 1rem;
  }
}
.ledger__row a:hover {
  background: var(--card);
}
.ledger__num {
  color: var(--ink-3);
}
@media (max-width: 47.99em) {
  .ledger__num {
    display: none;
  }
}
.ledger__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--night);
}
.ledger__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.ledger__row a:hover .ledger__thumb img {
  transform: scale(1.05);
}
.ledger__name {
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 88%;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.1;
}
.ledger__method {
  display: block;
  margin-top: 0.3rem;
  color: var(--teal);
}
@media (min-width: 48em) {
  .ledger__method {
    margin-top: 0;
  }
  .ledger__name-wrap {
    display: contents;
  }
}
.ledger__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.ledger__arrow svg {
  width: 1rem;
  height: 1rem;
}
.ledger__row a:hover .ledger__arrow {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.ledger-foot {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.ledger-foot p {
  color: var(--ink-2);
  max-width: 44ch;
}

/* ---------- recent work gallery ----------
   Every tile is three rows tall; the wide aerial and the last photograph span
   two columns, so the mosaic closes without holes on phones and desktops. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 5.75rem;
  grid-auto-flow: dense;
  gap: 0.75rem;
}
@media (min-width: 48em) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 6.5rem;
    gap: 1rem;
  }
}
@media (min-width: 72em) {
  .gallery {
    grid-auto-rows: 7.5rem;
  }
}
.gallery > li {
  grid-row: span 3;
  min-height: 0;
}
.gallery > li.g-wide,
.gallery > li:last-child {
  grid-column: span 2;
}
.gallery figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gallery .frame {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-2);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.03);
}
.gallery figcaption {
  padding-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.gallery-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 60ch;
}

/* ---------- owner ---------- */
.owner {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 56em) {
  .owner {
    grid-template-columns: 0.95fr 1.05fr;
  }
}
.owner__photo {
  position: relative;
}
.owner__photo .frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
}
.owner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 40%;
}
.quote-mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 82%;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote-mark::before {
  content: "\201C";
  color: var(--lime);
}
.quote-mark::after {
  content: "\201D";
  color: var(--lime);
}
.light .quote-mark::before,
.light .quote-mark::after {
  color: var(--teal-2);
}
.quote-by {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--on-night-2);
}
.quote-by strong {
  color: var(--on-night);
}
.light .quote-by {
  color: var(--ink-2);
}
.light .quote-by strong {
  color: var(--ink);
}
.owner .text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--lime);
}
.owner .text-link:hover {
  color: #fff;
}
/* ---------- closing call to action ---------- */
.close {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--night);
  padding-block: clamp(5rem, 12vw, 9rem);
}
.close__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.close__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.close--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 34, 38, 0.9) 0%, rgba(12, 34, 38, 0.72) 55%, rgba(12, 34, 38, 0.35) 100%);
}
.close__title {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 80%;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}
.close .actions {
  margin-top: 2rem;
}
.close__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--on-night-2);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--on-night);
  border-top: 1px solid rgba(238, 243, 241, 0.12);
  padding-block: 3.5rem 2rem;
  font-size: 0.975rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-footer__brand img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  background: #f4f9fb;
}
.site-footer__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.25rem;
  line-height: 1.15;
}
.site-footer__sub {
  color: var(--on-night-2);
  font-size: 0.9rem;
}
.site-footer h2 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}
.site-footer li + li {
  margin-top: 0.35rem;
}
.site-footer a {
  text-decoration: none;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
}
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(238, 243, 241, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--on-night-2);
}

/* ---------- inner page head ---------- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}
.page-head__grid {
  display: grid;
  gap: 1.25rem 3rem;
}
@media (min-width: 56em) {
  .page-head__grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}
.page-title {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  text-wrap: balance;
}

/* ---------- services page ---------- */
.jump {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.jump ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.5rem;
  padding-block: 0.75rem;
}
.jump a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  height: 100%;
  min-width: 0;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.jump a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.svc {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.svc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 56em) {
  .svc__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .svc--flip .svc__media {
    order: 2;
  }
}
.svc__media {
  position: relative;
}
.svc__media .frame {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc__media figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.svc__name {
  margin-top: 0.5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.method {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.method svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.svc__desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 48ch;
}
.svc .btn {
  margin-top: 1.75rem;
}

@media (max-width: 55.99em) {
  .page-head--services {
    padding-block: 1.5rem;
  }
  .page-head--services .page-title {
    font-size: clamp(2.15rem, 9vw, 3.5rem);
  }
  .page-head--services .page-head__grid {
    gap: 0.75rem;
  }
  .svc {
    padding-block: 1.75rem;
  }
  .svc__grid {
    gap: 1.25rem;
  }
  .svc__text {
    order: -1;
    min-width: 0;
  }
  .svc__name {
    margin-top: 0;
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    overflow-wrap: anywhere;
  }
  .svc__desc {
    margin-top: 0.75rem;
    font-size: 1rem;
  }
  .svc .btn {
    margin-top: 0.9rem;
  }
  .svc__media .frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 35em) {
  .jump ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- about page ---------- */
.meet {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 56em) {
  .meet {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.meet .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}
.meet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meet figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.meet__name {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 82%;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
}
.meet__role {
  margin-top: 0.4rem;
  color: var(--teal);
}
.meet .quote-mark {
  margin-top: 1.75rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}
.meet__facts {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--ink-2);
}
.steps {
  counter-reset: s;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--on-night);
}
.step {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(238, 243, 241, 0.18);
  scroll-margin-top: 6rem;
}
@media (min-width: 56em) {
  .step {
    grid-template-columns: 6rem 1fr 1.1fr;
    align-items: start;
  }
}
.step__num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--lime);
  padding-top: 0.5rem;
}
.step__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 84%;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.step__text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--on-night-2);
  max-width: 48ch;
}
.step:target .step__title {
  color: var(--lime);
}
.onsite {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 48em) {
  .onsite {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
.onsite .frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
}
.onsite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onsite figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.35;
}

/* ---------- quote page ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
@media (min-width: 60em) {
  .quote-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }
}
.howto {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  margin-bottom: 1.75rem;
  counter-reset: h;
}
@media (min-width: 40em) {
  .howto {
    grid-template-columns: repeat(3, 1fr);
  }
}
.howto li {
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.howto li:first-child {
  border-top: 0;
}
@media (min-width: 40em) {
  .howto li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .howto li:first-child {
    border-left: 0;
  }
}
.howto li::before {
  counter-increment: h;
  content: "Step " counter(h);
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.3rem;
}
.howto strong {
  color: var(--ink);
}
.form {
  display: grid;
  gap: 1.25rem;
}
.quote-form .req,
.quote-form .field__hint {
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 400;
}
.quote-form .field__error {
  color: var(--error);
}
.quote-form .field__error:empty,
.quote-form .form-status:empty {
  display: none;
}
.photo-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
}
.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}
.photo-list__item {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}
.photo-list__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.photo-list__remove {
  min-height: 44px;
  padding: 0 0.75rem;
}
.quote-sent,
.quote-form .form-status {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.field-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40em) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.field label {
  font-weight: 650;
}
.field .opt {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1.0625rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover {
  border-color: var(--ink-3);
}
.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 99, 109, 0.25);
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230f2a2f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}
textarea.input {
  min-height: 9rem;
  resize: vertical;
}
.input[aria-invalid="true"] {
  border-color: var(--error);
  background-color: #fdf5f4;
}
.hint {
  font-size: 0.9rem;
  color: var(--ink-3);
}
.error {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--error);
}
.error:empty {
  display: none;
}
.error-summary {
  border: 2px solid var(--error);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: #fdf5f4;
}
.error-summary h2 {
  font-size: 1.05rem;
  color: var(--error);
}
.error-summary ul {
  margin-top: 0.4rem;
  list-style: disc;
  padding-left: 1.2rem;
}
.error-summary a {
  color: var(--error);
  font-weight: 600;
}
.form-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.form-actions .btn {
  justify-self: start;
}
.attach-note {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--teal-2);
  background: var(--teal-wash);
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 0 4px 4px 0;
}
.attach-note svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal);
  margin-top: 0.1rem;
}
.draft {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
.draft[hidden] {
  display: none;
}
.draft__head {
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: var(--on-night);
}
.draft__head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.5rem;
  line-height: 1.1;
}
.draft__head p {
  margin-top: 0.35rem;
  color: var(--on-night-2);
  font-size: 0.95rem;
}
.draft__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 1.25rem 0;
  font-size: 0.95rem;
}
.draft__meta dt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.2rem;
}
.draft__body {
  margin: 0.9rem 1.25rem 0;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 18rem;
  overflow: auto;
}
.draft__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem 0.5rem;
}
.draft__status {
  padding: 0.25rem 1.25rem 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.draft__status:empty {
  display: none;
}
.draft__fine {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.draft__fine strong {
  color: var(--ink);
}
.contact-card {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 60em) {
  .contact-card {
    position: sticky;
    top: 6.5rem;
  }
}
.contact-card .mono {
  color: var(--ink-3);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-card__phone {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 82%;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.05;
  text-decoration: none;
  color: var(--teal);
}
.contact-card__phone:hover {
  color: var(--ink);
}
.contact-card .text-link {
  display: inline-block;
  padding-block: 0.3rem;
}
.contact-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 20% 40%;
  border-radius: 4px;
}

/* ---------- reveal motion (only with JS and without reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transform: translateY(18px);
    transition: transform 0.8s var(--ease);
  }
  .js [data-reveal="wipe"] {
    transform: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.1s var(--ease);
  }
  .js [data-reveal].is-in {
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  .js .hero__title span {
    animation: rise 0.9s var(--ease) both;
  }
  .js .hero__title span:nth-child(2) {
    animation-delay: 0.08s;
  }
  .js .hero__title span:nth-child(3) {
    animation-delay: 0.16s;
  }
}
@keyframes rise {
  from {
    transform: translateY(0.25em);
  }
  to {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .action-bar,
  .close {
    display: none;
  }
}

@media (max-width: 47.99em) {
  .home .hero {
    padding-block: 1.5rem 1.75rem;
  }
  .home .hero__grid,
  .home .owner {
    gap: 1.25rem;
  }
  .home .section,
  .home .close {
    padding-block: 2rem;
  }
  .home .section__head {
    margin-bottom: 1.25rem;
    gap: 0.6rem;
  }
  .home .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0.65rem;
  }
  .home .gallery > li {
    grid-area: auto;
  }
  .home .gallery .frame {
    flex: none;
    aspect-ratio: 1;
  }
  .home .owner {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
  }
  .home .owner .quote-mark {
    font-size: clamp(1.42rem, 5.3vw, 1.9rem);
  }
  .home .owner .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: 0.6rem;
  }
}

/* ---------- work gallery ---------- */
.work-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(15rem, 35vw, 29rem);
  padding-block: clamp(1.75rem, 5vw, 4rem);
  background: var(--night);
  color: var(--on-night);
}
.work-hero img {
  z-index: -2;
  object-fit: cover;
  object-position: center 48%;
}
.work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(12, 34, 38, .94), rgba(12, 34, 38, .12));
}
.work-hero .lead { color: inherit; margin-top: .65rem; }
.work-gallery { padding-block: clamp(1.5rem, 4vw, 3rem); }
.work-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.work-filters button,
.work-viewer button {
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.work-filters button[aria-pressed="true"] {
  background: var(--night);
  border-color: var(--night);
  color: var(--on-night);
}
.work-filters span { margin-inline-start: .25em; font-size: .85em; }
.work-status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.work-grid {
  display: grid;
  gap: clamp(.85rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}
.work-card { display: block; color: inherit; text-decoration: none; }
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .65rem;
}
.work-card span { display: block; margin-top: .4rem; font-weight: 600; line-height: 1.3; }
.work-card:hover span { text-decoration: underline; }
@media (min-width: 64em) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.work-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(64rem, 100% - 1rem);
  max-width: none;
  max-height: 96dvh;
  margin: auto;
  padding: .65rem;
  border: 0;
  border-radius: 1rem;
  background: var(--night);
  color: var(--on-night);
}
.work-viewer::backdrop { background: rgba(6, 18, 21, .9); }
.work-viewer__layout { display: grid; gap: .5rem; }
.work-viewer__close { justify-self: end; }
.work-viewer img {
  width: 100%;
  height: min(65dvh, 42rem);
  object-fit: contain;
}
.work-viewer__toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.work-link { margin-top: 1rem; }
