/* Rivermark Handyman — brand kit */

:root {
  --canvas: #ffffff;
  --fg: #000000;
  --accent: #64b4fa;
  --accent-hover: #8fceff;
  --accent-active: #4a8fd4;
  --accent-bg: #f0faff;
  --surface: #1a1a1a;
  --muted: #5a5a5a;
  --muted-text: #5a5a5a;
  --border: #dbdbdb;
  --success: #3cc29a;
  --radius: 8px;
  --line: 1px;
  --ink: #000000;
  --paper: #ffffff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --ease: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: 240ms ease-out;
  --focus: 2px solid var(--fg);
  --bar-h: 64px;
}

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

html {
  color-scheme: light;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(100, 180, 250, 0.2), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 18%, rgba(143, 206, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 40% at 70% 88%, rgba(100, 180, 250, 0.1), transparent 60%),
    linear-gradient(180deg, #f0faff 0%, #ffffff 32%, #ffffff 68%, #f4fbff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

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

a {
  color: var(--accent-active);
  text-underline-offset: 3px;
}

a:hover { color: var(--fg); }

:focus { outline: none; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 400;
  background: var(--fg);
  color: var(--canvas);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus { top: 12px; color: var(--canvas); }

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

[hidden] { display: none !important; }

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

@media (min-width: 768px) {
  .wrap { width: min(var(--wrap), calc(100% - 3.5rem)); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: var(--line) solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease-out), color var(--ease-out), border-color var(--ease-out), transform 180ms ease-out;
}

.btn:active { transform: scale(0.98); }

.btn-primary,
.btn-ink {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-ink:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000000;
}

.btn-primary:active,
.btn-ink:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  color: #000000;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--canvas);
  border-bottom: var(--line) solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  min-height: 44px;
}

.wordmark:hover { color: var(--fg); }

.logo-mark {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wordmark-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wordmark-loc {
  font-size: 0.72rem;
  color: var(--muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--line) solid var(--border);
  background: transparent;
  color: var(--fg);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .logo-mark { width: 40px; }
  .wordmark-name { font-size: 1.15rem; }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--canvas);
    border-bottom: var(--line) solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1rem 1rem;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    border-bottom: var(--line) solid var(--border);
  }
}

/* Hero — type-led, light perspective grid (20×20) */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  background: transparent;
}

.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 2000px;
  transform-style: preserve-3d;
  background: transparent;
}

.hero-grid-plane {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  width: 80rem;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotateX(30deg) rotateY(-5deg) rotateZ(20deg) scale(2);
  transform-style: preserve-3d;
  transform-origin: center;
  pointer-events: auto;
}

.hero-grid-tile {
  min-width: 1px;
  min-height: 1px;
  border: 1px solid #d1d5db;
  background: transparent;
  transition: background-color 1500ms;
}

.hero-grid-tile:hover {
  background: rgba(100, 180, 250, 0.22);
  transition-duration: 0ms;
}

.hero-grid-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 20%, rgba(240, 250, 255, 0.35) 55%, #f7fbff 82%);
}

.hero-copy { pointer-events: none; }

.hero-grain,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grain { display: none; }

.hero-shade {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 25%, rgba(247, 251, 255, 0.55) 70%, #f7fbff 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-active);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.8rem, 11vw, 6.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--fg);
  text-wrap: balance;
}

.hero-line { display: block; }

.hero-lede {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-text);
}

.hero-lede strong {
  color: var(--fg);
  font-weight: 700;
}

/* Bento */
.jobs {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(240, 250, 255, 0.55) 40%, transparent 100%);
}

.jobs-head,
.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.jobs h2,
.section-head h2,
.areas h2,
.faq h2,
.svc-index h2,
.svc-takeon h2,
.more-svcs h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-lead {
  margin: 0;
  color: var(--muted-text);
  max-width: 38rem;
}

.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 1.4rem 1.35rem 1.3rem;
  text-decoration: none;
  color: var(--fg);
  background: var(--canvas);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--ease-out), background var(--ease-out);
}

.bento-tile:hover,
.bento-tile:focus-visible {
  border-color: var(--accent);
  color: var(--fg);
  background: var(--accent-bg);
}

.bento-tile .magnet { display: block; }

.bento-kicker {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-active);
  font-weight: 700;
}

.bento-tile h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bento-tile p {
  margin: 0;
  color: var(--muted-text);
  max-width: 28ch;
}

.tile-mount { min-height: 280px; background: var(--accent-bg); }
.tile-else { min-height: 170px; }

@media (min-width: 760px) {
  .bento {
    grid-template-columns: 1.25fr 0.85fr;
    grid-template-rows: auto auto auto;
  }
  .bento > .tile-mount {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .bento > .tile-mount .bento-tile { min-height: 100%; }
  .bento > .tile-else { grid-column: 1 / -1; }
}

/* How it works — 3-step sequence (static fallback; scrub when supported) */
.how-chapter {
  padding: 2rem 0 4rem;
  background: radial-gradient(ellipse 80% 70% at 20% 40%, rgba(100, 180, 250, 0.08), transparent 70%);
}

.how-sticky {
  position: relative;
}

.how-inner {
  display: grid;
  gap: 1.75rem;
}

.how-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-active);
  font-weight: 700;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.how-step { margin: 0; }

