/* ==========================================================================
   Gary P. Handyman
   Blue / black / gray keyed to the logo (#3851c2), with a wood accent taken
   from the redwood in Gary's own photographs.

   Two accents, two jobs — they never compete:
     BLUE = action    (buttons, links, anything interactive)
     WOOD = editorial (eyebrows, italic headline halves, hairline rules)

   Image-forward: dark grounds dominate so the warm timber in the photography
   carries the page.
   ========================================================================== */

/* ---- Self-hosted display face (variable, latin subset, ~38KB each) ------ */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/playfair-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/playfair-italic.woff2") format("woff2");
}

:root {
  /* Brand — sampled from the logo */
  --brand:       #3851c2;
  --brand-dk:    #2c40a0;
  --brand-lt:    #7c93f0;   /* on dark grounds */
  --brand-pale:  #c3cefa;

  /* Ink — near-blacks carry a blue bias so they agree with the logo */
  --ink:         #0e1017;
  --ink-2:       #171a23;
  --ink-3:       #232734;

  /* Paper — cool grays, never cream */
  --paper:       #f7f8fa;
  --paper-2:     #eef0f4;
  --paper-3:     #e3e6ec;
  --card:        #ffffff;
  --paper-sage:  #edf0ec;   /* 6.9:1 for --text, 5.2:1 for --wood */

  /* Type on light */
  --text:        #4a5163;
  --text-strong: #12151d;
  --muted:       #5f6678;   /* 5.4:1 on paper, 5.0:1 on band */

  /* Type on dark */
  --on-dark:     #f2f4f8;
  --on-dark-2:   #c2c8d4;
  --on-dark-3:   #949cad;

  --line:        #d9dde5;
  --line-soft:   #e7eaf0;
  --line-dark:   #2a2f3d;

  /* Wood — editorial accent, pulled from the redwood in the photos */
  --wood:        #8d5c2b;   /* 5.3:1 on paper, 5.0:1 on band */
  --wood-lt:     #d8a76b;   /* on dark */
  --wood-pale:   #e8c79a;

  --radius:      4px;
  --radius-lg:   6px;

  --wrap:        1280px;
  --wrap-narrow: 760px;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bar-h: 0px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}

img, picture { max-width: 100%; display: block; }
/* Inline icons default to text-sized. Containers that need a bigger icon
   (.btn, .tile-arrow, .go, .header-phone) set their own dimensions. */
svg { max-width: 100%; }
a svg, p svg, li svg, span svg {
  display: inline-block; width: 1em; height: 1em;
  vertical-align: -0.12em; flex: 0 0 auto;
}
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text-strong);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.06rem; }

/* The signature move: second line set in italic, in the wood accent. */
.hero-sub { line-height: 1.35; margin: -.15em 0 1.15em; max-width: 32rem; }

/* The signature move continued. */
.h-alt { display: block; font-style: italic; font-weight: 400; color: var(--wood); }
.dark .h-alt { color: var(--wood-lt); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--brand-dk); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }

:focus-visible { outline: 3px solid var(--brand-lt); outline-offset: 3px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, var(--wrap-narrow)); margin-inline: auto; }
@media (max-width: 640px) { .wrap, .wrap-narrow { width: calc(100% - 2rem); } }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.6rem, 5.5vw, 4.5rem) 0; }
.band { background: var(--paper-2); }
.band-sage { background: var(--paper-sage); }

.dark { background: var(--ink); color: var(--on-dark-2); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--on-dark); }
.dark a { color: var(--brand-lt); }
.dark a:hover { color: var(--brand-pale); }
.dark .lede { color: var(--on-dark-2); }
.dark .muted { color: var(--on-dark-3); }
.dark .prose { color: var(--on-dark-2); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Eyebrow — short rule, then a letter-spaced label
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--sans); font-size: .715rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--wood); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2.1rem; height: 1px; background: currentColor; flex: 0 0 auto;
}
.dark .eyebrow { color: var(--wood-lt); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--brand); color: #fff; padding: .8rem 1.2rem; }
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 700; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 1.1rem 1.7rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }

/* #3851c2 with white text = 6.7:1 */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); color: #fff; }

.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-strong); color: var(--text-strong); }

