/* ==========================================================================
   JasperByte — jasperbyte.com
   Single stylesheet for the whole site. Every page links only this file, so
   design changes are a one-file edit even though the pages are hand-written.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --background: #f5f3f0;
  --foreground: #171310;
  --card: #fefdfb;
  --border: #d6d4d0;
  --muted: #e9e8e4;
  --muted-foreground: #6d6864;
  --primary: #191512;
  --primary-foreground: #f8f7f4;
  --accent: #e0deda;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-sm: 0.5rem;

  --container: 72rem;
  --gutter: 1.5rem;
  --header-h: 5rem;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

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

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 150ms var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.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;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1, .h1 {
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.95;
}
h2, .h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
}
h3 { font-size: 1.5rem; line-height: 1.2; }
p { text-wrap: pretty; }

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.muted { color: var(--muted-foreground); }
.dim { color: var(--muted-foreground); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--foreground) 40%, transparent);
  flex: none;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 7rem; position: relative; }
.section--tight { padding-block: 4.5rem; }
.section--band {
  background: color-mix(in srgb, var(--card) 40%, transparent);
  border-block: 1px solid var(--border);
}
@media (min-width: 768px) {
  .section { padding-block: 9rem; }
  .section--tight { padding-block: 5.5rem; }
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .split__aside { grid-column: span 5; }
  .split__body { grid-column: span 7; }
}

.split__body > p + p { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.5rem; }
.section-head > * + * { margin-top: 2rem; }

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* --------------------------------------------------------------------------
   5. Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 150ms var(--ease), background-color 150ms var(--ease),
              border-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 150ms var(--ease); }
.btn:hover svg.arrow { transform: translateX(2px); }

.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { opacity: 0.9; }

.btn--ghost {
  background: color-mix(in srgb, var(--card) 50%, transparent);
  border-color: var(--border);
  color: var(--foreground);
}
.btn--ghost:hover { background: var(--card); }

.btn--invert { background: var(--primary-foreground); color: var(--primary); }
.btn--invert:hover { opacity: 0.9; }

.btn--sm { padding: 0.625rem 1.25rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.arrow-link svg { width: 0.875rem; height: 0.875rem; transition: transform 150ms var(--ease); }
.arrow-link:hover svg { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 1rem;
  top: 1rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.625rem 0.75rem 0.625rem 1rem;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}
.site-header.is-scrolled .nav,
.site-header:has(.nav__mobile[open]) .nav {
  border-color: var(--border);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(23, 19, 16, 0.04);
}
@media (min-width: 768px) {
  .nav { padding-inline: 1.5rem 0.75rem; }
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }

/* The supplied logo artwork, applied as a mask so one untouched file inherits
   the surrounding text colour — dark in the header, light in the footer.
   The artwork sits centred in a square canvas, so the box is square too. */
.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/icon-logo.svg") center / contain no-repeat;
  mask: url("/assets/img/icon-logo.svg") center / contain no-repeat;
}
.brand__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
.brand__tm {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-foreground);
  align-self: flex-start;
  margin-top: 0.15rem;
}

.nav__links { display: none; align-items: center; gap: 0.125rem; }
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 150ms var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-active { color: var(--foreground); }
.nav__link svg { width: 0.75rem; height: 0.75rem; opacity: 0.6; transition: transform 200ms var(--ease); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__cta { display: none; }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }

/* The mobile menu is a native <details>, so it opens and closes with
   JavaScript disabled. main.js only adds the niceties: close on link click,
   Escape, and outside click. */
.nav__mobile { position: relative; }
@media (min-width: 900px) { .nav__mobile { display: none; } }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  cursor: pointer;
  list-style: none;
}
.nav__toggle::-webkit-details-marker { display: none; }
.nav__toggle::marker { content: ""; }
.nav__toggle svg { width: 1.25rem; height: 1.25rem; }
.nav__toggle .icon-close { display: none; }
.nav__mobile[open] .nav__toggle .icon-close { display: block; }
.nav__mobile[open] .nav__toggle .icon-menu { display: none; }

/* --- desktop dropdown --- */
.has-menu { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 17rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 12px 32px -12px rgba(23, 19, 16, 0.18);
  display: none;
}
/* Invisible bridge across the gap between the trigger and the panel. Without
   it the pointer leaves .has-menu on the way down and the menu closes. */
.nav__menu::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: -1rem;
  right: -1rem;
  height: 0.85rem;
}
.nav__menu--wide { min-width: 30rem; columns: 2; column-gap: 0.5rem; }
.has-menu.is-open .nav__menu { display: block; }
.has-menu.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__menu a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  break-inside: avoid;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.nav__menu a:hover { background: var(--muted); color: var(--foreground); }

