/* ==========================================================================
   Robert Stewart Harm Reduction
   Design system — single stylesheet, no build step.
   Re-theme the whole site by editing the tokens in :root below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted, so the site does not depend on Google being
   reachable. Corporate networks block third-party font CDNs more often than
   you would think, and a fallback-font render undoes the design.
   Both files are variable fonts covering the full weight range in one load.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-var.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Ink and paper */
  --ink:        #08161a;
  --ink-2:      #3a5259;
  --ink-3:      #5e757b;
  --line:       #e2e9e8;
  --line-soft:  #eef3f2;
  --paper:      #ffffff;
  --paper-2:    #f7faf9;
  --paper-3:    #edf3f1;

  /* Brand */
  --brand:      #0e6b5e;
  --brand-deep: #06483f;
  --brand-lift: #128a78;
  --brand-soft: #e0f0ec;
  --brand-tint: #f1f8f6;

  /* Accent — used sparingly, for warnings and emphasis */
  --accent:     #b04d1c;
  --accent-soft:#fbeee5;
  --warn:       #8a5a08;
  --warn-soft:  #fdf6e7;

  /* Footer runs dark in both themes */
  --footer-bg:   #08191c;
  --footer-ink:  #d5e3e1;
  --footer-ink-2:#8ba5a4;
  --footer-line: #173034;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(8, 22, 26, .05);
  --shadow:    0 1px 2px rgba(8, 22, 26, .04), 0 6px 16px -8px rgba(8, 22, 26, .14);
  --shadow-md: 0 1px 3px rgba(8, 22, 26, .05), 0 14px 32px -14px rgba(8, 22, 26, .22);
  --shadow-lg: 0 2px 4px rgba(8, 22, 26, .05), 0 30px 60px -24px rgba(8, 22, 26, .3);
  --ring:      0 0 0 1px rgba(8, 22, 26, .05);

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  /* Type */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Measure */
  --wrap: 1140px;
  --wrap-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #edf4f2;
    --ink-2:      #b3c6c4;
    --ink-3:      #7f9997;
    --line:       #1e373b;
    --line-soft:  #172b2f;
    --paper:      #08161a;
    --paper-2:    #0c1e22;
    --paper-3:    #11282c;

    --brand:      #48c3ae;
    --brand-deep: #7fd9c7;
    --brand-lift: #6ad6c0;
    --brand-soft: #0d322d;
    --brand-tint: #0a2622;

    --accent:     #e08b52;
    --accent-soft:#2a1a10;
    --warn:       #e6bc6d;
    --warn-soft:  #26200f;

    --footer-bg:   #050f12;
    --footer-ink:  #c8dad8;
    --footer-ink-2:#7e9695;
    --footer-line: #16292d;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
    --shadow:    0 1px 2px rgba(0,0,0,.45), 0 6px 16px -8px rgba(0,0,0,.65);
    --shadow-md: 0 1px 3px rgba(0,0,0,.5), 0 14px 32px -14px rgba(0,0,0,.75);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 30px 60px -24px rgba(0,0,0,.85);
    --ring:      0 0 0 1px rgba(255,255,255,.05);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 560;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.8rem);
  line-height: 1.045;
  letter-spacing: -.028em;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.021em;
}
h3 {
  font-size: 1.24rem;
  line-height: 1.3;
  letter-spacing: -.012em;
  font-weight: 580;
}
h4 {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 620;
  letter-spacing: -.005em;
  line-height: 1.4;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--brand-lift); text-decoration-color: currentColor; }

strong, b { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 2.75rem 0; }

::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--ink); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; font-weight: 550;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.25rem, 7.5vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }

.section--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

.section--brand {
  background:
    radial-gradient(120% 140% at 50% 0%, var(--brand-tint) 0%, var(--brand-soft) 100%);
  border-block: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
}

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -12px rgba(8, 22, 26, .4);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  font-weight: 620; letter-spacing: -.015em; line-height: 1.2;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: linear-gradient(155deg, var(--brand-lift), var(--brand-deep));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--shadow-sm);
}
.brand__mark svg { width: 21px; height: 21px; display: block; }

.brand__text { font-size: .96rem; }
.brand__text small {
  display: block; margin-top: .12em;
  font-weight: 500; font-size: .68rem;
  color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: .15rem; }

.nav a {
  position: relative;
  color: var(--ink-2); text-decoration: none;
  font-size: .93rem; font-weight: 500; letter-spacing: -.005em;
  padding: .55rem .8rem; border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute;
  left: .8rem; right: .8rem; bottom: .28rem; height: 1.5px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav a[aria-current="page"]:not(.btn) { color: var(--brand); }
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem; color: var(--ink);
  font: inherit; font-size: .86rem; font-weight: 550;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--paper-3); }

