/* ==========================================================================
   Legacy Stone - "Quarried" design system
   Built for Legacy Stone by Thinglet Marketing
   v1.0.0

   Direction: the mark is white on black, so the system is too. One warm
   travertine accent carries every highlight, and nothing else is allowed a
   hue. Display face is Cinzel because Roman inscriptional
   capitals are letterforms that were carved into stone - the client's trade,
   in the typography. Jost carries everything else.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* surface */
  --obsidian:   #0b0b0c;
  --basalt:     #131314;
  --ash:        #1a1a1c;
  --ash-hi:     #222226;
  --seam:       #303033;
  --seam-soft:  rgba(240, 238, 233, 0.10);

  /* brand, sampled from the logo artwork */
  --travertine:    #c4b298;
  --travertine-lt: #e0d3ba;
  --travertine-dp: #6f6047;

  /* ink */
  --bone:       #f0eee9;
  --bone-dim:   #a8a49d;
  --bone-faint: #86827b;
  --accent-ink: var(--travertine-lt);

  /* type */
  --display: "Cinzel", "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.12vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 3rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 4.6rem);
  --step-5:  clamp(2.9rem, 1.9rem + 5vw, 6.4rem);

  /* layout */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 62ch;
  --wrap: 1280px;
  --rail: 4.5rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-cut: 0 1px 0 rgba(224, 211, 186, 0.14), 0 -1px 0 rgba(0, 0, 0, 0.7);
}

/* Light theme. The brand stays bone-on-stone; the ground becomes limestone
   rather than obsidian. The accent darkens so text keeps AA contrast on a pale field. */
[data-theme="light"] {
  --obsidian:   #f4f2ed;
  --basalt:     #ecebe5;
  --ash:        #e4e2da;
  --ash-hi:     #dcd9d0;
  --seam:       #cbc7bd;
  --seam-soft:  rgba(20, 19, 17, 0.12);

  --travertine:    #6b5c42;
  --travertine-lt: #695a41;
  --travertine-dp: #c4b298;

  --bone:       #16161a;
  --bone-dim:   #4e4b45;
  --bone-faint: #625e57;
  --accent-ink: #695a41;

  --shadow-cut: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -1px 0 rgba(0, 0, 0, 0.10);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--travertine-lt); }

::selection { background: var(--travertine); color: #0b0b0c; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--travertine); color: #0b0b0c; padding: 0.85rem 1.4rem;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: var(--step--1);
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Shared type devices
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--travertine);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--travertine));
  flex: none;
}

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 54ch;
}

.dek { color: var(--bone-dim); }

.figure-num {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  color: var(--bone-faint);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--obsidian) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--seam);
}

.ticker {
  border-bottom: 1px solid var(--seam);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.ticker .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 2.5rem; flex-wrap: wrap;
}
.ticker a { color: var(--bone-dim); text-decoration: none; }
.ticker a:hover { color: var(--travertine-lt); }
.ticker strong { color: var(--travertine); font-weight: 500; }

.masthead-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand img { width: 46px; height: auto; flex: none; }
/* The monogram ships as white artwork. On the limestone theme it inverts to
   near-black so the mark keeps its contrast without a second logo file. */
[data-theme="light"] .brand img,
[data-theme="light"] .footer-brand img { filter: invert(1); }
.brand-name {
  font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--bone); line-height: 1.1;
}
.brand-sub {
  display: block; font-family: var(--sans); font-size: 0.6rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--travertine); font-weight: 400; margin-top: 0.28rem;
}

.nav-primary { display: none; gap: clamp(0.7rem, 1.5vw, 1.6rem); align-items: center; }
.nav-primary a {
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--bone-dim); text-decoration: none;
  padding-block: 0.4rem; position: relative; white-space: nowrap;
}
.nav-primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--travertine); transition: right 0.35s var(--ease);
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--bone); }
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { right: 0; }
.nav-primary a[aria-current="page"] { color: var(--travertine-lt); }

