/* Astrum Rescue prototype, base layer. Colours only from tokens.css, translucency
   via color-mix(); every animation and non-hover transition sits behind .ar-motion. */

/* 1. Fonts: weight, display and unicode-range copied from the theme's theme.json */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/display-400-latin.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;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/display-400-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/display-700-latin.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;
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/display-700-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-400700-latin.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;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-400700-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Surface roles. Components colour themselves through these, so one switch
      on .ar-section--paper turns every label, line and bracket dark. */

:root {
  --ar-fg: var(--wp--custom--color--text-inverse);
  --ar-fg-soft: var(--wp--preset--color--mist);
  --ar-fg-muted: var(--wp--preset--color--silver);
  --ar-line: var(--ar-hairline);
  --ar-line-strong: var(--wp--custom--color--border-inv);
  --ar-bracket: color-mix(in srgb, var(--wp--custom--color--text-inverse) 45%, transparent);
  --ar-hover: var(--wp--custom--duration--base) var(--wp--custom--easing--standard); /* hover colour timing */
  /* Overlay layers, shared by .ar-scanlines and .ar-grain. Alpha is baked in. */
  --ar-scan: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--wp--custom--color--text-inverse) 4%, transparent) 0 1px, transparent 1px 3px);
  --ar-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

/* 3. Reset */

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

html {
  color-scheme: dark;
  scroll-padding-top: var(--wp--custom--header--height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.ar-motion {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--custom--color--text-inverse);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--large);
  line-height: var(--wp--custom--leading--relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
  margin: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--ar-fg);
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  line-height: var(--wp--custom--leading--snug);
  text-wrap: balance;
  overflow-wrap: break-word;
}

:where(h3) {
  font-size: var(--wp--preset--font-size--heading-s);
}

:where(img, svg, video, canvas) {
  display: block;
  max-width: 100%;
}

:where(img, video) {
  height: auto;
}

:where(input, button, select, textarea) {
  font: inherit;
  color: inherit;
}

:where(button) {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

:where(a) {
  color: inherit;
  text-underline-offset: 0.2em;
}

:where(strong, b) {
  color: var(--ar-fg);
  font-weight: 600;
}

/* Author display rules must never beat the hidden attribute (tab panels). */
[hidden] {
  display: none !important;
}

/* 4. Focus, skip link, visually hidden */

:focus-visible {
  outline: 3px solid var(--wp--preset--color--astrum-blue);
  outline-offset: 3px;
}

/* astrum-blue measures 2.4:1 on paper, under the 3:1 a focus ring needs;
   its own darker step carries it there (5.4:1). */
.ar-section--paper :focus-visible {
  outline-color: var(--wp--custom--color--blue-800);
}

.ar-skip-link {
  position: fixed;
  z-index: calc(var(--wp--custom--header--z) + 1);
  top: var(--wp--preset--spacing--30);
  left: var(--wp--preset--spacing--30);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: var(--wp--custom--corner--pill);
  background-color: var(--wp--custom--color--text-inverse);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  letter-spacing: var(--wp--custom--tracking--wide);
  text-decoration: none;
  text-transform: uppercase;
}

.ar-skip-link:not(:focus) {
  transform: translateY(-300%);
}

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

/* 5. Layout */

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

.ar-container--wide {
  max-width: var(--ar-container-wide);
}

.ar-section {
  position: relative;
  overflow: clip;
  padding-block: var(--ar-section-pad);
}

.ar-section--ink {
  background-color: var(--wp--preset--color--ink);
}

.ar-section--carbon {
  background-color: var(--wp--preset--color--carbon);
}

.ar-section--paper {
  --ar-fg: var(--wp--preset--color--ink);
  --ar-fg-soft: var(--wp--preset--color--graphite);
  --ar-fg-muted: var(--wp--preset--color--iron);
  --ar-line: color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
  --ar-line-strong: color-mix(in srgb, var(--wp--preset--color--ink) 24%, transparent);
  --ar-bracket: color-mix(in srgb, var(--wp--preset--color--ink) 45%, transparent);
  background-color: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--iron);
  color-scheme: light;
}

/* 6. Type */

.ar-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  color: var(--ar-fg-muted);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: var(--wp--custom--tracking--wider);
  text-transform: uppercase;
}

.ar-eyebrow::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  background-color: currentColor;
}

.ar-h2 {
  margin-block: 0.5em 0.6em;
  color: var(--ar-fg);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--display);
  font-weight: 700;
  line-height: var(--wp--custom--leading--tight);
  letter-spacing: var(--wp--custom--tracking--tight);
  text-wrap: balance;
}