/* Tighten the brand lockup on narrow phones so the header stays compact. */
@media (max-width: 480px) {
  .site-header .wrap { gap: .8rem; min-height: 68px; }
  .brand { gap: .6rem; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark svg { width: 19px; height: 19px; }
  .brand__text { font-size: .875rem; }
  .brand__text small { font-size: .63rem; letter-spacing: .08em; }
}

/* The nav is a single phone button now, so there is nothing to collapse. A
   "Menu" toggle hiding one item put the phone number a tap away on every
   phone, which is the opposite of what this page needs. */
@media (max-width: 900px) {
  .nav-toggle { display: none; }
  .nav { margin-left: auto; }
  .nav .btn { padding: .72rem 1rem; font-size: .85rem; white-space: nowrap; }
}
@media (max-width: 400px) {
  .nav .btn { padding: .66rem .8rem; font-size: .8rem; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .94rem; font-weight: 550; line-height: 1;
  letter-spacing: -.005em;
  padding: .88rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(178deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn--primary:hover {
  background: var(--brand-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--sm { padding: .62rem 1.1rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The nav CTA is an <a> inside .nav, which would otherwise win on specificity
   and strip the button's fill and text colour — including on its own page. */
.nav a.btn--primary,
.nav a.btn--primary:hover,
.nav a.btn--primary[aria-current="page"] { color: #fff; }

@media (prefers-color-scheme: dark) {
  .skip-link, .skip-link:focus,
  .btn--primary, .btn--primary:hover,
  .nav a.btn--primary,
  .nav a.btn--primary:hover,
  .nav a.btn--primary[aria-current="page"] { color: #04211d; }
  .brand__mark { color: #04211d; }
}

/* --------------------------------------------------------------------------
   6. Hero and page heads
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  z-index: -2;
  background:
    radial-gradient(50% 55% at 78% 12%, color-mix(in srgb, var(--brand) 13%, transparent) 0%, transparent 70%),
    radial-gradient(60% 60% at 8% 0%, color-mix(in srgb, var(--brand) 7%, transparent) 0%, transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(currentColor .8px, transparent .8px);
  background-size: 26px 26px;
  color: color-mix(in srgb, var(--ink-3) 26%, transparent);
  opacity: .5;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 25%, #000 0%, transparent 78%);
}

.hero__grid {
  display: grid; gap: clamp(2.25rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 620;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep);
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  padding: .42rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--brand-deep); } }

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.21rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 60ch;
}

.page-head {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, transparent) 0%, transparent 100%);
}

/* --------------------------------------------------------------------------
   7. Cards and grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(355px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.65rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .955rem; }

.card--flat {
  background: var(--paper);
  box-shadow: none;
  border-color: var(--line);
}
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Compact label styling for the dense four-up equipment grid, whose headings are
   h3 so the page outline does not skip a level. */
.grid--4 .card h3 {
  font-family: var(--sans);
  font-size: .98rem; font-weight: 620;
  letter-spacing: -.005em; line-height: 1.4;
}

.card__icon {
  width: 44px; height: 44px; margin-bottom: 1.15rem;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1;
  color: var(--brand);
  background: linear-gradient(150deg, var(--brand-soft), var(--brand-tint));
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
}

/* --------------------------------------------------------------------------
   8. Spec strip
   -------------------------------------------------------------------------- */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 0;
}
.spec {
  padding: 1rem 0 0;
  border-top: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.spec dt {
  font-family: var(--sans);
  font-size: .715rem; font-weight: 660;
  letter-spacing: .085em; text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: .5rem;
}
.spec dd {
  margin: 0;
  font-size: .9rem; line-height: 1.55;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   9. Feature rows
   -------------------------------------------------------------------------- */

.row {
  display: grid; gap: clamp(2rem, 4.5vw, 3.75rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.row + .row { margin-top: clamp(2.75rem, 5vw, 4.5rem); }
/* Centring reads well against a photo, but leaves an awkward gap when the
   other column is a tall card. Browsers without :has() keep the centred
   default, which is merely less tidy, never broken. */
.row:has(> .card) { align-items: start; }
/* Opt-in top alignment for rows whose two columns differ a lot in height. */
.row--top { align-items: start; }
.row--flip > *:first-child { order: 2; }
@media (max-width: 760px) { .row--flip > *:first-child { order: 0; } }

/* --------------------------------------------------------------------------
   10. Lists
   -------------------------------------------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .8rem;
  font-size: .96rem;
}
.ticks li::before {
  content: "";
  position: absolute; left: .15rem; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.ticks--tight li { margin-bottom: .5rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  margin-left: 1.15rem;
  padding: 0 0 1.85rem 3.4rem;
  border-left: 1px solid var(--line);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: -1.15rem; top: -.2rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: .85rem; font-weight: 620;
  color: var(--brand-deep);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  box-shadow: 0 0 0 4px var(--paper), var(--shadow-sm);
}
.section--alt .steps > li::before { background: var(--paper-2); box-shadow: 0 0 0 4px var(--paper-2), var(--shadow-sm); }
.steps h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.steps p { font-size: .955rem; }

/* --------------------------------------------------------------------------
   11. Tags
   -------------------------------------------------------------------------- */

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  font-size: .805rem; font-weight: 500; line-height: 1.45;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag--brand {
  background: var(--brand-soft); color: var(--brand-deep);
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
}
.tag--accent {
  background: var(--accent-soft); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

/* --------------------------------------------------------------------------
   12. Tables
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 600px; }
thead th {
  text-align: left;
  background: var(--paper-2);
  color: var(--ink-3);
  font-weight: 620; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.55;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--brand-tint); }
tbody td:first-child { white-space: nowrap; }
td strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   13. Callouts and quotes
   -------------------------------------------------------------------------- */

.callout {
  position: relative;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.4rem 1.75rem;
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
  font-size: .945rem;
  color: var(--ink-2);
  overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--warn);
}
.callout h2, .callout h3, .callout h4 {
  font-family: var(--sans);
  font-size: .98rem; font-weight: 620;
  letter-spacing: -.005em; line-height: 1.4;
  color: var(--warn);
  margin-bottom: .4rem;
}

.callout--brand {
  background: var(--brand-tint);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.callout--brand::before { background: var(--brand); }
.callout--brand h2, .callout--brand h3, .callout--brand h4 { color: var(--brand-deep); }

.quote {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: balance;
}
.quote cite {
  display: block; margin-top: 1.15rem;
  font: 500 .86rem/1.5 var(--sans);
  font-style: normal;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   14. Photos
   -------------------------------------------------------------------------- */

.photo {
  position: relative; margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo--tall img { aspect-ratio: 3 / 4; }
.photo--wide img { aspect-ratio: 16 / 9; }

.photo figcaption {
  padding: .85rem 1.1rem;
  font-size: .845rem; line-height: 1.5;
  color: var(--ink-3);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

/* Placeholder state — shown until the real image file is dropped in assets/img/ */
.photo.is-empty::before {
  content: attr(data-placeholder);
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3;
  padding: 2rem 1.75rem;
  font-size: .8rem; line-height: 1.6;
  color: var(--ink-3);
  background:
    radial-gradient(color-mix(in srgb, var(--ink-3) 20%, transparent) .9px, transparent .9px) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--paper-2), var(--paper-3));
  border-bottom: 1px solid var(--line-soft);
}
.photo.is-empty img { display: none; }
.photo--tall.is-empty::before { aspect-ratio: 3 / 4; }
.photo--wide.is-empty::before { aspect-ratio: 16 / 9; }

.gallery {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}

/* --------------------------------------------------------------------------
   15. Comparison columns
   -------------------------------------------------------------------------- */

.compare {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.compare__col {
  position: relative;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.compare__col h3 { font-size: 1.15rem; margin-bottom: 0; }

.compare__col--one { background: var(--paper-2); }
.compare__col--one h3 { color: var(--ink-3); }

.compare__col--all {
  background: linear-gradient(170deg, var(--brand-tint), var(--paper) 55%);
  border-color: color-mix(in srgb, var(--brand) 38%, transparent);
  box-shadow: var(--shadow-md);
}
.compare__col--all::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-lift), var(--brand-deep));
}
.compare__col--all h3 { color: var(--brand-deep); }

.compare__col ul { list-style: none; margin: 1.15rem 0 0; padding: 0; }
.compare__col li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .85rem;
  font-size: .94rem; line-height: 1.55;
}
.compare__col li:last-child { margin-bottom: 0; }
.compare__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.compare__col--one li::before { content: "–"; color: var(--ink-3); }
.compare__col--all li::before { content: "✓"; color: var(--brand); font-size: .95em; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .9rem;
  border-top: 1px solid var(--footer-line);
}
/* auto-fit cannot be combined with an fr track: the whole declaration is
   invalid and dropped, which silently collapsed this footer to one column.
   Explicit tracks instead. */
.site-footer__grid {
  display: grid; gap: 2.25rem 2rem;
  grid-template-columns: 1.7fr 1fr 1.4fr;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--footer-line);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--footer-ink); }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand__text small { color: var(--footer-ink-2); }
.site-footer .muted { color: var(--footer-ink-2); }

.site-footer h2 {
  font-family: var(--sans);
  font-size: .7rem; font-weight: 620;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--footer-ink); opacity: .65;
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.site-footer__base {
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  color: var(--footer-ink-2); font-size: .83rem;
}

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.max-60 { max-width: 60ch; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   18. Entrance animation
   Deliberately CSS-only and limited to the first screen. Elements are visible
   by default and the keyframes animate *from* transparent, so if animation
   never runs — printing, an odd browser, a full-page screenshot — the content
   is simply there. Nothing on this site is ever hidden waiting for a script.
   -------------------------------------------------------------------------- */

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

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .btn-row,
.hero .photo,
.page-head .eyebrow,
.page-head h1,
.page-head .lede {
  animation: rise .62s cubic-bezier(.22, .61, .36, 1) backwards;
}

.hero h1,        .page-head h1        { animation-delay: .06s; }
.hero .lede,     .page-head .lede     { animation-delay: .12s; }
.hero .btn-row                        { animation-delay: .18s; }
.hero .photo                          { animation-delay: .1s; }

/* --------------------------------------------------------------------------
   19. Print and motion preferences
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .hero::before, .hero::after { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section { padding-block: 1rem; }
  .card, .photo, .table-scroll, .compare__col { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .card:hover, .btn:hover { transform: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row, .hero .photo,
  .page-head .eyebrow, .page-head h1, .page-head .lede { animation: none; }
}
