/* ==========================================================================
   Ironclad Global — Swiss Modernism 2.0 / Exaggerated Minimalism (industrial)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --c-paper: #FFFFFF;
  --c-off: #F4F4F2;
  --c-ink: #0A0A0A;
  --c-steel: #6B6B6B;        /* 5.3:1 on white, 4.9:1 on off-white */
  --c-hair: #DADAD6;
  --c-accent: #E8361C;       /* signal red-orange: marks, hover, CTA states */
  --c-on-dark: #FFFFFF;
  --c-on-dark-muted: #A6A6A6; /* 8.3:1 on ink */
  --c-dark-rule: #2A2A2A;
  --c-plate-rule: #BDBDB8;

  /* Type */
  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(3rem, 11.2vw, 8rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-mono: 0.75rem;

  /* Space (8pt rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1rem, 3vw, 2rem);

  /* Shape & depth */
  --radius: 0;
  --rule: 1px solid var(--c-hair);
  --rule-ink: 1px solid var(--c-ink);
  --shadow-none: none;
  --shadow-header: 0 1px 0 var(--c-hair);

  /* Layout */
  --container: 1360px;
  --header-h: 72px;
  --logo-w: 124px;          /* logo.webp is 1862x630 (2.956:1) */

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

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

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

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea { font: inherit; color: inherit; }

::selection { background: var(--c-ink); color: var(--c-paper); }

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

main:focus { outline: none; } /* programmatic focus target of the skip link */

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.icon--accent { color: var(--c-accent); }

/* ---------- 3. Utilities & layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
}
.skip-link:focus { top: var(--s-2); }

.eyebrow,
.sec-label {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow__mark {
  width: 10px;
  height: 10px;
  background: var(--c-accent);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.body-lg {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-steel);
  max-width: 52ch;
  margin-top: var(--s-3);
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn .icon { transition: transform var(--t-fast) var(--ease); }

.btn--primary {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn--primary:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-paper); /* white on accent: 5.0:1 (ink on accent is only 3.9:1) */
}
.btn:hover .icon { transform: translateX(4px); }

.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--c-ink);
  line-height: 1;
  padding-top: 2px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.link-arrow:hover { border-color: var(--c-accent); box-shadow: inset 0 -2px 0 var(--c-accent); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background-color var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-hair);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: var(--header-h);
  transition: height var(--t-med) var(--ease);
}
.is-scrolled .header-inner { height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  width: var(--logo-w);
  max-width: none;
  height: auto;
  /* the artwork has ~29% transparent space on its left; pull the wordmark
     onto the container edge so it aligns with the grid */
  margin-left: calc(var(--logo-w) * -0.29);
}

.primary-nav { margin-left: auto; }

.nav-list a {
  display: flex;
  gap: 6px;
  min-height: 44px;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}
.nav-idx {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--c-steel);
}
.nav-list a.is-active .nav-idx,
.nav-list a:hover .nav-idx { color: var(--c-accent); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.menu-toggle__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}
.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--c-ink);
  transition: transform var(--t-fast) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile nav panel */
@media (max-width: 1023px) {
  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    padding: var(--s-2) var(--gutter) var(--s-4);
    background: var(--c-paper);
    border-top: var(--rule);
    border-bottom: var(--rule-ink);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: var(--rule); }
  .nav-list li.nav-cta-mobile { border-bottom: 0; padding-top: var(--s-3); }
  .nav-list a {
    min-height: 56px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    gap: 14px;
  }
  .nav-list .btn { width: 100%; font-size: 1rem; color: var(--c-paper); }
  .nav-list .btn:hover { color: var(--c-paper); }
}

@media (min-width: 1024px) {
  .menu-toggle,
  .nav-cta-mobile { display: none; }
  .header-cta { display: inline-flex; }
  :root { --logo-w: 142px; }  /* 48px tall */
  .nav-list {
    display: flex;
    gap: clamp(0.75rem, 1.6vw, 2rem);
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1px;
    background: var(--c-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-fast) var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a.is-active::after { transform: scaleX(1); }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6.5rem);
  border-bottom: var(--rule);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative: fine dot grid + faint 12-column guides */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10, 10, 10, 0.16) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
}
.hero__pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  max-width: var(--container);
  margin-inline: auto;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 12 - 1px),
    rgba(10, 10, 10, 0.06) calc(100% / 12 - 1px),
    rgba(10, 10, 10, 0.06) calc(100% / 12)
  );
}

.hero__title {
  margin-top: var(--s-3);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.accent-dot { color: var(--c-accent); }

.hero__bottom {
  display: grid;
  gap: var(--s-5);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__copy .lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink);
  max-width: 40ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
}