.btn-on-dark { background: transparent; color: var(--on-dark); border-color: rgba(242,244,248,.42); }
.btn-on-dark:hover { border-color: var(--on-dark); background: rgba(242,244,248,.08); color: #fff; }

.btn-lg { font-size: .86rem; padding: 1.25rem 2.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* --------------------------------------------------------------------------
   Header — floats over the hero, solid on inner pages
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.over-hero {
  position: absolute; left: 0; right: 0; top: 0;
  background: transparent; border-bottom: 0;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 86px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { height: 50px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: .715rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-2); text-decoration: none;
  padding: .4rem 0; border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-color: var(--wood-lt); }

.header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex: 0 0 auto; }
.header-meta {
  font-size: .655rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--on-dark-3); white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone {
  font-size: .84rem; font-weight: 650; color: var(--on-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
}
.header-phone svg { width: 14px; height: 14px; color: var(--wood-lt); }
.header-phone:hover { color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 1180px) { .nav { gap: 1.35rem; } .header-meta { display: none; } }
@media (max-width: 1020px) {
  .nav-toggle-label {
    display: flex; margin-left: auto; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid rgba(242,244,248,.28); border-radius: var(--radius);
    cursor: pointer; flex: 0 0 auto;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 20px; height: 1.5px; background: var(--on-dark); content: ""; position: relative;
  }
  .nav-toggle-label span::before { position: absolute; top: -6px; }
  .nav-toggle-label span::after  { position: absolute; top: 6px; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-top: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav a {
    padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--line-dark);
    border-left: 2px solid transparent; font-size: .78rem;
  }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); border-left-color: var(--wood-lt); }
  .nav-toggle:checked ~ .nav { max-height: 34rem; }
}

/* --------------------------------------------------------------------------
   Mobile sticky bar
   -------------------------------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 820px) {
  :root { --bar-h: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--ink-2); border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1.15rem .5rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none; color: var(--on-dark);
  }
  .mobile-bar a + a { background: var(--brand); color: #fff; }
  .mobile-bar svg { width: 15px; height: 15px; }
}

/* --------------------------------------------------------------------------
   Floating phone pill (desktop only)
   -------------------------------------------------------------------------- */
.phone-pill {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 110;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--brand); color: #fff; text-decoration: none;
  padding: .95rem 1.4rem; border-radius: 999px;
  font-size: .84rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 6px 24px rgba(14,16,23,.34);
  transition: background-color .18s ease, transform .18s ease;
}
.phone-pill:hover { background: var(--brand-dk); color: #fff; transform: translateY(-2px); }
.phone-pill svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .phone-pill { display: none; } }

/* --------------------------------------------------------------------------
   Hero — full-bleed cinematic
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,12,18,.93) 0%, rgba(10,12,18,.84) 40%, rgba(10,12,18,.40) 70%, rgba(10,12,18,.14) 100%),
    linear-gradient(to bottom, rgba(10,12,18,.58) 0%, rgba(10,12,18,.16) 36%, rgba(10,12,18,.80) 100%);
}
@media (max-width: 820px) {
  .hero-media::after {
    background: linear-gradient(to bottom, rgba(10,12,18,.82) 0%, rgba(10,12,18,.86) 45%, rgba(10,12,18,.94) 100%);
  }
}

.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(9rem, 17vw, 13rem) 0 clamp(3rem, 6vw, 5rem);
  max-width: 48rem;
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 .h-alt { color: var(--wood-pale); }
.hero p { color: var(--on-dark-2); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 36rem; }
.hero .btn-row { margin-top: 2rem; }

/* Stat strip pinned to the base of the hero */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(242,244,248,.18);
  padding: 1.4rem 0 1.6rem;
}
.hero-stats ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 0;
}
.hero-stats li {
  font-size: .705rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-2);
  padding: 0 2.2rem; border-right: 1px solid rgba(242,244,248,.22);
}
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li:last-child { border-right: 0; }
.hero-stats b { color: var(--wood-pale); font-weight: 700; }
@media (max-width: 900px) {
  /* Flex wrapping left dividers dangling at the end of a row. A grid keeps
     the columns honest and drops the rule on every right-hand cell. */
  .hero-stats ul { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 0; }
  .hero-stats li { padding: 0 1rem 0 0; font-size: .635rem; letter-spacing: .1em; }
  .hero-stats li:nth-child(2n) { border-right: 0; padding-left: 1rem; }
}
@media (max-width: 460px) {
  .hero-stats ul { grid-template-columns: 1fr; }
  .hero-stats li { border-right: 0; padding: 0; }
}

