/* ============================================================
   UWX — site styles
   Every colour, size, radius and easing below resolves to a
   design-system token. Nothing brand-bearing is hardcoded.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin: 0;
}

p { margin: 0; }

a { color: var(--text-primary); text-decoration: none; }

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-navy);
  color: var(--text-onfill);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* --- Shared type ------------------------------------------------ */

.eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

/* The system's signature element: a 2px navy rule under the title. */
.title-rule {
  height: var(--border-rule-w);
  background: var(--border-rule);
  margin: var(--space-6) 0;
  transform-origin: left;
  animation: rule-in var(--dur-slow) var(--ease-standard) both;
}
.title-rule-light { background: var(--text-onfill); }

@keyframes rule-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.section-title { font-size: var(--fs-h1); }

.section-lead {
  font-size: var(--fs-lead);
  color: var(--text-primary);
  max-width: var(--container-narrow);
}
.section-lead-light { color: var(--uwx-navy-100); }

.section-cta { margin-top: clamp(var(--space-6), 3vh, var(--space-12)); }

/* --- Empty image placeholders ----------------------------------
   Deliberately blank: a hairline navy box with a faint wash and a
   diagonal, so an unfilled slot reads as "artwork goes here"
   rather than as a broken image.
   ---------------------------------------------------------------- */