/* Riveted steel plate */
.plate {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 360px;
  padding: 28px 30px 22px;
  border: 1px solid #C9C9C4;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #EDEDEA 0%, #DCDCD8 55%, #E9E9E6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.06);
  font-family: var(--f-mono);
}
@media (max-width: 767px) {
  .plate { display: none; }
}
.rivet {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0 15%, #A9A9A4 45%, #6E6E69 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 1px rgba(0,0,0,.25);
}
.rivet--tl { top: 9px; left: 9px; }
.rivet--tr { top: 9px; right: 9px; }
.rivet--bl { bottom: 9px; left: 9px; }
.rivet--br { bottom: 9px; right: 9px; }
.plate__head {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-plate-rule);
}
.plate__spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed #C2C2BD;
  font-size: 0.75rem;
}
.plate__spec div:last-child { border-bottom: 0; }
.plate__spec dt { color: #4F4F4C; text-transform: uppercase; letter-spacing: .06em; }
.plate__spec dd { font-weight: 600; }

.meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--rule-ink);
}
.meta-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 20px 0;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: var(--rule);
}
.meta-row li:nth-child(odd) { border-right: var(--rule); }
.meta-row li:nth-child(even) { padding-left: 16px; }
.meta-row__k {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-steel);
}

@media (min-width: 768px) {
  .hero__bottom {
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
  }
  .hero__copy { grid-column: 1 / span 7; }
  .plate { grid-column: 9 / -1; justify-self: end; }
  .meta-row { grid-template-columns: repeat(4, 1fr); }
  .meta-row li { border-bottom: 0; border-right: var(--rule); padding-left: 16px; }
  .meta-row li:first-child { padding-left: 0; }
  .meta-row li:last-child { border-right: 0; }
}
@media (min-width: 1024px) {
  .hero__copy { grid-column: 1 / span 5; }
}

/* ---------- 7. Ticker ---------- */
.ticker {
  background: var(--c-ink);
  color: var(--c-on-dark);
  overflow: hidden;
  border-bottom: var(--rule);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 16px 28px 16px 0; /* trailing gap = item gap so -50% loops seamlessly */
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker__track i {
  width: 7px;
  height: 7px;
  background: var(--c-accent);
  flex: none;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- 8. Sections (shared) ---------- */
.section {
  padding-block: var(--section-y);
  border-bottom: var(--rule);
}
.section--alt { background: var(--c-off); }

.sec-grid {
  display: grid;
  gap: var(--s-3);
}
.sec-label {
  padding-top: 14px;
  border-top: var(--rule-ink);
  align-self: start;
}

@media (min-width: 900px) {
  .sec-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--s-3);
  }
  .sec-label { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 24px); }
  .sec-body { grid-column: 4 / -1; }
  .sec-body > .h2 { margin-top: -0.08em; }
}

/* ---------- 9. About / stats ---------- */
.stats {
  display: grid;
  gap: var(--s-5);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.stat__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2);
}
.stat__num {
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stat__num sup {
  font-size: 0.38em;
  vertical-align: top;
  position: relative;
  top: 0.12em;
  margin-left: 0.04em;
  color: var(--c-accent);
  letter-spacing: 0;
}
.stat__tag {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-steel);
  text-align: right;
  padding-bottom: 6px;
}
.bar {
  position: relative;
  height: 2px;
  margin-top: var(--s-3);
  background: var(--c-hair);
}
.bar__fill {
  position: absolute;
  left: 0;
  top: -1px;
  height: 4px;
  width: var(--v);
  background: var(--c-ink);
  transform-origin: left;
  transition: transform 1100ms var(--ease) 150ms;
}
.bar__fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 2px;
  height: 12px;
  background: var(--c-accent);
}
.stat__label {
  margin-top: var(--s-2);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
}

/* ---------- 10. Services grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: var(--rule-ink);
  border-left: var(--rule);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--c-paper);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.svc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.svc__idx {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--c-steel);
  transition: color var(--t-med) var(--ease);
}
.svc__icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.svc__title {
  margin-top: auto;
  padding-top: var(--s-6);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.svc__desc {
  margin-top: var(--s-2);
  color: var(--c-steel);
  font-size: 0.96875rem;
  line-height: 1.55;
  max-width: 38ch;
  transition: color var(--t-med) var(--ease);
}
.svc:hover {
  background: var(--c-ink);
  color: var(--c-on-dark);
}
.svc:hover .svc__idx { color: var(--c-on-dark); }
.svc:hover .svc__icon { color: var(--c-accent); transform: rotate(-8deg) scale(1.06); }
.svc:hover .svc__desc { color: var(--c-on-dark-muted); }

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc { min-height: 340px; }
}

/* ---------- 11. Why us ---------- */
.why-list {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: var(--rule-ink);
  counter-reset: why;
}
.why {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: var(--rule);
}
.why__num {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--c-ink);
  -webkit-text-stroke: 0;
  min-width: 1.6ch;
}
.why__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.why__title .icon { width: 20px; height: 20px; }
.why p {
  margin-top: var(--s-1);
  color: var(--c-steel);
  max-width: 36ch;
}