.how-num {
  display: block;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.how-step h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.how-step p {
  margin: 0;
  max-width: 32rem;
  color: var(--muted-text);
}

/* Estimate — fridge door + lined magnet-card note */
.estimate {
  padding: 2rem 0 5rem;
}

.estimate .wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 3.6vw, 2.4rem);
  display: flex;
  justify-content: center;
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 40rem;
  background: var(--canvas);
  color: var(--fg);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem 1.6rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #b8e0ff 0%, var(--accent) 46%, var(--accent-active) 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.sheet::before { left: 18px; }
.sheet::after { right: 18px; }

.sheet .btn-ghost {
  color: var(--fg);
  border-color: var(--border);
}

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

.sheet-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.sheet-head p {
  margin: 0 0 1.25rem;
  color: var(--muted-text);
}

.sheet .step-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted-text);
}

.sheet :focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.sheet textarea {
  background-color: transparent;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 31px,
    #d4eafc 31px,
    #d4eafc 32px
  );
  border-color: transparent;
  border-radius: 0;
  line-height: 32px;
  padding: 0 0.2rem;
  min-height: 8rem;
}

.sheet textarea:focus-visible {
  background-color: transparent;
  border-color: transparent;
  outline-offset: 4px;
}

.sheet input[type="text"],
.sheet input[type="email"],
.sheet input[type="tel"] {
  background: transparent;
  border-radius: 0;
  border-color: transparent;
  border-bottom-color: var(--border);
}

.sheet input[type="text"]:focus-visible,
.sheet input[type="email"]:focus-visible,
.sheet input[type="tel"]:focus-visible {
  background: transparent;
  border-bottom-color: var(--fg);
}

@media (min-width: 768px) {
  .sheet { padding: 2.25rem 2.2rem 2.15rem; }
}

/* Form */
.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 48px;
  font: inherit;
  color: var(--fg);
  background: var(--canvas);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  appearance: none;
}

textarea { resize: vertical; min-height: 7.25rem; }

input:focus-visible,
textarea:focus-visible {
  border-color: var(--fg);
  background: #fff;
}

input.is-invalid,
textarea.is-invalid { border-color: #b4453a; }

.field-error {
  margin: 0.15rem 0 0;
  color: #b4453a;
  font-weight: 700;
  font-size: 0.88rem;
}

.error-summary {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: var(--line) solid #b4453a;
  background: #fff5f4;
  color: var(--fg);
  border-radius: var(--radius);
}

.error-summary-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.error-summary ul { margin: 0; padding-left: 1.2rem; }

.error-summary a {
  color: var(--fg);
  font-weight: 700;
}

.fields-grid { display: grid; gap: 0 0.85rem; }

@media (min-width: 700px) {
  .fields-grid { grid-template-columns: 1fr 1fr; }
}

.field-span { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.form-actions .btn { min-width: 9.5rem; }

.form-step-label {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.thanks h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--fg);
  font-weight: 700;
}

.thanks p {
  margin: 0;
  color: var(--muted-text);
  max-width: 34rem;
}

.thanks a { font-weight: 700; color: var(--fg); }

.thanks .eyebrow { color: var(--success); }

/* Areas */
.areas {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(180deg, transparent, rgba(240, 250, 255, 0.5) 50%, transparent);
}

.area-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
}

.area-list li {
  padding: 0.45rem 0.85rem;
  border: var(--line) solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  background: var(--canvas);
}

/* FAQ */
.faq { padding: 2rem 0 5.5rem; }

.acc-wrap { max-width: 820px; }

.acc {
  border-bottom: var(--line) solid var(--border);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}

.acc summary::-webkit-details-marker { display: none; }

.acc-mark {
  flex-shrink: 0;
  color: var(--accent-active);
}

.acc-minus { display: none; }
.acc[open] .acc-plus { display: none; }
.acc[open] .acc-minus { display: block; }

.acc-body {
  padding: 0 0 1.1rem;
  color: var(--muted-text);
}

.acc-body p { margin: 0; max-width: 40rem; }

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: var(--line) solid var(--border);
  background: linear-gradient(180deg, rgba(240, 250, 255, 0.4), #ffffff);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer .wordmark { color: var(--fg); margin: 0; }
.site-footer .wordmark-loc,
.footer-meta { color: var(--muted); }
.footer-meta { margin: 0.4rem 0 0; }

.footer-phone {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  color: var(--muted-text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-legal a:hover { color: var(--fg); }

.footer-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: var(--line) solid var(--border);
}

.footer-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr auto;
    align-items: center;
  }
}

/* Mobile phone bar */
.phone-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--canvas);
  border-top: var(--line) solid var(--border);
}