.media {
  background-color: var(--surface-hover);
  border: var(--border-hair) dashed var(--uwx-navy-100);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(
    to top right,
    transparent calc(50% - 0.5px),
    var(--uwx-navy-100) calc(50% - 0.5px),
    var(--uwx-navy-100) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

.media-hero  { aspect-ratio: 4 / 3; }
.media-cycle { aspect-ratio: 4 / 3; border-color: rgba(255, 255, 255, 0.3); }
.media-thumb {
  aspect-ratio: 16 / 9;
  margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-2);
  border-radius: var(--radius-none);
  border-width: 0 0 var(--border-hair) 0;
}

/* Real artwork dropped into a thumb slot: fill the 16/9 bleed area,
   centered and cropped from the middle. */
img.media-thumb {
  display: block;
  width: calc(100% + 2 * var(--space-8));
  max-width: none; /* override the global img max-width:100% so the bleed width applies */
  height: auto;
  object-fit: cover;
  object-position: center;
  background: none;
  border-bottom: var(--border-hair) solid var(--uwx-navy-100);
}

/* Artwork dropped into a standalone media box (hero / cycle): fill the
   box its aspect-ratio defines, cropped from the centre. Unlike the
   thumb these carry no card padding to bleed past. */
img.media-hero,
img.media-cycle {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: none;
}

/* Give the cycle photo a bit more height than the copy beside it, and
   bias the crop upward so faces near the top of the frame aren't lost. */
img.media-cycle {
  min-height: clamp(420px, 52vh, 600px);
  object-position: center 28%;
}

/* The navy section inverts the placeholder wash. */
.section-navy .media {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: linear-gradient(
    to top right,
    transparent calc(50% - 0.5px),
    rgba(255, 255, 255, 0.3) calc(50% - 0.5px),
    rgba(255, 255, 255, 0.3) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

/* --- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h-lg);
  padding: 0 var(--space-6);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  border: var(--border-hair) solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-normal) var(--ease-standard),
              color var(--dur-normal) var(--ease-standard),
              border-color var(--dur-normal) var(--ease-standard);
}
.btn-sm { min-height: var(--control-h-md); padding: 0 var(--space-4); }

.btn-primary {
  background: var(--surface-navy);
  color: var(--text-onfill);
}
.btn-primary:hover { background: var(--uwx-navy-700); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); }

/* For use on the full-bleed navy section. */
.btn-light {
  background: var(--surface-page);
  color: var(--text-primary);
}
.btn-light:hover { background: var(--uwx-navy-100); }

/* --- Cards ------------------------------------------------------ */

.card {
  background: var(--surface-card);
  border: var(--border-hair) solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  transition: transform var(--dur-normal) var(--ease-standard),
              box-shadow var(--dur-normal) var(--ease-standard);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-page);
  transition: box-shadow var(--dur-normal) var(--ease-standard);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

/* The one permitted gradient: the magenta→cyan logo ribbon, as a thin rule. */
.ribbon-rule {
  height: var(--border-thick);
  background: var(--gradient-ribbon);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 72px;
}

.logo { display: flex; align-items: baseline; gap: var(--space-3); flex-shrink: 0; }
.logo-img { height: 28px; width: auto; align-self: center; }
.logo-type {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  color: var(--text-primary);
}
.logo-tagline {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  padding-left: var(--space-3);
  border-left: var(--border-hair) solid var(--border-default);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav > a { font-size: var(--fs-small); font-weight: var(--fw-medium); white-space: nowrap; }
.nav > a:not(.btn):hover { color: var(--uwx-navy-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: var(--hit-min);
  height: var(--hit-min);
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--dur-normal) var(--ease-standard),
              opacity var(--dur-fast) var(--ease-standard);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(var(--space-20), 12vw, 160px) 0 var(--space-20);
  overflow: hidden;
  /* A full screen, like every other section. */
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* The ribbon mark, ghosted — the brand's only decorative graphic. */
.hero-mark {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: var(--gradient-ribbon);
  opacity: 0.06;
  border-radius: var(--radius-pill);
  filter: blur(8px);
  pointer-events: none;
}

/* The 3D logo ribbons. Full-bleed behind the copy, and masked on the
   left so the mark never crosses the headline — the copy keeps a clean
   white ground while the ribbons hold the open right-hand side. */
.hero-ribbons {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 22%, rgba(0, 0, 0, 0.5) 40%, #000 62%);
  mask-image: linear-gradient(100deg, transparent 22%, rgba(0, 0, 0, 0.5) 40%, #000 62%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;   /* .hero is a flex container — don't shrink to fit */
  display: grid;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

/* No image column any more — the mesh occupies that side, so hold the
   copy to a comfortable measure instead of letting it run the width. */
.hero-copy { max-width: 46rem; }

/* text-wrap: balance evens the line lengths instead of leaving a single
   orphaned word on the last line. */
.hero-title {
  font-size: clamp(var(--fs-h1), 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
  max-width: 18ch;
}

/* Two-tone: the qualifier steps back, the subject holds full navy.
   Same words, just weighted so the eye lands on what UWX does. */
.hero-title-lead {
  display: block;
  color: var(--text-secondary);
  font-weight: var(--fw-regular);
}

/* Short rule in the hero — a mark under the headline rather than a
   divider across it. The ribbon is the one place the brand allows it. */
.hero .title-rule {
  width: 96px;
  height: var(--border-thick);
  background: var(--gradient-ribbon);
  margin: var(--space-8) 0 var(--space-6);
}

.hero .lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: 46ch;
}

/* Stagger the hero in: eyebrow, headline, rule, lead, buttons. The page
   assembles instead of arriving all at once. Reduced motion drops the
   transitions entirely, so these delays never apply. */
.hero-copy > .reveal:nth-child(1) { transition-delay: 0ms; }
.hero-copy > .reveal:nth-child(2) { transition-delay: 90ms; }
.hero-copy > .reveal:nth-child(3) { transition-delay: 170ms; }
.hero-copy > .reveal:nth-child(4) { transition-delay: 230ms; }
.hero-copy > .reveal:nth-child(5) { transition-delay: 310ms; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

/* ============================================================
   STATS
   ============================================================ */

/* Stats and brands are the one exception to the full-screen rule:
   they take half a screen each and share one. */
.stats {
  padding: var(--space-16) 0;
  min-height: 50svh;
  display: flex;
  align-items: center;
  border-top: var(--border-hair) solid var(--border-default);
  border-bottom: var(--border-hair) solid var(--border-default);
}
.stats > .container { width: 100%; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-12) var(--space-8);
}

.stat { border-left: var(--border-rule-w) solid var(--border-rule); padding-left: var(--space-6); }

.stat-value {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* ============================================================
   BRANDS MARQUEE
   ============================================================ */

.brands {
  padding: var(--space-16) 0;
  min-height: 50svh;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* the other half of the stats screen */
}
.brands-eyebrow { margin-bottom: var(--space-8); }

.marquee {
  position: relative;
  overflow: hidden;
  /* Fade the edges so items enter and leave rather than clipping. */
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  /* Tighter than before: the tiles now carry their own padding. */
  gap: var(--space-6);
  width: max-content;
  padding: var(--space-2) 0;   /* room for the hover shadow */
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  /* The track is duplicated in JS, so -50% lands exactly on the seam. */
  to   { transform: translateX(-50%); }
}

/* Each item is a logo tile: a fixed box the artwork will drop into.
   The names are placeholders sitting inside it for now, so replacing
   them with <img> later changes nothing about the layout. */
.marquee-item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  min-width: 220px;
  height: 92px;
  padding: var(--space-4) var(--space-6);

  border: var(--border-hair) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);

  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--uwx-navy-300);
  white-space: normal;   /* longer names wrap inside the box */

  transition: color var(--dur-normal) var(--ease-standard),
              border-color var(--dur-normal) var(--ease-standard),
              box-shadow var(--dur-normal) var(--ease-standard);
}

.marquee-item:hover {
  color: var(--text-primary);
  border-color: var(--uwx-navy-100);
  box-shadow: var(--shadow-sm);
}

/* Sizing for the artwork once it lands: contained, never stretched.
   Logos are desaturated for a uniform "trusted by" strip; hovering a
   tile restores full colour, echoing the text-item hover treatment. */
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--dur-normal) var(--ease-standard),
              opacity var(--dur-normal) var(--ease-standard);
}

.marquee-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ============================================================
   SECTIONS
   ============================================================ */

/* Every section holds a full screen and centres its content in it.
   min-height, not height: if the content is taller than the viewport
   (long copy, small laptop, phone) the section grows rather than
   clipping. svh keeps mobile browser chrome from overflowing it. */
.section {
  /* Viewport-relative, so a content-heavy section tightens its padding
     rather than spilling past the fold. */
  padding: clamp(var(--space-12), 7vh, var(--space-20)) 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Opaque, so a section stacked over another never shows through it.
     Identical to the page ground; navy / sunken sections override below. */
  background: var(--surface-page);
}

/* --- Stacked sections ------------------------------------------
   Every full-screen section after the brands marquee pins to the top
   and the next one scrolls up over it. js/site.js scales and dims the
   one being covered so it settles into the background as the next
   slides across. This is a deliberate signature interaction, so it
   runs regardless of the motion preference; the pin itself is just
   ordinary scroll behaviour rather than autonomous animation. */
.section {
  position: sticky;
  top: 0;
  /* Soft shadow along the top edge only. As a section slides up over the
     one before it, this edge is the seam, so the shadow reads there and
     nowhere else. Brand-navy tinted rather than a flat grey. */
  box-shadow: 0 -14px 40px -12px rgba(30, 48, 112, 0.22);
}

/* The recede scales this inner wrapper (see js/site.js) so the section's
   own background stays full-bleed and true to its colour. */
.section > .container {
  transform-origin: center;
  backface-visibility: hidden;   /* steadier scaling on the compositor */
}

/* Direct child of a flex section — don't let it shrink to fit. */
.section > .container { width: 100%; }

/* Contact sits on the main page white, same as the other sections. */
.section-sunken { background: var(--surface-page); }

.section-navy {
  background: var(--surface-navy);
  color: var(--text-onfill);
}
.section-navy .eyebrow { color: var(--uwx-navy-100); }
.section-navy .section-title,
.section-navy h3 { color: var(--text-onfill); }

.section-head { margin-bottom: clamp(var(--space-6), 4vh, var(--space-12)); }

/* --- Business building / stages --------------------------------- */

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.stage { position: relative; }

/* Oversized index numeral — navy at low alpha, per the section-slide rule. */
.stage-index {
  display: block;
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--uwx-navy);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}

.stage-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
}
.stage p { font-size: var(--fs-small); color: var(--uwx-grey-700); }

/* --- Cycle management ------------------------------------------- */

.cycle-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: stretch;
}

