/* ==========================================================================
   Referral landing page · site.css
   Art direction: "Horizon". Long, calm, horizontal. Every block sits on a
   hairline like a horizon, photographs are cropped panoramic, and the one
   number that matters (the reward distance) is the only copper on the page.
   Day at the top, night at the end.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Type families */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale (fluid between 360 and 1440 px) */
  --fs-label: 0.75rem;                                   /* 12  eyebrows      */
  --fs-small: 0.875rem;                                  /* 14  meta, labels  */
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);    /* 16 → 17           */
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); /* 17 → 20           */
  --fs-h3: clamp(1.125rem, 1.04rem + 0.36vw, 1.3125rem); /* 18 → 21           */
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);     /* 26 → 40           */
  --fs-h1: clamp(1.875rem, 1.3rem + 2.45vw, 3.5rem);     /* 30 → 56           */
  --fs-numeral: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); /* 28 → 44  steps    */

  --lh-display: 1.04;
  --lh-heading: 1.12;
  --lh-body: 1.6;
  --tracking-display: -0.024em;
  --tracking-heading: -0.018em;
  --tracking-label: 0.1em;
  --wght-display: 620;
  --wght-body: 400;

  /* Spacing, 8 px rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-space: clamp(4rem, 2.5rem + 5.5vw, 7.5rem);

  /* Grid: 12 columns, capped content width, fluid margin and gutter */
  --max: 82.5rem;
  --margin: clamp(1rem, 4vw, 4rem);
  --gutter: clamp(1rem, 0.6rem + 1.1vw, 1.5rem);
  --layout-columns:
    [full-start] minmax(calc(var(--margin) - var(--gutter)), 1fr)
    [content-start] repeat(12, [col] minmax(0, calc((var(--max) - 11 * var(--gutter)) / 12)))
    [content-end] minmax(calc(var(--margin) - var(--gutter)), 1fr) [full-end];
  --header-h: 3.5rem;

  /* Shape and motion */
  --radius: 2px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 300ms;
  --dur-slow: 700ms;

  /* Colour · light (day) */
  --color-bg: #f3f1ec;
  --color-surface: #faf9f6;
  --color-ink: #16181b;
  --color-ink-2: #4a4e55;
  --color-ink-3: #63676e;
  --color-line: rgb(22 24 27 / 0.13);
  --color-line-strong: rgb(22 24 27 / 0.3);
  --color-accent: #9a4a22;
  --color-cta: #16181b;
  --color-cta-hover: #2d3035;
  --color-cta-active: #000000;
  --color-on-cta: #f3f1ec;
  --color-field: #faf9f6;
  --color-field-border: rgb(22 24 27 / 0.5);
  --color-hover: rgb(22 24 27 / 0.05);
  --color-selection: #e9cfba;
  --color-selection-ink: #16181b;
  --color-photo: #c8cacc;
  --photo-filter: none;

  /* Colour · night (closing block and footer, in both themes) */
  --night-bg: #0d0e10;
  --night-surface: #17181b;
  --night-ink: #eeebe5;
  --night-ink-2: #b4b2ad;
  --night-ink-3: #8f8e8a;
  --night-line: rgb(238 235 229 / 0.13);
  --night-line-strong: rgb(238 235 229 / 0.3);
  --night-accent: #d9946a;

  color-scheme: light;
}

/* Colour · dark. Not an inversion: warm graphite instead of black, lighter
   copper, slightly lighter type weights against irradiation, dimmed photos. */
:root[data-theme="dark"] {
  --color-bg: #111214;
  --color-surface: #18191c;
  --color-ink: #ebe8e2;
  --color-ink-2: #b3b2ae;
  --color-ink-3: #92918e;
  --color-line: rgb(235 232 226 / 0.12);
  --color-line-strong: rgb(235 232 226 / 0.28);
  --color-accent: #d68c5f;
  --color-cta: #ebe8e2;
  --color-cta-hover: #ffffff;
  --color-cta-active: #d3d0ca;
  --color-on-cta: #111214;
  --color-field: #18191c;
  --color-field-border: rgb(235 232 226 / 0.42);
  --color-hover: rgb(235 232 226 / 0.06);
  --color-selection: #6a432b;
  --color-selection-ink: #f6f2ec;
  --color-photo: #24262a;
  --photo-filter: brightness(0.86) saturate(0.9);
  --wght-display: 580;
  --wght-body: 380;
  --night-bg: #08090a;
  --night-surface: #131416;
  color-scheme: dark;
}

