/* =========================================================
   HOM WebSolutions — styles
   Light grey + white cards + forest green, pixel-dither graphics.
   Layout inspired by legencymedia.com
   ========================================================= */

:root {
  /* Colour tokens */
  --bg: #F1F2EE;
  --card: #FFFFFF;
  --ink: #0D1410;
  --muted: #555E57;
  --line: rgba(13, 20, 16, 0.1);

  --accent: #1E4D32;        /* forest green */
  --accent-hover: #163B26;
  --accent-ink: #FFFFFF;
  --moss: #3E8A5A;
  --fern: #7DB08C;
  --sage: #CFE3D4;

  --dark: #0C1A12;          /* near-black forest */
  --dark-2: #12261A;
  --on-dark: #F1F4F1;
  --on-dark-muted: #A9B8AD;
  --line-dark: rgba(241, 244, 241, 0.14);

  --error: #B3261E;
  --error-on-dark: #FF9C8F;
  --success: #1E6B3E;

  /* Type */
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;

  /* Spacing (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1240px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 var(--s-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

.ticks svg, .text-btn svg, .contact-points svg, .split-icon svg, .work-icon svg, .plus svg {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 900px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.accent { color: var(--accent); }

/* ---------- Shared ---------- */
.section { padding-block: var(--s-7); }

.section-head { margin-bottom: var(--s-5); }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: var(--s-5); }
.section-head.split { display: grid; gap: var(--s-2); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head.split .section-lead { justify-self: end; }
}

.kicker { color: var(--accent); font-size: 0.875rem; font-weight: 500; margin-bottom: var(--s-2); }
.kicker-light { color: var(--fern); }

.section-title { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.section-head.center .section-title { margin-bottom: var(--s-2); }
.section-lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.5; max-width: 54ch; margin: 0; }
.section-head.center .section-lead { margin-inline: auto; }

.inline-link { color: var(--accent); text-underline-offset: 3px; }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.pill-accent { background: var(--moss); border-color: var(--moss); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 0;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }

/* Split button: main action + arrow square (Legency style) */
.split-btn { display: flex; gap: 6px; }
.split-main {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) ease;
}
.split-icon {
  width: 56px;
  min-height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) ease;
}
.split-icon svg { width: 20px; height: 20px; transition: transform var(--t-med) var(--ease-out); }
.split-btn:hover .split-main { background: var(--accent-hover); }
.split-btn:hover .split-icon svg { transform: rotate(-45deg); }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.text-btn svg { width: 18px; height: 18px; transition: transform var(--t-fast) ease; }
.text-btn:hover svg { transform: translateX(4px); }

.underline-link { color: inherit; font-weight: 500; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 100;
  padding-inline: 12px;
  pointer-events: none;
}
.header-row {
  position: relative;
  max-width: calc(var(--container) - 40px);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Page dimmer behind the open menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 16, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) ease, visibility 0s linear var(--t-med);
}
.menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-med) ease;
}

/* The white menu bar: logo + Menu button, grows into the nav panel */
.nav-shell {
  pointer-events: auto;
  position: relative;
  flex: 0 1 560px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: flex-basis 500ms var(--ease-out), box-shadow var(--t-med) ease;
}
.menu-open .nav-shell { flex-basis: 980px; }
.site-header.scrolled .nav-shell,
.menu-open .nav-shell { box-shadow: 0 14px 40px -22px rgba(13, 20, 16, 0.45); }

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 62px;
  padding: 8px 10px 8px 18px;
}

/* Expanding panel (grid-rows trick animates height without measuring) */
.nav-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out);
}
.menu-open .nav-panel { grid-template-rows: 1fr; }
.nav-panel-inner { min-height: 0; overflow: hidden; }
.menu-open .nav-panel-inner { max-height: calc(100dvh - 100px); overflow-y: auto; }
.nav-panel-content {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-2) 18px 18px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms ease, transform 400ms var(--ease-out);
}
.menu-open .nav-panel-content { opacity: 1; transform: none; transition-delay: 120ms; }

