/* =============================================================
   Dazzling Marine Vessel Management, mockup stylesheet
   Implements 03-design/design-system.md verbatim.
   Fonts: Fraunces (display) + Public Sans (body). Sharp corners
   everywhere. Pearl + graphite + brass + Indian-Ocean palette.
   ============================================================= */

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
  /* ---- Fonts ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Type scale (desktop) ---- */
  --fs-display: 4.5rem;     /* 72 */
  --fs-display-fluid: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --fs-h1: 3.25rem;         /* 52 */
  --fs-h2: 2.5rem;          /* 40 */
  --fs-h3: 1.75rem;         /* 28 */
  --fs-h4: 1.3125rem;       /* 21 */
  --fs-h5: 1.125rem;        /* 18 */
  --fs-h6: 1rem;            /* 16 */
  --fs-lead: 1.25rem;       /* 20 */
  --fs-body: 1.0625rem;     /* 17 */
  --fs-small: 0.9375rem;    /* 15 */
  --fs-xs: 0.8125rem;       /* 13 */
  --fs-overline: 0.8125rem; /* 13, uppercase, 0.14em */

  --measure: 68ch;

  /* ---- Colour: raw ---- */
  --c-pearl:        #F4F2ED;
  --c-salt:         #FBFAF7;
  --c-pearl-deep:   #EAE7DE;
  --c-graphite:     #1C2024;
  --c-graphite-2:   #2A3036;
  --c-slate:        #5A6169;
  --c-slate-invert: #AEB4BB;
  --c-brass:        #A9772F;
  --c-brass-dark:   #8A6024;
  --c-ocean:        #1F5A6B;
  --c-ocean-dark:   #16414E;
  --c-foam:         #DEDAD0;
  --c-foam-strong:  #C7C2B5;
  --c-copper:       #7A4A2C;
  --c-white:        #FFFFFF;
  --c-success:      #2F6B3D;
  --c-error:        #9B2C2C;

  /* ---- Colour: semantic ---- */
  --bg:             var(--c-pearl);
  --surface:        var(--c-salt);
  --surface-2:      var(--c-pearl-deep);
  --ink:            var(--c-graphite);
  --ink-invert:     var(--c-pearl);
  --muted:          var(--c-slate);
  --muted-invert:   var(--c-slate-invert);
  --accent:         var(--c-brass);
  --accent-hover:   var(--c-brass-dark);
  --accent-2:       var(--c-ocean);
  --accent-2-hover: var(--c-ocean-dark);
  --line:           var(--c-foam);
  --line-strong:    var(--c-foam-strong);
  --ink-section:    var(--c-graphite);
  --field-bg:       var(--c-white);
  --copper:         var(--c-copper);
  --success:        var(--c-success);
  --error:          var(--c-error);

  /* ---- Spacing (8px base) ---- */
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* ---- Breakpoints (reference) ---- */
  --bp-xs: 360px;  --bp-sm: 480px;  --bp-md: 768px;
  --bp-lg: 1080px; --bp-xl: 1280px; --bp-xxl: 1440px;

  /* ---- Elevation ---- */
  --shadow-0: none;
  --shadow-1: 0 1px 0 0 var(--line);
  --shadow-2: 0 6px 18px -8px rgba(28, 32, 36, 0.18);
  --shadow-focus: 0 0 0 3px rgba(169, 119, 47, 0.45);

  /* ---- Motion ---- */
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* ---- Borders ---- */
  --border-radius: 0;
  --hairline: 1px solid var(--line);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-2);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-2-hover);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
}

ul, ol {
  margin: 0 0 var(--space-4);
}

strong { font-weight: 700; }

/* Heading sizes */
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.005em; font-weight: 600; }
h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 600; }
h5 { font-size: var(--fs-h5); line-height: 1.35; letter-spacing: 0.01em; font-weight: 600; }
h6 { font-size: var(--fs-h6); line-height: 1.4; letter-spacing: 0.02em; font-weight: 700; }

.tabular { font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  h1 { font-size: var(--fs-h2); }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.375rem; }
}

