/* ==========================================================================
   Thurodale. Ledger blue on cream paper
   Single stylesheet. No build step, no dependencies.
   Token names follow thurodale-style-reference.md.
   ========================================================================== */

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

:root {
  /* Colour lives in theme.css. This file holds no hex values. */

  /* Typography */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;

  --text-label: 11px;
  --text-caption: 13px;
  --text-body-sm: 14px;
  --text-body: 15px;
  --text-body-lg: 17px;

  /* Fluid heading sizes: reference values are the desktop ceiling. */
  --text-heading-sm: 22px;
  --text-heading-md: clamp(24px, 1.3rem + 1.2vw, 30px);
  --text-heading: clamp(29px, 1.5rem + 2.6vw, 44px);
  --text-display: clamp(33px, 1.3rem + 5vw, 66px);

  /* Spacing */
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-44: 44px;
  --spacing-56: 56px;
  --spacing-64: 64px;
  --spacing-72: 72px;
  --spacing-88: 88px;
  --spacing-120: 120px;

  /* Layout */
  --page-max-width: 1120px;
  --page-gutter: 24px;
  --section-gap: clamp(72px, 5vw + 32px, 120px);
  --panel-padding: clamp(20px, 4vw + 16px, 72px);
  --card-padding: clamp(24px, 2vw + 20px, 44px);
  --principle-padding: clamp(24px, 1.4vw + 16px, 36px);
  /* Sibling gap must never be smaller than the padding inside the siblings,
     or the eye groups items inward instead of separating them. */
  --grid-gap: clamp(32px, 2vw + 16px, 48px);

  /* Radius */
  --radius-sm: 8px;
  --radius-card: 14px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0.28, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-reveal: 720ms;
  /* Rise distance for scroll reveals. Shortened on small screens, where a
     large travel reads as the page lurching rather than settling. */
  --reveal-rise: 28px;
}

@media (min-width: 560px) { :root { --page-gutter: 28px; } }
@media (min-width: 900px) { :root { --page-gutter: 40px; } }

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--spacing-32);
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink-default);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  /* Nothing on this site scrolls sideways. */
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-primary);
  margin: 0;
  text-wrap: balance;
  /* Display type must never hyphenate or break mid-word on narrow screens. */
  overflow-wrap: normal;
  hyphens: none;
}

p { margin: 0; }
p + p { margin-top: var(--spacing-16); }

ul, ol { margin: 0; padding: 0; list-style: none; }

em, .em { font-style: italic; }

/* Geist ships here at 400/500/600 only. Left at the UA default of 700,
   every <strong> in the legal documents would be SYNTHESISED bold: the
   browser smears the 400 face rather than drawing a real one. 600 is a
   loaded weight, and is the correct emphasis for a system whose rule is
   "don't bold, heavy weights break the quiet editorial tone". */
strong, b { font-weight: 600; }