/* Same dark tokens when JavaScript never ran (no data-theme attribute). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111214;
    --color-surface: #18191c;
    --color-ink: #ebe8e2;
    --color-ink-2: #b3b2ae;
    --color-ink-3: #92918e;
    --color-line: rgb(235 232 226 / 0.12);
    --color-line-strong: rgb(235 232 226 / 0.28);
    --color-accent: #d68c5f;
    --color-cta: #ebe8e2;
    --color-cta-hover: #ffffff;
    --color-cta-active: #d3d0ca;
    --color-on-cta: #111214;
    --color-field: #18191c;
  --color-field-border: rgb(235 232 226 / 0.42);
    --color-hover: rgb(235 232 226 / 0.06);
    --color-selection: #6a432b;
    --color-selection-ink: #f6f2ec;
    --color-photo: #24262a;
    --photo-filter: brightness(0.86) saturate(0.9);
    --wght-display: 580;
    --wght-body: 380;
    --night-bg: #08090a;
    --night-surface: #131416;
    color-scheme: dark;
  }
}

/* Night scope: re-points the colour tokens, so every component inside
   (buttons, copy field, links) adapts without extra rules. */
.is-night {
  --color-bg: var(--night-bg);
  --color-surface: var(--night-surface);
  --color-ink: var(--night-ink);
  --color-ink-2: var(--night-ink-2);
  --color-ink-3: var(--night-ink-3);
  --color-line: var(--night-line);
  --color-line-strong: var(--night-line-strong);
  --color-accent: var(--night-accent);
  --color-cta: var(--night-ink);
  --color-cta-hover: #ffffff;
  --color-cta-active: #d3d0ca;
  --color-on-cta: var(--night-bg);
  --color-field: var(--night-surface);
  --color-field-border: rgb(238 235 229 / 0.42);
  --color-hover: rgb(238 235 229 / 0.07);
  --color-selection: #6a432b;
  --color-selection-ink: #f6f2ec;
  --color-photo: #0d0e10;
  color-scheme: dark;
  background: var(--color-bg);
  color: var(--color-ink);
}

@media (min-width: 64em) {
  :root { --header-h: 4rem; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--color-bg);
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: var(--wght-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  hyphens: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

::selection {
  background: var(--color-selection);
  color: var(--color-selection-ink);
}

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

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 50;
  padding: var(--space-3) var(--space-4);
  background: var(--color-cta);
  color: var(--color-on-cta);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: var(--layout-columns);
  column-gap: var(--gutter);
}
.layout > * { grid-column: content; }

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

/* --------------------------------------------------------------------------
   4. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--color-ink-3);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
  text-wrap: balance;
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-stretch: 104%;
  font-weight: var(--wght-display);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

.section__intro {
  margin-top: var(--space-4);
  max-width: 40ch;
  color: var(--color-ink-2);
}

/* Short headings and labels: balanced lines, no orphaned last word. */
.step__title,
.faq__question-text,
.terms__term { text-wrap: balance; }

/* Running text: no single-word last lines. Never hyphenated (see body). */
.hero__lead,
.section__intro,
.step__text,
.terms__detail,
.faq__answer,
.final__lead,
.site-footer__disclaimer { text-wrap: pretty; }

/* The reward distance: the only copper text on the page. */
.figure {
  color: var(--color-accent);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-cta);
  color: var(--color-on-cta);
  font-family: var(--font-display);
  font-size: 1rem;
  font-stretch: 104%;
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out);
}

.button--primary {
  width: 100%;
  min-height: 3.5rem;
  padding: var(--space-3) var(--space-5);
}