.masthead-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle, .menu-btn {
  background: transparent; border: 1px solid var(--seam); color: var(--bone-dim);
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  cursor: pointer; transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover, .menu-btn:hover { border-color: var(--travertine); color: var(--travertine-lt); }
.theme-toggle svg, .menu-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-btn { display: grid; }

.nav-drawer {
  display: none;
  border-top: 1px solid var(--seam);
  padding: 1.25rem 0 2rem;
}
.nav-drawer.is-open { display: block; }
.nav-drawer a {
  display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--seam);
  font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none;
}
.nav-drawer a:hover, .nav-drawer a[aria-current="page"] { color: var(--travertine-lt); }
.nav-drawer .drawer-call {
  margin-top: 1.25rem; border: 0; color: var(--travertine); font-weight: 500;
  font-size: var(--step-1); letter-spacing: 0.08em;
}

@media (min-width: 68rem) {
  .nav-primary { display: flex; }
  .menu-btn { display: none; }
  .nav-drawer { display: none !important; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem 1.9rem; text-decoration: none; cursor: pointer;
  border: 1px solid var(--travertine); background: transparent; color: var(--travertine-lt);
  position: relative; overflow: hidden; transition: color 0.35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--travertine-dp), var(--travertine), var(--travertine-lt));
  transform: translateY(101%); transition: transform 0.4s var(--ease); z-index: -1;
}
.btn:hover { color: #0b0b0c; }
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }

.btn-solid {
  background: linear-gradient(100deg, var(--travertine-dp), var(--travertine) 55%, var(--travertine-lt));
  color: #0b0b0c; border-color: transparent; font-weight: 600;
}
.btn-solid::before { background: var(--obsidian); }
.btn-solid:hover { color: var(--travertine-lt); }

.btn-quiet { border-color: var(--seam); color: var(--bone-dim); }
.btn-quiet:hover { color: #0b0b0c; }
[data-theme="light"] .btn-quiet:hover { color: #f4f2ed; }
[data-theme="light"] .btn:hover { color: #f4f2ed; }
[data-theme="light"] .btn-solid { color: #f4f2ed; }
[data-theme="light"] .btn-solid:hover { color: var(--travertine); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   6. Signature: the cut edge
   A chiselled band that separates sections the way a fabricated slab edge
   separates a countertop from the air. Light catches the top arris.
   -------------------------------------------------------------------------- */
.cut-edge {
  height: 26px; width: 100%; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ash-hi) 0%, var(--basalt) 42%, var(--obsidian) 100%);
  border-top: 1px solid rgba(224, 211, 186, 0.28);
}
.cut-edge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg, transparent 8%, rgba(224, 211, 186, 0.42) 34%, transparent 62%);
  opacity: 0.9;
}
.cut-edge--reverse { transform: scaleY(-1); }

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(4rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--basalt { background: var(--basalt); }
.section--ground {
  background-color: var(--basalt);
  background-image: linear-gradient(color-mix(in srgb, var(--basalt) 82%, transparent),
                    color-mix(in srgb, var(--basalt) 82%, transparent)),
                    url("../images/ground-tile.jpg");
  background-size: auto, 460px;
}
[data-theme="light"] .section--ground { background-image: none; }

/* the rail carries a rotated section label, like a quarry stamp on a slab edge */
.railed { display: grid; grid-template-columns: 1fr; gap: 0; }
.rail-label {
  display: none;
  font-size: var(--step--1); letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--bone-faint); writing-mode: vertical-rl;
  transform: rotate(180deg); align-self: start;
  padding-top: 0.4rem;
}
@media (min-width: 62rem) {
  .railed { grid-template-columns: var(--rail) 1fr; }
  .rail-label { display: block; }
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }

/* asymmetric editorial split */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 55rem) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--wide-left { grid-template-columns: 1.25fr 0.75fr; }
  .split--flip > *:first-child { order: 2; }
}

/* --------------------------------------------------------------------------
   8. Hero
   The hero and interior banners sit on a photographic dark surface in both
   themes, so they keep the dark token set regardless of the page theme.
   -------------------------------------------------------------------------- */
