/* ==========================================================================
   Apex Artificial Turf N Designs
   main.css

   Structure
   1. @layer order
   2. Design tokens
   3. Reset + base
   4. Layout primitives
   5. Components (header, hero, services, process, faq, quote, footer)
   6. Utilities
   7. Motion + accessibility preferences

   Change colors, fonts and spacing in the tokens block only.
   ========================================================================== */

@layer reset, tokens, base, layout, components, utilities, motion;

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Color: surfaces */
    --ink-950: #08100b;
    --ink-900: #0d1711;
    --ink-800: #14221a;
    --ink-700: #1c2e23;
    --ink-600: #27402f;

    /* Color: greens (sampled from the logo) */
    --fairway: #1f7a35;
    --blade: #4fae24;
    --lime: #8fd43f;

    /* Color: landscape accents (mulch, stone) */
    --clay: #e2762f;
    --stone: #cfcabd;

    /* Color: text */
    --paper: #f3f2ea;
    --mute: #a9b6ac;
    --white: #ffffff;
    --ivory: #f6f5ef;

    /* Semantic colors. Dark by default; light surfaces override them (see "Light surfaces"). */
    --text: var(--paper);
    --text-mute: var(--mute);
    --accent: var(--lime);
    --line: rgb(243 242 234 / 0.12);
    --btn-border: rgb(243 242 234 / 0.35);

    /* Type */
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
    --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
    --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem);

    /* Space + shape */
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 8rem);
    --radius: 6px;
    --radius-lg: 14px;
    --header-h: 4.5rem;

    /* Motion */
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

