/* =========================================================================
   MAMMOET PRINTING — design system
   -------------------------------------------------------------------------
   Direction (why this looks the way it looks):
   Mammoet Printing prints other companies' brands onto physical surfaces —
   vehicles, facades, billboards, flags. The site borrows its visual grammar
   from the print floor itself rather than from generic SaaS conventions:

   - Registration / crop marks (the little corner ticks a printer uses to
     line up ink layers) frame every photograph on the site. Signature,
     ownable device — nobody outside the print trade uses this.
   - Ink-on-paper duotone: warm paper canvas + the brand's own navy/red,
     lifted straight from the real Mammoet logo. No invented palette.
   - Binary corner radius: 0px on every frame/card (cut vinyl, printed
     sheets are square), full pill only on buttons and tags.
   - Uppercase, tight-tracked Archivo for headlines — the same register as
     cut signage lettering. Sentence-case Work Sans for reading copy.
   - Motion is "stamp settle" (a beat of scale+opacity, like ink pressing
     onto a surface) instead of a generic fade-up, plus a squeegee-stroke
     underline on link/CTA hover.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Brand (from the real Mammoet logo) */
  --navy: #2e3191;
  --navy-deep: #171a4d;
  --navy-soft: #4245a8;
  --red: #ec1c24;
  --red-deep: #b3141a;

  /* Paper / ink */
  --paper: #f7f5ef;
  --paper-dim: #efece3;
  --surface: #ffffff;
  --ink: #15151c;
  --ink-soft: #3c3c46;
  --muted: #6b6b76;
  --line: #ddd8cc;

  /* On dark (navy) band */
  --on-dark: #f7f5ef;
  --muted-on-dark: #aeaed4;
  --line-dark: rgba(247, 245, 239, 0.16);

  /* Semantic */
  --success: #1c7d43;
  --success-bg: #e8f4ec;
  --error: #b3141a;
  --error-bg: #fbe9e8;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;

  /* Spacing — 4px base */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius: binary system on purpose */
  --radius-0: 0px;
  --radius-pill: 999px;

  --container: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p {
  margin: 0;
  /* Dutch compounds ("GEVELBELETTERING") are long, unbreakable single
     words. Without this, a heading narrower than the word just lets the
     browser paint it straight through the container edge instead of
     wrapping it — invisible in getBoundingClientRect checks, very visible
     on screen. Site-wide safety net. */
  overflow-wrap: break-word;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-7); } }

section { padding-block: var(--sp-8); }
@media (min-width: 1024px) { section { padding-block: var(--sp-9); } }

/* Grid items default to min-width:auto, which lets one column's long
   unbreakable content (a heading word, a button label, "Telefoonnummer")
   force that track wider than its fr-share, squeezing every other column
   (and any image inside it) narrower. Site-wide equal-column safety net. */
.hero__grid > *,
.product-grid > *,
.editorial-split > *,
.value-list > *,
.work-row > *,
.form-grid > *,
.footer-grid > * {
  min-width: 0;
}

.section--tight { padding-block: var(--sp-7); }

/* ---- Typography ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--on-dark { color: var(--muted-on-dark); }
.eyebrow--red { color: var(--red); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  font-size: clamp(2.4rem, 5vw + 1rem, 4.5rem);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.02;
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem);
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.1;
  font-size: clamp(1.25rem, 1.4vw + 0.8rem, 1.6rem);
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.5;
}

.body-text { max-width: 65ch; color: var(--ink-soft); }
.body-text + .body-text { margin-top: var(--sp-4); }

.text-muted { color: var(--muted); }

/* underline "squeegee stroke" — draws left to right on hover/focus */
.stroke-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.stroke-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.stroke-link:hover::after,
.stroke-link:focus-visible::after { transform: scaleX(1); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:disabled { cursor: not-allowed; opacity: 0.7; }
.btn:active { transform: scale(0.97) translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-deep); }

.btn--ghost-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--ghost-dark:hover { background: var(--navy); color: #fff; }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(247, 245, 239, 0.5);
  color: var(--on-dark);
}
.btn--ghost-light:hover { background: var(--on-dark); color: var(--navy-deep); border-color: var(--on-dark); }

.btn--block { width: 100%; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.brand img { height: 34px; width: auto; }

.nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
}
.nav-desktop__links {
  display: flex;
  gap: var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.nav-desktop__links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-desktop__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.25s var(--ease);
}
.nav-desktop__links a:hover,
.nav-desktop__links a[aria-current="page"] { color: var(--ink); }
.nav-desktop__links a:hover::after,
.nav-desktop__links a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: var(--radius-0);
  cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-mobile.is-open { display: block; }