/* ---------------------------------------------------------------
   3. Skip link + focus
   --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -120px;
  z-index: 1000;
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus-visible {
  top: var(--space-4);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

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

.section {
  padding-block: var(--space-9);
}

.section--tight { padding-block: var(--space-8); }

@media (max-width: 768px) {
  .section { padding-block: var(--space-8); }
}

@media (max-width: 480px) {
  .section { padding-block: var(--space-7); }
}

.section--alt { background: var(--surface-2); }
.section--surface { background: var(--surface); }

.section--dark {
  background: var(--ink-section);
  color: var(--ink-invert);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--ink-invert); }
.section--dark p { color: var(--muted-invert); }
.section--dark .section__eyebrow { color: var(--accent); }
.section--dark a { color: var(--ink-invert); }
.section--dark a:hover { color: var(--accent); }

.stack > * + * { margin-top: var(--space-4); }
.measure { max-width: var(--measure); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.section--dark .lead { color: var(--muted-invert); }

.center { text-align: center; margin-inline: auto; }
.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;
}

/* ---------------------------------------------------------------
   5. The waterline motif
   --------------------------------------------------------------- */
.waterline {
  position: relative;
  height: 1px;
  background: var(--accent-2);
  border: 0;
  margin: 0;
}
.waterline::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: var(--space-7); /* 48px brass tick */
  height: 3px;
  background: var(--accent);
}

/* full-width band divider */
.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  top: -1px;
  width: var(--space-7);
  height: 3px;
  background: var(--accent);
}

/* ---------------------------------------------------------------
   6. Section heads / eyebrows
   --------------------------------------------------------------- */
.section__head { margin-bottom: var(--space-7); }
.section__eyebrow {
  font-size: var(--fs-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin: 0 0 var(--space-3);
}
.section--dark .section__head .section__eyebrow { color: var(--accent); }
.section__head .waterline {
  width: 96px;
  margin-top: var(--space-4);
}
.section__title { margin: 0; }
.section__intro {
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.section--dark .section__intro { color: var(--muted-invert); }

/* ---------------------------------------------------------------
   7. Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn--primary:active { box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.18); }

.btn--secondary { background: var(--ink); color: var(--ink-invert); border-color: var(--ink); }
.btn--secondary:hover { background: var(--c-graphite-2); color: var(--ink-invert); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; pointer-events: none; }

.section--dark .btn--ghost { color: var(--ink-invert); border-color: var(--muted-invert); }
.section--dark .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------
   8. Header / navigation
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-2); }

.nav {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-3) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 64px;
  transition: min-height var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled .nav { min-height: 56px; padding-block: var(--space-2); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav__brand:hover { color: var(--ink); }
.nav__brand svg { width: 30px; height: 30px; display: block; }
.nav__brand-text { line-height: 1; }

.nav__list {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0 var(--space-1);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--accent-2); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__phone:hover { border-color: var(--accent); color: var(--accent-2); }
.nav__phone svg { width: 16px; height: 16px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------
   9. Mobile menu panel
   --------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 32, 36, 0.5);
  border: 0;
  cursor: pointer;
}
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: var(--space-5) var(--space-5) var(--space-8);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.mobile-menu__head .nav__brand { font-size: 1.25rem; margin: 0; }
.mobile-menu__close {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
}
.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--space-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-h5);
}
.mobile-menu__list a[aria-current="page"] { color: var(--accent-2); }
.mobile-menu__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-3) var(--space-4);
}
.mobile-menu__sub a {
  min-height: 44px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-menu__actions { display: grid; gap: var(--space-3); }
.mobile-menu__actions .btn { width: 100%; }

@media (max-width: 767.98px) {
  .nav__list, .nav__phone, .nav__cta-desktop { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------
   10. Mobile sticky action bar
   --------------------------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.action-bar a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.action-bar a:first-child { color: var(--ink); border-right: 1px solid var(--line); }
.action-bar a:last-child { background: var(--accent); color: var(--ink); }
.action-bar svg { width: 18px; height: 18px; }

@media (max-width: 767.98px) {
  .action-bar { display: grid; }
  body { padding-bottom: 52px; }
}

/* ---------------------------------------------------------------
   11. Hero
   --------------------------------------------------------------- */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-10) var(--gutter);
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (max-width: 768px) {
  .hero__inner { padding-block: var(--space-8); }
}
@media (min-width: 1080px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}
.hero__eyebrow {
  font-size: var(--fs-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  padding-left: var(--space-4);
  border-left: 3px solid var(--accent);
  margin: 0 0 var(--space-5);
}
.hero__title {
  font-size: var(--fs-display-fluid);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 var(--space-5);
}
.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 var(--space-7);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.hero__media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--ink-invert);
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-9) var(--space-8);
}
@media (max-width: 480px) {
  .page-hero { padding-block: var(--space-7); }
}
.page-hero__eyebrow {
  font-size: var(--fs-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  padding-left: var(--space-4);
  border-left: 3px solid var(--accent);
  margin: 0 0 var(--space-5);
}
.page-hero__title {
  font-size: var(--fs-display-fluid);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
}
.page-hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

/* ---------------------------------------------------------------
   12. Signal list (stat chips)
   --------------------------------------------------------------- */
.signal-list {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}
.signal-list li {
  display: grid;
  grid-template-columns: var(--space-7) 1fr;
  gap: var(--space-4);
  align-items: start;
}
.signal-list li::before {
  content: "";
  height: 2px;
  margin-top: 0.85em;
  background: var(--accent);
}

/* positioning band */
.positioning {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1080px) {
  .positioning { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); }
}