.hero, .banner {
  --obsidian: #0b0b0c;
  --basalt: #131314;
  --ash: #1a1a1c;
  --ash-hi: #222226;
  --seam: #303033;
  --travertine: #c4b298;
  --travertine-lt: #e0d3ba;
  --travertine-dp: #6f6047;
  --bone: #f0eee9;
  --bone-dim: #a8a49d;
  --bone-faint: #86827b;
  --accent-ink: #e0d3ba;
  color: var(--bone);
}
.hero .btn-quiet:hover, .banner .btn-quiet:hover,
.hero .btn:hover, .banner .btn:hover { color: #0b0b0c; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, var(--obsidian) 4%, color-mix(in srgb, var(--obsidian) 72%, transparent) 46%, color-mix(in srgb, var(--obsidian) 30%, transparent) 78%),
    linear-gradient(0deg, var(--obsidian) 2%, transparent 42%);
}
.hero-inner { padding-block: clamp(3.25rem, 8.5vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { max-width: 15ch; margin-bottom: 0.5em; }
.hero h1 em {
  font-style: normal; display: block;
  background: linear-gradient(96deg, var(--travertine) 0%, var(--travertine-lt) 42%, var(--travertine) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 48ch; }

/* the specular line that runs the finished edge of the hero slab */
.hero-arris {
  position: relative; height: 2px; margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--seam); overflow: hidden;
}
.hero-arris::after {
  content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--travertine-lt), transparent);
  animation: arris 7s var(--ease) infinite;
}
@keyframes arris { 0% { left: -30%; } 55%, 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-arris::after { animation: none; left: 0; width: 100%; opacity: 0.35; }
}

.hero-facts {
  display: grid; gap: 1.75rem 2.5rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 42rem) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}
.hero-facts dt {
  font-family: var(--display); font-size: var(--step-1); color: var(--travertine-lt);
  letter-spacing: 0.04em;
}
.hero-facts dd {
  margin: 0.35rem 0 0; font-size: var(--step--1); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bone-faint);
}

/* --------------------------------------------------------------------------
   9. Slab panels (content sitting on a piece of stone)
   -------------------------------------------------------------------------- */