a {
  color: var(--ink-primary);
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover { text-decoration-color: currentColor; }

/* Removes the 300ms tap delay without disabling pinch-zoom. */
a, button, summary, [role="button"] { touch-action: manipulation; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

/* --------------------------------------------------------------------------
   3. Motion: scroll reveal
   Hidden state is scoped to .js so content is never trapped invisible
   when scripting is unavailable or the script fails to run.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {

  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, calc(var(--reveal-rise) * var(--reveal-dir, 1)), 0);
    transition: opacity var(--dur-reveal) var(--ease-soft),
                transform var(--dur-reveal) var(--ease-soft);
    will-change: opacity, transform;
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  /* Children enter in sequence rather than all at once. */
  .js [data-reveal-group] > * {
    opacity: 0;
    transform: translate3d(0, calc(var(--reveal-rise) * var(--reveal-dir, 1)), 0);
    transition: opacity var(--dur-reveal) var(--ease-soft),
                transform var(--dur-reveal) var(--ease-soft);
  }
  .js [data-reveal-group].is-visible > * {
    opacity: 1;
    transform: none;
  }
  /* Children read --reveal-dir off the group automatically: custom
     properties inherit, and the observer sets it on the group element. */
  .js [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
  .js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 90ms; }
  .js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 180ms; }
  .js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 270ms; }
  .js [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 360ms; }
  .js [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 450ms; }

  /* Display headings wipe upward from a clipped baseline rather than simply
     fading. The mask is slightly over-sized top and bottom so ascenders and
     descenders are never shaved. Applied only to display and .heading type:
     on small text the effect reads as a glitch, not a reveal. */
  .js [data-reveal-heading] {
    opacity: 0;
    clip-path: inset(-12% 0 112% 0);
    transform: translate3d(0, calc(var(--reveal-rise) * 0.7 * var(--reveal-dir, 1)), 0);
    transition: opacity 760ms var(--ease-soft),
                clip-path 900ms var(--ease-soft),
                transform 900ms var(--ease-soft);
  }
  .js [data-reveal-heading].is-visible {
    opacity: 1;
    clip-path: inset(-12% 0 -12% 0);
    transform: none;
  }

  /* Tinted panels settle in as a single mass: a shorter rise than their
     contents, so the surface arrives first and the content lands into it. */
  .js [data-reveal-panel] {
    opacity: 0;
    transform: translate3d(0, calc(20px * var(--reveal-dir, 1)), 0);
    transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft);
  }
  .js [data-reveal-panel].is-visible { opacity: 1; transform: none; }

  .hero__rings { transition: transform 120ms linear; }
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--spacing-16);
  top: -100px;
  z-index: 100;
  background: var(--action-bg);
  color: var(--action-fg);
  padding: 12px 20px;
  border-radius: var(--radius-card);
  font-size: var(--text-body-sm);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--spacing-16); }

.measure    { max-width: 54ch; }
.measure-sm { max-width: 48ch; }

/* --------------------------------------------------------------------------
   5. Typography roles
   -------------------------------------------------------------------------- */

.display {
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.heading {
  font-size: var(--text-heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.heading-md { font-size: var(--text-heading-md); line-height: 1.2; }
.heading-sm { font-size: var(--text-heading-sm); line-height: 1.25; }

.lead {
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--ink-muted);
}

.body-sm { font-size: var(--text-body-sm); line-height: 1.7; }
.caption { font-size: var(--text-caption); line-height: 1.6; }
.soft { color: var(--ink-muted); }

.label-upper {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-24);
}

.label-pill {
  display: inline-block;
  background: var(--surface-panel-3);
  color: var(--ink-on-panel-3);
  border-radius: var(--radius-full);
  padding: 8px 17px;
  font-size: var(--text-body-sm);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--spacing-24);
}
.panel--cloud .label-pill,
.panel--mist .label-pill,
.panel--sky .label-pill,
.panel--stone .label-pill { background: var(--surface-card); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-card);
  padding: 13px 26px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
/* Press feedback that does not move neighbouring content. */
.btn:active { transform: translateY(1px); }

.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--action-bg);
  color: var(--action-fg);
}
.btn--primary:hover { background: var(--action-bg-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-interactive);
}
.btn--ghost:hover {
  background: var(--ghost-hover-bg);
  border-color: var(--ink-primary);
}

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24);
  background: var(--action-bg);
  color: var(--action-fg);
  border-radius: var(--radius-card);
  padding: 26px 40px;
  text-decoration: none;
  transition: background-color var(--dur-base) var(--ease-out);
}
.cta-bar:hover { background: var(--action-bg-hover); }
.cta-bar__label { font-size: 20px; font-weight: 500; line-height: 1.4; }
.cta-bar__arrow {
  font-size: 24px;
  line-height: 1;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.cta-bar:hover .cta-bar__arrow { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */

.site-header { padding-block: var(--spacing-32) var(--spacing-56); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16) var(--spacing-24);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink-primary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.wordmark:hover { color: var(--ink-strong); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-32);
}

.site-nav__link {
  position: relative;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--ink-primary);
  text-decoration: none;
  padding-block: 6px;
}
/* Underline grows from the left rather than appearing all at once. */
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav .btn--ghost {
  border-radius: var(--radius-full);
  padding: 11px 22px;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   8. Sections & panels
   -------------------------------------------------------------------------- */

.section { padding-block: calc(var(--section-gap) / 2); }
.section--flush-top { padding-top: 0; }

.panel {
  border-radius: var(--radius-card);
  padding: var(--panel-padding);
  box-shadow: none;
  border: 0;
}
.panel--cloud { background: var(--surface-panel-1); }
.panel--mist  { background: var(--surface-panel-2); }
.panel--sky   { background: var(--surface-panel-3); }
.panel--stone { background: var(--surface-panel-warm); }

/* Body copy never sits directly on Sky Mist or Stone Hush. Those tones fail
   contrast for supporting text, so cards inside them are cream. */
.panel--sky .soft { color: var(--ink-on-panel-3); }
.panel--stone .soft { color: var(--ink-on-panel-warm); }

.section-head { margin-bottom: var(--spacing-56); }
.section-head .heading { margin-bottom: var(--spacing-24); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px);
}