.nav-panel-grid { display: grid; gap: var(--s-3); }
@media (min-width: 720px) { .nav-panel-grid { grid-template-columns: 0.8fr 1.6fr; gap: var(--s-4); } }
.nav-eyebrow { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--s-1); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-decoration: none;
  transition: color var(--t-fast) ease, transform var(--t-fast) ease;
}
.nav-links a:hover { color: var(--accent); transform: translateX(4px); }
.nav-links a.active { color: var(--accent); }
.nav-details a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.nav-details li:first-child a { padding-top: 4px; }
.nav-details strong { font-weight: 500; letter-spacing: -0.02em; transition: color var(--t-fast) ease; }
.nav-details span { color: var(--muted); font-size: 0.875rem; }
.nav-details a:hover strong { color: var(--accent); }

.nav-book {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.nav-book canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav-book-title { position: relative; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.035em; margin: 0; }
.nav-book .split-btn { position: relative; min-width: 220px; }
.nav-book .split-main { background: var(--moss); }
.nav-book .split-btn:hover .split-main { background: #357A4F; }

/* Always-visible call to action, separate from the menu bar */
.header-cta { pointer-events: auto; flex: none; margin-left: auto; }
.header-cta .split-main { min-height: 64px; padding: 0 28px; box-shadow: 0 14px 30px -22px rgba(13, 20, 16, 0.5); }
.header-cta .split-icon { width: 64px; min-height: 64px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--accent);
}
.logo-mark { width: 30px; height: 30px; --logo-bar: var(--moss); }
.logo-text { color: var(--ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.logo-sub { color: var(--muted); margin-left: 4px; font-weight: 400; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-fast) ease;
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle-lines { display: grid; gap: 5px; width: 26px; }
.nav-toggle-lines span { height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease-out); }
.menu-open .nav-toggle-lines span:first-child { transform: translateY(3.25px) rotate(30deg) scaleX(0.8); }
.menu-open .nav-toggle-lines span:last-child { transform: translateY(-3.25px) rotate(-30deg) scaleX(0.8); }

/* "Menu" / "Close" words swap in place */
.nav-toggle-words { display: grid; overflow: hidden; height: 1.3em; }
.nav-toggle-words span { grid-area: 1 / 1; transition: transform var(--t-med) var(--ease-out); }
.nav-toggle-words span:last-child { transform: translateY(110%); }
.menu-open .nav-toggle-words span:first-child { transform: translateY(-110%); }
.menu-open .nav-toggle-words span:last-child { transform: none; }

@media (max-width: 640px) {
  .nav-shell, .menu-open .nav-shell { flex: 1 1 auto; }
  .nav-top { min-height: 54px; padding: 5px 6px 5px 14px; }
  .logo-text { font-size: 1.125rem; }
  .logo-mark { width: 24px; height: 24px; }
  .header-cta .split-main { min-height: 56px; padding: 0 16px; font-size: 1rem; }
  .header-cta .split-icon { display: none; }
  .nav-panel-content { padding-inline: 14px; }
  .nav-book .split-btn { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 430px) {
  .logo-sub { display: none; }
  .nav-toggle-words { display: none; }
}
/* On phones the menu opens across the full width, so the CTA steps aside */
@media (max-width: 640px) {
  .menu-open .header-cta { display: none; }
}

/* ---------- Pixel-dither canvases ---------- */
canvas.dither { display: block; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 var(--s-6);
  overflow: hidden;
}
.dither-hero {
  position: absolute;
  top: 0; right: 0;
  width: 62%;
  height: 100%;
}
@media (max-width: 900px) {
  .dither-hero { width: 100%; height: 420px; opacity: 0.45; }
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: var(--s-3);
}
.hero-lead { font-size: 1.125rem; line-height: 1.45; max-width: 52ch; margin-bottom: var(--s-4); }

.record {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: var(--s-3);
}
.record-label { font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--s-2); }
.record dl { margin: 0 0 var(--s-3); }
.record-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line-dark);
}
.record-row:first-child { border-top: 0; padding-top: 0; }
.record-row dt { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.03em; }
.record-row dd { margin: 0; color: var(--on-dark-muted); text-align: right; }
@media (max-width: 520px) {
  .record-row { grid-template-columns: 1fr; gap: 4px; }
  .record-row dd { text-align: left; }
}
.record .split-main { background: var(--moss); }
.record .split-btn:hover .split-main { background: #357A4F; }

/* ---------- Built for ---------- */
.built-for { background: var(--card); padding: var(--s-5) 0; }
.built-for-title { font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); text-align: center; margin-bottom: var(--s-3); }
.built-for-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3) var(--s-2);
  text-align: center;
}
@media (min-width: 900px) { .built-for-list { grid-template-columns: repeat(6, 1fr); } }
.built-for-list li {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #59625B;
}