.ar-lead {
  max-width: 60ch;
  color: var(--ar-fg-soft);
  font-size: var(--wp--preset--font-size--x-large);
  line-height: var(--wp--custom--leading--normal);
  text-wrap: pretty;
}

.ar-body {
  max-width: 65ch;
  color: var(--ar-fg-muted);
  font-size: var(--wp--preset--font-size--large);
  text-wrap: pretty;
}

:is(.ar-lead, .ar-body) + :is(.ar-lead, .ar-body) {
  margin-block-start: 1em;
}

.ar-caption {
  color: var(--ar-fg-muted);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-small);
  line-height: var(--wp--custom--leading--normal);
  letter-spacing: var(--wp--custom--tracking--wide);
  text-transform: uppercase;
}

/* 7. Buttons */

.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--wp--custom--corner--pill);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--wp--custom--tracking--wide);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--ar-hover),
    border-color var(--ar-hover),
    color var(--ar-hover);
}

.ar-btn--primary {
  background-color: var(--wp--preset--color--chartreuse);
  color: var(--wp--preset--color--ink);
}

.ar-btn--primary:hover {
  background-color: var(--wp--custom--color--chartreuse-600);
}

.ar-btn--primary:active {
  background-color: var(--wp--custom--color--chartreuse-700);
}

.ar-btn--ghost {
  border-color: var(--ar-line-strong);
  background-color: transparent;
  color: var(--ar-fg);
}

.ar-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--ar-fg) 40%, transparent);
  background-color: color-mix(in srgb, var(--wp--preset--color--white) 6%, transparent);
}

.ar-section--paper .ar-btn--ghost:hover {
  background-color: color-mix(in srgb, var(--wp--preset--color--ink) 6%, transparent);
}

.ar-btn--sm {
  padding: 0.55rem 1.15rem;
  font-size: var(--wp--preset--font-size--x-small);
}

/* 8. HUD kit */

/* Readout: a label over a value, hung from a hairline whose first 1.5 rem is lit. */
.ar-readout {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-block-start: 0.85rem;
  background-image:
    linear-gradient(var(--ar-fg-muted), var(--ar-fg-muted)),
    linear-gradient(var(--ar-line), var(--ar-line));
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 1.5rem 1px, 100% 1px;
}

.ar-readout__label {
  margin: 0;
  color: var(--ar-fg-muted);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: var(--wp--custom--tracking--wider);
  text-transform: uppercase;
}

.ar-readout__value {
  margin: 0;
  color: var(--ar-fg);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--heading-m);
  font-weight: 700;
  line-height: var(--wp--custom--leading--tight);
  font-variant-numeric: tabular-nums;
}

/* Overlays need a positioned host; :where() keeps that overridable. */
:where(.ar-hud-frame, .ar-scanlines, .ar-grain) {
  position: relative;
}

/* Four 14 px corner brackets. */
.ar-hud-frame::before {
  --ar-bracket-fill: linear-gradient(var(--ar-bracket), var(--ar-bracket));
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    var(--ar-bracket-fill) left top / 14px 1px, var(--ar-bracket-fill) left top / 1px 14px,
    var(--ar-bracket-fill) right top / 14px 1px, var(--ar-bracket-fill) right top / 1px 14px,
    var(--ar-bracket-fill) left bottom / 14px 1px, var(--ar-bracket-fill) left bottom / 1px 14px,
    var(--ar-bracket-fill) right bottom / 14px 1px, var(--ar-bracket-fill) right bottom / 1px 14px;
  background-repeat: no-repeat;
}

.ar-grid-bg {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ar-fg) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ar-fg) 6%, transparent) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
}

/* Scanlines and grain share ::after, so both can sit on one element and
   still leave ::before free for the corner brackets. */
:is(.ar-scanlines, .ar-grain)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.ar-scanlines::after {
  background-image: var(--ar-scan);
}

.ar-grain::after {
  background-image: var(--ar-noise);
  background-size: 180px 180px;
}

.ar-scanlines.ar-grain::after {
  background-image: var(--ar-scan), var(--ar-noise);
  background-size: auto, 180px 180px;
}

.ar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--ar-line);
  border-radius: var(--wp--custom--corner--pill);
  background-color: transparent;
  color: var(--ar-fg-soft);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--wp--custom--tracking--wide);
  text-decoration: none;
  text-transform: uppercase;
}

:is(a, button).ar-chip {
  min-height: 44px;
  cursor: pointer;
  transition:
    border-color var(--ar-hover),
    color var(--ar-hover);
}

