/* Shared site foundation. Page-specific components are selected in src/pages.json. */
/* Site design tokens. Component-specific colours and dimensions stay local. */

:root {
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Heading roles are independent of the semantic h1–h4 outline. */
  --type-hero: clamp(54px, 4.85vw, 74px);
  --type-section: clamp(36px, 4.5vw, 64px);
  --type-card: clamp(24px, 2.15vw, 32px);
  --type-card-feature: clamp(28px, 2.5vw, 36px);
  --type-item: clamp(22px, 1.75vw, 28px);
  --type-principle: clamp(21px, 1.8vw, 28px);
  --type-outcome: clamp(17px, 1.35vw, 20px);
  --type-dialog: clamp(38px, 6vw, 54px);

  --paper: #f6f7f3;
  --paper-warm: #f1f3ee;
  --ink: #17231e;
  --ink-soft: #626b66;
  --forest: #15352a;
  --forest-hover: #214d3b;
  --line: rgba(23, 35, 30, 0.18);
  --line-strong: rgba(23, 35, 30, 0.35);
  --surface-white: #fff;
  --surface-soft: #f7f8f5;
  --surface-card: #f6f8f4;
  --type-body: clamp(15px, 1.22vw, 18px);
  --leading-body: 1.55;
  --radius-pill: 999px;
  --control-circle: 44px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-space: clamp(68px, 7.5vw, 108px);
  --section-space-small: 80px;

  --shell: 1440px;
  --measure-copy: 600px;
  --gutter: clamp(24px, 5.1vw, 78px);
  --header-height: 84px;

}

@media (min-width: 821px) and (max-width: 1120px) {
  :root {
    --type-hero: clamp(42px, 4.8vw, 54px);
  }
}

@media (max-width: 820px) {
  :root {
    --type-hero: clamp(53px, 10vw, 78px);
    --type-principle: clamp(18px, 2.5vw, 24px);
    --header-height: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --type-item: clamp(20px, 4.8vw, 24px);
  }
}

@media (max-width: 560px) {
  :root {
    --type-hero: clamp(47px, 13.2vw, 65px);
    --type-principle: 25px;
    --type-outcome: 18px;
    --gutter: 21px;
  }
}

/* Self-hosted Google Fonts. See docs/fonts.md for source versions and licenses. */

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-variable-latin-ext.34b9c504cab7a73e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-variable-latin.3100e775e8616cd2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Inter-variable-latin-ext.34b9c504cab7a73e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Inter-variable-latin.3100e775e8616cd2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Inter-variable-latin-ext.34b9c504cab7a73e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Inter-variable-latin.3100e775e8616cd2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Newsreader-variable-latin-ext.45683de03de37187.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Newsreader-variable-latin.6e4f2958c3a7c4a8.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Newsreader-variable-latin-ext.45683de03de37187.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Newsreader-variable-latin.6e4f2958c3a7c4a8.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Browser defaults and inherited site appearance. */

