/* ==========================================================================
   Peci's Plumbing — design tokens + base
   All colour/type/spacing/motion values live here as :root variables.
   Nothing downstream hardcodes a value.
   RGB companions are SPACE-FORM only — consumed as rgb(var(--x-rgb) / a).
   ========================================================================== */

:root {
  /* ---- Palette ---- */
  --bg: #f2ede4;
  --bg-rgb: 242 237 228;

  --ink: #1c1917;
  --ink-rgb: 28 25 23;

  --accent: #9c7c4f;
  --accent-rgb: 156 124 79;

  --section-dark: #262220;
  --section-dark-rgb: 38 34 32;

  /* ---- Type ---- */
  --font-display: "Instrument Serif", serif;
  --font-body: "Figtree", sans-serif;

  /* Fluid type scale (min @ 360px viewport → max @ 1440px) */
  --text-xs:  clamp(0.75rem, 0.72rem + 0.14vw, 0.8125rem);
  --text-sm:  clamp(0.875rem, 0.84rem + 0.17vw, 0.9375rem);
  --text-base:clamp(1rem, 0.95rem + 0.23vw, 1.125rem);
  --text-lg:  clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-xl:  clamp(1.375rem, 1.22rem + 0.69vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.47rem + 1.25vw, 2.625rem);
  --text-3xl: clamp(2.25rem, 1.73rem + 2.31vw, 3.875rem);

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
  --section-pad: clamp(4rem, 3rem + 5vw, 8rem);

  /* ---- Shape ---- */
  --radius: 6px;

  /* ---- Motion (read by JS via getComputedStyle — no magic numbers in JS) ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-1: 0.3s;
  --dur-2: 0.6s;
  --dur-3: 1s;
  --reveal-y: 2.5rem;      /* reveal rise distance */
  --reveal-stagger: 0.09s; /* gap between staggered children */
  --reveal-start: 85%;     /* viewport line where GSAP reveals fire */

  /* GSAP consumes named eases, not cubic-bezier() strings (that needs the
     CustomEase plugin, which isn't shipped). These tokens are the GSAP-side
     twins of the cubic-bezier tokens above — JS reads them via getComputedStyle. */
  --gsap-ease-reveal: expo.out;
  --gsap-ease-hero: expo.out;

  /* ---- Hero variants (A/B/C via data-hero-motion) ---- */
  --hero-scale-from: 1.12;          /* A: image settle start scale */
  --hero-line-stagger: 0.12s;       /* A: SplitText line rise gap */
  --hero-word-stagger: 0.045s;      /* B: word stagger gap */
  --hero-clip-from: inset(0 100% 0 0); /* B: image reveal start clip */
  --hero-pin-end: 120%;             /* C: pin scroll distance */
  --hero-scale-c-from: 0.85;        /* C: image start scale */

  /* ---- Hero variant D (the room renovates itself) ---- */
  --hero-d-pin-start: 0;         /* D: absolute scroll pos — pinned from page top, scrub on first scroll */
  --hero-d-pin-distance: 100%;   /* D: total pin scroll distance (stage pacing stays proportional) */
  --hero-d-scale-to: 1.1;        /* D: stage frame scale at pin end */
  --hero-d-fade-share: 0.16;     /* D: each crossfade's share of the pin [0..1] */
  --hero-d-overlap: 0.04;        /* D: how early a fade leads its quarter boundary [0..1] */
  --hero-d-warmth-max: 0.22;     /* D: warm overlay opacity at pin end [0..1] */

  /* ---- Before/after comparer ---- */
  --ba-progress-rest: 0.5;          /* resting reveal (no-JS / pre-scrub) */
  --ba-pin-end: 100%;               /* scrubbed pin distance */
  --ba-iris-max: 75%;               /* iris preset max radius */
  --ba-handle-size: 2.75rem;        /* grip diameter */

  /* ---- Gallery + process motion ---- */
  --scrub-smooth: 1;                /* scrub catch-up (s) for gallery/process */
  --gallery-pin-offset: 5rem;       /* clears the sticky header while pinned */
  --process-draw-start: 75%;        /* viewport line where the line starts drawing */
  --process-draw-end: 65%;          /* viewport line where the draw completes */
  --step-reveal-start: 78%;         /* viewport line where each step reveals */
  --process-node-size: 2.25rem;     /* numbered node diameter */
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden; /* body ONLY — never html,body (breaks position:sticky + scroll libs) */
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--space-5), 72rem);
  margin-inline: auto;
  overflow-x: clip;
}