.pull-quote {
  margin: 0;
  font-size: var(--fs-quote);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  color: var(--text-onfill);
}

.attribution {
  margin-top: var(--space-6);
  font-size: var(--fs-caption);
  color: var(--uwx-navy-100);
}

.cycle-points { display: grid; gap: clamp(var(--space-5), 3vh, var(--space-10)); }

.cycle-point h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
  padding-top: clamp(var(--space-2), 1.5vh, var(--space-4));
  border-top: var(--border-hair) solid rgba(255, 255, 255, 0.28);
}
.cycle-point p { color: var(--uwx-navy-100); font-size: var(--fs-small); }

/* --- News & insight --------------------------------------------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* A 3px navy top accent echoing the title rule. */
.insight {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden; /* clips the bled-out thumbnail placeholder */
  border-top: var(--border-thick) solid var(--border-rule);
  border-radius: var(--radius-none) var(--radius-none) var(--radius-lg) var(--radius-lg);
}

.insight-byline {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}

.insight-meta {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  letter-spacing: var(--ls-wide);
}

.insight-title { font-size: var(--fs-h3); }
.insight-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.insight { position: relative; }

.insight p { font-size: var(--fs-small); color: var(--uwx-grey-700); }

.insight-more {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

/* --- Contact ---------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

.contact-details {
  display: flex;
  gap: var(--space-16);
  margin: var(--space-12) 0 0;
}
.contact-details dt {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.contact-details dd { margin: 0; font-size: var(--fs-body); }
.contact-details a:hover { color: var(--uwx-navy-700); }

.contact-form { display: grid; gap: var(--space-5); }

.field { display: grid; gap: var(--space-2); }

.field label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-small);
  color: var(--text-primary);
  background: var(--surface-card);
  min-height: var(--control-h-md);
  padding: var(--space-2) var(--space-3);
  border: var(--border-hair) solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-normal) var(--ease-standard);
}
.field textarea { min-height: auto; resize: vertical; line-height: var(--lh-normal); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--uwx-grey-300); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--focus-ring); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--uwx-danger); }

.form-note {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  min-height: 1.2em;
}
.form-note.is-error { color: var(--uwx-danger); }
.form-note.is-ok { color: var(--uwx-success); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: var(--space-12) 0;
  border-top: var(--border-hair) solid var(--border-default);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
}

.footer-fine {
  margin-top: var(--space-2);
  font-size: var(--fs-fine);
  color: var(--text-fineprint);
  letter-spacing: var(--ls-wide);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.footer-nav a {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}
.footer-nav a:hover { color: var(--text-primary); }

/* ============================================================
   LEGAL / CONTENT PAGES
   Simple single-column prose for terms, privacy, cookies and the
   modern-slavery statement. Reuses the header and footer; no hero,
   no section stacking.
   ============================================================ */

.legal { padding: clamp(var(--space-16), 8vh, var(--space-24)) 0; }

.legal-inner { max-width: var(--container-narrow); }

.legal h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-tight);
}