/* --------------------------------------------------------------------------
   Section head — headline left, supporting copy right
   -------------------------------------------------------------------------- */
.sec-head {
  display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr;
  align-items: end; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.05fr .95fr; } }
.sec-head h1, .sec-head h2 { margin: 0; }
.sec-head .sec-copy { margin: 0; font-size: 1.02rem; }
.sec-head.solo { grid-template-columns: 1fr; max-width: 46rem; }

/* --------------------------------------------------------------------------
   Image-forward tiles — photo fills, label + title overlaid
   -------------------------------------------------------------------------- */
.tile-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); text-decoration: none;
  background: var(--ink-2); min-width: 0;
  aspect-ratio: 4 / 5;
}
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3.5rem; height: 2px;
  background: var(--wood-lt); z-index: 3;
}
.tile-media { position: absolute; inset: 0; }
.tile-media picture { display: block; width: 100%; height: 100%; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,18,.14) 0%, rgba(10,12,18,.44) 46%, rgba(10,12,18,.92) 100%);
}
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem 1.6rem 1.6rem; }
.tile-label {
  font-size: .655rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--wood-pale); margin: 0 0 .5rem;
}
.tile h3 { font-family: var(--serif); font-size: clamp(1.28rem, 2vw, 1.6rem); color: #fff; margin: 0 0 .4rem; font-weight: 500; }
.tile p { font-size: .9rem; color: var(--on-dark-2); margin: 0; }
.tile-arrow {
  position: absolute; right: 1.4rem; bottom: 1.65rem; z-index: 3;
  width: 24px; height: 24px; color: var(--wood-pale);
  transition: transform .25s ease;
}
.tile:hover .tile-arrow { transform: translate(3px, -3px); }
.tile-count {
  position: absolute; right: 1.1rem; top: 1.1rem; z-index: 3;
  font-size: .655rem; font-weight: 700; letter-spacing: .1em;
  color: var(--on-dark); background: rgba(14,16,23,.66);
  padding: .3rem .6rem; border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   Project detail
   -------------------------------------------------------------------------- */
.proj-hero { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .proj-hero { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.proj-hero-media img { width: 100%; border-radius: var(--radius-lg); }
.proj-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.spec { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.dark .spec { border-top-color: var(--line-dark); }
.spec li { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.dark .spec li { border-bottom-color: var(--line-dark); }
.spec .k {
  flex: 0 0 8.5rem; font-weight: 700; color: var(--muted);
  font-size: .655rem; letter-spacing: .15em; text-transform: uppercase; padding-top: .35em;
}
.dark .spec .k { color: var(--on-dark-3); }
.spec .v { color: var(--text); min-width: 0; }
.dark .spec .v { color: var(--on-dark-2); }

.pss { display: grid; gap: 1.4rem; margin: 0; padding: 0; }
@media (min-width: 820px) { .pss { grid-template-columns: repeat(3, 1fr); } }
.pss-item { border-top: 2px solid var(--wood); padding: 1.4rem 0 0; min-width: 0; }
.dark .pss-item { border-top-color: var(--wood-lt); }
.pss-item h3 {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem;
}
.dark .pss-item h3 { color: var(--on-dark-3); }
.pss-item p { font-size: .95rem; margin: 0; }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; border-radius: var(--radius-lg); background: var(--paper-3); }
.gallery figcaption { font-size: .805rem; color: var(--muted); margin-top: .55rem; line-height: 1.5; }
.dark .gallery figcaption { color: var(--on-dark-3); }
.stage-pill {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  padding: .2rem .45rem; border-radius: 2px; margin-right: .5rem; vertical-align: 1px;
}
.stage-during { background: #f2e7db; color: #6f4a22; }
.stage-after  { background: #e6eaf9; color: #26377f; }
.dark .stage-during { background: #2a2116; color: var(--wood-pale); }
.dark .stage-after  { background: #1b2038; color: var(--brand-pale); }

/* Progression */
.progression { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .progression { grid-template-columns: repeat(3, 1fr); } }
.prog-step { position: relative; min-width: 0; }
.prog-step img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
.prog-label {
  display: block; margin-top: .8rem;
  font-size: .655rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}
.dark .prog-label { color: var(--wood-lt); }

/* --------------------------------------------------------------------------
   Answer blocks
   -------------------------------------------------------------------------- */
.answers { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dark .answers { border-top-color: var(--line-dark); }
.answer { border-bottom: 1px solid var(--line); padding: 1.6rem 0; min-width: 0; }
.dark .answer { border-bottom-color: var(--line-dark); }
.answer h3 {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 500;
  margin-bottom: .55rem; color: var(--text-strong); letter-spacing: -.01em;
}
.dark .answer h3 { color: var(--on-dark); }
.answer p { margin: 0; font-size: .96rem; max-width: 46rem; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.8rem; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--wood); }
.dark .prose li::marker { color: var(--wood-lt); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem);
}
.field { margin-bottom: 1.2rem; min-width: 0; }
.field label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.field .hint { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text-strong);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .85rem .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56,81,194,.16);
}
.field textarea { min-height: 8rem; resize: vertical; }
/* #5f6678 on #f7f8fa = 5.4:1 */
.field ::placeholder { color: var(--muted); opacity: 1; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs { padding: 1.4rem 0 0; font-size: .74rem; letter-spacing: .06em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dk); }

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips a {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-strong); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem 1rem;
  transition: border-color .15s, color .15s;
}
.chips a:hover { border-color: var(--brand); color: var(--brand-dk); }
.dark .chips a { color: var(--on-dark-2); border-color: var(--line-dark); }
.dark .chips a:hover { border-color: var(--wood-lt); color: #fff; }

.rail-label {
  font-family: var(--sans); font-size: .655rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1rem;
}
.dark .rail-label { color: var(--on-dark-3); }

/* --------------------------------------------------------------------------
   Next step
   -------------------------------------------------------------------------- */
.next-step {
  border-top: 2px solid var(--wood);
  padding: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: end; justify-content: space-between;
}
.dark .next-step { border-top-color: var(--wood-lt); }
.next-step h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .4rem; }
.next-step p { margin: 0; max-width: 34rem; }
.next-step .btn-row { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   "Got a weird project?" — full-bleed photo band with centred copy.
   Same construction as .final-cta: absolutely positioned media, gradient
   scrim, content lifted above it. Without these rules the portrait photo
   renders at its natural height (1374px) and left-aligned.
   -------------------------------------------------------------------------- */
.weird {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
.weird-media { position: absolute; inset: 0; }
.weird-media picture { display: block; width: 100%; height: 100%; }
.weird-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.weird-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,18,.62) 0%, rgba(10,12,18,.80) 100%);
}
.weird-inner { position: relative; z-index: 2; text-align: center; }
.weird-inner > * { max-width: 44rem; margin-inline: auto; }
.weird-inner .eyebrow { justify-content: center; color: var(--wood-lt); }
.weird-inner h2 { color: #fff; }
.weird-inner .h-alt { color: var(--wood-pale); }
.weird-inner p { color: var(--on-dark-2); }
.weird-inner .muted { color: var(--on-dark-3); }
/* Narrow viewports crop into the bright canopy at the top of this photo,
   so the scrim has to carry more of the contrast there. */
@media (max-width: 820px) {
  .weird-media::after {
    background: linear-gradient(to bottom, rgba(10,12,18,.78) 0%, rgba(10,12,18,.88) 100%);
  }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta { position: relative; overflow: hidden; background: var(--ink); }
.final-cta-media { position: absolute; inset: 0; }
.final-cta-media picture { display: block; width: 100%; height: 100%; }
.final-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,18,.82) 0%, rgba(10,12,18,.9) 100%);
}
.final-cta-inner { position: relative; z-index: 2; text-align: center; max-width: 44rem; margin-inline: auto; }
.final-cta-inner h2 { color: #fff; }
.final-cta-inner .h-alt { color: var(--wood-pale); }
.final-cta-inner p { color: var(--on-dark-2); font-size: 1.05rem; }
.final-cta .btn-row { justify-content: center; margin-top: 1.9rem; }
.final-cta .eyebrow { justify-content: center; color: var(--wood-lt); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .9rem; }
/* The footer is a dark surface. Light-mode grays must not leak into it. */
.site-footer .muted, .site-footer p { color: var(--on-dark-2); }
.site-footer .lede { color: var(--on-dark-2); }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.site-footer h3 {
  font-family: var(--sans); font-size: .655rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--wood-lt); margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.2rem; }
.footer-phone {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: #fff !important;
  text-decoration: none; display: inline-block; margin: .4rem 0 .3rem; letter-spacing: -.01em;
}
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; justify-content: space-between;
  font-size: .8rem; color: var(--on-dark-2);
}
.footer-bottom a { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Reveal — visible by default; the class is only added by JS
   -------------------------------------------------------------------------- */
.js-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal { opacity: 1 !important; transform: none !important; } }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.notice { border-left: 2px solid var(--wood); padding: 1.1rem 0 1.1rem 1.3rem; font-size: .93rem; color: var(--text); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Two-column intro layouts */
@media (min-width: 900px) {
  .svc-layout { grid-template-columns: 1fr 1fr !important; align-items: center; gap: 4rem !important; }
  .contact-layout { grid-template-columns: .95fr 1.05fr !important; align-items: start; gap: 4rem !important; }
}
.svc-hero-img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Service-area cards */
.area-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.area-card {
  display: flex; flex-direction: column; text-decoration: none; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.6rem;
  transition: border-color .2s ease, transform .2s ease;
}
.area-card:hover { transform: translateY(-3px); border-top-color: var(--wood); }
.area-card.primary { border-top-color: var(--brand); }
.area-card h3 { font-size: 1.28rem; margin-bottom: .3rem; color: var(--text-strong); }
.area-card .bearing {
  font-size: .645rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .8rem;
}
.area-card p { font-size: .91rem; color: var(--text); margin: 0 0 1.1rem; }
.area-card .go {
  margin-top: auto; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand-dk); display: inline-flex; align-items: center; gap: .5rem;
}
.area-card .go svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Small screens: `white-space: nowrap` on a long CTA label pushed the page
   past the viewport. Let buttons take the full column and wrap their text.
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  /* Chips and the mobile bar keep their own sizing. */
  .chips a, .mobile-bar a { width: auto; }
}

/* --------------------------------------------------------------------------
   Dark chrome must not inherit light-mode ink.
   The header and the tiles are dark surfaces that sit outside `.dark`, so the
   global `body`/`a` colours leaked into them.
   -------------------------------------------------------------------------- */
.site-header { color: var(--on-dark-2); }
.site-header a { color: var(--on-dark-2); }
.site-header .btn-primary { color: #fff; }
.tile { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Review platform cards
   -------------------------------------------------------------------------- */
.rev-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
.rev-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  border-radius: var(--radius-lg); padding: 1.6rem 1.7rem 1.7rem;
}
.dark .rev-card { background: var(--ink-2); border-color: var(--line-dark); }
.rev-plat {
  font-size: .655rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem;
}
.dark .rev-plat { color: var(--on-dark-3); }
.rev-score { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.rev-score b { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--text-strong); line-height: 1; }
.dark .rev-score b { color: var(--on-dark); }
.rev-stars { color: var(--wood); font-size: 1rem; letter-spacing: .1em; }
.dark .rev-stars { color: var(--wood-lt); }
.rev-count { font-size: .9rem; color: var(--muted); margin: 0 0 1.2rem; }
.dark .rev-count { color: var(--on-dark-2); }
.rev-pending {
  font-size: .93rem; color: var(--muted); margin: 0 0 1.2rem;
  border-left: 2px solid var(--wood); padding-left: 1rem;
}
.dark .rev-pending { color: var(--on-dark-2); border-left-color: var(--wood-lt); }
.rev-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 560px) { .rev-card .btn { align-self: stretch; } }
.rev-quote { border-left: 2px solid var(--line); padding-left: 1.1rem; margin: 0 0 1rem; }
.rev-quote p { font-size: .95rem; margin: 0 0 .4rem; }
.rev-quote cite { font-size: .8rem; color: var(--muted); font-style: normal; }