.section-dark {
  background-color: var(--section-dark);
  color: var(--bg);
}

.kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

section h2 {
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-bottom: var(--space-5);
}

.section-lede {
  max-width: 52ch;
  color: rgb(var(--ink-rgb) / 0.75);
  margin-bottom: var(--space-6);
}

.placeholder-mark {
  border-bottom: 1px dashed rgb(var(--accent-rgb) / 0.7);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--dur-1) var(--ease-out-expo),
              color var(--dur-1) var(--ease-out-expo),
              border-color var(--dur-1) var(--ease-out-expo);
}

.btn-solid {
  background-color: var(--ink);
  color: var(--bg);
}

.btn-solid:hover {
  background-color: var(--accent);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgb(var(--ink-rgb) / 0.3);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-light {
  background-color: var(--bg);
  color: var(--ink);
}

.btn-light:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* ---- Skip link ---- */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background-color: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Reveal system
   ==========================================================================
   Initial hidden states live HERE, not in JS, so there's no layout shift and
   no flash-of-hidden-content risk:
   - Browsers with scroll-driven animations + motion OK → native view() timeline.
   - Otherwise, the head script adds html.gsap-reveal (only when motion is OK)
     and GSAP's ScrollTrigger.batch animates to the CSS resting state.
   - Reduced motion or no JS → neither block applies; content just shows. */

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-y));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not(.gsap-reveal) .reveal {
      animation: reveal-rise var(--ease-out-expo) both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }

  html.gsap-reveal .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-y));
  }
}

/* ==========================================================================
   Hero motion initial states (variants A/B/C)
   ==========================================================================
   CSS owns every initial state → no CLS, no JS-only hiding. Gated on:
   - .js (set pre-paint in <head>) so no-JS visitors see everything;
   - :not(.motion-off) — main.js adds motion-off if GSAP fails to load;
   - prefers-reduced-motion: no-preference. */

@media (prefers-reduced-motion: no-preference) {
  /* A + B + D: headline hidden until SplitText has split it (JS reveals) */
  html.js:not(.motion-off) .hero[data-hero-motion="a"] .hero-headline,
  html.js:not(.motion-off) .hero[data-hero-motion="b"] .hero-headline,
  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-headline {
    opacity: 0;
    text-wrap: initial; /* text-wrap: balance interferes with SplitText */
  }

  /* A + B + D: supporting text rises in after the headline */
  html.js:not(.motion-off) .hero[data-hero-motion="a"] .hero-kicker,
  html.js:not(.motion-off) .hero[data-hero-motion="a"] .hero-subline,
  html.js:not(.motion-off) .hero[data-hero-motion="a"] .hero-ctas,
  html.js:not(.motion-off) .hero[data-hero-motion="b"] .hero-kicker,
  html.js:not(.motion-off) .hero[data-hero-motion="b"] .hero-subline,
  html.js:not(.motion-off) .hero[data-hero-motion="b"] .hero-ctas,
  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-kicker,
  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-subline,
  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-ctas {
    opacity: 0;
    transform: translateY(var(--reveal-y));
  }

  /* D motion path: all four stage layers stack inside a fixed-ratio frame.
     CSS owns the initial states — stage 1 visible, 2–4 waiting at opacity 0.
     Everything else (reduced motion, motion-off, no-JS, variants A–C) uses
     the static base rules below. */
  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-stage {
    --hero-d-warmth: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
  }

  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-stage-layer {
    display: block;
    position: absolute;
    inset: 0;
  }

  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-stage-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-stage-layer:not([data-stage="1"]) {
    opacity: 0;
  }

  /* warmth overlay: JS scrubs --hero-d-warmth from 0 to --hero-d-warmth-max */
  html.js:not(.motion-off) .hero[data-hero-motion="d"] .hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgb(var(--accent-rgb) / 0.55),
      rgb(var(--accent-rgb) / 0.9));
    opacity: var(--hero-d-warmth, 0);
  }

  /* A: image settles from a slow overscale */
  html.js:not(.motion-off) .hero[data-hero-motion="a"] .hero-media img {
    transform: scale(var(--hero-scale-from));
  }

  /* B: image wipes in via clip-path */
  html.js:not(.motion-off) .hero[data-hero-motion="b"] .hero-media {
    clip-path: var(--hero-clip-from);
  }

  /* C: image starts small, scales through while the headline holds (pinned) */
  html.js:not(.motion-off) .hero[data-hero-motion="c"] .hero-media img {
    transform: scale(var(--hero-scale-c-from));
    transform-origin: 50% 100%;
  }

  /* Process steps reveal with the drawn line (GSAP-orchestrated, both JS
     paths — steps are deliberately NOT in the generic .reveal pool) */
  html.js:not(.motion-off) .step {
    opacity: 0;
    transform: translateY(var(--reveal-y));
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgb(var(--bg-rgb) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  text-decoration: none;
}

.wordmark-sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: var(--space-5);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: rgb(var(--ink-rgb) / 0.75);
  transition: color var(--dur-1) var(--ease-out-expo);
}