/* --------------------------------------------------------------------------
   3. Reset + base
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, picture { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  a { color: inherit; }
}

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
    background: var(--ink-900);
  }

  body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--paper);
    background: var(--ink-900);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

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

  p { text-wrap: pretty; }

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

  ::selection { background: var(--blade); color: var(--ink-950); }
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
@layer layout {
  .container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .section { padding-block: var(--section-y); }
  .section--raised { background: var(--ink-800); }

  .section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .section__head h2,
  .why h2, .faq h2, .quote h2 { font-size: var(--step-3); max-width: 22ch; }
  .section__head p {
    margin-top: 1.25rem;
    max-width: 58ch;
    color: var(--text-mute);
  }
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */
@layer components {

  /* ---------- Buttons + links ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.7rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  }
  .btn--primary { background: var(--blade); color: var(--ink-950); }
  .btn--primary:hover { background: var(--accent); }
  .btn--ghost { border-color: var(--btn-border); background: transparent; }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn--block { width: 100%; }

  .link-quiet {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--blade);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
    transition: color 0.2s;
  }
  .link-quiet:hover { color: var(--accent); }

  /* ---------- Header ---------- */
  .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: clamp(0.5rem, 1.6vw, 1.75rem) clamp(0.5rem, 2.4vw, 3rem);
    pointer-events: none;
  }
  .site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding: 0 clamp(1rem, 2.4vw, 2.25rem) 0 0;
    background: rgb(13 23 17 / 0.72);
    border: 1px solid rgb(243 242 234 / 0.07);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    pointer-events: auto;
    transition: background-color 0.3s;
  }
  .site-header.is-scrolled .site-header__bar { background: rgb(8 16 11 / 0.92); }

  /* Two-tone bar: white logo tab on the left, dark glass for the rest */
  .brand {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 0.75rem;
    flex: none;
    padding: 0.4rem 3rem 0.4rem clamp(1rem, 2vw, 1.5rem);
    background: var(--white);
    border-radius: var(--radius) 0 0 var(--radius);
    clip-path: polygon(0 0, 100% 0, calc(100% - 1.5rem) 100%, 0 100%);
    text-decoration: none;
  }
  .brand__mark { height: 3.4rem; width: auto; }
  .brand__name {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
  }
  .brand__name span {
    margin-top: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
  }

  .nav { display: flex; align-items: center; flex: 1; }
  .nav__list {
    display: flex;
    gap: clamp(1.25rem, 2.6vw, 2.75rem);
    margin-inline: auto;
  }
  .nav__list a {
    display: inline-block;
    padding-block: 0.4rem;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
  }
  .nav__list a:hover { color: var(--accent); }

  .nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 1px solid rgb(243 242 234 / 0.3);
    border-radius: var(--radius);
    font-weight: 600;
  }
  .nav-toggle__icon,
  .nav-toggle__icon::before {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease-out);
  }
  .nav-toggle__icon { position: relative; }
  .nav-toggle__icon::before { content: ""; position: absolute; top: -6px; left: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(-90deg); }

  @media (max-width: 62rem) {
    .js .nav-toggle { display: inline-flex; }
    .js .nav {
      display: none;
      position: absolute;
      top: calc(100% + 0.5rem);
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
      padding: 1rem 1.25rem 1.25rem;
      background: rgb(8 16 11 / 0.97);
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }
    .js .site-header.is-open .nav { display: flex; }
    .nav__list { flex-direction: column; gap: 0; margin: 0; }
    .nav__list a { display: block; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
    .nav__cta { margin-top: 0.75rem; }
    /* No-JS fallback: header wraps and shows links inline */
    html:not(.js) .site-header__bar { flex-wrap: wrap; }
    html:not(.js) .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; }
  }

  @media (max-width: 30rem) {
    .brand__mark { height: 2.8rem; }
    .brand__name { font-size: 1.15rem; }
    .brand__name span { font-size: 0.64rem; }
    .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    min-height: max(100svh, 40rem);
    background: var(--ink-800);
    overflow: hidden;
  }

  .hero__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9.5rem clamp(1.5rem, 4.5vw, 4.5rem) 4.5rem;
    background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  }
  .hero__panel > *:not(.hero__ghost) { position: relative; z-index: 4; }

  .hero__ghost {
    position: absolute;
    left: -0.06em;
    top: 50%;
    z-index: 0;
    transform: translateY(-62%);
    font-family: var(--font-display);
    font-size: clamp(15rem, 36vw, 32rem);
    font-weight: 600;
    line-height: 0.8;
    color: rgb(243 242 234 / 0.045);
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s;
  }

  .hero__place {
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--text-mute);
    margin-bottom: 0.75rem;
  }

  .hero__title { display: flex; flex-direction: column; }
  .hero__pre,
  .hero__post {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    letter-spacing: 0;
    color: rgb(243 242 234 / 0.85);
  }
  .hero__word {
    margin: 0.1em 0 0.12em -0.04em;
    font-size: clamp(6rem, 19vw, 20rem);
    font-weight: 400;
    font-variation-settings: "opsz" 144;
    line-height: 0.82;
    letter-spacing: -0.045em;
    color: var(--text);
    white-space: nowrap;
    text-shadow: 0 0.04em 0.5em rgb(0 0 0 / 0.35);
  }

  .hero__lead {
    max-width: 30ch;
    margin-top: 2rem;
    font-size: var(--step-0);
    color: var(--text-mute);
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: 2rem;
  }

  .hero__scene {
    position: relative;
    z-index: 1;
    overflow: hidden;
    container-type: size;
    background: var(--ink-900);
  }
  .scene__stage {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: max(100cqw, calc(100cqh * 900 / 760));
    aspect-ratio: 900 / 760;
    transform: translateX(-50%);
  }
  .scene__art { width: 100%; height: 100%; }

  /* Scene: dim the zones that are not featured */
  .scene__art .zone { transition: filter 0.6s var(--ease-out); }
  .hero[data-active="turf"] .zone--mulch,
  .hero[data-active="turf"] .zone--rock,
  .hero[data-active="mulch"] .zone--turf,
  .hero[data-active="mulch"] .zone--rock,
  .hero[data-active="rock"] .zone--turf,
  .hero[data-active="rock"] .zone--mulch { filter: brightness(0.62) saturate(0.8); }

  /* Scene: the turf rolls out once on load */
  .stripe {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: roll-out 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i) * 70ms + 150ms);
  }
  @keyframes roll-out {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
  }

  /* Hotspots */
  .hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    background: var(--clay);
    border: 0;
    border-radius: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 22px rgb(0 0 0 / 0.35);
    transition: background-color 0.2s, transform 0.3s var(--ease-out);
  }
  .hotspot span { position: relative; width: 1.05rem; height: 1.05rem; transition: transform 0.35s var(--ease-out); }
  .hotspot span::before,
  .hotspot span::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
  }
  .hotspot span::before { left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
  .hotspot span::after  { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }
  .hotspot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--clay);
    animation: ping 2.6s ease-out infinite;
  }
  .hotspot:hover { transform: translate(-50%, -50%) scale(1.08); }
  .hotspot.is-active { background: var(--text); color: var(--ink-950); }
  .hotspot.is-active span { transform: rotate(45deg); }
  .hotspot.is-active::after { animation: none; opacity: 0; }
  @keyframes ping {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
  }

  /* Caption (top, over the wall) */
  .hero__caption {
    position: absolute;
    z-index: 5;
    top: clamp(11rem, 27vh, 16rem);
    left: calc(34% + clamp(2rem, 6vw, 6rem));
    max-width: 23rem;
    color: rgb(243 242 234 / 0.78);
    font-size: 1rem;
    line-height: 1.7;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
  }
  .hero__caption.is-swapping { opacity: 0; transform: translateY(6px); }
  .hero__count { font-size: var(--step--1); font-weight: 600; color: var(--accent); margin-bottom: 0.35rem; }
  .hero__caption-title {
    margin-bottom: 0.9rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text);
  }

  /* Next card (bottom right) */
  .hero__next {
    position: absolute;
    z-index: 5;
    right: clamp(1rem, 4vw, 4rem);
    bottom: clamp(1rem, 5vh, 3.5rem);
    display: flex;
    align-items: stretch;
    width: min(24rem, calc(100% - 2rem));
    padding: 0.5rem;
    gap: 1rem;
    text-align: left;
    background: rgb(20 34 26 / 0.72);
    border: 1px solid rgb(243 242 234 / 0.1);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, transform 0.3s var(--ease-out);
  }
  .hero__next:hover { border-color: var(--accent); transform: translateY(-2px); }
  .hero__next-thumb {
    flex: none;
    width: 6.5rem;
    min-height: 5.5rem;
    border-radius: 10px;
    background: var(--ink-700) center / 150px;
  }
  .hero__next[data-next="turf"]  .hero__next-thumb { background-image: url("../img/pattern-turf.svg"); }
  .hero__next[data-next="mulch"] .hero__next-thumb { background-image: url("../img/pattern-mulch.svg"); }
  .hero__next[data-next="rock"]  .hero__next-thumb { background-image: url("../img/pattern-rock.svg"); }
  .hero__next-text { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; padding-right: 0.75rem; font-size: 0.95rem; line-height: 1.35; }
  .hero__next-text strong { font-size: var(--step--1); color: var(--accent); }

  /* Hero: tablet and phone */
  @media (max-width: 62rem) {
    .hero { display: flex; flex-direction: column; min-height: 0; }
    .hero__panel { padding: 8rem var(--gutter) 3rem; }
    .hero__ghost { font-size: clamp(12rem, 52vw, 22rem); top: 55%; }
    .hero__word { font-size: clamp(6.5rem, 30vw, 12rem); }
    .hero__scene { aspect-ratio: 900 / 760; width: 100%; }
    .hero__caption {
      position: relative;
      top: auto; left: auto;
      max-width: none;
      padding: 1.75rem var(--gutter) 0;
      background: var(--ink-900);
    }
    .hero__next {
      position: relative;
      right: auto; bottom: auto;
      width: auto;
      margin: 1.5rem var(--gutter) var(--gutter);
      background: var(--ink-700);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    /* caption + next sit on a flat bottom band on small screens */
    .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 0; }
  }
  @media (max-width: 62rem) and (min-width: 40rem) {
    .hero__scene { aspect-ratio: 900 / 560; }
    .hero__caption { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  }

  /* ---------- Services ---------- */
  .service {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(2rem, 4vw, 3.5rem);
    border-top: 1px solid var(--line);
  }
  .service:last-child { border-bottom: 1px solid var(--line); }
  .service:nth-of-type(even) .service__swatch { order: 2; }

  .service__swatch {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background-position: center;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), inset 0 -60px 80px -40px rgb(0 0 0 / 0.5);
  }
  .service--turf  .service__swatch { background-image: url("../img/pattern-turf.svg");  background-size: 300px; }
  .service--mulch .service__swatch { background-image: url("../img/pattern-mulch.svg"); background-size: 260px; }
  .service--rock  .service__swatch { background-image: url("../img/pattern-rock.svg");  background-size: 280px; }

  .service__body h3 { font-size: var(--step-2); margin-bottom: 1rem; }
  .service__body p { max-width: 54ch; color: var(--text-mute); }
  .service__body .link-quiet { display: inline-block; margin-top: 1.5rem; }

  .ticks { margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
  .ticks li { position: relative; padding-left: 1.6rem; }
  .ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.8rem;
    height: 0.8rem;
    background: var(--blade);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }

  @media (max-width: 50rem) {
    .service { grid-template-columns: 1fr; }
    .service:nth-of-type(even) .service__swatch { order: 0; }
    .service__swatch { aspect-ratio: 16 / 9; }
  }

  /* ---------- Process ---------- */
  .process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
  .process .section__head { grid-column: 1 / -1; }

  .layers { position: sticky; top: 7rem; }
  .layers__art { width: 100%; height: auto; border-radius: var(--radius); background: var(--ink-900); }
  .layers__art .lt { font-family: var(--font-body); font-size: 17px; font-weight: 600; fill: var(--text); }

  .steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
  .steps li {
    position: relative;
    counter-increment: step;
    padding: 0 0 2rem 4rem;
  }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -0.1rem;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--ink-950);
    border: 1px solid var(--blade);
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent);
  }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.3rem - 0.5px);
    top: 2.8rem;
    bottom: 0.2rem;
    width: 1px;
    background: linear-gradient(var(--blade), transparent);
  }
  .steps h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
  .steps p { color: var(--text-mute); max-width: 44ch; }

  @media (max-width: 55rem) {
    .process { grid-template-columns: 1fr; }
    .layers { position: static; margin-bottom: 3rem; }
  }

  /* ---------- Why ---------- */
  .why__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 6vw, 5rem);
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  }
  .why__list > div { padding-block: 1.75rem; border-top: 1px solid var(--line); }
  .why__list dt { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 0.4rem; }
  .why__list dd { margin: 0; max-width: 42ch; color: var(--text-mute); }
  @media (max-width: 40rem) { .why__list { grid-template-columns: 1fr; } }

  /* ---------- FAQ ---------- */
  .faq__list { margin-top: clamp(2rem, 4vw, 3rem); max-width: 50rem; border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary {
    position: relative;
    padding: 1.25rem 3rem 1.25rem 0;
    font-family: var(--font-display);
    font-size: var(--step-1);
    line-height: 1.25;
    list-style: none;
    cursor: pointer;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    translate: 0 -50%;
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--accent);
    transition: rotate 0.3s var(--ease-out);
  }
  .faq details[open] summary::after { rotate: 45deg; }
  .faq details p { padding: 0 3rem 1.5rem 0; max-width: 60ch; color: var(--text-mute); }

  /* ---------- Quote ---------- */
  .section--quote { background: linear-gradient(180deg, var(--ink-900), var(--ink-950)); }
  .section--quote .field-card { margin-bottom: 0; }
  .quote {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
  .quote__intro p { margin-top: 1.25rem; max-width: 44ch; color: var(--text-mute); }
  .contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
  .contact-list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); font-size: var(--step-1); font-family: var(--font-display); }
  .contact-list li:first-child { border-top: 0; padding-top: 0; }
  .contact-list span { color: var(--text-mute); font-family: var(--font-body); font-size: var(--step--1); padding-top: 0.55em; }
  .contact-list a { text-decoration-color: var(--blade); text-underline-offset: 0.3em; overflow-wrap: anywhere; }
  @media (max-width: 30rem) { .contact-list li { font-size: 1.1rem; } }

  /* ---------- Home field (address end zone) ---------- */
  .field-card {
    margin-top: clamp(3rem, 7vw, 6rem);
    overflow: hidden;
    background: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .endzone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(13rem, 28vw, 19rem);
    background:
      repeating-linear-gradient(90deg, rgb(255 255 255 / 0.62) 0 3px, transparent 3px 10%),
      repeating-linear-gradient(90deg, #2c8528 0 10%, #37972f 10% 20%);
    box-shadow: inset 0 0 90px rgb(0 0 0 / 0.45);
  }
  .endzone::before,
  .endzone::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 14px;
    background: repeating-linear-gradient(90deg, transparent 0 calc(2% - 2px), rgb(255 255 255 / 0.5) calc(2% - 2px) 2%);
    pointer-events: none;
  }
  .endzone::before { top: 28%; }
  .endzone::after  { bottom: 28%; }

  .endzone__yards {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    padding-block: 0.7rem;
    font-weight: 800;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    line-height: 1;
    color: rgb(255 255 255 / 0.85);
    letter-spacing: 0.04em;
  }
  .endzone__yards span { text-align: right; padding-right: 0.45em; }
  .endzone__yards--bottom { transform: rotate(180deg); }

  .endzone__text {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
    font-style: normal;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 0.35), 0 0 30px rgb(0 0 0 / 0.4);
  }
  .endzone__line1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 7vw, 5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-left: 0.12em; /* optically re-center the tracked text */
  }
  .endzone__line2 {
    font-weight: 700;
    font-size: clamp(0.8rem, 2.2vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  .field-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.25rem clamp(1rem, 3vw, 2rem);
  }
  .field-card__foot p { max-width: 46ch; color: var(--text-mute); font-size: 1rem; }
  .field-card__foot strong { color: var(--text); }
  .field-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }


  /* ---------- Light surfaces (white + ivory) ---------- */
  .section--ivory,
  .section--white,
  .brand {
    --text: #12231a;
    --text-mute: #4b5c51;
    --accent: #1f7a35;
    --line: rgb(18 35 26 / 0.14);
    --btn-border: rgb(18 35 26 / 0.35);
    color: var(--text);
  }
  .section--ivory { background: var(--ivory); }
  .section--white { background: var(--white); }
  .section--ivory .service__swatch,
  .section--white .service__swatch { box-shadow: 0 24px 50px -28px rgb(10 30 18 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
  .section--ivory .btn--ghost:hover,
  .section--white .btn--ghost:hover { border-color: var(--fairway); color: var(--fairway); }

  /* ---------- Projects ---------- */
  .projects { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); }
  .project {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
  }
  .project:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .project:nth-child(even) .project__head { order: 2; }
  .project__head h3 { font-size: var(--step-2); margin-bottom: 1rem; }
  .project__head p { max-width: 40ch; margin-bottom: 1.75rem; color: var(--text-mute); }

  .gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(7rem, 13vw, 11.5rem);
    gap: 0.6rem;
  }
  .tile {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink-700);
  }
  .tile--feature { grid-column: span 2; grid-row: span 2; }
  .tile.is-extra { display: none; }
  .tile a { display: block; height: 100%; cursor: zoom-in; }
  .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
  .tile a:hover img { transform: scale(1.045); }
  .tile figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 0.9rem 0.7rem;
    font-size: 0.875rem;
    line-height: 1.3;
    color: #fff;
    background: linear-gradient(transparent, rgb(5 12 8 / 0.7));
    pointer-events: none;
  }
  .tile[data-more]::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(8 16 11 / 0.6);
    color: #fff;
    font-family: var(--font-display);
    font-size: 2rem;
    pointer-events: none;
  }
  .tile[data-more] figcaption { display: none; }

  @media (max-width: 62rem) {
    .project, .project:nth-child(even) { grid-template-columns: 1fr; }
    .project:nth-child(even) .project__head { order: 0; }
    .project__head p { max-width: 60ch; }
  }
  @media (max-width: 40rem) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
  }

  /* ---------- Photo viewer ---------- */
  .lightbox {
    width: 100vw; max-width: none;
    height: 100vh; height: 100dvh; max-height: none;
    margin: 0; padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
  }
  .lightbox::backdrop { background: rgb(5 10 7 / 0.94); }
  .lightbox[open] { display: grid; place-items: center; }
  .lightbox__figure { display: grid; justify-items: center; gap: 0.9rem; padding: 4.5rem 1rem 2rem; max-width: 100%; }
  .lightbox__figure img {
    max-width: min(94vw, 78rem);
    max-height: calc(100dvh - 11rem);
    width: auto; height: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  }
  .lightbox__figure figcaption { text-align: center; font-size: 1rem; color: rgb(255 255 255 / 0.85); }
  .lightbox__count { margin-left: 0.6rem; color: var(--lime); font-weight: 600; }
  .lightbox__btn {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 3rem; height: 3rem;
    padding: 0;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.2s, border-color 0.2s;
  }
  .lightbox__btn:hover { background: rgb(255 255 255 / 0.22); border-color: var(--lime); }
  .lightbox__btn:focus-visible { outline-color: var(--lime); }
  .lightbox__close { top: 1rem; right: 1rem; }
  .lightbox__prev  { left: 1rem;  top: 50%; translate: 0 -50%; }
  .lightbox__next  { right: 1rem; top: 50%; translate: 0 -50%; }
  .lightbox__btn span { position: relative; width: 1rem; height: 1rem; }
  .lightbox__close span::before, .lightbox__close span::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: currentColor; border-radius: 2px;
  }
  .lightbox__close span::before { rotate: 45deg; }
  .lightbox__close span::after  { rotate: -45deg; }
  .lightbox__prev span, .lightbox__next span {
    border-top: 2px solid currentColor; border-right: 2px solid currentColor; width: 0.75rem; height: 0.75rem;
  }
  .lightbox__prev span { rotate: -135deg; margin-left: 0.2rem; }
  .lightbox__next span { rotate: 45deg;  margin-right: 0.2rem; }
  @media (max-width: 40rem) {
    .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
    .lightbox__prev { left: calc(50% - 3.5rem); }
    .lightbox__next { right: calc(50% - 3.5rem); left: auto; }
    .lightbox__figure { padding-bottom: 5rem; }
    .lightbox__figure img { max-height: calc(100dvh - 14rem); }
  }
}

/* --------------------------------------------------------------------------
   6. Utilities
   -------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1.1rem;
    background: var(--lime);
    color: var(--ink-950);
    font-weight: 700;
    border-radius: var(--radius);
    transition: top 0.2s;
  }
  .skip-link:focus { top: 1rem; }
}

/* --------------------------------------------------------------------------
   7. Motion preferences
   -------------------------------------------------------------------------- */
@layer motion {
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
    .hotspot::after { display: none; }
  }
}