.hero__inner { position: relative; z-index: 1; }
.hero .display { margin-bottom: var(--spacing-32); }
.hero .lead { margin-bottom: var(--spacing-40); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-16);
}

/* Concentric ring graphic: one per page, clipped by the hero panel corner. */
.hero__rings {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 0;
}
.hero__rings circle {
  fill: none;
  stroke: var(--decor-ring);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* --------------------------------------------------------------------------
   10. Grids & split layout
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--grid-gap); }
.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(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
/* Heading in the left column, argument in the right: fills the measure
   without needing a decorative element to occupy the space. */
.split--editorial { grid-template-columns: 0.9fr 1.1fr; }
.split--editorial .lead { max-width: 58ch; }

@media (max-width: 900px) {
  .split,
  .split--editorial { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */

.card {
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: none;
  border: 0;
}
.card--cloud { background: var(--surface-panel-1); }
.card--mist  { background: var(--surface-panel-2); }
.card--cream { background: var(--surface-card); }

.card__title { margin-bottom: var(--spacing-16); }
.card__body  { color: var(--ink-muted); font-size: 14.5px; line-height: 1.7; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-12);
  margin-top: var(--spacing-24);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: var(--tag-bg);
  color: var(--tag-fg);
  border-radius: var(--radius-full);
  padding: 8px 15px;
  font-size: var(--text-caption);
  line-height: 1.4;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag-dot);
  flex: none;
}
/* No hover response on tags: they are labels, not controls. */

.principle {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: var(--principle-padding);
}

/* Bare variant: text sits directly on the panel, separated by a rule
   rather than by a card. One less level of nesting, one more usable line. */
.principle--bare {
  background: none;
  padding: var(--spacing-24) 0 0;
  border-top: 1px solid var(--border-on-panel);
  border-radius: 0;
}
.principle--bare .principle__body { color: var(--ink-on-panel-3); }
/* The quiet numeral is Sky Mist, which IS this panel's background once the
   cream card is removed. Re-derive it from the panel's own ink instead. */
.principle--bare .principle__num--quiet {
  color: color-mix(in srgb, var(--ink-on-panel-3) 48%, transparent);
}

.principle__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--ink-primary);
  margin-bottom: var(--spacing-24);
}
.principle__num--quiet { color: var(--ink-decorative); }
.principle__title { margin-bottom: var(--spacing-12); }
.principle__body {
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   12. FAQ accordion
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--border-subtle); }
.faq__item { border-bottom: 1px solid var(--border-subtle); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24);
  padding-block: var(--spacing-32);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 1.1rem + 0.6vw, 27px);
  line-height: 1.3;
  color: var(--ink-primary);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--ink-strong); }
.faq__q:focus-visible { outline-offset: -2px; }

.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--ink-primary);
  transform: translateY(-50%);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__icon::after {
  transform: translateY(-50%) rotate(90deg) scaleX(0);
  opacity: 0;
}
@media (hover: hover) {
  .faq__q:hover .faq__icon { transform: rotate(90deg); }
}

