/*
  base.css: design tokens and shared pieces for the whole page.
  Every section stylesheet builds on these; nothing here belongs to one section.

  Brand: the business has no website, but it has a logo (a round badge of
  rolling field rows in two greens with five young trees, "PAL CAMPO" in a
  classic serif) and a fire-engine red trailer sign with the slogan "A cut
  above the rest". The palette is sampled from those two: the logo's dark
  forest green and leaf green, pale field tints, and the sign's red as the one
  accent (call buttons only, plus the thin "blade" lines).
  Tone: proud, crisp, dependable. Not fussy, not corporate, not cheap.
  Type: Source Serif 4 for headings (a sturdy classic serif, close in spirit
  to the Times-style lettering on their sign and logo) and Instrument Sans for
  reading text and controls.
  Motion: one idea across the page, mowing stripes. Things are revealed in
  bands that pass in alternating directions, like a mower going back and
  forth. It only runs when <html> has the "motion-ready" class
  (src/scripts/base.js); without it every section is a complete static page.
*/

:root {
  /* Brand colors (sampled from their logo and trailer sign) */
  --field: #122d18;          /* logo's dark green: dark sections, text on light (13.5:1 on mist) */
  --leaf: #8fb758;           /* logo's light green: accents on dark (6.4:1 on field) */
  --mist: #f2f5ec;           /* page background, a light mowing stripe */
  --sage: #dde7cf;           /* the darker light stripe, alternate sections */
  --moss: #3d6b2a;           /* small green labels on light backgrounds (5.7:1 on mist, 4.9:1 on sage) */
  --red: #d22d20;            /* the one accent, from their trailer sign: call buttons (white text 5.1:1) */

  /* Tints of the brand colors */
  --field-2: #1a3d22;        /* a mowing stripe one shade lighter, on dark sections */
  --sage-2: #cfdcbd;         /* the darker of two mowed stripes */
  --tall: #c3d2ae;           /* unmowed grass, before a stripe is "cut" (never under text) */
  --muted: #4b5d47;          /* secondary text on light (6.4:1 on mist, 5.0:1 on sage-2) */
  --red-deep: #a8231a;       /* hover state of red buttons (white text 7.2:1) */
  --on-field: #eef3e6;       /* text on dark green (13:1) */
  --on-field-muted: #b7c7ab; /* secondary text on dark green (8.3:1 on field, 6.8:1 on field-2) */

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.75vw, 1.875rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.9vw, 4.25rem);
  --fs-display: clamp(3.125rem, 1.9rem + 4.2vw, 5.75rem);

  /* Spacing scale (4 to 128) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius: 6px;          /* buttons, fields, the photo tag. Photos stay square-cut. */
  --container: 1200px;
  --gutter: var(--s4);
  --header-h: 64px;
  /* No shadow style: surfaces are told apart by their stripe color, not by depth. */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring; dark and red sections switch it so it stays visible. */
  --focus: var(--field);
}

@media (min-width: 640px) { :root { --gutter: var(--s5); } }
@media (min-width: 1024px) { :root { --gutter: var(--s6); --fs-body: 1.125rem; --header-h: 76px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--mist);
  color: var(--field);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Bands that slide in from the side start past the screen edge; clip them so
   the page never scrolls sideways. On <main>, not <body>: a body value is
   handed to the viewport, which phones ignore when they zoom out to fit.
   "clip" (unlike "hidden") keeps position: sticky working. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
/* :where() keeps this at zero weight, so a list that is also a .container keeps its side padding. */
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

/* Lenis smooth scrolling (rules from the Lenis package). Lenis does the
   smoothing itself, so the browser's own smooth scrolling is switched off. */
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Sections are reached from header links; keep their tops clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Small uppercase label above a heading */
.kicker {
  margin-bottom: var(--s4);
  color: var(--moss);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Buttons: 48px tall for thumbs (56px for the large one). Red is only ever
   the call; dark green is the quieter choice. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap; /* a phone number must never break across lines */
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding-inline: var(--s6); font-size: 1.125rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-field { background: var(--field); color: var(--on-field); }
.btn-field:hover { background: var(--field-2); }

/* Five-star row next to the real Google rating */
.stars { display: inline-flex; gap: 2px; color: var(--leaf); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Photo frames that motion reveals in bands (see PC.slatReveal in base.js).
   The bands are added by script, so without motion the photo simply shows. */
.frame { position: relative; overflow: hidden; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.slats {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  pointer-events: none;
}
/* The 1px shadow covers hairline gaps between bands at odd pixel heights. */
.slats span { background: var(--slat, var(--mist)); box-shadow: 0 1px 0 var(--slat, var(--mist)); }

/* Skip link: first thing a keyboard user reaches, above everything else on the page */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  background: var(--field);
  color: var(--on-field);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s4); }

/* HomeSampleNotice: the "sample website" strip above the header. */
.sample-notice {
  position: relative;
  z-index: 60;
  background: var(--sage);
  color: var(--field);
  font-size: var(--fs-xs);
  line-height: 1.45;
  text-align: center;
}
.sample-notice p { padding-block: var(--s2); }
.sample-notice a { font-weight: 650; }

/*
  HomeIntro: full-screen striped curtain shown while the page starts.
  Only exists when <html> has the "motion" class (set in head.js).
*/
.intro { display: none; }

.motion .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Safety net: hides the curtain by itself if HomeIntro.js never runs. */
  animation: intro-failsafe 0.01s linear 3s forwards;
}
@keyframes intro-failsafe { to { visibility: hidden; } }

.intro__rows {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
}
.intro__rows span { background: var(--field); box-shadow: 0 1px 0 var(--field); }
.intro__rows span:nth-child(even) { background: var(--field-2); box-shadow: 0 1px 0 var(--field-2); }

.intro__mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s5);
}
.intro__badge { width: clamp(128px, 34vw, 188px); height: auto; }
.intro__cut {
  display: block;
  width: min(320px, 70vw);
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}

