/* ==========================================================================
   Reya — home page
   Design tokens and layout per design_handoff_reya_home.
   ========================================================================== */

:root {
  /* Colour */
  --bg:            #fcfcfb;
  --ink:           #16140f;
  --ink-soft:      #33312c;
  --body:          #2b2924;
  --body-muted:    #57544c;
  --muted:         #9a978f;
  --rail:          #e4e1d9;
  --header-border: rgba(228, 225, 217, 0.7);
  --header-fill:   rgba(252, 252, 251, 0.68);

  --dark:          #0e0d0b;
  --dark-text:     #f1ede4;
  --dark-heading:  #fdfcf9;
  --dark-muted:    #c9c5bc;
  --dark-caption:  #94918a;
  --rail-dark:     rgba(255, 255, 255, 0.13);
  --word-inactive: rgba(255, 255, 255, 0.30);

  --footer-link:       #9a978f;
  --footer-link-hover: #f1ede4;
  --footer-label:      #6f6c66;

  --pill-light:   #f4f2ec;
  --pill-outline: #d6d3ca;
  --pill-ink-text:#f7f6f3;
  --nav-ink:      #3f3d37;

  /* Mock UI */
  --mock-accent:      #7c5cf0;
  --mock-accent-soft: #b9a8ee;
  --mock-tick:        #f2512c;
  --mock-shell:       #fbfaf9;
  --mock-pane-border: #e8e5e2;
  --mock-card-border: #e4e1de;
  --mock-divider:     #eceae7;
  --mock-text:        #33312c;
  --mock-text-2:      #6e6b64;
  --mock-text-3:      #b0aca5;
  --mock-text-4:      #a9a59e;
  --mock-label:       #b8b5ae;
  --mock-nav-active:  #f2f0ee;
  --mock-diagram-divider: #eeecea;

  /* Status + tag dots */
  --dot-todo:     #9aa0a6;
  --dot-progress: #4aa3df;
  --dot-review:   #6f5ce0;
  --dot-done:     #3fae6a;
  --tag-heating:    #e0574a;
  --tag-appliance:  #4aa3df;
  --tag-leak:       #e08a3c;
  --tag-general:    #8a86e0;
  --tag-electrical: #3fae6a;

  /* Type */
  --sans:  'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Structure */
  --gutter: clamp(24px, 7vw, 140px);
  --max-w:  1360px;
  --inset:  48px;
  --header-h: 63px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--body-muted); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--pill-ink-text);
  padding: 12px 20px;
  font-size: 14px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--pill-ink-text);
}

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

/* --------------------------------------------------------------------------
   The frame — the page's defining structural motif
   -------------------------------------------------------------------------- */

.gutter {
  padding: 0 var(--gutter);
}

.frame {
  max-width: var(--max-w);
  margin: 0 auto;
  border-left: 1px solid var(--rail);
  border-right: 1px solid var(--rail);
}

.frame--dark {
  border-left-color: var(--rail-dark);
  border-right-color: var(--rail-dark);
}

/* Horizontal dividers span the full inner width */
.rule       { border-top: 1px solid var(--rail); }
.rule--dark { border-top: 1px solid var(--rail-dark); }

.section--dark {
  background: var(--dark);
  color: var(--dark-text);
}

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

.cta,
.cta-out,
.cta-light {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}

.cta {
  gap: 9px;
  background: var(--ink);
  color: var(--pill-ink-text);
  font-size: 15px;
  padding: 13px 26px;
  transition: opacity 0.18s ease;
}
.cta:hover { opacity: 0.88; color: var(--pill-ink-text); }

.cta--sm { padding: 9px 18px; font-size: 13px; }

.cta-out {
  gap: 9px;
  border: 1px solid var(--pill-outline);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  padding: 12px 26px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cta-out:hover {
  background: var(--ink);
  color: var(--pill-ink-text);
  border-color: var(--ink);
}

.cta-light {
  gap: 10px;
  background: var(--pill-light);
  color: var(--ink);
  font-size: 16px;
  padding: 16px 34px;
  transition: opacity 0.18s ease;
}
.cta-light:hover { opacity: 0.9; color: var(--ink); }

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--header-fill);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 49px;
}

.site-header__logo { height: 18px; width: auto; }

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  white-space: nowrap;
}