.faq__a {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 68ch;
  padding-bottom: var(--spacing-32);
  padding-right: var(--spacing-40);
}

/* Progressive enhancement: browsers that support it animate the disclosure.
   Everywhere else the panel simply appears, which is correct behaviour. */
@supports selector(details::details-content) {
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size var(--dur-base) var(--ease-out),
                content-visibility var(--dur-base) allow-discrete,
                opacity var(--dur-base) var(--ease-out);
  }
  .faq__item[open]::details-content { block-size: auto; opacity: 1; }
}
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}

/* --------------------------------------------------------------------------
   13. Long-form legal documents
   -------------------------------------------------------------------------- */

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-56);
}
.doc-nav a {
  display: inline-block;
  background: var(--surface-panel-1);
  color: var(--ink-primary);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: var(--text-body-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.doc-nav a:hover { background: var(--surface-panel-2); }

/* 34em lands at ~70 characters. 68ch measured ~90, because the ch unit is
   the width of the zero glyph, which is wider than an average lowercase. */
.doc { max-width: 34em; }
.doc > * + * { margin-top: 28px; }

.doc h2 {
  font-size: var(--text-heading-md);
  line-height: 1.2;
  margin-top: var(--spacing-72);
  padding-top: var(--spacing-40);
  border-top: 1px solid var(--border-subtle);
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.doc h3 { font-size: 19px; line-height: 1.3; margin-top: var(--spacing-40); }

.doc h4 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: var(--spacing-24);
}

.doc p, .doc li { color: var(--ink-muted); }

.doc ul { margin-top: var(--spacing-12); }
.doc li {
  position: relative;
  padding-left: var(--spacing-24);
  margin-top: var(--spacing-8);
}
.doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag-dot);
}

.doc__meta {
  font-size: var(--text-caption);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* Statutory all-caps blocks stay readable: smaller, looser, not shouting. */
.doc .legalese { font-size: var(--text-body-sm); line-height: 1.8; letter-spacing: 0.01em; }

.doc__contact {
  background: var(--surface-panel-1);
  border-radius: var(--radius-card);
  padding: var(--spacing-32);
  margin-top: var(--spacing-40);
}

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-56);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-32); }
}

.email-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.2rem + 0.9vw, 30px);
  line-height: 1.3;
  color: var(--ink-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-interactive);
  padding-bottom: 4px;
  transition: border-color var(--dur-base) var(--ease-out);
  overflow-wrap: anywhere;
}
.email-link:hover { border-bottom-color: var(--ink-primary); }
.email-link .btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.email-link:hover .btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer { padding-bottom: var(--spacing-56); }

.footer-panel {
  background: var(--surface-panel-2);
  border-radius: var(--radius-card);
  /* Deliberately shorter than a content panel. The footer holds a wordmark,
     a prompt and one short list; full panel padding left 147px of void. */
  padding: clamp(28px, 2.5vw + 16px, 48px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-40) var(--spacing-64);
  align-items: start;
}

/* Borrowed from the reference: the brand column carries a direct invitation
   rather than a logo stranded above empty space. */
.footer-prompt {
  margin-top: var(--spacing-24);
  font-size: var(--text-body-lg);
  line-height: 1.45;
  color: var(--ink-primary);
}

.footer-enquiry {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-top: var(--spacing-16);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--ink-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-interactive);
  padding-bottom: 3px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.footer-enquiry:hover { border-bottom-color: var(--ink-primary); }
.footer-enquiry .btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.footer-enquiry:hover .btn__arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-32); }
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: var(--spacing-16);
}