@media (min-width: 900px) {
  .why-list { grid-template-columns: repeat(3, 1fr); }
  .why {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-4) var(--s-2) var(--s-4);
    border-bottom: 0;
    border-left: var(--rule);
  }
  .why:first-child { border-left: 0; padding-left: 0; }
  .why__num { font-size: clamp(5rem, 9vw, 8rem); }
}

/* ---------- 12. Process (dark) ---------- */
.section--dark {
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-bottom-color: var(--c-ink);
}
.section--dark .sec-label {
  color: var(--c-on-dark-muted);
  border-top-color: var(--c-on-dark);
}

.steps {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--c-dark-rule);
}
.step {
  position: relative;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-dark-rule);
}
.step__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-on-dark); /* accent text on ink is only 3.9:1, so the accent goes on the mark */
}
.step__num::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-accent);
}
.step__title {
  margin-top: var(--s-4);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.step p {
  margin-top: var(--s-2);
  color: var(--c-on-dark-muted);
  font-size: 0.96875rem;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--t-med) var(--ease);
}
.step:hover::before { width: 100%; }

@media (min-width: 640px) and (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: var(--s-4) var(--s-3); }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--c-dark-rule); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--c-dark-rule); }
  .step {
    min-height: 320px;
    padding: var(--s-4) var(--s-4) var(--s-5);
    border-bottom: 0;
    border-left: 1px solid var(--c-dark-rule);
  }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step__title { margin-top: var(--s-7); }
}

/* ---------- 13. Testimonials ---------- */
.quotes {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: var(--rule-ink);
}
.quote {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: var(--rule);
}
.quote__mark {
  display: block;
  height: 0.42em;
  font-size: clamp(6rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--c-accent);
  letter-spacing: 0;
}
.quote blockquote p {
  margin-top: var(--s-2);
  font-size: clamp(1.375rem, 2.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 30ch;
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--s-4);
  font-size: 0.9375rem;
}
.quote__by strong { display: block; font-weight: 700; }
.quote__role {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--c-ink);
  color: var(--c-paper);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.quote:nth-child(2) .avatar { background: var(--c-paper); color: var(--c-ink); border: var(--rule-ink); }

@media (min-width: 1024px) {
  .quote:nth-child(2) { padding-left: 16%; }
}

/* ---------- 14. Contact ---------- */
.contact {
  display: grid;
  gap: var(--s-6);
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: var(--s-4);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--c-ink);
  transition: border-color var(--t-fast) var(--ease);
}
.contact__email:hover { border-color: var(--c-accent); }
.contact__email .icon { width: 22px; height: 22px; }

.form {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding-top: var(--s-2);
  border-top: 2px solid var(--c-ink);
}
.contact-panel__title {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-steel);
  font-weight: 500;
}
.contact-panel__text { font-size: 1.125rem; }
.contact-points { list-style: none; padding: 0; margin: 0; }
.contact-points li {
  display: grid;
  gap: 2px;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-hair);
}
.contact-points strong { font-weight: 700; }
.contact-points span { color: var(--c-steel); }
.contact-panel .btn { justify-self: start; max-width: 100%; overflow-wrap: anywhere; }

@media (min-width: 1100px) {
  .contact { grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: start; }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--c-paper);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer__top {
  display: grid;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
}
.brand--footer img { width: 189px; max-width: none; height: auto; margin-left: calc(189px * -0.29); }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--s-4);
}
.footer__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  border-bottom: var(--rule);
  transition: color var(--t-fast) var(--ease);
}
.footer__nav a:hover { box-shadow: inset 0 -1px 0 var(--c-accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: var(--rule-ink);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-steel);
  letter-spacing: 0.02em;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.to-top:hover .icon { color: var(--c-accent); transform: translateY(-3px); }
.to-top .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    column-gap: var(--s-3);
  }
  .brand--footer { grid-column: 1 / span 4; }
  .footer__top nav { grid-column: 7 / -1; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 16. Reveal motion (only when JS is active) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .stat .bar__fill { transform: scaleX(0); }
.js .stat.is-visible .bar__fill { transform: scaleX(1); }

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* !important is deliberate here: a bare * selector would lose to every
     class-level transition/animation declaration above */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .stat .bar__fill { transform: none; }
}