.slab {
  background: var(--ash);
  border-top: 1px solid rgba(224, 211, 186, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: var(--shadow-cut);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  position: relative;
}
[data-theme="light"] .slab { border-bottom-color: var(--seam); }

.slab-grid {
  display: grid; gap: 1px; background: var(--seam);
  border-block: 1px solid var(--seam);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.slab-grid > * { background: var(--basalt); padding: clamp(1.5rem, 3vw, 2.4rem); }
.slab-grid h3 { margin-bottom: 0.5rem; }
.slab-grid p { font-size: var(--step--1); color: var(--bone-dim); line-height: 1.75; }

/* --------------------------------------------------------------------------
   10. Stone library
   -------------------------------------------------------------------------- */
.stone-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem;
}
.stone-filters button {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--seam); color: var(--bone-dim);
  padding: 0.6rem 1.15rem; cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stone-filters button:hover { color: var(--bone); border-color: var(--bone-faint); }
.stone-filters button[aria-pressed="true"] {
  color: var(--travertine-lt); border-color: var(--travertine);
}

.stone-grid {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.stone {
  border: 1px solid var(--seam); background: var(--basalt);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.stone:hover { border-color: var(--travertine-dp); transform: translateY(-3px); }
.stone-face { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.stone-face img { width: 100%; height: 100%; object-fit: cover; }
.stone-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 12, 0.5));
}
.stone-body { padding: 1.15rem 1.25rem 1.5rem; }
.stone-body h3 {
  font-size: var(--step-0); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.stone-meta {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--travertine); margin-bottom: 0.75rem;
}
.stone-body p { font-size: var(--step--1); color: var(--bone-dim); line-height: 1.7; margin: 0; }
.stone[hidden] { display: none; }

.note {
  border-left: 2px solid var(--travertine-dp); padding-left: 1.25rem;
  font-size: var(--step--1); color: var(--bone-dim); max-width: 68ch;
}

/* --------------------------------------------------------------------------
   11. Edge profiles - the signature strip
   -------------------------------------------------------------------------- */
.edge-strip {
  display: grid; gap: 1px; background: var(--seam);
  border: 1px solid var(--seam);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
}
.edge-card {
  background: var(--basalt); padding: 1.5rem 1.25rem;
  text-align: center; transition: background 0.35s var(--ease);
}
.edge-card:hover { background: var(--ash); }
.edge-card svg { width: 100%; height: auto; margin-bottom: 0.9rem; }
.edge-card h3 {
  font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.edge-card p { font-size: 0.78rem; color: var(--bone-faint); margin: 0; line-height: 1.6; }
.edge-line { stroke: var(--travertine); stroke-width: 1.5; fill: none; }
.edge-fill { fill: var(--ash-hi); stroke: none; }
.edge-tick { stroke: var(--bone-faint); stroke-width: 0.75; stroke-dasharray: 3 3; opacity: 0.6; }
.edge-seam { stroke: var(--bone-faint); stroke-width: 0.9; stroke-dasharray: 2.5 2.5; }
.edge-card svg { max-width: 132px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   12. Applications (original line illustrations)
   -------------------------------------------------------------------------- */
/* Two up, so four drawings land as a clean 2x2 instead of orphaning one. */
.app-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}
.app-card { border: 1px solid var(--seam); background: var(--basalt); }
.app-card figure { margin: 0; }
.app-card svg { width: 100%; height: auto; display: block; background: var(--obsidian); }
.app-card figcaption { padding: 1.25rem 1.4rem 1.6rem; }
.app-card h3 { font-size: var(--step-0); letter-spacing: 0.1em; text-transform: uppercase; }
.app-card p { font-size: var(--step--1); color: var(--bone-dim); margin: 0; }
.ill-stroke { stroke: var(--travertine-dp); stroke-width: 1.25; fill: none; }
.ill-stroke-hi { stroke: var(--travertine); stroke-width: 1.5; fill: none; }
.ill-soft { stroke: var(--seam); stroke-width: 1; fill: none; }
.ill-fill { fill: var(--basalt); }
.ill-glow { fill: var(--travertine); opacity: 0.28; }

/* --------------------------------------------------------------------------
   13. Process - a real sequence, so it is numbered
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--seam);
}
.step:last-child { border-bottom: 1px solid var(--seam); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: var(--step-2); color: var(--travertine);
  line-height: 1;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--bone-dim); }
@media (min-width: 55rem) {
  .step { grid-template-columns: 4.5rem 16rem 1fr; align-items: start; }
  .step h3 { margin: 0; }
}

/* --------------------------------------------------------------------------
   14. Quotes
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.quote { border-top: 1px solid var(--travertine-dp); padding-top: 1.5rem; }
.quote blockquote {
  margin: 0 0 1.25rem; font-size: var(--step-0); line-height: 1.75; color: var(--bone);
}
.quote figcaption { font-size: var(--step--1); color: var(--bone-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.quote figcaption strong { display: block; color: var(--travertine); font-weight: 500; margin-bottom: 0.25rem; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--seam); }
.faq details { border-bottom: 1px solid var(--seam); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--display); font-size: var(--step-1); position: relative;
  color: var(--bone); transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--travertine-lt); }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--travertine); border-bottom: 1.5px solid var(--travertine);
  transform: rotate(45deg); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .faq-body { padding: 0 3rem 1.75rem 0; color: var(--bone-dim); }

/* --------------------------------------------------------------------------
   16. Service areas
   -------------------------------------------------------------------------- */
.area-grid {
  display: grid; gap: 1px; background: var(--seam);
  border: 1px solid var(--seam);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.area { background: var(--basalt); padding: clamp(1.5rem, 3vw, 2.2rem); }
.area h3 { font-size: var(--step-0); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.area p { font-size: var(--step--1); color: var(--bone-dim); margin-bottom: 0.9rem; }
.area .area-terms { font-size: 0.72rem; color: var(--bone-faint); letter-spacing: 0.06em; margin: 0; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block; font-size: var(--step--1); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone-dim); margin-bottom: 0.5rem;
}
.field label .req { color: var(--travertine); }

.field input, .field select, .field textarea {
  width: 100%; background: var(--obsidian); color: var(--bone);
  border: 1px solid var(--seam); padding: 0.9rem 1rem;
  font-family: var(--sans); font-size: var(--step-0); font-weight: 300;
  transition: border-color 0.3s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--bone-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--travertine); outline: none;
  box-shadow: 0 0 0 1px var(--travertine);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--travertine) 50%),
                    linear-gradient(135deg, var(--travertine) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-note { font-size: var(--step--1); color: var(--bone-faint); margin-top: 1.25rem; }

.alert { padding: 1rem 1.25rem; border-left: 2px solid var(--travertine); background: var(--ash); margin-bottom: 1.75rem; font-size: var(--step--1); }
.alert--bad { border-left-color: #d9534f; }

/* --------------------------------------------------------------------------
   18. Contact detail list
   -------------------------------------------------------------------------- */
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding-block: 1.15rem; border-bottom: 1px solid var(--seam); }
.detail-list li:first-child { border-top: 1px solid var(--seam); }
.detail-list .k {
  display: block; font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--bone-faint); margin-bottom: 0.4rem;
}
.detail-list .v { font-size: var(--step-1); font-family: var(--display); color: var(--bone); }
.detail-list a.v { color: var(--travertine-lt); text-decoration: none; }
.detail-list a.v:hover { text-decoration: underline; }

.map-frame { border: 1px solid var(--seam); line-height: 0; }
.map-frame iframe { width: 100%; height: clamp(260px, 40vw, 420px); border: 0; filter: grayscale(1) contrast(1.05) brightness(0.82); }
[data-theme="light"] .map-frame iframe { filter: none; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--basalt); border-top: 1px solid var(--seam); }
.footer-main { padding-block: clamp(3rem, 6vw, 5rem); }
.footer-grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer-brand img { width: 190px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: var(--step--1); color: var(--bone-dim); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--travertine); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; font-size: var(--step--1); color: var(--bone-dim); }
.footer-col a { color: var(--bone-dim); text-decoration: none; }
.footer-col a:hover { color: var(--travertine-lt); }