.footer-links li + li { margin-top: var(--spacing-12); }
.footer-links a {
  display: inline-block;
  font-size: var(--text-body-sm);
  color: var(--ink-primary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.footer-links a:hover { color: var(--ink-strong); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--border-interactive); }

.footer-band {
  background: var(--decor-band-bg);
  border-radius: var(--radius-card);
  height: 150px;
  margin-top: var(--spacing-12);
  overflow: hidden;
}
.footer-band svg { width: 100%; height: 100%; }
.footer-band path {
  fill: none;
  stroke: var(--decor-band-stroke);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* A single slow pass, drawing the lines in once when the band comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .footer-band path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
  }
  .js .footer-band.is-visible path {
    animation: draw 2200ms var(--ease-soft) forwards;
  }
  .js .footer-band.is-visible path:nth-child(2) { animation-delay: 160ms; }
  .js .footer-band.is-visible path:nth-child(3) { animation-delay: 320ms; }
  .js .footer-band.is-visible path:nth-child(4) { animation-delay: 480ms; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-12) var(--spacing-16);
  margin-top: var(--spacing-32);
  font-size: var(--text-caption);
  color: var(--ink-muted);
}
.footer-legal a { color: var(--ink-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink-primary); }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: var(--spacing-16); }

.disclaimer {
  font-size: var(--text-caption);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 78ch;
  margin-top: var(--spacing-32);
  padding-top: var(--spacing-24);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   16. Mobile pass
   Deliberate decisions, not fallout from the desktop layout:
     - hide    : in-page anchors in the header (the content is one scroll away)
     - tighten : section, panel and card padding; footer rhythm
     - resize  : full-width actions, smaller ring graphic, larger tap targets
   ========================================================================== */

@media (max-width: 700px) {

  /* The ring graphic is decorative; at this width it would crowd the
     headline, so it shrinks and retreats further into the corner. */
  .hero__rings {
    top: -230px;
    right: -250px;
    width: 440px;
    height: 440px;
    opacity: 0.75;
  }

  /* Actions become full-width and stack: one clear target per row. */
  .hero__actions { flex-direction: column; align-items: stretch; gap: var(--spacing-12); }
  .hero__actions .btn { width: 100%; }

  .cta-bar { padding: 22px 24px; }
  .cta-bar__label { font-size: 17px; }
  .cta-bar__arrow { font-size: 20px; }

  .section-head { margin-bottom: var(--spacing-32); }
  .site-header { padding-block: var(--spacing-24); }

  .faq__a { padding-right: 0; padding-bottom: var(--spacing-24); }
  .doc { max-width: none; }
  .doc h2 { margin-top: var(--spacing-56); padding-top: var(--spacing-32); }
  .doc h3 { margin-top: var(--spacing-32); }

  .disclaimer { margin-top: var(--spacing-24); }
}

@media (max-width: 560px) {

  /* Tinted panels break out to the screen edges. Three levels of horizontal
     padding (gutter 24 + panel 31 + card 24) were consuming 79px, 21% of a
     375px screen, and squeezing the hero lead to 31 characters. Going
     full-bleed removes one level and returns it to ~38. Block padding is
     untouched: vertical space is cheap, horizontal space is not. */
  .panel {
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
    border-radius: 0;
  }
  /* The ring graphic is clipped by the hero; it must still be clipped. */
  .hero { overflow: hidden; }

  /* Hidden on phones: the two in-page anchors. The header keeps the
     wordmark and the single primary action, so it stays one row.
     Both destinations remain reachable by scrolling and from the footer. */
  .site-nav__link { display: none; }

  .wordmark { font-size: 23px; }
  .site-nav .btn--ghost { padding: 11px 18px; font-size: var(--text-caption); }

  /* Reveal distance shortens so motion stays subtle on a small screen. */
  :root { --reveal-rise: 16px; }

  .principle__num { font-size: 34px; margin-bottom: var(--spacing-16); }
  .footer-band { height: 104px; }
  .footer-legal { flex-direction: column; gap: var(--spacing-8); }
}

/* --------------------------------------------------------------------------
   17. Motion preferences & print
   -------------------------------------------------------------------------- */

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

@media print {
  .site-header, .site-footer, .cta-bar, .hero__rings, .footer-band { display: none; }
  body { background: #fff; color: #000; }
  .panel, .card { background: #fff; padding: 0; }
  .faq__item > .faq__a { display: block !important; }
}