/* HomeHeader: sticky dark bar with the logo badge, links and the call button. */
.site-header {
  --focus: var(--leaf);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--field);
  color: var(--on-field);
  border-bottom: 1px solid var(--field-2);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin-right: auto;
  color: var(--on-field);
  text-decoration: none;
  /* Keeps the 44px tap target even though the badge itself is 40px. */
  min-height: 44px;
}
.brand__badge { width: 40px; height: 40px; flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__sub {
  margin-top: 2px;
  color: var(--leaf);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* The smallest phones need the room for the call button. */
@media (max-width: 359px) { .brand__sub { display: none; } }

.site-nav { display: none; }
@media (min-width: 960px) {
  .site-nav { display: block; }
  .site-nav__list { display: flex; gap: var(--s5); }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--on-field);
    font-size: var(--fs-sm);
    font-weight: 550;
    text-decoration: none;
    background: linear-gradient(var(--leaf), var(--leaf)) left bottom / 0 2px no-repeat;
    transition: background-size 0.3s var(--ease-out);
  }
  .site-nav a:hover { background-size: 100% 2px; }
}

.site-header__call { padding-inline: var(--s4); }
.site-header__call-full { display: none; }
@media (min-width: 640px) {
  .site-header__call { padding-inline: var(--s5); }
  .site-header__call-short { display: none; }
  .site-header__call-full { display: inline; }
}

/* HomeHero: dark striped first screen. Phones: text, then the photo full width.
   Desktop (960px+): text in the left half, photo filling the right half. */
.hero {
  --focus: var(--leaf);
  position: relative;
  isolation: isolate;
  background: var(--field);
  color: var(--on-field);
}