.nav-mobile__links {
  display: flex;
  flex-direction: column;
}
.nav-mobile__links a {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}
.nav-mobile__cta { padding: var(--sp-5); }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* ---- Registration-mark photo frame (signature device) ------------------ */
.reg-frame {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-0);
  overflow: hidden;
  background: var(--paper-dim);
}
.reg-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reg-frame::before,
.reg-frame::after,
.reg-frame .reg-tick {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
}
/* four corner crop-mark ticks, drawn with border pairs */
.reg-frame::before {
  top: 10px; left: 10px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.reg-frame::after {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.reg-frame .reg-tick--tr {
  top: 10px; right: 10px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.reg-frame .reg-tick--bl {
  bottom: 10px; left: 10px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.reg-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  background: linear-gradient(to top, rgba(21,21,28,0.82), rgba(21,21,28,0));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding-block: var(--sp-7) var(--sp-8);
}
@media (min-width: 1024px) { .hero { padding-top: var(--sp-8); } }
.hero__grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-8);
  }
}
.hero h1 { color: var(--navy-deep); }
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero__lede { margin-top: var(--sp-5); }
.hero__ctas {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.hero__visual { position: relative; }
.hero__visual .reg-frame { aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .hero__visual .reg-frame { aspect-ratio: 5 / 4; } }

.trust-strip {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-8);
}
.trust-stat {
  font-family: var(--font-display);
}
.trust-stat__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-deep);
  text-transform: uppercase;
}
.trust-stat__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Section heading pattern -------------------------------------------- */
.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-7);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: var(--sp-3); }

/* ---- Logo marquee (trusted-by) ------------------------------------------ */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-5);
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__tile {
  flex: 0 0 auto;
  width: 180px;
  height: 120px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
}
.marquee__tile img { width: 100%; height: 100%; object-fit: contain; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Product grid --------------------------------------------------------- */
.product-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* Featured (homepage) uses exactly 4 cards — own column count so the grid
   fills cleanly instead of leaving an orphan card on its own row. */
@media (min-width: 1024px) { .product-grid--featured { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 96px; /* keeps anchored cards clear of the sticky header */
}
.product-card .reg-frame { aspect-ratio: 4 / 3; }
.product-card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.product-card__body h3 { color: var(--navy-deep); }
.product-card__body p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  flex: 1;
  /* Fixed 3-line block regardless of actual copy length: min-height stops
     a short description (2 lines) leaving a bigger gap before "Meer info"
     than a long one (3 lines) does. line-clamp caps the other direction,
     so a rare 4-line description can't grow the card taller than the rest. */
  min-height: 4.65em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__link {
  /* Plain inline flow on purpose, not flex: when the label wraps to a
     second line (long product names), the arrow must wrap along with the
     last word instead of floating pinned to the row's cross-axis, which is
     what an inline-flex row does and pushes it outside/away from the text. */
  margin-top: var(--sp-3);
  display: inline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--red);
}
.product-card__link svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--sp-2);
  transition: transform 0.2s var(--ease);
}
.product-card:hover .product-card__link svg { transform: translateX(4px); }

/* ---- Dark navy band (deliberate one-time contrast section) -------------- */
.band-dark {
  background: var(--navy-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(247,245,239,0.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.band-dark .section-head .lede,
.band-dark .body-text { color: var(--muted-on-dark); }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark .pull-quote { color: var(--on-dark); }

/* ---- Philosophy / editorial split (over-ons) ---------------------------- */
.editorial-split {
  display: grid;
  gap: var(--sp-7);
}
@media (min-width: 1024px) {
  .editorial-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-9);
    align-items: start;
  }
}
.pull-quote {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.2vw + 0.9rem, 2.3rem);
  line-height: 1.12;
  color: var(--navy-deep);
  border-left: 4px solid var(--red);
  padding-left: var(--sp-5);
}
.editorial-split .body-text { margin-top: var(--sp-5); }

.cert-badge {
  margin-top: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  background: var(--surface);
}
.cert-badge__icon {
  width: 36px; height: 36px;
  flex: none;
  color: var(--navy);
}
.cert-badge__text { font-size: 0.85rem; color: var(--muted); }
.cert-badge__text strong { display: block; color: var(--ink); font-family: var(--font-display); text-transform: uppercase; font-size: 0.85rem; }

/* ---- Timeline / values list ---------------------------------------------- */
.value-list {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .value-list { grid-template-columns: repeat(3, 1fr); } }
.value-item { border-top: 2px solid var(--navy); padding-top: var(--sp-4); }
.value-item__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.value-item h3 { margin-top: var(--sp-2); color: var(--navy-deep); }
.value-item p { margin-top: var(--sp-2); color: var(--muted); font-size: 0.95rem; }

/* ---- Work / case showcase (offset frame rhythm) -------------------------- */
.work-row {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .work-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-row { grid-template-columns: repeat(4, 1fr); } }
.work-row .reg-frame { aspect-ratio: 3 / 4; }
.work-row > *:nth-child(2) { margin-top: var(--sp-7); }
.work-row > *:nth-child(4) { margin-top: var(--sp-7); }
@media (max-width: 767px) { .work-row > * { margin-top: 0 !important; } }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band {
  text-align: center;
}
.cta-band h2 { color: var(--on-dark); max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; color: var(--muted-on-dark); }
.cta-band__actions {
  margin-top: var(--sp-6);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ---- Forms ------------------------------------------------------------------ */
.form-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-0);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #9a978c; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(46,49,145,0.15);
}
.field textarea { resize: vertical; min-height: 140px; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179,20,26,0.15); }
.field-error {
  font-size: 0.82rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.file-drop {
  border: 1.5px dashed var(--line);
  padding: var(--sp-5);
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.file-drop:hover { border-color: var(--navy); }
.file-drop input[type="file"] { display: none; }
.file-drop__label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navy);
}
.file-drop__hint { margin-top: var(--sp-1); font-size: 0.8rem; color: var(--muted); }
.file-drop__filename { margin-top: var(--sp-2); font-size: 0.85rem; color: var(--ink); font-family: var(--font-mono); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--sp-6);
}
@media (min-width: 768px) { .form-card { padding: var(--sp-7); } }

