/* ==========================================================================
   Scarfold Group: Design System
   Editorial corporate. Flat colour, 1px rules, no gradients, no glow.
   Palette derived from the Scarfold Group logo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* --- Brand: taken from the logo. Adjust these two and the site follows. --- */
  --blue: #0E5AA7;
  --yellow: #FFC20E;

  /* Blue scale */
  --blue-900: #072F55;
  --blue-800: #0A3F73;
  --blue-700: #0C4C8C;
  --blue-600: #1568BE;
  --blue-100: #D6E5F4;
  --blue-050: #EDF4FB;

  /* Yellow scale */
  --yellow-600: #E0A800;
  --yellow-100: #FFF1CC;

  /* Neutrals */
  --ink: #14181D;
  --body: #4B5462;
  --muted: #737D8C;
  --line: #DCE1E8;
  --line-soft: #EBEEF2;
  --bg: #FFFFFF;
  --bg-2: #F5F7F9;
  --bg-3: #EDF0F3;

  /* On dark */
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(225, 234, 243, .74);
  --on-dark-line: rgba(255, 255, 255, .16);

  /* Geometry: deliberately sharp */
  --r: 2px;
  --r-lg: 4px;

  /* Rhythm */
  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 7.5vw, 7rem);

  /* Motion */
  --ease: cubic-bezier(.2, .6, .35, 1);
  --dur: .3s;

  /* Type */
  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.015em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-700); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.1rem; }
li { margin-bottom: .4rem; }

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  padding: .75rem 1.4rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--grey { background: var(--bg-2); }
.section--blue { background: var(--blue); color: var(--on-dark-muted); }

/* Photographic blue band: a darkened greyscale photograph under a flat blue
   veil, thin enough to read as a photo, dark enough that the type on top
   clears AA. Text is lifted to 86% white to pay for the lighter ground. */
.section--photo { position: relative; isolation: isolate; }
.section--blue.section--photo { color: rgba(255, 255, 255, .86); }
.section--blue.section--photo .lead { color: rgba(255, 255, 255, .86); }
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/www.jpeg") center / cover no-repeat;
  filter: grayscale(1) brightness(.55) contrast(1.1);
}
.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  opacity: .55;
}
.section--ink { background: var(--blue-900); color: var(--on-dark-muted); }
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4,
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--blue strong, .section--ink strong { color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Section headings
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 4px;
  background: var(--yellow);
  flex: none;
}
.section--blue .eyebrow, .section--ink .eyebrow { color: #fff; }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { font-size: 1.05rem; max-width: 44rem; }
.section-head--center p { margin-inline: auto; }

.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.15rem);
  line-height: 1.62;
  color: var(--body);
}
.section--blue .lead, .section--ink .lead { color: var(--on-dark-muted); }