/* --- mobile panel --- */
.nav__panel {
  pointer-events: auto;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: -0.25rem;
  width: calc(100vw - 3.5rem);
  max-width: 22rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 16px 40px -16px rgba(23, 19, 16, 0.22);
}
@media (min-width: 900px) { .nav__panel { display: none; } }

.nav__panel a {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--foreground);
}
.nav__panel a:hover { background: var(--muted); }
.nav__group { border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.5rem; }
.nav__group > p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem 0.25rem;
}
.nav__group a { font-size: 0.875rem; color: var(--muted-foreground); }
.nav__panel .btn { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 0;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-top: 11rem; } }

.hero__canvas {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  display: none;
  pointer-events: none;
}
@media (min-width: 1024px) { .hero__canvas { display: block; } }
.hero__canvas canvas { width: 100%; height: 100%; }

.hero__inner { position: relative; }
.hero h1 { margin-top: 2rem; max-width: 56rem; }
.hero .lead { margin-top: 2rem; max-width: 36rem; }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stats {
  position: relative;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .stats { margin-top: 7rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stat:nth-child(2n) { border-left: 1px solid var(--border); padding-left: 1.5rem; }
@media (min-width: 768px) {
  .stat { padding: 1.5rem; border-bottom: 0; border-left: 1px solid var(--border); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat:nth-child(2n) { padding-left: 1.5rem; }
}
.stat__value { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 768px) { .stat__value { font-size: 3rem; } }
.stat__label { font-size: 0.875rem; color: var(--muted-foreground); }
.stat__note {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
}

/* --------------------------------------------------------------------------
   8. Page hero (subpages)
   -------------------------------------------------------------------------- */
.page-hero { position: relative; padding-top: 9rem; padding-bottom: 4rem; overflow: hidden; }
@media (min-width: 768px) { .page-hero { padding-top: 11rem; padding-bottom: 5rem; } }
.page-hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 20ch;
}
.page-hero .lead { margin-top: 1.75rem; max-width: 44rem; }
.page-hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.breadcrumb {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a:hover { color: var(--foreground); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* --------------------------------------------------------------------------
   9. Service rows
   -------------------------------------------------------------------------- */
.rows { margin-top: 4rem; }
@media (min-width: 768px) { .rows { margin-top: 6rem; } }

.row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
@media (min-width: 768px) {
  .row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    padding-block: 3.5rem;
  }
  .row__num { grid-column: span 1; }
  .row__title { grid-column: span 4; }
  .row__body { grid-column: span 5; }
  .row__icon { grid-column: span 2; justify-self: end; }
}
.row__num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted-foreground); }
.row__title { font-size: 1.5rem; }
@media (min-width: 768px) { .row__title { font-size: 1.875rem; } }
.row__title a { transition: opacity 150ms var(--ease); }
.row__title a:hover { opacity: 0.65; }
.row__body { color: var(--muted-foreground); line-height: 1.65; max-width: 36rem; }
.row__body .arrow-link { margin-top: 1rem; }

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  flex: none;
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }

/* --------------------------------------------------------------------------
   10. Mosaic cards
   -------------------------------------------------------------------------- */
/* Hairline separators are cast by each tile as a 1px box-shadow rather than
   by a gap over a coloured background. The outermost shadows are clipped by
   the container, and an incomplete final row shows card colour instead of a
   stray block of border colour. Works for any number of tiles. */
.mosaic {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mosaic--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .mosaic--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mosaic--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  padding: 2rem;
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
  transition: background-color 150ms var(--ease);
}
a.tile:hover { background: var(--accent); }
.tile svg.tile__icon { width: 1.5rem; height: 1.5rem; }
.tile h3 { font-size: 1.125rem; }
.tile p { font-size: 0.875rem; line-height: 1.65; color: var(--muted-foreground); }
.tile .arrow-link { margin-top: auto; padding-top: 0.25rem; font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   11. Prose blocks (service / industry / location bodies)
   -------------------------------------------------------------------------- */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: 3rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p { color: var(--muted-foreground); line-height: 1.75; }
.prose strong { color: var(--foreground); font-weight: 600; }
.prose a:not(.btn):not(.arrow-link) {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}
.prose a:not(.btn):not(.arrow-link):hover { text-decoration-color: var(--foreground); }

.ticks { display: grid; gap: 0.875rem; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--foreground);
  transform: rotate(45deg);
}
.ticks li strong { display: block; color: var(--foreground); font-weight: 600; }

.steps { counter-reset: step; display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid var(--border); padding-top: 1rem; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.0625rem; }
.steps p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.375rem; line-height: 1.6; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.facts li { display: flex; align-items: center; gap: 0.75rem; }
.facts li + li::before {
  content: "";
  width: 1px;
  height: 0.875rem;
  background: var(--border);
}