/* ===== Legal pages ===== */
/* Also includes the footer legal row and contact note used on every page. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Footer legal row */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-3);
  padding-block: var(--s-2);
  border-top: var(--rule);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--c-steel);
}
.footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s-3);
}
.footer__legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__legal-nav a:hover,
.footer__legal-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--c-accent); }

/* Contact note (home page) */
.contact__legal {
  margin-top: var(--s-2);
  font-size: 0.875rem;
  color: var(--c-steel);
}
.contact__legal a,
.legal-body a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}
.contact__legal a:hover,
.legal-body a:hover { text-decoration-color: var(--c-accent); }

/* Hero */
.legal-hero {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: var(--rule);
  background: var(--c-off);
}
.legal-title {
  margin-top: var(--s-3);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.legal-meta {
  display: inline-block;
  margin-top: var(--s-4);
  padding-top: 12px;
  border-top: var(--rule-ink);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
}

/* Layout */
.legal { padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.legal__grid {
  display: grid;
  gap: var(--s-5);
}

/* Table of contents */
.legal-toc {
  align-self: start;
  padding-top: 14px;
  border-top: var(--rule-ink);
}
.legal-toc__title {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
  margin-bottom: var(--s-1);
}
.legal-toc__list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: var(--rule);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color var(--t-fast) var(--ease);
}
.legal-toc__list a:hover { color: var(--c-accent); }
.legal-toc__num {
  flex: none;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--c-steel);
}

/* Body */
.legal-body { max-width: 70ch; min-width: 0; }
.legal-section { padding-bottom: var(--s-5); }
.legal-section + .legal-section { padding-top: var(--s-4); border-top: var(--rule); }
.legal-section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-h2 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.legal-h2__num { color: var(--c-accent); }
.legal-h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: var(--s-3) 0 var(--s-1);
}
.legal-body p + p,
.legal-body p + .legal-list,
.legal-body .legal-list + p,
.legal-body p + .legal-dl,
.legal-body p + .legal-table-wrap,
.legal-body .legal-table-wrap + p { margin-top: var(--s-2); }

.legal-list { display: grid; gap: var(--s-1); padding-left: 0; }
.legal-list li { position: relative; padding-left: 22px; }
.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--c-accent);
}

.legal-dl {
  border-top: var(--rule-ink);
  margin-top: var(--s-2);
}
.legal-dl div {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: var(--rule);
}
.legal-dl dt {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.legal-dl dd { overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .legal-dl div { grid-template-columns: 14rem 1fr; gap: var(--s-2); align-items: baseline; }
}

.legal-callout {
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--c-accent);
  background: var(--c-off);
}

.legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: var(--rule);
}
.legal-table th {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
  border-bottom: var(--rule-ink);
}

@media (min-width: 900px) {
  .legal__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--s-3);
  }
  .legal-toc {
    grid-column: 1 / span 3;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
  .legal-body { grid-column: 4 / -1; }
}

/* Legal content is never hidden by reveal motion */
.legal-page .reveal { opacity: 1; transform: none; }

/* ===== Cookie banner ===== */
/* Footer "Cookie settings" trigger: a button styled like the legal links */
.footer__cookie-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.footer__cookie-btn:hover { box-shadow: inset 0 -1px 0 var(--c-accent); }

/* Secondary button (outline) — same size and weight as primary */
.btn--secondary {
  background: var(--c-paper);
  color: var(--c-ink);
}
.btn--secondary:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-paper);
}

.cookie-banner {
  position: fixed;
  z-index: 150; /* above .site-header (100), below .skip-link (200) */
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: var(--c-paper);
  color: var(--c-ink);
  border-top: 3px solid var(--c-accent);
  box-shadow: 0 -1px 0 var(--c-hair), 0 -12px 32px rgba(10, 10, 10, 0.08);
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }

.cookie-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.cookie-banner__title {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cookie-banner__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-steel); /* 5.3:1 on white */
}
.cookie-banner__link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cookie-banner__link a:hover { text-decoration-color: var(--c-accent); }
.cookie-banner__link { margin-top: calc(var(--s-1) * -1); }

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1);
}
.cookie-banner__btn { width: 100%; min-height: 48px; padding: 0 16px; }

@media (min-width: 640px) {
  .cookie-banner {
    left: auto;
    right: var(--s-3);
    bottom: var(--s-3);
    width: min(420px, calc(100vw - 2 * var(--s-3)));
    padding: var(--s-3);
    border: var(--rule-ink);
    border-top: 3px solid var(--c-accent);
    box-shadow: 0 12px 32px rgba(10, 10, 10, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transform: none; transition: none; }
}

/* Bar values (kept out of inline styles for the CSP) */
.bar__fill--97 { --v: 97%; }
.bar__fill--96 { --v: 96%; }