.phone-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
}

.phone-bar a:first-child {
  border-right: var(--line) solid var(--border);
  background: var(--accent);
  color: #000000;
}

.phone-bar a:hover { color: var(--accent-active); }
.phone-bar a:first-child:hover { color: #000000; background: var(--accent-hover); }

@media (min-width: 900px) {
  .phone-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Services index + detail */
.page-hero {
  padding: 4.5rem 0 2.5rem;
  background: var(--accent-bg);
}

.page-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.page-hero .hero-lede { margin-top: 1.1rem; }

.crumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  background: var(--accent-bg);
}

.crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  color: var(--muted);
}

.crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

.crumb a {
  color: var(--fg);
  text-decoration: none;
}

.crumb a:hover { color: var(--accent-active); }

.crumb [aria-current="page"] { color: var(--muted); }

.svc-index { padding: 1rem 0 4.5rem; }

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.svc-row {
  display: block;
  padding: 1.2rem 1.2rem 1.15rem;
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  background: var(--canvas);
  transition: border-color var(--ease-out), transform 180ms ease-out, background var(--ease-out);
}

.svc-row:hover,
.svc-row:focus-visible {
  border-color: var(--accent);
  color: var(--fg);
  background: var(--accent-bg);
}

.svc-row:active { transform: scale(0.98); }

.svc-row h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.svc-row p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.98rem;
}

.svc-row .caveat {
  display: block;
  margin-top: 0.55rem;
  color: var(--accent-active);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (min-width: 800px) {
  .svc-list { grid-template-columns: 1fr 1fr; }
}

.svc-takeon { padding: 1rem 0 2rem; }

.subsvc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subsvc a,
.subsvc span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: var(--line) solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
}

.subsvc a:hover {
  border-color: var(--accent);
  color: var(--fg);
  background: var(--accent-bg);
}

.scope-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--accent-bg);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  max-width: 42rem;
}

.more-svcs { padding: 1rem 0 4.5rem; }

.more-svcs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.more-svcs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  color: var(--muted-text);
  text-decoration: none;
  border-bottom: var(--line) solid transparent;
}

.more-svcs a:hover { color: var(--fg); }

.svc-page .estimate { padding-top: 0.5rem; }

.reveal { opacity: 1; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .reveal:nth-child(2) { animation-delay: 48ms; }
    .reveal:nth-child(3) { animation-delay: 96ms; }
    .reveal:nth-child(4) { animation-delay: 144ms; }

    .how-chapter {
      height: 280vh;
      padding: 0;
      view-timeline-name: --how;
      view-timeline-axis: block;
    }

    .how-sticky {
      position: sticky;
      top: 0;
      height: 100vh;
      height: 100dvh;
      display: flex;
      align-items: center;
    }

    .how-inner {
      width: 100%;
      position: relative;
      min-height: 22rem;
    }

    .how-steps {
      display: block;
      position: relative;
      min-height: 18rem;
    }

    .how-step {
      position: absolute;
      inset: 0 auto auto 0;
      width: min(100%, 40rem);
      opacity: 0;
      transform: translateY(18px);
    }

    .how-step-1 {
      animation: how-step linear both;
      animation-timeline: --how;
      animation-range: cover 0% cover 38%;
    }

    .how-step-2 {
      animation: how-step linear both;
      animation-timeline: --how;
      animation-range: cover 30% cover 70%;
    }

    .how-step-3 {
      animation: how-step-last linear both;
      animation-timeline: --how;
      animation-range: cover 62% cover 100%;
    }
  }
}

@keyframes how-step {
  0% { opacity: 0; transform: translateY(18px); }
  18% { opacity: 1; transform: translateY(0); }
  82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-14px); }
}

@keyframes how-step-last {
  0% { opacity: 0; transform: translateY(18px); }
  18% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

@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;
    animation-timeline: none !important;
  }

  .btn:active,
  .svc-row:active { transform: none; }

  .how-chapter {
    height: auto !important;
    padding: 2rem 0 4rem !important;
  }

  .how-sticky {
    position: static !important;
    height: auto !important;
  }

  .how-steps {
    display: grid !important;
    position: static !important;
    min-height: 0 !important;
    gap: 1.5rem;
  }

  .how-step {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
  }
}

/* Legal pages */
.legal-body {
  padding: 0 0 5rem;
}

.legal-body .wrap {
  max-width: 40rem;
}

.legal-body h2 {
  margin: 2.2rem 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-body p,
.legal-body li {
  color: var(--muted-text);
}

.legal-body p { margin: 0 0 1rem; }

.legal-body ul {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
}

.legal-body li { margin: 0 0 0.4rem; }

.legal-body strong {
  color: var(--fg);
  font-weight: 700;
}

.legal-updated {
  margin: 2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.netlify-badge { display: none !important; }

html iframe#nl-badge-frame,
#nl-badge-frame,
iframe[id*="nl-badge"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  border: 0 !important;
}