/* ---------- Services (pricing flow) ---------- */
.price-flow { display: grid; }

.price-main {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: var(--s-5);
  min-height: 320px;
  padding: var(--s-3);
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-main canvas {
  position: absolute;
  top: 0; right: 0;
  width: 75%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 28%, transparent 64%);
  mask-image: linear-gradient(to bottom, #000 28%, transparent 64%);
}
@media (min-width: 720px) {
  .price-main canvas {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
.price-main .pill { position: relative; z-index: 1; justify-self: start; color: #fff; }
.price-main .price-body { position: relative; z-index: 1; max-width: 560px; }
.price-main .price-for { color: var(--on-dark-muted); }
.price-main .price-note { color: var(--on-dark-muted); }
.price-main .ticks svg { color: var(--fern); }
.price-main .text-btn { color: var(--fern); }

.price-name {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 var(--s-2);
}
.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px var(--s-2);
  margin-bottom: var(--s-2);
}
.price-amount {
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price-unit { font-size: 0.4em; letter-spacing: -0.02em; font-weight: 400; }
.price-note { color: var(--muted); font-size: 0.9375rem; }
.price-for { color: var(--muted); font-size: 1.0625rem; }

.price-grid { display: grid; gap: var(--s-2); }
.price-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0;
  padding: var(--s-3);
  background: var(--card);
  border-radius: var(--radius);
}
.price-card .pill { margin-bottom: var(--s-4); }
.price-card .price-amount { color: var(--accent); font-size: clamp(2.25rem, 4.8vw, 3.5rem); }
.price-card .price-name { margin-bottom: var(--s-1); }

.ticks { display: grid; gap: 8px; margin-bottom: var(--s-2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 16px; height: 16px; margin-top: 3px; color: var(--moss); }

/* Two arrows fanning down-left and down-right from the main card */
.price-arrows { position: relative; height: 48px; margin-bottom: 6px; }
.price-arrows::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border: 4px solid var(--moss);
  border-radius: 50%;
  background: var(--dark);
}
.price-arrows span { position: absolute; display: none; }
.price-arrows .arrow-r {
  display: block;
  top: 0; left: calc(50% - 2px);
  width: 4px; height: 100%;
  background: var(--moss);
}
.price-arrows span::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid var(--moss);
}
.price-arrows .arrow-r::after { left: -7px; }

@media (min-width: 720px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-arrows {
    height: 80px;
    width: calc(50% + var(--s-1));
    margin-inline: auto;
  }
  .price-arrows::before { top: -5px; }
  .price-arrows span {
    display: block;
    top: 0;
    width: 50%; height: 100%;
    border: 0 solid var(--moss);
    background: none;
  }
  .price-arrows .arrow-l {
    left: 0;
    border-top-width: 4px; border-left-width: 4px;
    border-top-left-radius: 44px;
  }
  .price-arrows .arrow-r {
    left: auto; right: 0;
    width: 50%;
    background: none;
    border-top-width: 4px; border-right-width: 4px;
    border-top-right-radius: 44px;
  }
  .price-arrows .arrow-l::after { left: -11px; }
  .price-arrows .arrow-r::after { left: auto; right: -11px; }
}

.plus {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) ease;
}
.plus svg { width: 18px; height: 18px; }
details[open] > summary .plus { transform: rotate(45deg); }

/* ---------- Promise (dark band) ---------- */
.promise {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  padding: var(--s-7) 0;
  overflow: hidden;
}
.promise canvas.dither { position: absolute; inset: 0; width: 100%; height: 100%; }
.promise-grid { position: relative; display: grid; gap: var(--s-3); }
.promise-kicker { font-size: 0.9375rem; color: var(--on-dark-muted); margin: 0; }
.promise-title { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 16ch; }
.promise-body { border-top: 1px solid var(--line-dark); padding-top: var(--s-4); margin-top: var(--s-4); max-width: 520px; }
.promise-body p { font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.03em; }
@media (min-width: 900px) {
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .promise-title { grid-column: 2; }
  .promise-kicker { grid-row: 1; }
  .promise-body { grid-column: 1 / -1; }
}

/* ---------- Work ---------- */
.work-grid { display: grid; gap: var(--s-2); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--card);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease;
}
@media (hover: hover) {
  .work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(13, 20, 16, 0.45); }
  .work-card:hover .work-icon svg { transform: rotate(-45deg); }
}
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.work-thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 960px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--thumb-scale, 0.28));
  pointer-events: none;
}
.work-card { container-type: inline-size; }
.work-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-chip { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat-chip strong { display: block; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.04em; }
.stat-chip span { font-size: 0.875rem; color: var(--muted); }
.work-desc { color: var(--muted); padding: 4px 4px 0; margin: 0 0 6px; flex: 1; }
.work-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--accent);
  border-radius: var(--radius-sm);
}
.work-name { color: #fff; font-weight: 500; letter-spacing: -0.03em; padding: 0 8px; flex: 1; min-width: 0; }
.work-cta { background: #fff; border-radius: 6px; padding: 10px 14px; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.work-icon { width: 42px; height: 42px; border-radius: 6px; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.work-icon svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.work-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 400px) { .work-cta { display: none; } }

/* ---------- Marquee band ---------- */
.marquee-band {
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  padding: var(--s-4) 0;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
}
.marquee-track span:nth-child(even) { color: var(--fern); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process ---------- */
.steps { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--card); border-radius: var(--radius); padding: var(--s-3); }
.step-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-5);
}
.step-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-num { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.625rem; margin-bottom: var(--s-1); }
.step p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--card); border-radius: var(--radius); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  min-height: 72px;
  padding: 14px 16px 14px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover .plus { background: var(--bg); }