/* Wide vertical mowing stripes behind everything. */
.hero__stripes {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.hero__stripes span:nth-child(even) { background: var(--field-2); }

.hero__grid {
  display: grid;
  gap: var(--s7);
  padding-top: var(--s6);
}

.hero__kicker {
  display: block;
  margin-bottom: var(--s4);
  color: var(--leaf);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}
.hero__big {
  display: block;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero__big em { color: var(--leaf); font-weight: 600; }

/* The blade: a thin red cut line under the slogan. */
.hero__cut {
  display: block;
  width: min(100%, 22rem);
  height: 3px;
  margin-block: var(--s5);
  background: var(--red);
  transform-origin: left center;
}

.hero__lead {
  max-width: 34em;
  color: var(--on-field-muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__actions {
  display: grid;
  justify-items: start;
  gap: var(--s2);
  margin-top: var(--s5);
}
.hero__actions .btn { width: 100%; }
.hero__note { color: var(--on-field-muted); font-size: var(--fs-sm); }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  margin-top: var(--s5);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.hero__rating { display: inline-flex; align-items: center; gap: var(--s2); }
.hero__score { color: var(--on-field); font-weight: 700; }
.hero__hours { color: var(--on-field-muted); }

/* Phones: the photo runs edge to edge under the text. */
.hero__photo { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.hero__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero__tag {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s4);
  padding: var(--s1) var(--s3);
  background: var(--mist);
  color: var(--field);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.6;
}

/* The smallest phones: tighter spacing so the call button and the rating
   still fit the first screen. */
@media (max-width: 359px) {
  .hero__grid { padding-top: var(--s5); }
  .hero__kicker { margin-bottom: var(--s3); }
  .hero__cut { margin-block: var(--s4); }
  .hero__lead { font-size: var(--fs-body); }
  .hero__actions,
  .hero__proof { margin-top: var(--s4); }
}

@media (min-width: 640px) {
  .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
  .hero__actions .btn { width: auto; }
}

@media (min-width: 960px) {
  .hero__grid { display: block; padding-top: 0; }
  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-height: min(60rem, calc(100svh - var(--header-h)));
    padding-block: var(--s8);
    padding-right: var(--s7);
  }
  .hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    margin: 0;
  }
  .hero__frame { height: 100%; aspect-ratio: auto; }
  .hero__frame img { object-position: 50% 70%; }
  .hero__tag { left: var(--s5); bottom: var(--s5); }
}
@media (min-width: 1280px) {
  .hero__content { padding-block: var(--s9); }
}

/* HomeServices: the six services as full-width mowing stripes, then two photos. */
.services {
  background: var(--mist);
  padding-block: var(--s9);
}
.services__head { margin-bottom: var(--s7); }
.services__head h2 { max-width: 17em; }

/* One stripe. Underneath: unmowed grass (fine vertical blades). On top: the
   cut stripe with the text, which motion reveals behind the blade. */
.pass {
  position: relative;
  overflow: hidden;
  background-color: var(--tall);
  background-image: repeating-linear-gradient(90deg, rgba(18, 45, 24, 0.09) 0 2px, transparent 2px 7px);
}
.pass__reveal { background: var(--sage); }
.pass:nth-child(even) .pass__reveal { background: var(--sage-2); }

.pass__body {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--s3);
  row-gap: var(--s1);
  padding-block: var(--s5);
}
.pass__num {
  grid-row: span 2;
  padding-top: 0.2em;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
}
.pass__name { font-size: var(--fs-h3); }
.pass__text { color: var(--muted); }

@media (min-width: 768px) {
  .pass__body {
    grid-template-columns: 3.5rem minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: baseline;
    column-gap: var(--s6);
    padding-block: var(--s6);
  }
  .pass__num { grid-row: auto; padding-top: 0; }
}

/* The blade: a red line that crosses the stripe (moved by HomeServices.js).
   Hidden unless motion runs. The stripe's overflow keeps it on screen. */
.pass__blade { display: none; }
.motion-ready .pass__blade {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pass__blade::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--red);
}

/* Two photos from the job */
.services__photos {
  display: grid;
  gap: var(--s7);
  margin-top: var(--s8);
}
.snap { --slat: var(--mist); }
.snap--curb .snap__frame { aspect-ratio: 816 / 433; }
.snap--cleanup .snap__frame { aspect-ratio: 4 / 5; }
.snap figcaption {
  max-width: 40em;
  margin-top: var(--s3);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

@media (min-width: 640px) and (max-width: 959px) {
  .snap--cleanup { width: 70%; justify-self: end; }
}
@media (min-width: 960px) {
  .services__photos {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: var(--s7);
  }
}

/* HomeRig: dark section with the trailer sign and three equipment photos. */
.rig {
  --focus: var(--leaf);
  --slat: var(--field);
  background: var(--field);
  color: var(--on-field);
  padding-block: var(--s9);
}
.rig .kicker { color: var(--leaf); }

.rig__top { display: grid; gap: var(--s7); }
.rig__intro h2 { max-width: 13em; }
.rig__lead {
  max-width: 34em;
  margin-top: var(--s5);
  color: var(--on-field-muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.rig__sign-frame { aspect-ratio: 5 / 4; }

.rig figcaption {
  max-width: 40em;
  margin-top: var(--s3);
  color: var(--on-field-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.rig__shots {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s8);
}
.shot__frame { aspect-ratio: 1; }

@media (min-width: 640px) and (max-width: 959px) {
  .rig__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rig__shots li:first-child { grid-column: 1 / -1; }
  .rig__shots li:first-child .shot__frame { aspect-ratio: 16 / 10; }
}
@media (min-width: 960px) {
  .rig__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: var(--s8);
  }
  .rig__shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: var(--s6);
  }
  /* The middle photo sits lower, so the row reads like a trailer from the side, not a grid. */
  .rig__shots li:nth-child(2) { margin-top: var(--s8); }
}

/* HomeReviews: light sage section with the score, four quotes and the crew photo. */
.reviews {
  --slat: var(--sage);
  background: var(--sage);
  padding-block: var(--s9);
}
.reviews__grid { display: grid; gap: var(--s8); }

.reviews__title { display: grid; gap: var(--s3); }
.reviews__num {
  font-size: clamp(5.5rem, 3.6rem + 8vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.reviews__label {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

/* Star meter: a faint row of five stars with a dark row on top, cut to 96% (4.8 of 5). */
.meter {
  position: relative;
  display: block;
  width: max-content;
  margin-top: var(--s4);
  line-height: 0;
}
.meter__row { display: inline-flex; gap: 4px; white-space: nowrap; }
.meter__row svg { width: 30px; height: 30px; flex: none; fill: currentColor; }
.meter__row--base { color: rgba(18, 45, 24, 0.18); }
.meter__row--fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 96%;
  overflow: hidden;
  color: var(--field);
}

.reviews__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--s4);
  font-weight: 650;
}

.reviews__crew { max-width: 30rem; }
.reviews__crew-frame { aspect-ratio: 605 / 452; }
.reviews__crew figcaption,
.quote figcaption {
  margin-top: var(--s3);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.quote blockquote p {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--field);
  font-weight: 650;
}
.quote figcaption::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--moss);
}
.quote--big blockquote p {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.reviews__list {
  display: grid;
  gap: var(--s6);
  margin-top: var(--s7);
}
.reviews__list li {
  padding-top: var(--s5);
  border-top: 2px solid rgba(18, 45, 24, 0.14);
}

/* Desktop: score with the crew photo under it on the left, quotes on the
   right. Phones keep the source order: score, quotes, then the photo. */
@media (min-width: 960px) {
  .reviews__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "side quotes"
      "crew quotes";
    column-gap: var(--s9);
    row-gap: var(--s7);
    align-items: start;
  }
  .reviews__side { grid-area: side; }
  .reviews__quotes { grid-area: quotes; }
  .reviews__crew { grid-area: crew; }
}