.navlink {
  position: relative;
  color: var(--nav-ink);
  text-decoration: none;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.navlink:hover,
.navlink:focus-visible { color: var(--nav-ink); }
.navlink:hover::after,
.navlink:focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.hero__headline,
.hero__intro { padding: 56px var(--inset) 64px; }

.hero__headline { border-right: 1px solid var(--rail); }

.hero__headline h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  text-wrap: balance;
}

.hero__intro p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  color: var(--body);
  text-wrap: pretty;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3 & 8. Two-tone statement blocks
   -------------------------------------------------------------------------- */

.statement { padding: 72px var(--inset); }

.statement__lead,
.statement__sub {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.statement__lead {
  max-width: 48ch;
  font-weight: 500;
  color: var(--ink);
}

.statement__sub {
  margin-top: 9px;
  max-width: 52ch;
  font-weight: 400;
  color: var(--muted);
}

.statement .cta { margin-top: 28px; }

.statement--vision .statement__lead,
.statement--vision .statement__sub { max-width: 50ch; }

/* --------------------------------------------------------------------------
   4. Services carousel
   -------------------------------------------------------------------------- */

.services { padding: 56px var(--inset) 64px; }

.services__label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.services__stage {
  position: relative;
  height: 380px;
  overflow: hidden;
  margin-top: 8px;
}

.services__item {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  will-change: transform, opacity;
  pointer-events: none;
  transition: opacity 0.55s ease,
              transform 0.55s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.services__actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* No-JS / reduced-motion fallback: a plain readable list */
.services__stage[data-static] {
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
}
.services__stage[data-static] .services__item {
  position: static;
  transform: none;
  opacity: 1;
  transition: none;
}

/* --------------------------------------------------------------------------
   5. Partner routes (dark)
   -------------------------------------------------------------------------- */

.routes {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 86vh;
}

.routes__headline {
  padding: 64px var(--inset);
  border-right: 1px solid var(--rail-dark);
  display: flex;
  align-items: center;
}

.routes__headline h2 {
  font-weight: 600;
  font-size: 34px;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--dark-heading);
  max-width: 20ch;
  text-wrap: balance;
}

.route-word {
  cursor: pointer;
  color: var(--word-inactive);
  transition: color 0.4s ease;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
}
.route-word[aria-selected="true"] { color: var(--dark-heading); }

.routes__panelwrap {
  padding: 64px var(--inset);
  display: flex;
  align-items: center;
}

.routes__panel { transition: opacity 0.35s ease; }

.routes__eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-heading);
}

.routes__body {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--dark-muted);
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   6. We add value intentionally
   -------------------------------------------------------------------------- */

.value__header { padding: 80px var(--inset); }

.value__title {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.value__row {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 40px;
  padding: 40px var(--inset);
  border-top: 1px solid var(--rail);
  align-items: baseline;
}

.value__label {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.value__body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-muted);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   7. Croft product mock
   -------------------------------------------------------------------------- */

.product__header { padding: var(--inset); }

.product__title {
  font-family: var(--sans);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-soft);
}

.product__subtitle {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--body-muted);
}

.mock {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fafafb;
  overflow: hidden;
}

/* Fixed-size stages, centred and scaled by JS (see main.js) */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(0.5);
}

.stage--app {
  width: 1300px;
  height: 760px;
  opacity: 0.5;
}

.stage--diagram {
  width: 820px;
  height: 500px;
}

.mock__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(238, 236, 232, 0.72),
              rgba(238, 236, 232, 0.84));
}

.mock__label {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--body-muted);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  pointer-events: none;
}

/* Layer A — faded property-management app */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--mock-shell);
  font-family: var(--sans);
}

.app__sidebar {
  width: 210px;
  flex: none;
  background: #fff;
  border: 1px solid var(--mock-pane-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.app__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.app__brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #26242a;
}
.app__brand-name { font-size: 14px; color: var(--mock-text); }

.app__divider {
  height: 1px;
  background: var(--mock-divider);
  margin: 6px 0;
}

.app__nav { font-size: 15px; color: var(--mock-text-2); }

.app__nav--active {
  color: var(--mock-text);
  background: var(--mock-nav-active);
  border-radius: 6px;
  padding: 6px 8px;
  margin: 0 -8px;
}

.app__section {
  font-size: 13px;
  color: var(--mock-label);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.app__board {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--mock-pane-border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app__crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--mock-text-2);
}
.app__crumbs strong { font-weight: 400; color: var(--mock-text); }
.app__crumbs-count { color: var(--mock-text-4); font-size: 14px; }

.app__hr { height: 1px; background: var(--mock-divider); }

.app__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.app__column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.app__column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app__column-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #3f3d37;
}
.app__column-count { font-size: 14px; color: var(--mock-text-4); }