:is(a, button).ar-chip:hover {
  border-color: color-mix(in srgb, var(--ar-fg) 45%, transparent);
  color: var(--ar-fg);
}

/* A selected chip is an active state, so it may carry the signal colour. */
.ar-chip[aria-pressed="true"],
.ar-chip[aria-current="true"] {
  border-color: var(--wp--preset--color--chartreuse);
  color: var(--ar-fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--chartreuse) 35%, transparent);
}

.ar-live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--chartreuse);
  box-shadow: 0 0 10px color-mix(in srgb, var(--wp--preset--color--chartreuse) 60%, transparent);
  vertical-align: 0.1em;
}

/* The canonical live indicator. Keyframes are generic: any ring that should
   ping (hotspot markers) reuses ar-pulse and sets --ar-pulse-scale. */
.ar-motion .ar-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: inherit;
  animation: ar-pulse 1.8s var(--ar-ease-expo) infinite;
}

@keyframes ar-pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(var(--ar-pulse-scale, 3));
  }
}

/* 9. Header (replica of the live site's bar) */

.ar-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--wp--custom--header--z);
  height: var(--wp--custom--header--height);
  border-block-end: 1px solid transparent;
  background-color: var(--wp--custom--header--bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ar-header.is-scrolled {
  border-block-end-color: var(--ar-hairline);
}

.ar-motion .ar-header {
  transition: border-color var(--wp--custom--duration--slow) var(--wp--custom--easing--standard);
}

@supports not (backdrop-filter: blur(1px)) {
  .ar-header {
    background-color: var(--wp--preset--color--ink);
  }
}

.ar-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--40);
  height: 100%;
}

.ar-header__brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
}

.ar-header__brand img {
  width: auto;
  height: 56px;
}

.ar-header__panel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.ar-header__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  color: var(--wp--preset--color--mist);
  font-size: var(--wp--preset--font-size--small);
  text-decoration: underline 2px;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition:
    color var(--ar-hover),
    text-decoration-color var(--ar-hover);
}

.ar-header__nav a:hover,
.ar-header__nav a:focus-visible {
  color: var(--wp--custom--color--text-inverse);
  text-decoration-color: var(--wp--preset--color--chartreuse);
}

.ar-header__lang {
  display: flex;
  align-items: center;
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  letter-spacing: var(--wp--custom--tracking--wider);
}

.ar-header__lang-current {
  padding-inline: 0.75rem;
  color: var(--wp--custom--color--text-inverse);
  text-decoration: underline 2px var(--wp--preset--color--chartreuse);
  text-underline-offset: 6px;
}

.ar-header__lang a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--wp--preset--color--silver);
  text-decoration: none;
  transition: color var(--ar-hover);
}

.ar-header__lang a::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 1px;
  background-color: var(--wp--custom--color--border-inv);
}

.ar-header__lang a:hover {
  color: var(--wp--custom--color--text-inverse);
}

.ar-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--wp--custom--color--border-inv);
  border-radius: var(--wp--custom--corner--md);
  background-color: transparent;
  color: var(--wp--custom--color--text-inverse);
  transition: border-color var(--ar-hover);
}

.ar-header__toggle:hover {
  border-color: color-mix(in srgb, var(--wp--custom--color--text-inverse) 45%, transparent);
}

/* Two bars that fold into a cross. */
.ar-header__toggle-icon,
.ar-header__toggle-icon::before {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
}

.ar-header__toggle-icon {
  position: relative;
  transform: translateY(-4px) rotate(0deg);
}

.ar-header__toggle-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  transform: rotate(0deg);
}

[aria-expanded="true"] > .ar-header__toggle-icon {
  transform: translateY(0) rotate(45deg);
}

[aria-expanded="true"] > .ar-header__toggle-icon::before {
  top: 0;
  transform: rotate(-90deg);
}

.ar-motion .ar-header__toggle-icon,
.ar-motion .ar-header__toggle-icon::before {
  transition:
    transform var(--wp--custom--duration--slow) var(--ar-ease-expo),
    top var(--wp--custom--duration--slow) var(--ar-ease-expo);
}