/* trust row */
.trust-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .trust-row { grid-template-columns: repeat(3, 1fr); }
}
.trust-item {
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--surface);
}
.trust-item__figure {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--accent-2);
  line-height: 1.1;
}
.trust-item__label { font-size: var(--fs-small); color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------
   13. Service cards
   --------------------------------------------------------------- */
.service-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.service-card:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}
.service-card:focus-within {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.service-card__kicker {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0;
}
.service-card__body {
  color: var(--muted);
  font-size: var(--fs-body);
  margin: 0;
}
.service-card__link {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.service-card__link:hover { color: var(--accent-2); }
.service-card__link::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}
.service-card__link:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------
   14. Category / product cards
   --------------------------------------------------------------- */
.category-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.category-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.category-card:hover .category-card__media img { transform: scale(1.03); }
.category-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.category-card__kicker {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0;
}
.category-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  margin: 0;
}
.category-card__body p { font-size: var(--fs-body); color: var(--muted); margin: 0; }
.category-card__meta { font-size: var(--fs-small); color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------
   15. Before / after pairs
   --------------------------------------------------------------- */
.ba-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ba-grid { grid-template-columns: repeat(3, 1fr); } }

.ba-block { display: flex; flex-direction: column; gap: var(--space-3); }
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ba-pair figure {
  margin: 0;
  position: relative;
  background: var(--surface);
}
.ba-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ba-pair figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--ink-invert);
}
.ba-pair figure:first-child figcaption { background: var(--copper); }
.ba-pair figure:last-child figcaption { background: var(--accent-2); }
.ba-block__title { font-family: var(--font-display); font-size: var(--fs-h4); margin: 0; }
.ba-block__body { font-size: var(--fs-small); color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------
   16. Testimonials
   --------------------------------------------------------------- */
.testimonials {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonials { grid-template-columns: 1fr 1fr; } }

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: var(--space-6) var(--space-6) var(--space-5);
  margin: 0;
}
.quote__body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  max-width: none;
}
.quote__cite {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--muted);
  display: block;
}
.quote__cite span { color: var(--ink); }
@media (max-width: 480px) { .quote__body { font-size: 1.1875rem; } }

/* ---------------------------------------------------------------
   17. Content / prose blocks
   --------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }
.prose ul { padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }

/* split content: text + media */
.split {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1080px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .split--media-first .split__media { order: -1; }
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.split__media figcaption {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--space-3);
}