/* HomeContact: red section in the style of their trailer sign, with a light form panel. */
.contact {
  --focus: #fff;
  /* The sign's near-black lettering. On the red it is 3.6:1, so it is only
     used for the giant number and the slogan, which are large text. */
  --sign-ink: #1a1214;
  background: var(--red);
  color: #fff;
  padding-block: var(--s9);
}
.contact__grid { display: grid; gap: var(--s8); }

.contact__info h2 { max-width: 12em; }

.contact__phone {
  display: inline-block;
  margin-top: var(--s6);
  color: var(--sign-ink);
  text-decoration: none;
}
.contact__digits {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 1.5rem + 6.6vw, 6.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
/* The underline is drawn as a bar, not text-decoration: the digits are split
   into separate letters for the motion, which would break a real underline. */
.contact__phone::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 0.1em;
  background: var(--sign-ink);
  transform-origin: top;
  transition: transform 0.2s ease;
}
.contact__phone:hover::after { transform: scaleY(2); }

.contact__slogan {
  margin-top: var(--s4);
  color: var(--sign-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact__details {
  display: grid;
  gap: var(--s5);
  margin-top: var(--s7);
}
.contact__details dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact__details dd { margin-top: var(--s1); }
.contact__details a { color: #fff; }

/* The form: a light panel on the red. */
.contact__form {
  --focus: var(--field);
  align-self: start;
  display: grid;
  gap: var(--s5);
  padding: var(--s6) var(--s5);
  background: var(--mist);
  color: var(--field);
  border-radius: var(--radius);
}
.contact__form h3 { margin-bottom: var(--s1); }

.field { display: grid; gap: var(--s2); }
.field label { font-weight: 650; }
.field__req {
  margin-left: var(--s1);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3);
  background: #fff;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--red-deep); border-width: 2px; }
.field__error { color: var(--red-deep); font-size: var(--fs-sm); font-weight: 600; }

.contact__submit { justify-self: start; }
.contact__hint { color: var(--muted); font-size: var(--fs-sm); }
.contact__status { font-weight: 650; }
.contact__status:empty { display: none; }

@media (min-width: 640px) {
  .contact__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__form { padding: var(--s7) var(--s6); }
}
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s8);
    align-items: start;
  }
}

/* HomeFooter: dark footer, contact details, sample notice, giant name on stripes. */
.site-footer {
  --focus: var(--leaf);
  background: var(--field);
  color: var(--on-field);
  padding-top: var(--s8);
  overflow-x: clip; /* the blade travels past the right edge */
}
.site-footer a { color: var(--on-field); }

.site-footer__top {
  display: grid;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--field-2);
}
.site-footer__brand { display: flex; align-items: flex-start; gap: var(--s4); }
.site-footer__badge { width: 64px; height: 64px; flex: none; }
.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}
.site-footer__about {
  max-width: 32em;
  margin-top: var(--s2);
  color: var(--on-field-muted);
  font-size: var(--fs-sm);
}
.site-footer__contact { display: grid; gap: var(--s2); }
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer__notice {
  max-width: 60em;
  padding-block: var(--s5);
  color: var(--on-field-muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

/* The giant name, sized to the footer's own width (container units, not vw,
   which would include the desktop scrollbar). */
.site-footer__field {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--field) 0 12.5%, var(--field-2) 12.5% 25%);
}
.site-footer__giant {
  padding-inline: 2cqi;
  color: var(--leaf);
  font-family: var(--font-serif);
  font-size: 21cqi;
  font-style: italic;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.site-footer__blade { display: none; }
.motion-ready .site-footer__blade {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.site-footer__blade::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--red);
}

@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .site-footer__contact { justify-items: end; }
}