:root {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

h1,
h2,
p {
  margin-top: 0;
}

/* Visual roles are independent of semantic heading levels. */

.section-intro {
  max-width: var(--measure-copy);
}

.prose {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.prose a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.eyebrow {
  margin: 0 0 23px;
  color: #65706a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.card-title,
.item-title,
.principle-title,
.outcome-title,
.dialog-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-title {
  max-width: 820px;
  font-size: var(--type-hero);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-title {
  font-size: var(--type-section);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.card-title {
  font-size: var(--type-card);
  line-height: 1.08;
}

.card-title--feature {
  font-size: var(--type-card-feature);
}

.item-title {
  font-size: var(--type-item);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.principle-title {
  font-size: var(--type-principle);
  letter-spacing: -0.035em;
}

.outcome-title {
  font-size: var(--type-outcome);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.dialog-title {
  font-size: var(--type-dialog);
  letter-spacing: -0.045em;
  line-height: 1;
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 19px;
    font-size: 8px;
  }
}

/* Composable layout primitives. */

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.section-split > * {
  min-width: 0;
}

.page-header {
  max-width: 900px;
  margin-bottom: var(--space-7);
}

.flow > * {
  margin-block: 0;
}

.flow > * + * {
  margin-top: var(--flow-space, var(--space-5));
}

@media (max-width: 820px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: var(--section-space-small);
  }
}

/* Shared controls. Variants change presentation; data attributes bind behaviour. */

.animated-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.animated-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.animated-link:hover::after,
.animated-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: var(--button-height, 52px);
  padding: var(--button-padding, 0 25px 1px 28px);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--button-background, var(--forest));
  color: var(--button-color, #fff);
  font-size: var(--button-font-size, 12px);
  font-weight: var(--button-weight, 500);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover:not(:disabled) {
  background: var(--button-hover, var(--forest-hover));
  transform: translateY(-1px);
}

.button--primary {
  --button-background: var(--forest);
  --button-color: #fff;
  --button-hover: var(--forest-hover);
}

.button--light {
  --button-background: var(--surface-card);
  --button-color: var(--forest);
  --button-hover: #fff;
}

.button:disabled,
.text-action:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 36px;
}

.action-group > .button {
  --button-weight: 600;
  flex-shrink: 0;
}

.action-group__secondary {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.action-group__secondary > * {
  flex-shrink: 0;
}

.action-group__secondary .animated-link {
  padding-block: 7px;
}

.action-group[data-stacked="true"] > .button {
  width: 100%;
}

.action-group[data-stacked="true"] .action-group__secondary {
  flex-basis: 100%;
  justify-content: center;
}

.action-group[data-stacked="true"] .action-group__play {
  order: -1;
}

.arrow {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.play-button,
.play-icon {
  display: grid;
  flex-shrink: 0;
  width: var(--control-circle);
  height: var(--control-circle);
  margin: 0;
  place-items: center;
  border: 1px solid var(--play-border, var(--line-strong));
  border-radius: 50%;
  background: transparent;
}

.play-button {
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.64);
  transform: scale(1.04);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

@media (max-width: 560px) {
  .button--mobile-block,
  .action-group > .button {
    width: 100%;
  }

  .action-group__secondary {
    flex-basis: 100%;
    justify-content: center;
    gap: 16px;
  }

  .action-group__play {
    order: -1;
  }
}

/* The lettering is outlined in SVG; font size only controls its display scale. */

.brand-wordmark {
  display: block;
  flex: none;
  width: 4.2172em;
  height: auto;
}

/* components/header — shared rules with component-local responsive adjustments. */

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: clamp(25px, 2.05vw, 31px);
}

.brand__symbol {
  display: block;
  width: clamp(24px, 1.87vw, 29px);
  height: auto;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.main-nav .animated-link {
  padding-bottom: 6px;
  font-size: 11px;
}

.button--header {
  --button-height: 42px;
  --button-padding: 0 18px 1px 21px;
  --button-font-size: 11px;
  justify-self: end;
  min-width: 128px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    gap: 24px;
  }
}

@media (max-width: 820px) {
  body:has(.main-nav[data-open="true"]) {
    overflow: hidden;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 180ms ease, border-color 180ms ease;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    border-color: rgba(23, 35, 30, 0.35);
    background: var(--paper-warm);
  }

  .menu-toggle__icon {
    display: grid;
    gap: 6px;
    width: 20px;
  }

  .menu-toggle__icon span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 10;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: clamp(32px, 6vw, 56px) var(--gutter);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    font-family: var(--font-display);
    line-height: 1;
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .main-nav .animated-link {
    width: min(100%, 640px);
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(21.6px, 3.92vw, 31.2px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.08;
  }

  .main-nav .animated-link:first-child {
    border-top: 1px solid var(--line);
  }

  .main-nav .animated-link::after {
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: #65706a;
    content: "→";
    font-family: var(--font-sans);
    font-size: 24px;
    transform: none;
    transition: transform 180ms ease;
  }

  .main-nav .animated-link:hover::after,
  .main-nav .animated-link:focus-visible::after {
    transform: translateX(4px);
  }

  .site-header:has(.main-nav[data-open="true"]) {
    background: var(--paper);
  }

  .main-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .brand,
  .menu-toggle,
  .button--header {
    position: relative;
    z-index: 11;
  }

  .button--header {
    --button-height: 40px;
    min-width: 112px;
    padding-inline: 16px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 25px;
  }

  .brand__symbol {
    width: 24px;
  }

  .menu-toggle__label {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .menu-toggle {
    width: 44px;
    padding: 0;
  }

  .button--header {
    min-width: auto;
    padding-inline: 15px;
  }

  .button--header .arrow {
    display: none;
  }
}

/* components/footer — shared rules with component-local responsive adjustments. */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(300px, 20.5vw, 340px);
  background-color: #0d281f;
  background-image:
    linear-gradient(rgba(9, 34, 26, 0.1), rgba(9, 34, 26, 0.1)),
    url("assets/footer.b0d3a24076e2b7ed.png");
  background-position: center 47%;
  background-size: cover;
  color: #f6f8f4;
}

.site-footer {
  background-image:
    linear-gradient(rgba(9, 34, 26, 0.1), rgba(9, 34, 26, 0.1)),
    image-set(
      url("assets/footer.876d2c2080513b17.avif") type("image/avif"),
      url("assets/footer.b5918f50d70f6be9.webp") type("image/webp"),
      url("assets/footer.b0d3a24076e2b7ed.png") type("image/png")
    );
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(300px, 20.5vw, 340px);
  padding-block: clamp(48px, 4.5vw, 64px);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 1em;
  font-size: 24px;
}

.site-footer__main {
  margin-top: 19px;
}

.site-footer__title {
  max-width: 690px;
}

.site-footer__cta {
  padding-top: 2px;
}

.site-footer__cta p {
  margin: 0;
  color: rgba(246, 248, 244, 0.84);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: var(--leading-body);
}

.site-footer__button {
  --button-height: 44px;
  --button-padding: 0 20px 1px 26px;
  --button-background: #f5f6f3;
  --button-color: var(--ink);
  --button-hover: #fff;
  min-width: 152px;
  justify-content: space-between;
  margin-top: 19px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 32px;
}

.site-footer__mantra {
  margin: 0;
  color: rgba(246, 248, 244, 0.86);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.site-footer__mantra span {
  padding-inline: 8px;
  color: rgba(246, 248, 244, 0.55);
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.site-footer__nav .animated-link {
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 400;
}

.site-footer__social {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #f6f8f4;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-footer__social:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 820px) {
  .site-footer,
  .site-footer__inner {
    min-height: 0;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .site-footer,
  .site-footer__inner {
    min-height: 0;
  }

  .site-footer {
    background-position: 54% center;
  }

  .site-footer__inner {
    padding-block: var(--section-space-small);
  }

  .site-footer__brand {
    font-size: 25px;
  }

  .site-footer__main {
    margin-top: 38px;
  }

  .site-footer__cta p {
    font-size: 15px;
  }

  .site-footer__button {
    margin-top: 20px;
  }

  .site-footer__bottom {
    gap: 23px;
    margin-top: 38px;
  }

  .site-footer__mantra {
    max-width: 280px;
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .site-footer__mantra span {
    padding-inline: 5px;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 16px 23px;
  }

  .site-footer__nav .animated-link {
    font-size: 10px;
  }
}

/* components/dialog — shared rules with component-local responsive adjustments. */

.site-dialog {
  width: min(560px, calc(100% - 40px));
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(20, 40, 30, 0.22);
}

.site-dialog::backdrop {
  background: rgba(15, 31, 24, 0.35);
  backdrop-filter: blur(4px);
}

.site-dialog__inner {
  position: relative;
  padding: clamp(32px, 7vw, 64px);
}

.site-dialog__title {
  max-width: 360px;
  margin-bottom: 18px;
}

.film-dialog p:last-child {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
}

.site-dialog__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

/* Both choices intentionally share the same size, colour and emphasis. */
.analytics-consent[hidden], .site-footer__privacy [hidden], .analytics-consent [hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 100;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
  max-height: 85dvh;
  overflow-y: auto;
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -8px 32px rgb(23 35 30 / 8%);
  font-family: var(--font-sans);
}
.analytics-consent h2 { margin: 0 0 8px; font: 400 28px/1.15 var(--font-display); }
.analytics-consent p { margin: 0; max-width: 85ch; font-size: 14px; line-height: 1.6; }
.analytics-consent a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent__status:not(:empty) { margin-top: 8px; font-weight: 600; }
.analytics-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analytics-consent__actions .button { min-height: 48px; font-size: 14px; padding: 12px 20px; white-space: normal; }
.analytics-consent__actions .button:disabled { background: var(--ink-soft); }
.analytics-consent__close { grid-column: 1 / -1; justify-self: center; }
.analytics-consent__close, .site-footer__privacy button {
  border: 0; padding: 10px 0; background: transparent; color: inherit;
  font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.site-footer__privacy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 13px; }
.site-footer__privacy a { padding-block: 10px; text-decoration: underline; text-underline-offset: 4px; }
.analytics-consent :focus-visible, .site-footer__privacy :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 1000px) {
  .analytics-consent { grid-template-columns: 1fr; gap: 16px; }
  .analytics-consent__actions { width: min(100%, 460px); }
}
@media (max-width: 380px) {
  .analytics-consent__actions { grid-template-columns: 1fr; }
}

/* utilities — shared rules with component-local responsive adjustments. */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