/* Split heading: title left, supporting copy right */
.head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.section--blue .head-split, .section--ink .head-split { border-bottom-color: var(--on-dark-line); }
.head-split h2 { margin-bottom: 0; }
.head-split p { margin: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary:hover { --btn-bg: var(--blue-700); --btn-bd: var(--blue-700); }

.btn--accent { --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-bd: var(--yellow); }
.btn--accent:hover { --btn-bg: var(--yellow-600); --btn-bd: var(--yellow-600); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--ink); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--yellow); --btn-bd: var(--yellow); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: var(--on-dark-line); }
.btn--outline-light:hover { --btn-bd: #fff; }

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--blue);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--yellow); }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--blue .link-arrow, .section--ink .link-arrow { color: #fff; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--blue-900);
  color: var(--on-dark-muted);
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  padding-block: .3rem;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.topbar__list li { display: flex; align-items: center; gap: .5rem; margin: 0; }
.topbar__list svg { width: 14px; height: 14px; color: var(--yellow); flex: none; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar__socials { display: flex; gap: 1rem; }
.topbar__socials a { display: grid; place-items: center; }
.topbar__socials svg { width: 15px; height: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header.is-nav-open { z-index: 130; }

.nav { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand__fallback {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--blue);
}

.nav__menu { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.nav__menu li { margin: 0; }
.nav__link {
  display: block;
  padding: .55rem .9rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--blue); border-bottom-color: var(--line); }
.nav__link.is-active { color: var(--blue); font-weight: 600; border-bottom-color: var(--yellow); }

.nav__cta { display: flex; align-items: center; gap: .75rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span { position: relative; display: block; width: 19px; height: 2px; background: var(--ink); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 19px; height: 2px; background: var(--ink);
  transition: transform .28s var(--ease), top .2s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav__close { display: none; }

@media (max-width: 991px) {
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    padding: 1.25rem 1.25rem 2.5rem;
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 120;
  }
  .nav__panel.is-open { transform: translateX(0); }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 0; margin-top: 3.25rem; }
  .nav__menu li + li { border-top: 1px solid var(--line-soft); }
  .nav__link { padding: .95rem .25rem; font-size: 1.02rem; border-bottom: 0; }
  .nav__link.is-active { border-bottom: 0; border-left: 3px solid var(--yellow); padding-left: .75rem; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .nav-scrim {
    position: fixed; inset: 0;
    background: rgba(7, 47, 85, .55);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    z-index: 110;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  .nav__close {
    position: absolute; top: .9rem; right: .9rem;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: transparent; cursor: pointer;
  }
  .nav__close svg { width: 17px; height: 17px; }
}
@media (min-width: 992px) { .nav__panel { display: contents; } }
/* --------------------------------------------------------------------------
   7. Hero: editorial split, photograph bleeds to the right edge
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 6vw, 6.5rem);
  padding-inline-end: clamp(2rem, 4vw, 4rem);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero__copy > * { max-width: 34rem; }

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent,
.rotator__item {
  box-shadow: inset 0 -.22em 0 var(--yellow);
}

/* Rotating headline word.
   Items stack in one grid cell, so the line never reflows as words swap.
   Each item keeps its own underline, so the rule matches the word width. */
.rotator {
  display: inline-grid;
  /* Items must not stretch to the row box, or a short word's underline
     would be pinned to the bottom of the tallest word's height. */
  align-items: start;
  vertical-align: top;
}
.rotator__item {
  grid-area: 1 / 1;
  justify-self: start;
  opacity: 0;
  transform: translateY(.3em);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
/* The incoming word waits for the outgoing one to clear, so two words
   never sit half-visible on top of each other at display size. */
.rotator__item.is-current {
  opacity: 1;
  transform: none;
  transition-delay: .24s;
}
.rotator__item.is-leaving { opacity: 0; transform: translateY(-.3em); }

/* No JS, or reduced motion: the first word simply stays put. */
.no-js .rotator__item:not(.is-current),
.rotator--static .rotator__item:not(.is-current) { display: none; }
.rotator--static .rotator__item.is-current { opacity: 1; transform: none; }
.hero__lead { font-size: clamp(1.03rem, 1.3vw, 1.14rem); margin-bottom: 2rem; }

.hero__media { position: relative; background: var(--bg-3); min-height: clamp(340px, 46vw, 600px); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 21rem;
  padding: 1.5rem 1.75rem;
  background: var(--yellow);
  color: var(--ink);
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .2rem; }
.hero__badge span { font-size: .88rem; line-height: 1.5; display: block; color: #3A3524; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__meta-item { display: flex; align-items: center; gap: .6rem; font-size: .89rem; font-weight: 500; color: var(--ink); }
.hero__meta-item svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* --------------------------------------------------------------------------
   8. Markets bar
   -------------------------------------------------------------------------- */
.markets { background: var(--blue); color: #fff; }
.markets__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.5rem;
}
.markets__label {
  flex: none;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
/* Scrolling track: one visible list + three aria-hidden clones, translated by
   exactly one clone width so the loop has no seam. */
.marquee {
  flex: 1 1 0;          /* 0 basis: the wide track must not push the label onto its own line */
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.markets__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  margin: 0;
  padding: 0 clamp(1.75rem, 3.5vw, 3.25rem) 0 0;
  list-style: none;
}
.markets__list li { margin: 0; }
.market {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}
.market svg { width: 17px; height: 17px; color: var(--yellow); flex: none; }

/* --------------------------------------------------------------------------
   9. Split content block
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split__media .stamp {
  position: absolute;
  right: 0; bottom: 0;
  padding: 1.25rem 1.5rem;
  background: var(--blue);
  color: #fff;
  max-width: 17rem;
}
.split__media .stamp strong { display: block; color: #fff; font-family: var(--font-display); margin-bottom: .15rem; }
.split__media .stamp span { font-size: .85rem; color: rgba(255,255,255,.8); line-height: 1.5; }

.checklist { list-style: none; margin: 0 0 2rem; padding: 0; }
.checklist li {
  display: flex;
  gap: .85rem;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: .96rem;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--blue); }
.checklist strong { display: block; color: var(--ink); margin-bottom: .1rem; }
.section--blue .checklist li, .section--ink .checklist li { border-color: var(--on-dark-line); }
.section--blue .checklist svg, .section--ink .checklist svg { color: var(--yellow); }
.section--blue .checklist strong, .section--ink .checklist strong { color: #fff; }

/* --------------------------------------------------------------------------
   10. Services: editorial rows, not cards
   -------------------------------------------------------------------------- */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1.3fr 3rem;
  align-items: start;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.6rem, 2.8vw, 2.4rem) 1.25rem;
  margin-inline: -1.25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background-color var(--dur) var(--ease);
}
.svc__row:hover { background: var(--bg-2); color: inherit; }
.svc__num {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  padding-top: .35rem;
  transition: color var(--dur) var(--ease);
}
.svc__row:hover .svc__num { color: var(--blue); }
.svc__head { display: flex; align-items: flex-start; gap: 1rem; }
.svc__icon { width: 30px; height: 30px; flex: none; color: var(--blue); margin-top: .1rem; }
.svc__title { margin: 0 0 .3rem; }
.svc__tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc__body p { margin: 0 0 .9rem; font-size: .96rem; }
.svc__problem {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--yellow);
  font-size: .89rem;
  color: var(--muted);
}
.svc__go {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  justify-self: end;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.svc__go svg { width: 16px; height: 16px; }
.svc__row:hover .svc__go { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --------------------------------------------------------------------------
   11. Why choose: hairline grid on blue
   -------------------------------------------------------------------------- */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--on-dark-line);
  border: 1px solid var(--on-dark-line);
}
.rule-grid__item {
  background: var(--blue);
  padding: clamp(1.6rem, 2.8vw, 2.25rem);
}
.rule-grid__item h3 { margin-bottom: .4rem; }
.rule-grid__item p { margin: 0; font-size: .93rem; }
.rule-grid__icon { width: 26px; height: 26px; color: var(--yellow); margin-bottom: 1.1rem; }

/* Light variant on white/grey backgrounds */
.rule-grid--light { background: var(--line); border-color: var(--line); }
.rule-grid--light .rule-grid__item { background: var(--bg); }
.section--grey .rule-grid--light .rule-grid__item { background: var(--bg-2); }
.rule-grid--light .rule-grid__icon { color: var(--blue); }

/* On a photographic band the cards must not re-cover the picture: --blue at 38%
   instead of a solid plate. Headings stay ~5.9:1, body text ~4.7:1. */
.section--photo .rule-grid__item { background: rgba(14, 90, 167, .38); }

.rule-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   12. Projects
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.filter {
  padding: .8rem 1.15rem;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-family: var(--font-body);
  font-size: .89rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--yellow); }

.work { display: block; color: inherit; }
.work.is-hidden { display: none; }
.work__img { overflow: hidden; background: var(--bg-3); }
.work__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work__img img { transform: scale(1.04); }

/* Real UI screenshots: show the whole frame instead of a 4:3 centre crop.
   Wide site captures letterbox, tall phone captures pillarbox. */
.work__img--shot { background: var(--bg-2); }
.work__img--shot img { object-fit: contain; padding: 0.75rem; }
.work__meta {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 3px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.work:hover .work__meta { border-top-color: var(--yellow); }
.work__cat {
  display: block;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .35rem;
}
.work__title { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .3rem; }
.work__desc { display: block; font-size: .91rem; margin: 0; }

/* --------------------------------------------------------------------------
   13. Process
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { padding-top: 1.35rem; border-top: 3px solid var(--line); transition: border-color var(--dur) var(--ease); }
.step:hover { border-top-color: var(--yellow); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--blue-100);
  margin-bottom: .85rem;
  transition: color var(--dur) var(--ease);
}
.step:hover .step__num { color: var(--blue); }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; font-size: .93rem; }

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.placeholder-note {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: 0 0 2.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--yellow);
  border-left-width: 4px;
  background: var(--yellow-100);
  font-size: .87rem;
  line-height: 1.6;
  color: #55461C;
}
.placeholder-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #8A6D00; }
.placeholder-note strong { color: #3D3210; }
.placeholder-note code { padding: .08rem .3rem; background: rgba(0,0,0,.07); font-size: .93em; }

.quotes { overflow: hidden; }
.quotes__track { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); transition: transform .5s var(--ease); }
.quote {
  flex: 0 0 calc((100% - 2 * clamp(1.5rem, 3vw, 2.5rem)) / 3);
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line);
  background: var(--bg);
}
.section--grey .quote { background: var(--bg); }
.quote__mark { width: 30px; height: 30px; color: var(--yellow); margin-bottom: 1rem; }
.quote__text { font-size: .99rem; line-height: 1.7; color: var(--body); margin-bottom: 1.5rem; }
.quote__badge {
  align-self: flex-start;
  margin-bottom: .9rem;
  padding: .15rem .5rem;
  background: var(--yellow-100);
  border: 1px solid var(--yellow);
  color: #6B5407;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.quote__person { display: flex; align-items: center; gap: .85rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.quote__avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-3);
  color: var(--muted);
  flex: none;
}
.quote__avatar svg { width: 20px; height: 20px; }
.quote__name { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .96rem; line-height: 1.3; }
.quote__role { display: block; font-size: .82rem; color: var(--muted); }

.quotes__nav { display: flex; gap: .5rem; margin-top: 2rem; }
.quotes__nav[hidden] { display: none; }
.quotes__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quotes__btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }
.quotes__btn:disabled { opacity: .35; cursor: not-allowed; }
.quotes__btn svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta { background: var(--blue); color: var(--on-dark-muted); }
.cta__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta h2 { color: #fff; margin-bottom: .6rem; max-width: 22ch; }
.cta p { margin: 0; max-width: 48ch; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--blue-900); color: var(--on-dark-muted); font-size: .92rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.footer__logo { margin-bottom: 1.25rem; }
.footer__logo img { height: 42px; width: auto; }
.footer__about { max-width: 25rem; margin-bottom: 1.5rem; }
.site-footer h4 {
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--on-dark-line);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0 0 .6rem; }
.footer__list a { color: var(--on-dark-muted); }
.footer__list a:hover { color: var(--yellow); }

.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li { display: flex; gap: .75rem; margin: 0 0 .9rem; }
.footer__contact svg { width: 17px; height: 17px; color: var(--yellow); flex: none; margin-top: 3px; }
.footer__contact a { color: var(--on-dark-muted); }
.footer__contact a:hover { color: var(--yellow); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }
.footer__legal a { color: var(--on-dark-muted); }
.footer__legal a:hover { color: var(--yellow); }

.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s, background-color var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--yellow); color: var(--ink); }
.to-top svg { width: 18px; height: 18px; }
/* --------------------------------------------------------------------------
   17. Inner page header
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--blue-900);
  color: var(--on-dark-muted);
  padding-block: clamp(2.75rem, 5.5vw, 4.75rem);
  border-bottom: 4px solid var(--yellow);
}
.page-hero h1 { color: #fff; margin-bottom: .9rem; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.page-hero p { max-width: 46rem; font-size: clamp(.99rem, 1.25vw, 1.11rem); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 1.15rem; padding: 0; list-style: none;
  font-size: .82rem;
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current] { color: var(--yellow); font-weight: 500; }
.crumbs svg { width: 12px; height: 12px; color: rgba(255,255,255,.4); }

/* --------------------------------------------------------------------------
   18. Service detail rows
   -------------------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-row--flip .service-row__media { order: 2; }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }

.service-row__tag {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .3rem .7rem;
  background: var(--blue-050);
  color: var(--blue);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.service-row h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.service-row__icon {
  width: 34px; height: 34px;
  color: var(--blue);
  margin-bottom: 1rem;
}
.svc-note {
  margin: 0 0 1.5rem;
  padding: .95rem 1.15rem;
  background: var(--bg-2);
  border-left: 4px solid var(--yellow);
  font-size: .91rem;
}
.svc-note b {
  display: block;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .25rem;
}

/* --------------------------------------------------------------------------
   19. Values, pillars, team
   -------------------------------------------------------------------------- */
.pillar { padding: clamp(1.75rem, 3vw, 2.25rem); border: 1px solid var(--line); background: var(--bg); height: 100%; }
.pillar--accent { background: var(--blue); border-color: var(--blue); color: var(--on-dark-muted); }
.pillar--accent h3 { color: #fff; }
.pillar__icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 1.1rem; }
.pillar--accent .pillar__icon { color: var(--yellow); }

.person__photo {
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-3);
}
.person__photo img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; filter: grayscale(1); transition: filter .4s var(--ease); }
.person:hover .person__photo img { filter: grayscale(0); }
.person__photo--blank {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.15;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.person__photo--blank svg { width: 40px; height: 40px; }
.person h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.person p { font-size: .87rem; margin: 0; color: var(--muted); }
.person__rule { width: 28px; height: 3px; background: var(--yellow); margin-bottom: .7rem; }

/* --------------------------------------------------------------------------
   20. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.info-card { display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); background: var(--bg); }
.info-card__icon { width: 24px; height: 24px; flex: none; color: var(--blue); margin-top: 2px; }
.info-card h3 { font-size: .97rem; margin-bottom: .25rem; }
.info-card p, .info-card a { font-size: .93rem; margin: 0; color: var(--body); }
.info-card a:hover { color: var(--blue); }
.info-card__meta { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

.form-card { padding: clamp(1.6rem, 3vw, 2.5rem); border: 1px solid var(--line); background: var(--bg); }
.section--grey .form-card { background: var(--bg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: .94rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 138px; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5462' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.field__error { display: none; font-size: .79rem; color: #A5281D; font-weight: 500; }
.field.has-error .field__error { display: block; }

.form-note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1.25rem;
  padding: .9rem 1.1rem;
  font-size: .89rem;
  line-height: 1.55;
  border-left: 4px solid;
}
.form-status.is-shown { display: flex; }
.form-status--ok { background: #ECF7F0; border-color: #1E8449; color: #14622F; }
.form-status--err { background: #FDF0EE; border-color: #C0392B; color: #97291D; }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0; padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.hours li:first-child { border-top: 1px solid var(--line); }
.hours span:last-child { font-weight: 600; color: var(--ink); }
.hours .is-closed { color: var(--muted); font-weight: 500; }

.map-frame { border: 1px solid var(--line); overflow: hidden; line-height: 0; background: var(--bg-3); }
.map-embed {
  display: grid; place-items: center;
  min-height: clamp(300px, 38vw, 420px);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-2);
  line-height: 1.68;
}
.map-embed__body { max-width: 32rem; }
.map-embed__icon { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 1rem; }
.map-embed h3 { margin-bottom: .3rem; }
.map-embed p { font-size: .93rem; margin-bottom: 1.35rem; }
.map-embed__note { font-size: .81rem; color: var(--muted); margin: 1.1rem 0 0; }
.map-embed.is-loaded { display: block; padding: 0; min-height: 0; background: none; }
.map-embed iframe { width: 100%; height: clamp(300px, 38vw, 420px); border: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.3rem 0;
  border: 0; background: none;
  font-family: var(--font-display);
  font-size: 1.04rem; font-weight: 700; letter-spacing: -.015em;
  color: var(--ink); text-align: left; cursor: pointer;
}
.faq__q svg { width: 18px; height: 18px; flex: none; color: var(--blue); transition: transform .3s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 1.3rem; margin: 0; font-size: .95rem; max-width: 62ch; }

/* --------------------------------------------------------------------------
   21. Scroll reveal: restrained
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .quote { flex: 0 0 calc((100% - clamp(1.5rem, 3vw, 2.5rem)) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .svc__row { grid-template-columns: 3rem 1fr 1.15fr 3rem; }
}

@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .hero { grid-template-columns: 1fr; }
  .hero__copy {
    order: 2;
    padding-inline: var(--gutter);
    padding-block: clamp(2.5rem, 6vw, 3.5rem);
  }
  .hero__copy > * { max-width: none; }
  .hero__media { order: 1; min-height: clamp(280px, 52vw, 400px); }
  .split, .service-row, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media, .service-row--flip .service-row__media { order: 0; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-grid, .rule-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-split { grid-template-columns: 1fr; align-items: start; }
  .cta__inner { grid-template-columns: 1fr; }
  .markets__inner { gap: 1rem 1.75rem; }
  .topbar__socials { display: none; }
  .svc__row { grid-template-columns: 2.5rem 1fr 2.75rem; row-gap: 1rem; }
  .svc__body { grid-column: 2 / 4; }
}

@media (max-width: 767px) {
  :root { --section-y: clamp(3rem, 10vw, 4rem); }
  .grid-3, .grid-4, .rule-grid, .rule-grid--4, .steps { grid-template-columns: 1fr; }
  .quote { flex: 0 0 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar__list { gap: .5rem 1.25rem; justify-content: center; font-size: .78rem; }
  .topbar__inner { justify-content: center; }
  .btn-row .btn { width: 100%; }
  .hero__meta { flex-direction: column; gap: .9rem; }
  .hero__badge { position: static; max-width: none; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__legal { justify-content: center; }
  .split__media .stamp { position: static; max-width: none; }
  .markets__inner { flex-direction: column; align-items: stretch; gap: .9rem; }
  .marquee {
    flex: 0 0 auto;   /* column flow: a 0 basis would collapse the band's height */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  }
}

@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .filters { gap: 0; }
  .filter { padding: .7rem .85rem; font-size: .84rem; }
}

/* --------------------------------------------------------------------------
   23. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; transform: none !important; }
}

@media print {
  .topbar, .site-header, .to-top, .map-frame, .cta, .hero__media { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* --------------------------------------------------------------------------
   24. Cursor follower
   A 1px reticle that eases in behind the pointer. The `has-cursor` class is
   set by JS, and only on fine-pointer devices that have not asked for
   reduced motion, so touch and keyboard users never meet it.
   -------------------------------------------------------------------------- */

/* The native arrow is replaced while the reticle is live. `!important` earns
   its place here: it has to beat the `cursor: pointer` set on buttons, cards
   and filters throughout the sheet. */
.has-cursor body,
.has-cursor body * { cursor: none !important; }

/* Typing needs a real caret, so text fields keep the system cursor. */
.has-cursor body input:not([type="checkbox"]):not([type="radio"]),
.has-cursor body textarea { cursor: auto !important; }

.cursor {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.cursor.is-awake { opacity: 1; }
.cursor.is-gone,
.cursor.is-text { opacity: 0; }

.cursor__ring,
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

/* The visible marks sit on pseudo-elements so JS owns translation only and
   CSS owns scale: the two never fight over the transform property. */
.cursor__ring::before,
.cursor__dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--r);
  transform: translate(-50%, -50%) scale(1);
  transition: transform .32s var(--ease),
              border-color .32s var(--ease),
              background-color .32s var(--ease);
}
.cursor__ring::before {
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue);
}
.cursor__dot::before {
  width: 5px;
  height: 5px;
  background: var(--blue);
}