/* service detail block (services page) */
.service-detail {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 1080px) {
  .service-detail { grid-template-columns: 0.42fr 0.58fr; gap: var(--space-9); }
  .service-detail--reverse .service-detail__media { order: 2; }
}
.service-detail__head { margin: 0 0 var(--space-4); }
.service-detail__kicker {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.service-detail__title { margin: 0; }
.service-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.included {
  margin: var(--space-5) 0 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  background: var(--surface);
}
.included h4 {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 0 0 var(--space-3);
}
.included ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.included li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--fs-body);
}
.included li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 14px; height: 2px;
  background: var(--accent);
}
.built-for { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-4); }

/* ---------------------------------------------------------------
   18. Team
   --------------------------------------------------------------- */
.team-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-6);
}
.team-card__role {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.team-card__name { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 var(--space-3); }
.team-card__bio { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------
   19. Contact page
   --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); }
}
.contact-details { display: grid; gap: var(--space-6); }
.contact-block { display: grid; gap: var(--space-2); }
.contact-block__label {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 600;
}
.contact-block__value {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
a.contact-block__value:hover { color: var(--accent-2); }
.contact-block__note { font-size: var(--fs-small); color: var(--muted); margin: 0; }

/* form */
.form {
  display: grid;
  gap: var(--space-5);
  max-width: 620px;
}
.form__row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--field-bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field--error input,
.field--error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-small); }
.field__hint { color: var(--muted); font-size: var(--fs-small); }
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form__status[role="status"] { font-weight: 600; margin: 0; min-height: 1.5em; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--error); }

/* map placeholder (CSS-only, no fabricated embed) */
.map-frame {
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, var(--surface-2), var(--surface-2) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, var(--surface-2), var(--surface-2) 1px, transparent 1px, transparent 28px),
    var(--surface);
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-frame__pin {
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--space-3) var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-small);
  max-width: 80%;
  text-align: center;
}
.map-frame__pin svg { width: 18px; height: 18px; flex-shrink: 0; }
.map-frame::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--accent-2);
  opacity: 0.5;
}

/* ---------------------------------------------------------------
   20. CTA band
   --------------------------------------------------------------- */
.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1080px) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-9); }
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
@media (min-width: 1080px) {
  .cta-band__actions { justify-content: flex-end; }
}
.cta-band__detail {
  font-size: var(--fs-small);
  color: var(--muted-invert);
  margin: var(--space-5) 0 0;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   21. Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--ink-section);
  color: var(--ink-invert);
}
.site-footer a { color: var(--ink-invert); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__grid {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-9) var(--gutter) var(--space-6);
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.footer__brand svg { width: 28px; height: 28px; }
.footer__brand-block .waterline { width: 80px; margin-bottom: var(--space-4); }
.footer__tagline { color: var(--muted-invert); font-size: var(--fs-small); max-width: 32ch; margin: 0 0 var(--space-4); }
.footer__heading {
  font-size: var(--fs-h6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-invert);
  margin: 0 0 var(--space-4);
  font-weight: 700;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}
.footer__list a,
.footer__contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
  font-variant-numeric: tabular-nums;
}
.footer__contact li { color: var(--muted-invert); font-size: var(--fs-small); }
.footer__contact a { color: var(--ink-invert); }
.footer__contact .footer__hours {
  min-height: 0;
  display: block;
  margin-top: var(--space-3);
  line-height: 1.5;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-5) var(--gutter);
  font-size: var(--fs-xs);
  color: var(--muted-invert);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}

/* ---------------------------------------------------------------
   22. Scroll reveal (IntersectionObserver, opt-in)
   --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   23. Reduced motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   24. Print
   --------------------------------------------------------------- */
@media print {
  .site-header, .action-bar, .nav__toggle, .mobile-menu, .hero__actions,
  .form, .btn, .cta-band__actions, .map-frame { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding-bottom: 0; }
  a { color: #000; text-decoration: underline; }
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .site-footer a, .footer__contact li { color: #000; }
  * { box-shadow: none !important; }
}