.dot {
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.dot--lg { width: 13px; height: 13px; }
.dot--md { width: 12px; height: 12px; margin-top: 3px; opacity: 0.85; }
.dot--sm { width: 7px; height: 7px; }

.card {
  border: 1px solid var(--mock-card-border);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
.card__ref {
  font-size: 12px;
  color: var(--mock-text-3);
  letter-spacing: 0.02em;
}
.card__title {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 5px;
  font-size: 14px;
  color: var(--mock-text);
  line-height: 1.35;
}
.card__address {
  font-size: 12px;
  color: var(--mock-text-3);
  margin-top: 6px;
}
.card__tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--mock-text-4);
}

/* Layer C — channel diagram */
.diagram__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 30px -18px rgba(30, 25, 60, 0.28);
  padding: 14px 16px;
}

.node__title {
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  color: #3f3d37;
}

.node__hr {
  height: 1px;
  background: var(--mock-diagram-divider);
  margin: 11px 0;
}

.node__row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.node__strong { font-size: 14px; color: var(--ink); }
.node__sub    { font-size: 13px; color: var(--muted); line-height: 1.4; }

.node--payload {
  box-shadow: 0 20px 44px -22px rgba(30, 25, 60, 0.34);
  padding: 16px 18px 18px;
}
.node--payload .node__hr { margin: 12px 0; }
.node--payload .node__hr + .node__meta { margin-top: 0; }

.node__checks {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.node__check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--body-muted);
}

.node__hr--wide { margin: 13px 0; }

.node__meta {
  font-size: 13px;
  color: var(--body-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. DawsonBarker case study (dark)
   -------------------------------------------------------------------------- */

.case__header { padding: 64px var(--inset) 46px; }

.case__header h2 {
  max-width: 26ch;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark-heading);
  text-wrap: balance;
}

.case__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.case__logo-cell {
  border-right: 1px solid var(--rail-dark);
  padding: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.case__logo-panel {
  background: #ffffff;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
}

.case__logo-panel img { width: 100%; height: auto; }

.case__stats {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.stat {
  padding: 36px 44px;
  border-bottom: 1px solid var(--rail-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat:last-child { border-bottom: 0; }

.stat__figure {
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark-heading);
}

.stat__caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark-caption);
  margin-top: 14px;
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   10. Partner with us (dark CTA)
   -------------------------------------------------------------------------- */

.closing {
  padding: 150px var(--inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}

.closing h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark-heading);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: #cfcbc2;
  border-top: 1px solid var(--rail-dark);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.site-footer__brand { padding: 56px var(--inset); }

.site-footer__logo {
  height: 18px;
  width: auto;
  margin-bottom: 22px;
}

.site-footer__tagline {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark-caption);
  max-width: 30ch;
}

.site-footer__col { padding: 56px 40px; }

.site-footer__heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-label);
  margin-bottom: 20px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
}

.flink {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.18s ease;
}
.flink:hover { color: var(--footer-link-hover); }

.site-footer__bottom {
  border-top: 1px solid var(--rail-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--inset);
  flex-wrap: wrap;
}

.site-footer__legal {
  font-size: 13px;
  color: var(--footer-label);
}

.site-footer__legal-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Scroll reveal — progressive enhancement, never hides content without support
   -------------------------------------------------------------------------- */

.reveal { opacity: 1; }

@supports (animation-timeline: view()) {
  @keyframes reyaFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }
  .reveal {
    animation: reyaFadeUp both linear;
    animation-timeline: view();
    animation-range: entry 2% cover 20%;
  }
}

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