.button--compact {
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

.button__arrow {
  flex: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) {
  .button:hover { background: var(--color-cta-hover); }
  .button:hover .button__arrow { transform: translateX(3px); }
}

.button:active {
  background: var(--color-cta-active);
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   6. Header, navigation, language selector, theme toggle
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: var(--color-bg);
  transition: border-color var(--dur-base) ease;
}
.site-header.is-stuck { border-bottom-color: var(--color-line); }

.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-width: calc(var(--max) + 2 * var(--margin));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.brand {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-stretch: 110%;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  gap: var(--space-6);
}

.site-nav__link {
  color: var(--color-ink-2);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}

@media (hover: hover) {
  .site-nav__link:hover {
    color: var(--color-ink);
    text-decoration-color: var(--color-accent);
  }
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-header__cta { display: none; }

@media (min-width: 64em) {
  .site-nav { display: block; }
  .site-header__cta {
    display: inline-flex;
    margin-right: var(--space-3);
  }
}

.lang { position: relative; }

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding-inline: 0.625rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang__toggle::-webkit-details-marker { display: none; }

.lang__chevron { transition: transform var(--dur-base) var(--ease-out); }
.lang[open] .lang__chevron { transform: rotate(180deg); }

.lang__list {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 30;
  min-width: 12.5rem;
  padding: 0.375rem;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  box-shadow: 0 1rem 2rem -1.25rem rgb(0 0 0 / 0.35);
}

.lang__option {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang__option[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--color-accent);
  color: var(--color-ink);
  font-weight: 600;
}

.lang__code {
  width: 1.5rem;
  color: var(--color-ink-3);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle {
  display: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.js .theme-toggle { display: inline-grid; }

.theme-toggle__icon { transition: transform var(--dur-base) var(--ease-out); }
:root[data-theme="dark"] .theme-toggle__icon { transform: rotate(180deg); }

@media (hover: hover) {
  .lang__toggle:hover,
  .theme-toggle:hover,
  .lang__option:hover { background: var(--color-hover); color: var(--color-ink); }
}

/* --------------------------------------------------------------------------
   7. Hero (day)
   Phones/tablets: photograph band, then text and action.
   Desktop: text and action on the page colour, panoramic photograph below,
   together filling the first screen.
   -------------------------------------------------------------------------- */
.hero { display: grid; }

.hero__media {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--color-photo);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  filter: var(--photo-filter);
}

.hero__body {
  row-gap: var(--space-5);
  padding-block: var(--space-5) var(--space-7);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-stretch: 100%;
  font-weight: var(--wght-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}

.hero__lead {
  max-width: 38ch;
  margin-top: var(--space-4);
  color: var(--color-ink-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__action { max-width: 30rem; }

.hero__note {
  margin-top: var(--space-4);
  color: var(--color-ink-3);
  font-size: var(--fs-small);
}

@media (min-width: 30em) {
  .hero__media { aspect-ratio: 16 / 9; }
}

@media (min-width: 48em) {
  .hero__title { font-stretch: 106%; }
  .hero__body { padding-block: var(--space-7) var(--space-8); }
}

@media (min-width: 64em) {
  .hero {
    grid-template-rows: auto minmax(16rem, 1fr);
    min-height: min(calc(100svh - var(--header-h)), 62rem);
  }

  .hero__body {
    grid-row: 1;
    align-items: end;
    padding-block: clamp(2.5rem, 1rem + 4vh, 4.5rem) clamp(2rem, 0.5rem + 3.5vh, 3.5rem);
  }

  .hero__media {
    grid-row: 2;
    aspect-ratio: auto;
  }

  .hero__image {
    position: absolute;
    inset: 0;
    object-position: 50% 52%;
  }

  .hero__title { font-stretch: 108%; }
  .hero__text { grid-column: col 1 / span 7; }
  .hero__action {
    grid-column: col 8 / content-end;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   8. Copy field
   -------------------------------------------------------------------------- */
.copy { margin-top: var(--space-4); }

.copy__label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-ink-2);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.copy__field {
  display: flex;
  align-items: stretch;
  min-height: 3.25rem;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  background: var(--color-field);
  transition: border-color var(--dur-base) ease;
}

.copy__input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-4);
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
}

@supports selector(:has(*)) {
  .copy__input:focus-visible { outline: none; }
  .copy__field:has(.copy__input:focus-visible) {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }
}

/* Hidden without JavaScript: the readonly input stays selectable by hand. */
.copy__button {
  display: none;
  flex: none;
  grid-template-columns: 1rem auto;
  align-items: center;
  column-gap: var(--space-2);
  padding: 0 var(--space-4);
  border: 0;
  border-left: 1px solid var(--color-line-strong);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-stretch: 104%;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-base) ease;
}
.js .copy__button { display: inline-grid; }

@media (hover: hover) {
  .copy__button:hover { background: var(--color-hover); }
}
.copy__button:active { background: var(--color-hover); }

/* Icons share one cell and both labels share another, so the button keeps
   the width of its longest state and never shifts the layout. */
.copy__icon { grid-area: 1 / 1; }
.copy__labels {
  display: grid;
  grid-area: 1 / 2;
}
.copy__text { grid-area: 1 / 1; }
.copy__text--done,
.copy__icon--done { visibility: hidden; }

.copy.is-copied .copy__field,
.copy.is-copied .copy__button { border-color: var(--color-accent); }
.copy.is-copied .copy__text--idle,
.copy.is-copied .copy__icon--copy { visibility: hidden; }
.copy.is-copied .copy__text--done,
.copy.is-copied .copy__icon--done { visibility: visible; }
.copy.is-copied .copy__icon--done { color: var(--color-accent); }

/* Announced to screen readers; shown only when the user has to copy by hand. */
.copy__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.copy.is-manual .copy__status {
  position: static;
  width: auto;
  height: auto;
  margin-top: var(--space-2);
  overflow: visible;
  clip-path: none;
  color: var(--color-ink-2);
  font-size: var(--fs-small);
  white-space: normal;
}

/* --------------------------------------------------------------------------
   9. Section head + steps
   -------------------------------------------------------------------------- */
.section__head {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-strong);
}

.steps { margin-top: var(--space-7); }

.step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  padding-block: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-line);
}
.step:first-child { border-top-color: var(--color-line-strong); }
.step:last-child { border-bottom: 1px solid var(--color-line); }

.step__number {
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--color-ink-3);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-stretch: 112%;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-stretch: 104%;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.step__text {
  grid-column: 2;
  max-width: 46ch;
  color: var(--color-ink-2);
}

@media (min-width: 64em) {
  .section__head {
    grid-column: col 1 / span 4;
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    align-self: start;
  }

  .steps {
    grid-column: col 6 / content-end;
    margin-top: 0;
  }

  .step {
    grid-template-columns: 5.5rem minmax(0, 15rem) minmax(0, 1fr);
    column-gap: var(--gutter);
    padding-block: var(--space-6) var(--space-7);
  }

  .step__number { grid-row: auto; }
  .step__text { grid-column: 3; }
}

/* --------------------------------------------------------------------------
   10. Terms split
   -------------------------------------------------------------------------- */
.split { display: grid; }

.split__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-photo);
}