.legal-updated {
  margin-top: var(--space-4);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Flags the wording as placeholder until it has had a legal review. */
.legal-note {
  margin: var(--space-8) 0 var(--space-12);
  padding: var(--space-4) var(--space-6);
  border-left: var(--border-rule-w) solid var(--border-rule);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-hover);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.legal h2 {
  font-size: var(--fs-h3);
  margin: var(--space-12) 0 var(--space-4);
}

.legal p,
.legal li {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
}
.legal p + p { margin-top: var(--space-4); }

.legal ul { margin: var(--space-4) 0; padding-left: var(--space-6); }
.legal li { margin-top: var(--space-2); }

.legal a { text-decoration: underline; }
.legal a:hover { color: var(--uwx-navy-700); }

.legal-back {
  display: inline-block;
  margin-top: var(--space-16);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Header nav switches to the hamburger menu earlier than the main grid
   breakpoint below: the nav labels are long enough to overflow the
   header well before the page content needs to stack. */
@media (max-width: 1180px) {
  .logo-tagline { display: none; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6) var(--space-8);
    background: var(--surface-page);
    border-bottom: var(--border-hair) solid var(--border-default);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a { min-height: var(--hit-min); display: flex; align-items: center; }
}

@media (max-width: 860px) {
  .hero-inner,
  .cycle-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* Single column: the copy runs the full width, so there is no open
     right-hand side for the mark to hold. The script recentres it low
     in the hero; this fades it out from under the text. */
  .hero-ribbons {
    -webkit-mask-image: linear-gradient(to top, #000 22%, transparent 62%);
    mask-image: linear-gradient(to top, #000 22%, transparent 62%);
    opacity: 0.85;
  }
}

/* ============================================================
   REDUCED MOTION — kill every loop and transition.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