.faq-list details p { color: var(--muted); padding: 0 22px 22px; margin: 0; max-width: 66ch; line-height: 1.55; }

/* ---------- Contact (dark) ---------- */
.contact {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  padding: var(--s-7) 0;
  overflow: hidden;
}
.contact canvas.dither { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-grid { position: relative; display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.contact-title { font-size: clamp(2.2rem, 5vw, 3.75rem); margin-bottom: var(--s-3); max-width: 13ch; }
.contact-copy > p { color: var(--on-dark-muted); font-size: 1.125rem; line-height: 1.5; max-width: 44ch; }
.contact-points { display: grid; gap: 10px; margin-top: var(--s-3); }
.contact-points li { display: flex; gap: 10px; align-items: center; }
.contact-points svg { width: 16px; height: 16px; color: var(--fern); }

.contact-form {
  display: grid;
  gap: var(--s-3) var(--s-2);
  padding: var(--s-4);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
}
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact-form { padding: var(--s-3); } }

.field { display: grid; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4D32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 77, 50, 0.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; margin: 0; }
.field-error:empty { display: none; }

.form-footer { display: grid; gap: var(--s-2); }
.form-status { margin: 0; font-size: 0.9375rem; color: var(--success); }
.form-status.is-error { color: var(--error); }
.split-main:disabled { opacity: 0.6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer (forest green) ---------- */
.site-footer { background: var(--accent); color: #fff; padding: var(--s-6) 0 var(--s-3); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { --logo-bar: var(--fern); }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-sub { color: rgba(255, 255, 255, 0.72); }
.footer-brand p { color: rgba(255, 255, 255, 0.82); max-width: 32ch; margin-top: var(--s-2); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h3 { font-size: 1.125rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.footer-col a { color: rgba(255, 255, 255, 0.86); text-decoration: none; padding-block: 2px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9375rem;
}
.footer-bottom a { color: #fff; text-underline-offset: 3px; }

/* ---------- Line-reveal headings (split into words by main.js) ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Each word sits in its own mask (with room for descenders). Words on the same
   line rise together; each line starts a little after the one above it. Going
   back down (scrolling up) the bottom line leaves first. */
.line-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.02em 0.02em 0.14em;
  margin: -0.02em -0.02em -0.14em;
}
.line-word-inner { display: inline-block; }
.js .line-word-inner {
  transform: translateY(110%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc((var(--last, 0) - var(--line, 0)) * 120ms);
}
.js .line-in .line-word-inner {
  transform: none;
  transition-delay: calc(var(--line, 0) * 120ms);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@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;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Spotlight cards ----------
   A white + green glow follows the pointer (set by main.js via --mx / --my).
   Three stacked backgrounds: the glow on the card surface, the card fill,
   and a brighter version of the glow that only shows through the 1.5px edge. */
@media (hover: hover) and (pointer: fine) {
  .price-card, .work-card, .step {
    --mx: -999px; --my: -999px;
    border: 2px solid transparent;
    background:
      radial-gradient(420px circle at var(--mx) var(--my), rgba(62, 138, 90, 0.26), rgba(125, 176, 140, 0.13) 45%, rgba(125, 176, 140, 0) 75%) padding-box,
      linear-gradient(var(--card), var(--card)) padding-box,
      radial-gradient(360px circle at var(--mx) var(--my), var(--moss), rgba(62, 138, 90, 0.35) 40%, rgba(62, 138, 90, 0) 72%) border-box;
    background-origin: border-box;
  }
  .record, .price-main {
    --mx: -999px; --my: -999px;
    border: 2px solid transparent;
    background:
      radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), rgba(125, 176, 140, 0.24) 42%, rgba(125, 176, 140, 0) 75%) padding-box,
      linear-gradient(var(--dark), var(--dark)) padding-box,
      radial-gradient(340px circle at var(--mx) var(--my), #fff, var(--fern) 38%, rgba(125, 176, 140, 0) 72%) border-box;
    background-origin: border-box;
  }
}

/* ---------- Corner pixel streams ----------
   Attached to the page (they scroll with it), behind the content, so they only show
   on the light background. main.js adds a top-left stream and a mirrored bottom-right
   stream for every screen-height of the page. */
.corner-layer {
  --corner-h: 42vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.dither-corner {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--corner-h);
}
@media (max-width: 640px) { .corner-layer { --corner-h: 30vh; } }

/* ---------- Card rise ----------
   Each card slides up out of its own bottom edge: the translate and the clip move
   together, so it's masked exactly like the heading lines. Scrolling back up past a
   card plays it in reverse. Animations (not transitions) so hover effects still work. */
.js .rise:not(.in):not(.rise-out) {
  visibility: hidden;
  transform: translateY(100%);
  clip-path: inset(0 0 100% 0);
}
.js .rise.in { animation: card-in 900ms var(--ease-out) var(--delay, 0ms) backwards; }
.js .rise.rise-out { animation: card-out 600ms cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes card-in {
  from { visibility: visible; transform: translateY(100%); clip-path: inset(0 0 100% 0); }
  to   { visibility: visible; transform: translateY(0); clip-path: inset(-24px); }
}
@keyframes card-out {
  from { visibility: visible; transform: translateY(0); clip-path: inset(-24px); }
  to   { visibility: hidden; transform: translateY(100%); clip-path: inset(0 0 100% 0); }
}