.alert {
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px solid transparent;
  margin-bottom: var(--sp-5);
  font-size: 0.92rem;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.alert--success { background: var(--success-bg); border-color: var(--success); color: #12532c; }
.alert--error { background: var(--error-bg); border-color: var(--error); color: #7a0e13; }
.alert ul { margin: 0; padding-left: 1.1em; list-style: disc; }

/* ---- Info cards (contact page) -------------------------------------------- */
.info-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-item__icon {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--surface);
}
.info-item h3 { font-size: 1rem; color: var(--navy-deep); }
.info-item p, .info-item a { color: var(--muted); font-size: 0.94rem; }
.info-item a:hover { color: var(--navy); }

.hours-list { margin-top: var(--sp-2); }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.hours-row__day { color: var(--ink-soft); }
.hours-row__hours {
  flex: none;
  text-align: right;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.map-frame {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--muted-on-dark);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand img { height: 32px; }
.footer-brand p { margin-top: var(--sp-4); font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); font-size: 0.9rem; }
.footer-col a:hover { color: var(--on-dark); }
.footer-social {
  margin-top: var(--sp-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social:hover { background: var(--red); border-color: var(--red); }
.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.footer-bottom a:hover { color: var(--on-dark); }

/* ---- Scroll reveal ("stamp settle") ------------------------------------------
   Gated behind .js (set by an inline script in <head>, before paint) so
   content is visible by default. Only once JS has actually confirmed it is
   running do elements go to opacity:0 and wait for IntersectionObserver to
   reveal them — a slow/blocked/failed script can never leave content stuck
   invisible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- 404 ---------------------------------------------------------------------- */
.state-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-5);
}
.state-404 .eyebrow { font-size: 13px; }

/* ---- AI chat widget (sales demo, not a live feature) ---------------------------
   Deliberately not wired to any backend/API. The disclaimer is shown at all
   times the panel is open, never just once, so nobody mistakes this for a
   live feature — it exists purely to demonstrate the paid upsell. */
.ai-chat {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 100;
}
@media (min-width: 640px) { .ai-chat { right: var(--sp-7); bottom: var(--sp-6); } }

.ai-chat__toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 10px 30px -8px rgba(23, 26, 77, 0.55);
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease);
}
.ai-chat__toggle:hover { background: var(--navy-soft); }
.ai-chat__toggle:active { transform: scale(0.96); }
.ai-chat__toggle-icon--close { display: none; }
.ai-chat__toggle[aria-expanded="true"] .ai-chat__toggle-icon--chat { display: none; }
.ai-chat__toggle[aria-expanded="true"] .ai-chat__toggle-icon--close { display: block; }
.ai-chat__toggle[aria-expanded="true"] .ai-chat__toggle-badge { display: none; }
.ai-chat__toggle-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--paper);
}

.ai-chat__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 2 * var(--sp-5)));
  max-height: min(560px, 75vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -12px rgba(21, 21, 28, 0.35);
  transform-origin: bottom right;
  animation: ai-chat-in 0.22s var(--ease);
}
.ai-chat__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes ai-chat-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
}

.ai-chat__header {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  background: var(--navy-deep);
  color: var(--on-dark);
}
.ai-chat__avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}
.ai-chat__heading { flex: 1; min-width: 0; }
.ai-chat__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.ai-chat__status {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted-on-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-chat__dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: #f5b400;
  flex: none;
}
.ai-chat__close {
  flex: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--on-dark);
  cursor: pointer;
  touch-action: manipulation;
}
.ai-chat__close:hover { color: var(--muted-on-dark); }

.ai-chat__disclaimer {
  flex: none;
  padding: var(--sp-3) var(--sp-4);
  background: var(--error-bg);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--red);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7a0e13;
}

.ai-chat__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--paper);
}
.ai-chat__msg {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ai-chat__msg--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.ai-chat__msg--user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
}
.ai-chat__msg--typing {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}
.ai-chat__typing-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--muted);
  animation: ai-chat-typing 1.1s ease-in-out infinite;
}
.ai-chat__typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-chat__typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ai-chat__form {
  flex: none;
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.ai-chat__form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
}
.ai-chat__form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(46,49,145,0.15);
}
.ai-chat__send {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.ai-chat__send:hover { background: var(--red-deep); }
.ai-chat__send:active { transform: scale(0.94); }

@media (max-width: 400px) {
  .ai-chat__panel { right: -8px; }
}

/* ---- Utility ------------------------------------------------------------------ */
.flow > * + * { margin-top: var(--sp-4); }
.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;
}