/* Over something clickable the ring opens up and the dot steps out of it. */
.cursor.is-link .cursor__ring::before {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--yellow);
  background-color: rgba(255, 194, 14, .10);
}
.cursor.is-link .cursor__dot::before { transform: translate(-50%, -50%) scale(0); }

/* Pressed. */
.cursor.is-down .cursor__ring::before { transform: translate(-50%, -50%) scale(.82); }
.cursor.is-down.is-link .cursor__ring::before { transform: translate(-50%, -50%) scale(1.35); }

/* Blue would disappear against the blue and ink surfaces. */
.cursor.is-dark .cursor__ring::before { border-color: rgba(255, 255, 255, .7); }
.cursor.is-dark .cursor__dot::before { background: #fff; }
.cursor.is-dark.is-link .cursor__ring::before { border-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .cursor { display: none; } }
@media print { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   25. Legal pages
   Long-form prose: privacy, cookies, terms. Measure is held short so the
   text stays readable at the narrow container width.
   -------------------------------------------------------------------------- */
.legal { max-width: 70ch; }

.legal__updated {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 2.5rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--muted);
  font-size: .85rem;
}
.legal__updated svg { width: 15px; height: 15px; flex: none; color: var(--blue); }

.legal__toc {
  margin: 0 0 3rem;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--yellow);
  background: var(--bg-2);
}
.legal__toc h2 {
  margin: 0 0 .9rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 2rem;
  font-size: .93rem;
}
.legal__toc li { margin-bottom: .4rem; break-inside: avoid; }
.legal__toc a { color: var(--body); text-decoration: none; border-bottom: 1px solid transparent; }
.legal__toc a:hover { color: var(--blue); border-bottom-color: var(--blue); }

.legal h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.legal > h2:first-of-type { margin-top: 0; }
.legal h3 {
  margin: 2rem 0 .7rem;
  font-size: 1rem;
  color: var(--ink);
}
.legal p { margin: 0 0 1.1rem; }
.legal ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .55rem; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); }

/* Third-party disclosure table. */
.legal__table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.legal__table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: .92rem;
}
.legal__table th,
.legal__table td {
  padding: .8rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal__table th {
  color: var(--ink);
  font-weight: 600;
  border-bottom-width: 2px;
}
.legal__table tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .legal__toc ol { columns: 1; }
}