.split__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
  filter: var(--photo-filter);
}

.split__body {
  padding: var(--space-7) var(--margin) 0;
}

.terms {
  margin-top: var(--space-6);
  border-top: 1px solid var(--color-line-strong);
}

.terms__row {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.terms__term {
  color: var(--color-ink-3);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.5;
}

.terms__detail { text-wrap: pretty; }
.terms__detail .figure { font-weight: 600; }

@media (min-width: 40em) {
  .terms__row {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    align-items: baseline;
    column-gap: var(--gutter);
  }
}

@media (min-width: 64em) {
  .split {
    grid-template-columns: var(--layout-columns);
    column-gap: var(--gutter);
  }

  .split__media {
    grid-column: full-start / col 7;
    aspect-ratio: auto;
    min-height: 34rem;
  }

  .split__image {
    position: absolute;
    inset: 0;
  }

  .split__body {
    grid-column: col 8 / content-end;
    align-self: center;
    padding: 0;
  }
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  margin-top: var(--space-7);
  border-top: 1px solid var(--color-line-strong);
}

.faq__item { border-bottom: 1px solid var(--color-line); }

.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-stretch: 102%;
  font-weight: 560;
  letter-spacing: -0.008em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__question::-webkit-details-marker { display: none; }


/* Plus drawn from two hairlines; rotates into an x when open. */
.faq__icon {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.36em;
  color: var(--color-ink-2);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }

.faq__item[open] .faq__icon {
  color: var(--color-ink);
  transform: rotate(45deg);
}

@media (hover: hover) {
  .faq__question:hover .faq__icon { color: var(--color-ink); }
}

.faq__answer {
  max-width: 40rem;
  padding-bottom: var(--space-6);
  color: var(--color-ink-2);
}

@media (min-width: 48em) {
  /* keep the answer inside the question's text column, clear of the icon */
  .faq__answer { padding-right: calc(0.875rem + var(--space-5)); }
}

/* Progressive enhancement: animate the panel height where supported. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--dur-base) var(--ease-out),
      content-visibility var(--dur-base) allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}

@media (min-width: 64em) {
  .faq {
    grid-column: col 6 / content-end;
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Closing call to action (night)
   -------------------------------------------------------------------------- */
.final__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-photo);
}

