/* 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: WordPress port. The six @font-face rules (Chakra Petch 400 and 700, Inter
      400-700, latin and latin-ext) were dropped: the theme registers the same faces
      from byte-identical files through theme.json on every page, under the same
      family names, so the landing renders with them unchanged. */

/* 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 */

/* Scoped to .ar-landing in the WordPress port, like every reset below: the landing
   sits between the site's own header and footer, which must not get them. The class
   also lifts the resets above the theme's element styles (h1-h6, a); in the
   prototype they only had browser defaults to beat. Every landing rule that sets
   the same properties is at least one class strong and comes later, so it still
   overrides them. */
.ar-landing *,
.ar-landing *::before,
.ar-landing *::after {
  box-sizing: border-box;
}

/* Scoped: the scroll offset is a property of the page, so it stays on the root, but
   only on the page that carries the landing. The offset is the fixed header alone (plus
   the admin bar when it shows), so an anchored section top sits flush under the header
   as in the prototype. The theme sets its own offset, header + admin bar + 8px, on
   `html:root` (0,1,1) in a stylesheet that prints after this one; a bare
   `html:has(.ar-landing)` ties at (0,1,1) and loses on load order, which parked every
   section 8px low and left a strip of the previous one under the header. Hence the extra
   `:root`: (0,2,1) outranks the theme rule whatever the load order. */
html:root:has(.ar-landing) {
  scroll-padding-top: calc(var(--wp--custom--header--height) + var(--wp-admin--admin-bar--height, 0px));
}

/* Scoped: colour scheme and text sizing move from html to the landing, so the site
   header and footer keep theirs. */
.ar-landing {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Scoped: smooth scrolling only on the landing's page (the motion gate sets .ar-motion). */
html.ar-motion:has(.ar-landing) {
  scroll-behavior: smooth;
}

/* Scoped: the prototype's body styles move to the landing wrapper. */
.ar-landing {
  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;
}

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

.ar-landing :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;
}

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

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

.ar-landing :where(img, video) {
  height: auto;
}

.ar-landing :where(input, button, select, textarea) {
  font: inherit;
  color: inherit;
}

.ar-landing :where(button) {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

/* Author display rules must never beat the hidden attribute (tab panels).
   Scoped: the site chrome keeps its own handling of [hidden]. */
.ar-landing [hidden] {
  display: none !important;
}

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

/* Scoped: the site header and footer keep the theme's focus ring. */
.ar-landing :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; }

/* 12. Theme neutralisation (WordPress port only; not part of the prototype)

   The landing renders inside the site theme, whose stylesheets print AFTER this
   file and style bare elements. Sections 3 and 4 were scoped so the landing does
   not reach the site; the rules below are the reverse: they stop three theme
   rules from reaching the landing and restore the prototype's computed values.
   Each one sits in a deliberate specificity window, named in its comment, and
   sets nothing but the property it neutralises. */

/* Focus halo. The theme's ring (_shared.css) adds `box-shadow: 0 0 0 6px
   chartreuse` to a, button, input, select, textarea and summary at (0,1,1). The
   outline is already the landing's (section 4 is (0,2,0)). This is (0,1,2): above
   the theme, below every landing rule that gives a control a shadow of its own
   (.ar-chip[aria-pressed], .ar-anatomy__marker:focus-visible, ... all (0,2,0)). */
body :where(.ar-landing) :is(a, button, input, select, textarea, summary):focus-visible {
  box-shadow: none;
}

/* [tabindex] controls (sensor tabs and panels, the gallery). The theme's
   [tabindex]:focus-visible is (0,2,0) and prints later, so it also beats the
   landing's own (0,2,0) focus rules: ink outline, 2px offset, chartreuse halo.
   Those rules are restated here one class stronger and in their original order:
   the ring (section 4), its paper colour (section 4), the inset offset of the
   scrollers (50-sensors.css, 80-deployment.css), the selected tab's underline
   (50-sensors.css). */
.ar-landing [tabindex]:focus-visible {
  outline: 3px solid var(--wp--preset--color--astrum-blue);
  outline-offset: 3px;
  box-shadow: none;
}

.ar-landing .ar-section--paper [tabindex]:focus-visible {
  outline-color: var(--wp--custom--color--blue-800);
}

.ar-landing :is(.ar-sensors__tab, .ar-gallery)[tabindex]:focus-visible {
  outline-offset: -3px;
}

.ar-landing .ar-sensors__tab[aria-selected="true"][tabindex]:focus-visible {
  box-shadow: inset 0 -2px var(--ar-sensors-signal);
}

/* Heading tracking. theme.json gives h1-h6 the tight letter-spacing at (0,0,1);
   a prototype heading without a class of its own inherits its parent's. This is
   (0,0,2): above the theme, below every landing class (.ar-h2 and the rest, which
   set their own tracking). */
body :where(.ar-landing) :is(h1, h2, h3, h4, h5, h6) {
  letter-spacing: inherit;
}

/* Link hover. theme.json drops the underline of every link on hover at (0,1,0);
   in the prototype a link without a class keeps the underline it has at rest.
   Classed links (.ar-btn, .ar-chip) set their own decoration and are left out. */
.ar-landing a:not([class]):hover {
  text-decoration: underline;
}