@media (max-width: 959.98px) {
  .ar-header__toggle {
    display: inline-flex;
  }

  /* Without JS the toggle could not open anything; the footer carries the links. */
  .no-js .ar-header__toggle {
    display: none;
  }

  .ar-header__panel {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--wp--preset--spacing--40);
    max-height: calc(100svh - var(--wp--custom--header--height));
    padding: var(--wp--preset--spacing--30) var(--ar-gutter) var(--wp--preset--spacing--50);
    overflow-y: auto;
    border-block-end: 1px solid var(--ar-hairline);
    background-color: var(--wp--preset--color--ink);
    /* Dims the page below the open panel; the clip keeps the bar above undimmed. */
    box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--wp--preset--color--ink) 70%, transparent);
    clip-path: inset(0 0 -100vmax 0);
  }

  .ar-header__lang-current {
    padding-inline-start: 0;
  }

  .ar-header.is-open .ar-header__panel {
    display: flex;
  }

  .ar-header.is-open {
    border-block-end-color: var(--ar-hairline);
  }

  .ar-motion .ar-header.is-open .ar-header__panel {
    animation: ar-drop var(--wp--custom--duration--slow) var(--ar-ease-expo);
  }

  .ar-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ar-header__nav a {
    display: flex;
    min-height: 56px;
    padding-inline: 0;
    border-block-end: 1px solid var(--ar-hairline);
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--heading-s);
    font-weight: 700;
  }

  .ar-header__panel > .ar-btn {
    align-self: flex-start;
  }
}

@keyframes ar-drop {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

/* 10. Footer */

.ar-footer {
  padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
  border-block-start: 1px solid var(--ar-hairline);
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--silver);
  font-size: var(--wp--preset--font-size--small);
}

.ar-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--wp--preset--color--silver);
  text-decoration: none;
  transition: color var(--ar-hover);
}

.ar-footer a:hover {
  color: var(--wp--custom--color--text-inverse);
}

.ar-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--50);
}

.ar-footer__brand img {
  width: auto;
  height: 88px;
}

.ar-footer__claim {
  max-width: 16ch;
  margin-block-start: var(--wp--preset--spacing--40);
  color: var(--wp--custom--color--text-inverse);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--heading-s);
  font-weight: 700;
  line-height: var(--wp--custom--leading--snug);
  text-wrap: balance;
}

.ar-footer__heading {
  margin-block-end: var(--wp--preset--spacing--20);
  color: var(--wp--custom--color--text-inverse);
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  letter-spacing: var(--wp--custom--tracking--wider);
  text-transform: uppercase;
}

.ar-footer__legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--wp--preset--spacing--50);
  margin-block-start: var(--wp--preset--spacing--60);
  padding-block-start: var(--wp--preset--spacing--30);
}

/* The rule spans the content edges, not the container's gutters. */
.ar-footer__legal::before {
  content: "";
  position: absolute;
  inset: 0 var(--ar-gutter) auto;
  height: 1px;
  background-color: var(--ar-hairline);
}

.ar-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--wp--preset--spacing--40);
  margin-inline-start: auto;
}

.ar-footer__legal .ar-caption {
  flex-basis: 100%;
  padding-block: var(--wp--preset--spacing--20);
}

@media (max-width: 767.98px) {
  .ar-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-footer__brand {
    grid-column: 1 / -1;
  }

  .ar-footer__legal ul {
    margin-inline-start: 0;
  }
}

/* 11. Reveal system (data-reveal, driven by core.js) */

.ar-motion [data-reveal] {
  transition:
    opacity var(--ar-dur-reveal) var(--ar-ease-expo),
    transform var(--ar-dur-reveal) var(--ar-ease-expo),
    clip-path var(--ar-dur-long) var(--ar-ease-expo);
  transition-delay: var(--ar-delay, 0ms);
}
.ar-motion [data-reveal="fade-up"]:not(.is-revealed) { opacity: 0; transform: translate3d(0, 1.5rem, 0); }
.ar-motion [data-reveal="fade"]:not(.is-revealed) { opacity: 0; }
/* inset() end state: inset() <-> none does not interpolate; -0.5em spares overhangs. */
.ar-motion [data-reveal="wipe"] { clip-path: inset(-0.5em); }
.ar-motion [data-reveal="wipe"]:not(.is-revealed) { clip-path: inset(0 100% 0 0); }
.ar-motion [data-reveal="scale"]:not(.is-revealed) { opacity: 0; transform: scale(0.96); }
.ar-motion .ar-draw { stroke-dasharray: var(--ar-len, 1000); stroke-dashoffset: var(--ar-len, 1000); transition: stroke-dashoffset var(--ar-dur-long) var(--ar-ease-expo) var(--ar-delay, 0ms); }
.ar-motion .is-revealed .ar-draw, .ar-motion .ar-draw.is-revealed { stroke-dashoffset: 0; }