.site-nav a:hover {
  color: var(--accent);
}

.header-phone {
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: var(--section-pad) 0;
}

.hero-headline {
  font-size: var(--text-3xl);
  max-width: 14ch;
}

.hero-subline {
  max-width: 46ch;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: rgb(var(--ink-rgb) / 0.75);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-media-wrap {
  margin-top: var(--space-8);
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---- Hero stage stack (shared markup, all variants) ----
   Base = static truth for A–C, reduced motion, motion-off and no-JS: only the
   finished stage-4 layer (which carries .hero-media) renders in normal flow.
   The D motion path above re-enables and stacks the other layers. */

.hero-stage {
  position: relative;
}

.hero-stage-layer:not([data-stage="4"]) {
  display: none;
}

/* ==========================================================================
   Trust strip
   ==========================================================================
   Sits directly under the hero image; dark band. */

.trust {
  margin-top: var(--space-8);
  background-color: var(--section-dark);
  color: rgb(var(--bg-rgb) / 0.85);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
}

.trust-inner p {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   Before / after
   ========================================================================== */

.ba {
  padding-block: var(--section-pad);
}

/* Layered comparer: one custom property (--ba-progress) drives both presets.
   Scrub, drag, and keyboard all just move that number. */
.ba-stage {
  --ba-progress: var(--ba-progress-rest);
  position: relative;
  aspect-ratio: 16 / 10;
  /* no overflow clip here — the drag grip must stay grabbable at 0% and 100%;
     each layer carries its own radius + clip instead */
}

.ba-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-stage[data-ba-preset="wipe"] .ba-over {
  clip-path: inset(0 calc((1 - var(--ba-progress)) * 100%) 0 0);
}

.ba-stage[data-ba-preset="iris"] .ba-over {
  clip-path: circle(calc(var(--ba-progress) * var(--ba-iris-max)) at 50% 50%);
}

.ba-tag {
  position: absolute;
  bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  background-color: rgb(var(--ink-rgb) / 0.75);
  color: var(--bg);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ba-tag-before {
  left: var(--space-3);
}

.ba-tag-after {
  right: var(--space-3);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: rgb(var(--bg-rgb) / 0.9);
  cursor: ew-resize;
  touch-action: none;
}

.ba-handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ba-handle-size);
  height: var(--ba-handle-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgb(var(--bg-rgb) / 0.92);
  border: 1px solid rgb(var(--ink-rgb) / 0.25);
}

.ba-handle-grip::before {
  content: "\2194";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: var(--text-base);
}

html:not(.js) .ba-handle {
  display: none;
}

.ba-switcher {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.ba-preset-btn {
  padding: var(--space-1) var(--space-4);
  border: 1px solid rgb(var(--ink-rgb) / 0.25);
  border-radius: 100vmax;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb) / 0.7);
  transition: border-color var(--dur-1) var(--ease-out-expo),
              color var(--dur-1) var(--ease-out-expo);
}

.ba-preset-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Services (dark)
   ========================================================================== */

.services {
  padding-block: var(--section-pad);
}

.services h2 {
  color: var(--bg);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-7);
  margin-top: var(--space-7);
}

.service {
  border-top: 1px solid rgb(var(--bg-rgb) / 0.15);
  padding-top: var(--space-5);
}

.service-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent);
}

.service h3 {
  font-size: var(--text-xl);
  margin-block: var(--space-2) var(--space-3);
}

.service p {
  color: rgb(var(--bg-rgb) / 0.7);
  max-width: 44ch;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  padding-block: var(--section-pad);
}