.social-row { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social-row a {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border: 1px solid var(--seam); color: var(--bone-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social-row a:hover { color: var(--travertine-lt); border-color: var(--travertine); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; }

.footer-legal {
  border-top: 1px solid var(--seam); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--bone-faint);
}
.footer-legal a { color: var(--bone-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--travertine); }
.powered { letter-spacing: 0.14em; text-transform: uppercase; }
.powered a { color: var(--travertine); }

/* --------------------------------------------------------------------------
   20. Page banner (interior pages)
   -------------------------------------------------------------------------- */
.banner { position: relative; isolation: isolate; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; z-index: -2; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--obsidian) 10%, color-mix(in srgb, var(--obsidian) 76%, transparent) 60%, color-mix(in srgb, var(--obsidian) 46%, transparent));
}
.banner-inner { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.banner h1 { max-width: 18ch; }
.crumbs { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 1.5rem; }
.crumbs a { color: var(--bone-faint); text-decoration: none; }
.crumbs a:hover { color: var(--travertine); }
.crumbs span { color: var(--seam); margin-inline: 0.5rem; }

/* --------------------------------------------------------------------------
   21. Media frames
   -------------------------------------------------------------------------- */
.frame { position: relative; border: 1px solid var(--seam); line-height: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 1rem 1.15rem; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bone-dim); line-height: 1.5;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.9), transparent);
}

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
/* The hidden state is applied only when the script has confirmed it can
   reverse it. No JavaScript, no observer, or reduced motion all mean the
   content simply renders. */
.js-motion .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  .masthead, .nav-drawer, .site-footer, .btn-row, .map-frame { display: none; }
  body { background: #fff; color: #000; }
}