.keyfacts { display: grid; gap: 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.keyfacts > div {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .keyfacts > div { grid-template-columns: 12rem 1fr; } }
.keyfacts dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.keyfacts dd { margin: 0; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.375rem;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.6rem; }
.faq details > div { padding-bottom: 1.5rem; }
.faq p { color: var(--muted-foreground); line-height: 1.75; max-width: 52rem; }
.faq p + p { margin-top: 0.875rem; }

/* --------------------------------------------------------------------------
   13. CTA bands
   -------------------------------------------------------------------------- */
.cta-band {
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
    gap: 2rem;
  }
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; max-width: 26ch; }
.cta-band p { color: var(--muted-foreground); margin-top: 0.5rem; max-width: 46ch; }
.cta-band .btn { flex: none; }

.cta-nudge {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}
.cta-nudge strong { color: var(--foreground); font-weight: 600; }
.cta-nudge a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.cta-nudge a:hover { text-decoration-color: var(--foreground); }

/* --- sticky mobile bar --- */
.cta-sticky {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 45;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px -10px rgba(23, 19, 16, 0.28);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
  pointer-events: none;
}
.cta-sticky.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cta-sticky .btn { flex: 1; }
.cta-sticky__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
}
.cta-sticky__icon svg { width: 1.125rem; height: 1.125rem; }
@media (min-width: 768px) { .cta-sticky { display: none; } }

/* --------------------------------------------------------------------------
   14. Contact form
   -------------------------------------------------------------------------- */
.contact-meta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.contact-meta a:hover { color: var(--foreground); }

.form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.5rem;
}
@media (min-width: 768px) { .form { padding: 2rem; } }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Direct children only — fields sitting side by side inside a .form__grid
   must not inherit this vertical rhythm, or the right column drops. */
.form > .form__grid + .form__grid,
.form > .form__field + .form__field,
.form > .form__grid + .form__field,
.form > .form__field + .form__grid { margin-top: 1.25rem; }

.form__field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.form__optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 150ms var(--ease), border-color 150ms var(--ease);
}
.form__field textarea { min-height: 8rem; resize: vertical; }
.form__field select { appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6864' 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 0.875rem center;
  background-size: 1rem;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}
.form__field input[aria-invalid="true"],
.form__field select[aria-invalid="true"],
.form__field textarea[aria-invalid="true"] { border-color: #b3261e; }
.form__error { display: block; margin-top: 0.375rem; font-size: 0.75rem; color: #b3261e; }
.form__error:empty { display: none; }

.form button[type="submit"] { margin-top: 1.5rem; }
.form__status { margin-top: 1rem; font-size: 0.875rem; }
.form__status:empty { display: none; }
.form__status[data-state="error"] { color: #b3261e; }

.form__honey {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

.form-success { text-align: left; padding: 1rem 0; }
.form-success svg { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.375rem; }
.form-success p { margin-top: 0.75rem; color: var(--muted-foreground); line-height: 1.65; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 5rem;
}
@media (min-width: 768px) { .site-footer { padding-block: 7rem; } }

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent);
  padding-bottom: 4rem;
}
@media (min-width: 768px) { .footer-cta { flex-direction: row; align-items: flex-end; } }
.footer-cta h2 { max-width: 20ch; line-height: 1.02; }

.footer-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent);
}
@media (min-width: 900px) { .footer-map { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-map h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--primary-foreground) 55%, transparent);
  margin-bottom: 1rem;
}
.footer-map li + li { margin-top: 0.625rem; }
.footer-map a {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--primary-foreground) 72%, transparent);
  transition: color 150ms var(--ease);
}
.footer-map a:hover { color: var(--primary-foreground); }

.footer-base {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-base { flex-direction: row; align-items: center; } }

.social { display: flex; align-items: center; gap: 0.5rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--primary-foreground) 20%, transparent);
  color: color-mix(in srgb, var(--primary-foreground) 72%, transparent);
  transition: color 150ms var(--ease), border-color 150ms var(--ease),
              background-color 150ms var(--ease);
}
.social a:hover {
  color: var(--primary);
  background: var(--primary-foreground);
  border-color: var(--primary-foreground);
}
.social svg { width: 1rem; height: 1rem; }
.footer-base .brand__tm { color: color-mix(in srgb, var(--primary-foreground) 60%, transparent); }
.footer-base p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--primary-foreground) 50%, transparent);
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 8rem; }
.error-page .code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.error-page h1 { margin-top: 1.5rem; font-size: clamp(2.5rem, 6vw, 4rem); }
.error-page p { margin-top: 1.25rem; color: var(--muted-foreground); max-width: 44ch; margin-inline: auto; }
.error-page .page-hero__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   17. Scroll reveal — JS opts in, so content is visible without JS
   -------------------------------------------------------------------------- */
.js-reveal { opacity: 0; transform: translateY(12px); }
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal, .js-reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .cta-sticky { transition: none; }
}