/* --------------------------------------------------------------------------
   Responsive — the mobile pass the prototype did not have
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .routes { min-height: 0; }
  .closing h2 { font-size: clamp(40px, 6.4vw, 60px); }
}

@media (max-width: 900px) {
  :root { --inset: 28px; }

  .site-header__bar { padding: 20px 28px; }
  .navlink::after { bottom: -20px; }

  /* Two-column grids collapse to one, vertical rails become horizontal rules */
  .hero { grid-template-columns: 1fr; }
  .hero__headline {
    border-right: 0;
    border-bottom: 1px solid var(--rail);
    padding-bottom: 40px;
  }
  .hero__headline h1 { font-size: 27px; }
  .hero__intro { padding-top: 40px; }

  .routes { grid-template-columns: 1fr; }
  .routes__headline {
    border-right: 0;
    border-bottom: 1px solid var(--rail-dark);
    padding: 56px var(--inset);
  }
  .routes__headline h2 { font-size: 29px; max-width: none; }
  .routes__panelwrap { padding: 48px var(--inset) 56px; }
  .routes__body { font-size: 19px; max-width: none; }

  .value__header { padding: 56px var(--inset); }
  .value__row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px var(--inset);
  }
  .value__label { font-size: 23px; }

  .case__grid { grid-template-columns: 1fr; }
  .case__logo-cell {
    border-right: 0;
    border-bottom: 1px solid var(--rail-dark);
  }
  .case__logo-panel { padding: 12% 14%; }
  .stat { padding: 30px var(--inset); }
  .stat__figure { font-size: 44px; }

  .closing { padding: 100px var(--inset); gap: 32px; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; padding: 48px var(--inset) 32px; }
  .site-footer__col { padding: 24px var(--inset) 32px; }

  .statement { padding: 56px var(--inset); }
  .services { padding: 48px var(--inset) 56px; }
  .product__header { padding: 40px var(--inset); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --inset: 20px; }

  .site-header__bar { padding: 18px 20px; }
  .navlink::after { bottom: -18px; }

  .hero__headline h1 { font-size: 24px; }

  .statement__lead,
  .statement__sub { font-size: 18px; }

  .services__stage { height: 300px; }

  .routes__headline h2 { font-size: 25px; }
  .routes__body { font-size: 17px; }

  .value__title,
  .product__title { font-size: 24px; }
  .value__label { font-size: 21px; }
  .product__subtitle { font-size: 16px; }

  .case__header h2 { font-size: 25px; }
  .stat__figure { font-size: 38px; }

  .closing { padding: 80px var(--inset); }
  .closing h2 { font-size: 38px; }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__brand { padding: 40px var(--inset) 28px; }
  .site-footer__col { padding: 20px var(--inset) 28px; }
  .site-footer__bottom { padding: 20px var(--inset); }
  .site-footer__legal-links { gap: 18px; }
}

/* The diagram loses legibility once the panel gets very small; drop the mock
   to the faded app + label rather than shipping an unreadable graphic. */
@media (max-width: 560px) {
  .mock { aspect-ratio: 4 / 3; }
  .stage--diagram { display: none; }
  .stage--app { opacity: 0.72; }
  .mock__scrim {
    background: linear-gradient(180deg,
                rgba(238, 236, 232, 0.42),
                rgba(238, 236, 232, 0.58));
  }
}

/* --------------------------------------------------------------------------
   Legal pages — the published privacy notice
   One measure-width column inside the same two-level frame as the home page.
   Text only: no images, no behaviour, nothing for main.js to attach to.
   -------------------------------------------------------------------------- */

.legal {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 96px;
}

.legal__body {
  max-width: 68ch;
  padding: 0 var(--inset);
  margin: 0 auto;
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

.legal__eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal__title {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.legal__lede {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}

.legal__meta {
  margin: 0 0 40px;
  color: var(--body-muted);
  font-size: 15px;
}

.legal .rule { margin: 40px 0; }

.legal__body h2 {
  margin: 44px 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.legal__body p  { margin: 0 0 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; }
.legal__body li { margin: 0 0 10px; }

.legal__body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__body a:hover,
.legal__body a:focus-visible { color: var(--body-muted); }

@media (max-width: 900px) {
  .legal { padding-top: calc(var(--header-h) + 48px); }
  .legal__body { padding: 0 28px; }
}

@media (max-width: 600px) {
  .legal__body { padding: 0 20px; font-size: 16px; }
  .legal__lede { font-size: 17px; }
}