.final__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

.final__body {
  row-gap: var(--space-6);
  padding-block: var(--space-7) var(--space-8);
}

.final__title {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-stretch: 104%;
  font-weight: var(--wght-display);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

.final__lead {
  max-width: 44ch;
  margin-top: var(--space-4);
  color: var(--color-ink-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.final__action { max-width: 30rem; }

@media (min-width: 64em) {
  .final__media {
    aspect-ratio: auto;
    height: clamp(18rem, 32vw, 32rem);
  }

  .final__image { object-position: 50% 52%; }

  .final__body {
    align-items: end;
    padding-block: var(--space-8) var(--section-space);
  }

  .final__text { grid-column: col 1 / span 7; }
  .final__action {
    grid-column: col 8 / content-end;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   13. Footer (night)
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-7) var(--space-5);
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-2);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.site-footer__inner { row-gap: var(--space-5); }

.site-footer__brand {
  margin-bottom: var(--space-1);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-stretch: 110%;
  font-weight: 600;
}

.site-footer__disclaimer { max-width: 72ch; }

/* Bottom bar: photo credits left, language versions inline on the right. */
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.site-footer__credits { color: var(--color-ink-3); }

.site-footer__langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer__langs a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.35em;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}
.site-footer__langs a[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
}

@media (hover: hover) {
  .site-footer__langs a:hover {
    color: var(--color-ink);
    text-decoration-color: var(--color-accent);
  }
}

@media (max-width: 47.99em) {
  .site-footer__langs { order: -1; }
  .site-footer__langs ul { column-gap: var(--space-4); }
}

@media (min-width: 64em) {
  .site-footer__meta { grid-column: col 1 / span 4; }
  .site-footer__disclaimer { grid-column: col 6 / content-end; }
  .site-footer__bar { grid-column: content; }
}

/* --------------------------------------------------------------------------
   14. Language suggestion bar (x-default page, injected by site.js)
   Fixed to the bottom edge so it never shifts the layout.
   -------------------------------------------------------------------------- */
.lang-suggest {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-top: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--fs-small);
  line-height: 1.45;
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
}
.lang-suggest.is-visible { transform: none; }

.lang-suggest__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  max-width: calc(var(--max) + 2 * var(--margin));
  margin-inline: auto;
  padding: var(--space-3) calc(var(--margin) + 2.75rem) max(var(--space-3), env(safe-area-inset-bottom)) var(--margin);
  position: relative;
}

.lang-suggest__text { color: var(--color-ink-2); }

.lang-suggest__action {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.lang-suggest__action::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.3em;
}

.lang-suggest__close {
  position: absolute;
  top: 50%;
  right: calc(var(--margin) - 0.75rem);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-ink-2);
  cursor: pointer;
  transform: translateY(-50%);
}
.lang-suggest__close::before,
.lang-suggest__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.875rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lang-suggest__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (hover: hover) {
  .lang-suggest__close:hover { background: var(--color-hover); color: var(--color-ink); }
  .lang-suggest__action:hover { text-decoration-color: var(--color-accent); }
}

/* --------------------------------------------------------------------------
   15. Motion: scroll reveal, theme change
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-pending {
  opacity: 0;
  transform: translateY(0.875rem);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-base);
  animation-timing-function: ease;
}

.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition:
    background-color var(--dur-base) ease,
    color var(--dur-base) ease,
    border-color var(--dur-base) ease,
    fill var(--dur-base) ease,
    filter var(--dur-base) ease !important;
}

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

@media print {
  .lang-suggest,
  .site-header,
  .copy,
  .final__media { display: none; }
  .js [data-reveal].is-pending { opacity: 1; transform: none; }
}