/* Vertical timeline: one straight SVG line runs through all six numbered
   nodes (DrawSVG draws it on scroll; static = fully drawn). */
.process-flow {
  position: relative;
  max-width: 44rem;
  margin-top: var(--space-7);
}

.process-line {
  position: absolute;
  top: calc(var(--process-node-size) / 2);
  bottom: calc(var(--process-node-size) / 2);
  left: calc(var(--process-node-size) / 2 - 2px);
  width: 4px;
  height: auto;
}

.process-line path {
  stroke: rgb(var(--accent-rgb) / 0.55);
  stroke-width: 2;
  fill: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--process-node-size) 1fr;
  column-gap: var(--space-5);
  padding-block: var(--space-4);
}

.step-num {
  grid-row: 1 / span 2;
  width: var(--process-node-size);
  height: var(--process-node-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--bg);
  border: 1px solid rgb(var(--accent-rgb) / 0.6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--accent);
}

.step h3 {
  grid-column: 2;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  align-self: center;
}

.step p {
  grid-column: 2;
  color: rgb(var(--ink-rgb) / 0.7);
  font-size: var(--text-sm);
  max-width: 48ch;
}

/* ==========================================================================
   Gallery (dark) — static stage: native horizontal scroll strips
   ========================================================================== */

.gallery {
  padding-block: var(--section-pad);
}

.gallery h2 {
  color: var(--bg);
}

.gallery-track-wrap,
.details-strip-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--accent-rgb) / 0.6) transparent;
}

/* When the pinned scrub takes over (JS adds .gallery-pinned on fine-pointer,
   motion-OK visits), the track translates instead of natively scrolling. */
.gallery.gallery-pinned .gallery-track-wrap {
  overflow-x: clip;
}

.gallery-pin {
  /* pinned wrapper: heading + main track (details strip stays outside) */
  padding-bottom: var(--space-6);
}

.gallery-track,
.details-strip {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding-inline: max(var(--space-5), (100vw - 72rem) / 2);
}

.gallery-track {
  margin-top: var(--space-7);
}

.gallery-track li {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 340px);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.details-strip {
  margin-top: var(--space-6);
}

.details-strip li {
  flex: 0 0 auto;
  width: clamp(140px, 16vw, 200px);
  border-radius: var(--radius);
  overflow: hidden;
}

.details-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding-block: var(--section-pad);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about-copy p + p {
  margin-top: var(--space-4);
}

.about-copy p {
  color: rgb(var(--ink-rgb) / 0.8);
  max-width: 52ch;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ==========================================================================
   Service area
   ========================================================================== */

.area {
  padding-block: 0 var(--section-pad);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  max-width: 46rem;
}

.area-list li {
  padding: var(--space-1) var(--space-4);
  border: 1px solid rgb(var(--ink-rgb) / 0.2);
  border-radius: 100vmax;
  font-size: var(--text-sm);
  color: rgb(var(--ink-rgb) / 0.8);
}

.area-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgb(var(--ink-rgb) / 0.6);
}

/* ==========================================================================
   Contact (dark)
   ========================================================================== */

.contact {
  padding-block: var(--section-pad);
}

.contact h2 {
  color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-intro p {
  color: rgb(var(--bg-rgb) / 0.7);
  max-width: 40ch;
}

.contact-direct {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  line-height: 2;
}

.contact-direct a {
  text-decoration: none;
  color: var(--bg);
  border-bottom: 1px solid rgb(var(--accent-rgb) / 0.6);
  transition: color var(--dur-1) var(--ease-out-expo);
}

.contact-direct a:hover {
  color: var(--accent);
}

.contact-form .field {
  margin-bottom: var(--space-5);
}

.contact-form label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--bg-rgb) / 0.6);
  margin-bottom: var(--space-2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(var(--bg-rgb) / 0.25);
  color: var(--bg);
  transition: border-color var(--dur-1) var(--ease-out-expo);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form ::placeholder {
  color: rgb(var(--bg-rgb) / 0.35);
}

.form-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgb(var(--bg-rgb) / 0.45);
}

/* ==========================================================================
   Footer (dark, continues contact)
   ========================================================================== */

.site-footer {
  border-top: 1px solid rgb(var(--bg-rgb) / 0.12);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
}

.footer-blurb,
.footer-credit {
  font-size: var(--text-xs);
  color: rgb(var(--bg-rgb) / 0.55);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .ba-stage {
    aspect-ratio: 4 / 5;
  }
}
