/* SPDX-License-Identifier: MIT */

/* These URLs resolve from the parent's concatenated site/styles.css. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-night: #1E2340;
  --color-deep: #161A31;
  --color-panel: #262C4F;
  --color-footer: #121529;
  --color-daybreak: #FFF3D6;
  --color-white: #FFFFFF;
  --color-secondary: #C9CBE0;
  --color-jacaranda: #6A5AA8;
  --color-jacaranda-light: #B3A8E6;
  --color-marigold: #F2A33A;
  --hero-sky-final: #FFE7B8;
  --font-heading: "Outfit", "Trebuchet MS", sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, sans-serif;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --text-body: 1.125rem;
  --text-lead: 1.125rem;
  --text-hero: clamp(2.75rem, 6.4vw, 5.75rem);
  --text-h1: clamp(2rem, 4vw, 3.25rem);
  --text-h2: clamp(2rem, 4vw, 3.25rem);
  --text-h3: clamp(1.375rem, 2.2vw, 1.75rem);
  --text-label: 1rem;
  --text-eyebrow: .9375rem;
  --line-body: 1.65;
  --measure: 70ch;
  --container: 1200px;
  --grid-gap: 24px;
  --gutter: 6vw;
  --section-space: clamp(80px, 8vw, 128px);
  --button-radius: 10px;
  --target-size: 48px;
  --header-block-size: 104px;
  --rule: 1px solid rgb(255 255 255 / 10%);
  --hero-ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
    --text-body: 1.0625rem;
    --text-lead: 1.0625rem;
    --header-block-size: 196px;
    --section-space: 72px;
  }
}

/* SPDX-License-Identifier: MIT */
/* Concatenate after tokens.css. Base states are readable and fully lit. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-padding-block-start: calc(var(--header-block-size) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-night);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--line-body);
  overflow-wrap: break-word;
}

main,
section,
figure,
nav,
.section-copy,
.section-media,
.prose {
  min-inline-size: 0;
}

figure {
  margin: 0;
}

picture,
img {
  display: block;
  max-inline-size: 100%;
}

img {
  block-size: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
}

p {
  max-inline-size: var(--measure);
  margin: 0 0 24px;
}

strong {
  font-weight: var(--weight-semibold);
}

ul,
ol {
  max-inline-size: var(--measure);
  margin: 0 0 28px;
  padding-inline-start: 1.35em;
}

li + li {
  margin-block-start: 12px;
}

p:last-child,
li > p:last-child,
.prose > :last-child {
  margin-block-end: 0;
}

a {
  display: inline-block;
  min-block-size: var(--target-size);
  min-inline-size: var(--target-size);
  max-inline-size: 100%;
  padding-block: 9px;
  color: var(--color-jacaranda-light);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--color-white);
}

:focus-visible {
  outline: 3px solid var(--color-jacaranda-light);
  outline-offset: 5px;
}

::selection {
  background: var(--color-daybreak);
  color: var(--color-night);
}

.container {
  inline-size: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

[id] {
  scroll-margin-block-start: calc(var(--header-block-size) + 24px);
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: var(--gutter);
  max-inline-size: calc(100% - 2 * var(--gutter));
  padding: 12px 20px;
  border: 2px solid var(--color-night);
  border-radius: var(--button-radius);
  background: var(--color-daybreak);
  color: var(--color-night);
  font-weight: var(--weight-semibold);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
  color: var(--color-night);
  outline-color: var(--color-white);
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset-block-start: 0;
  inset-inline: 0;
  background: transparent;
  border-block-end: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-menu-open,
.page-open .site-header,
.page-team .site-header,
.page-privacy .site-header {
  background: var(--color-night);
  border-block-end: var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-block: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--target-size);
  min-block-size: var(--target-size);
  padding: 10px 14px;
  border: 1px solid var(--color-white);
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--color-white);
  font: inherit;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--color-jacaranda-light);
  color: var(--color-jacaranda-light);
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-block-size: 64px;
  padding: 16px 20px;
}

.nav-logo,
.footer-logo {
  inline-size: 160px;
  min-inline-size: 140px;
  max-inline-size: 100%;
  block-size: auto;
  /* Supplied reverse artwork remains flat; no filter or shadow. */
}

.primary-nav ul,
.footer-nav ul,
.footer-bottom nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  max-inline-size: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li,
.footer-nav li,
.footer-bottom nav li {
  margin: 0;
}

.primary-nav a,
.primary-nav .unavailable,
.footer-nav a,
.footer-nav .unavailable,
.footer-bottom nav a,
.footer-bottom nav .unavailable {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-size);
  padding: 10px 8px;
  font-size: var(--text-label);
  line-height: 1.5;
}

.primary-nav a {
  border-block-end: 2px solid transparent;
  color: var(--color-white);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-jacaranda-light);
}

.primary-nav a[aria-current="page"],
.footer-bottom nav a[aria-current="page"] {
  border-block-end: 2px solid currentColor;
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.unavailable {
  display: inline-block;
  min-block-size: var(--target-size);
  padding-block: 9px;
  color: var(--color-secondary);
  text-decoration: underline dashed;
  text-underline-offset: .3em;
  cursor: default;
}

.band {
  background: var(--color-night);
  color: var(--color-white);
}

.band-night {
  background: var(--color-night);
}

.band-deep {
  background: var(--color-deep);
}

.band-light {
  color-scheme: light;
  --rule: 1px solid rgb(30 35 64 / 18%);
  background: var(--color-daybreak);
  color: var(--color-night);
}

.band-light a,
.feature-panel a {
  color: var(--color-jacaranda);
}

.band-light a:hover,
.feature-panel a:hover {
  color: var(--color-night);
}

.band-light :focus-visible,
.feature-panel :focus-visible {
  outline-color: var(--color-night);
}

.band-light .unavailable,
.band-light .secondary,
.band-light figcaption {
  color: var(--color-night);
}

.hero {
  position: relative;
  display: grid;
  min-block-size: 100svh;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--header-block-size) + 32px) 64px;
  background: var(--color-night);
  color: var(--color-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--grid-gap);
}

.hero .hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 7;
  min-inline-size: 0;
}

.hero .eyebrow {
  margin-block-end: 18px;
  color: var(--color-white);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: .01em;
}

.hero .hero-headline {
  margin-block: 18px 24px;
  color: var(--color-white);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.hero .hero-sub {
  max-inline-size: 540px;
  color: var(--color-white);
  font-size: var(--text-body);
  line-height: var(--line-body);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-block-start: 32px;
}

.hero .hero-smallprint {
  margin-block-start: 24px;
  color: var(--color-secondary);
  font-size: var(--text-label);
}

.hero .scene {
  position: relative;
  grid-column: 7 / 13;
  align-self: stretch;
  min-inline-size: 0;
  min-block-size: 70svh;
}

.hero .scene::after {
  content: "";
  position: absolute;
  inset-inline: 10%;
  inset-block-end: -6%;
  block-size: 38%;
  background: radial-gradient(ellipse at 50% 0%, rgb(255 243 214 / 45%), rgb(255 243 214 / 0%) 70%);
  opacity: 1;
  pointer-events: none;
}

.hero .scene svg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.hero .sky {
  fill: var(--hero-sky-final);
}

.hero .sun {
  transform: none;
}

.hero .ray {
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
}

.hero .frame {
  stroke: var(--color-white);
}

.hero .beam {
  opacity: .9;
  transform-origin: 50% 0;
  transform: none;
}

.hero .glow {
  opacity: 1;
}

.hero .motes {
  display: none;
}

.hero .mote {
  fill: var(--color-white);
  opacity: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 52px;
  max-inline-size: 100%;
  padding: 12px 24px;
  border: 2px solid var(--color-daybreak);
  border-radius: var(--button-radius);
  background: var(--color-daybreak);
  color: var(--color-night);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-night);
}

.button-secondary {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.button-secondary:hover {
  background: transparent;
  border-color: var(--color-jacaranda-light);
  color: var(--color-jacaranda-light);
}

.band-light .button,
.feature-panel .button {
  background: var(--color-night);
  border-color: var(--color-night);
  color: var(--color-white);
}

.band-light .button:hover,
.feature-panel .button:hover {
  background: var(--color-panel);
  border-color: var(--color-panel);
  color: var(--color-white);
}

.band-light .button-secondary,
.feature-panel .button-secondary {
  background: transparent;
  border-color: var(--color-night);
  color: var(--color-night);
}

.band-light .button-secondary:hover,
.feature-panel .button-secondary:hover {
  background: transparent;
  border-color: var(--color-jacaranda);
  color: var(--color-jacaranda);
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: var(--weight-semibold);
}

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

.page-hero {
  padding-block: calc(var(--header-block-size) + 64px) var(--section-space);
}

.privacy-notice {
  white-space: pre-wrap;
  max-inline-size: 70ch;
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 48px var(--grid-gap);
}

.section-copy h2,
.section-copy h1 {
  margin-block-end: 28px;
}

.section-copy .prose,
.section-copy .lead {
  max-inline-size: var(--measure);
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--line-body);
}

.section-media img {
  inline-size: 100%;
  block-size: auto;
  border-radius: 16px;
}

/* Trim only the supplied artwork's empty top/bottom bands, not its panels. */
#three-risks-three-separate-records .section-media {
  padding: 0;
  border: 0;
  background: transparent;
}

#three-risks-three-separate-records .section-media picture {
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 16px;
}

#three-risks-three-separate-records .section-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

figcaption,
.secondary {
  color: var(--color-secondary);
  font-size: var(--text-label);
}

figcaption {
  margin-block-start: 16px;
}

.layout-a .section-media {
  grid-column: 1 / 6;
  grid-row: 1;
}

.layout-a .section-copy {
  grid-column: 7 / 13;
  grid-row: 1;
}

.layout-b .section-copy {
  grid-column: 1 / 7;
  grid-row: 1;
}

.layout-b .section-media {
  grid-column: 8 / 13;
  grid-row: 1;
}

.layout-d .section-grid {
  justify-items: center;
  text-align: center;
}

.layout-d .section-media {
  grid-column: 5 / 9;
  inline-size: min(100%, 360px);
}

.layout-d .section-copy {
  grid-column: 3 / 11;
  inline-size: 100%;
  max-inline-size: var(--measure);
}

.layout-d .section-copy p,
.layout-d .section-copy .prose,
.layout-d .section-copy ul {
  margin-inline: auto;
}

.layout-d .section-copy ul {
  text-align: start;
}

.layout-d .actions {
  justify-content: center;
}

/* Editorial text-only layouts span real columns rather than a vacant image. */
.text-only.layout-a .section-copy,
.text-only.layout-b .section-copy {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 32px var(--grid-gap);
}

.text-only.layout-a .section-copy > h2,
.text-only.layout-a .section-copy > h1 {
  grid-column: 1 / 6;
  margin: 0;
}

.text-only.layout-a .section-copy > .prose,
.text-only.layout-a .section-copy > .lead {
  grid-column: 7 / 13;
}

.text-only.layout-b .section-copy > h2,
.text-only.layout-b .section-copy > h1 {
  grid-column: 8 / 13;
  grid-row: 1;
  margin: 0;
}

.text-only.layout-b .section-copy > .prose,
.text-only.layout-b .section-copy > .lead {
  grid-column: 1 / 7;
  grid-row: 1;
}

.text-only.layout-d .section-copy {
  grid-column: 2 / 12;
}

.section-process > .container > h2 {
  max-inline-size: 22ch;
  margin-block-end: 64px;
}

.visit-timeline {
  position: relative;
  display: grid;
  gap: 56px;
  max-inline-size: none;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: visit;
}

.visit-timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  inline-size: 1px;
  background: var(--color-daybreak);
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--grid-gap);
  margin: 0;
  counter-increment: visit;
}

.timeline-step::before {
  content: counter(visit);
  position: absolute;
  z-index: 2;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 1px solid var(--color-daybreak);
  border-radius: 50%;
  background: var(--color-deep);
  color: var(--color-white);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  transform: translate(-50%, -50%);
}

.timeline-step .step-media {
  position: relative;
  grid-column: 1 / 6;
  grid-row: 1;
  inline-size: min(100%, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--color-jacaranda-light);
  border-radius: 0;
  background: var(--color-night);
  justify-self: center;
}

.step-media picture {
  position: absolute;
  inset: 0;
}

.step-media img {
  position: absolute;
  inset: calc(-1 * var(--image-inset, 0%));
  inline-size: calc(100% + 2 * var(--image-inset, 0%));
  max-inline-size: none;
  block-size: calc(100% + 2 * var(--image-inset, 0%));
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* CSS-only trims remove the three assets' baked-in mats; files stay unchanged. */
.step-media img[src$="visit-02.webp"] { --image-inset: 7%; }
.step-media img[src$="visit-03.webp"] { --image-inset: 4.4%; }
.step-media img[src$="visit-05.webp"] { --image-inset: 25%; }

.timeline-step .step-copy {
  grid-column: 8 / 13;
  grid-row: 1;
}

.timeline-step:nth-child(even) .step-media {
  grid-column: 8 / 13;
}

.timeline-step:nth-child(even) .step-copy {
  grid-column: 1 / 6;
}

.step-title {
  display: block;
  margin-block-end: 16px;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  letter-spacing: normal;
}

.timeline-step.is-current::before,
.timeline-step[aria-current="step"]::before {
  border-color: var(--color-jacaranda-light);
  background: var(--color-panel);
  color: var(--color-jacaranda-light);
}

.timeline-step.is-current .step-title,
.timeline-step[aria-current="step"] .step-title {
  color: var(--color-jacaranda-light);
}

.layout-c {
  padding-block-start: 0;
}

.band-scene,
.road-scene {
  inline-size: 100%;
}

.band-scene img,
.road-scene img {
  inline-size: 100%;
  aspect-ratio: 8 / 5;
  max-block-size: 660px;
  object-fit: cover;
}

.bleed-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--grid-gap);
  margin-block-start: -80px;
}

.feature-panel {
  grid-column: 1 / 10;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 16px;
  background: var(--color-daybreak);
  color: var(--color-night);
  color-scheme: light;
}

.feature-panel h2 {
  max-inline-size: 22ch;
  margin-block-end: 28px;
}

.feature-panel p {
  max-inline-size: var(--measure);
}

.continuation {
  grid-column: 3 / 11;
  max-inline-size: var(--measure);
}

.section-road {
  padding-block-start: 0;
}

.road-scene img {
  max-block-size: 560px;
}

.road-content {
  padding-block-start: 64px;
}

.road-content > h2 {
  margin-block-end: 28px;
}

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  max-inline-size: none;
  margin-block: 48px 0;
  padding: 0;
  list-style: none;
  counter-reset: road;
}

.roadmap::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 24px;
  block-size: 1px;
  background: var(--color-daybreak);
}

.roadmap > li {
  position: relative;
  margin: 64px 0 0;
  padding: 28px 24px;
  border: var(--rule);
  border-radius: 12px;
  background: var(--color-panel);
  counter-increment: road;
}

.roadmap > li::before {
  content: counter(road);
  position: absolute;
  z-index: 1;
  inset-inline-start: 24px;
  inset-block-start: -64px;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 1px solid var(--color-daybreak);
  border-radius: 50%;
  background: var(--color-deep);
  color: var(--color-white);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
}

.month-label {
  display: block;
  margin-block-end: 16px;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
}

.table-scroll {
  max-inline-size: 100%;
  margin-block: 32px;
  overflow-x: auto;
  border: var(--rule);
  border-radius: 10px;
  overscroll-behavior-inline: contain;
}

table {
  inline-size: 100%;
  min-inline-size: 580px;
  border-collapse: collapse;
  font-size: var(--text-body);
  line-height: var(--line-body);
  text-align: start;
}

th,
td {
  padding: 20px 24px;
  border-block-end: var(--rule);
  vertical-align: top;
  text-align: start;
}

th {
  background: var(--color-panel);
  color: var(--color-white);
  font-weight: var(--weight-semibold);
}

td {
  background: var(--color-night);
  color: var(--color-white);
}

.band-light th {
  background: rgb(30 35 64 / 8%);
  color: var(--color-night);
}

.band-light td {
  background: var(--color-daybreak);
  color: var(--color-night);
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-block-end: 0;
}

.team-table th:first-child,
.team-table td:first-child {
  inline-size: 36%;
}

.team-table-view,
.team-cards,
.team-card {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.team-cards {
  display: none;
  gap: 16px;
  margin-block: 32px;
  text-align: start;
}

.team-card {
  padding: 24px;
  border: var(--rule);
  border-radius: 10px;
  background: var(--color-night);
  color: var(--color-white);
  overflow-wrap: anywhere;
}

.band-light .team-card {
  background: var(--color-daybreak);
  color: var(--color-night);
}

.team-member-name {
  margin-block-end: 8px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: normal;
}

.team-card .team-member-role {
  max-inline-size: none;
  margin: 0;
}

.contact-caution {
  margin-block-start: 28px;
  padding-block-start: 24px;
  border-block-start: var(--rule);
  color: var(--color-secondary);
  font-weight: var(--weight-semibold);
}

.site-footer {
  padding-block: 64px 32px;
  background: var(--color-footer);
  color: var(--color-white);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 36px var(--grid-gap);
  padding-block-end: 48px;
}

.footer-brand {
  grid-column: 1 / 5;
  min-inline-size: 0;
}

.footer-logo {
  box-sizing: content-box;
  max-inline-size: calc(100% - 40px);
  padding: 20px;
}

.footer-attribution {
  max-inline-size: 30ch;
  margin-block-start: 20px;
  color: var(--color-secondary);
}

.footer-copy {
  grid-column: 6 / 13;
  max-inline-size: var(--measure);
}

.footer-bottom {
  padding-block-start: 24px;
  border-block-start: var(--rule);
}

.site-footer a {
  color: var(--color-jacaranda-light);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-licence {
  max-inline-size: var(--measure);
  margin-block-start: 24px;
  color: var(--color-secondary);
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .header-inner {
    justify-content: flex-start;
  }

  .primary-nav {
    flex: 1 1 440px;
  }

  .roadmap > li {
    padding-inline: 16px;
  }

  .roadmap > li::before {
    inset-inline-start: 16px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    gap: 0;
    padding-block: 4px 8px;
  }

  .primary-nav {
    flex-basis: 100%;
  }

  .primary-nav ul {
    gap: 0 8px;
  }

  .primary-nav a,
  .primary-nav .unavailable {
    padding-inline: 4px;
  }

  .hero {
    padding-block: calc(var(--header-block-size) + 32px) 32px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero .hero-copy,
  .hero .scene {
    grid-column: 1;
  }

  .hero .hero-copy {
    max-inline-size: 650px;
  }

  .hero .scene {
    min-block-size: 56svh;
    block-size: 56svh;
    max-inline-size: 520px;
    inline-size: 100%;
    justify-self: center;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .layout-a .section-media,
  .layout-b .section-media,
  .layout-a .section-copy,
  .layout-b .section-copy,
  .layout-d .section-media,
  .layout-d .section-copy,
  .text-only.layout-d .section-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .layout-a .section-media,
  .layout-b .section-media {
    inline-size: min(100%, 520px);
    justify-self: center;
  }

  .layout-a .section-copy,
  .layout-b .section-copy {
    max-inline-size: var(--measure);
  }

  .layout-b .section-copy {
    grid-row: 1;
  }

  .layout-d .section-media {
    inline-size: min(75%, 320px);
  }

  .text-only.layout-a .section-copy,
  .text-only.layout-b .section-copy {
    display: block;
    grid-column: 1;
  }

  .text-only.layout-a .section-copy > h2,
  .text-only.layout-a .section-copy > h1,
  .text-only.layout-b .section-copy > h2,
  .text-only.layout-b .section-copy > h1 {
    margin-block-end: 28px;
  }

  .bleed-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-block-start: -32px;
    gap: 36px;
  }

  .feature-panel,
  .continuation {
    grid-column: 1;
  }

  .band-scene img,
  .road-scene img {
    max-block-size: none;
  }

  .road-content {
    padding-block-start: 40px;
  }

  .roadmap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .roadmap::before {
    inset-inline-start: 24px;
    inset-inline-end: auto;
    inset-block: 0;
    inline-size: 1px;
    block-size: auto;
  }

  .roadmap > li {
    margin-block-start: 0;
    margin-inline-start: 48px;
    padding: 24px;
  }

  .roadmap > li::before {
    inset-inline-start: -24px;
    inset-block-start: 24px;
    transform: translateX(-50%);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand,
  .footer-copy {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .visit-timeline {
    gap: 40px;
  }

  .timeline-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    padding-block-start: 64px;
  }

  .timeline-step::before {
    inset-block-start: 0;
    transform: translateX(-50%);
  }

  .timeline-step .step-media,
  .timeline-step:nth-child(even) .step-media {
    grid-row: 1;
    grid-column: 1;
    inline-size: 100%;
  }

  .timeline-step:nth-child(even) .step-media {
    grid-column: 2;
  }

  .timeline-step .step-copy,
  .timeline-step:nth-child(even) .step-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    padding-block: 16px;
    background: var(--color-deep);
    /* Full-width, full-size text masks the centre line instead of being squeezed. */
  }

  .section-process > .container > h2 {
    margin-block-end: 40px;
  }
}

@media (max-width: 600px) {
  .menu-enhanced .header-inner {
    position: relative;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    padding-block: 4px;
  }

  .menu-enhanced .brand-link {
    flex: 0 1 auto;
    min-inline-size: 0;
    padding-inline: 8px;
  }

  .menu-enhanced .nav-logo {
    min-inline-size: 0;
  }

  .menu-enhanced .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .menu-enhanced .primary-nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: calc(-1 * var(--gutter));
    padding: 12px var(--gutter) 16px;
    border-block-end: var(--rule);
    background: var(--color-night);
  }

  .menu-enhanced .primary-nav[hidden],
  .menu-enhanced .site-header:not(.is-menu-open) .primary-nav {
    display: none;
  }

  .menu-enhanced .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .menu-enhanced .primary-nav a {
    inline-size: 100%;
    padding-inline: 8px;
  }

  .team-table-view {
    display: none;
  }

  .team-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .actions .button {
    inline-size: 100%;
  }

  .footer-bottom nav ul,
  .footer-nav ul {
    column-gap: 8px;
  }

  th,
  td {
    padding: 18px;
  }

  .site-footer {
    padding-block-start: 48px;
  }
}

/* All motion declarations AND their keyframes live in this one guard. */
@media (prefers-reduced-motion: no-preference) {
  a,
  .menu-toggle,
  .button {
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
  }

  .hero.hero-motion {
    animation: hero-sky-page 5.2s var(--hero-ease) .6s both;
  }

  .hero.hero-motion .sky {
    animation: hero-sky 5.2s var(--hero-ease) .6s both;
  }

  .hero.hero-motion .sun {
    animation: hero-sunrise 3.6s var(--hero-ease) 1s both;
  }

  .hero.hero-motion .ray {
    animation: hero-draw .9s var(--hero-ease) both;
  }

  .hero.hero-motion .ray:nth-child(1) { animation-delay: 1.6s; }
  .hero.hero-motion .ray:nth-child(2) { animation-delay: 1.75s; }
  .hero.hero-motion .ray:nth-child(3) { animation-delay: 1.9s; }
  .hero.hero-motion .ray:nth-child(4) { animation-delay: 2.05s; }
  .hero.hero-motion .ray:nth-child(5) { animation-delay: 2.2s; }
  .hero.hero-motion .ray:nth-child(6) { animation-delay: 2.35s; }
  .hero.hero-motion .ray:nth-child(7) { animation-delay: 2.5s; }

  .hero.hero-motion .frame {
    animation: hero-frame-ink 5.2s var(--hero-ease) .6s both;
  }

  .hero.hero-motion .beam {
    animation: hero-beam 2.4s var(--hero-ease) 2.4s both;
  }

  .hero.hero-motion .glow {
    animation: hero-glow 2.8s var(--hero-ease) 2.2s both;
  }

  .hero.hero-motion .scene::after {
    animation: hero-fade-in 2.4s var(--hero-ease) 2.8s both;
  }

  .hero.hero-motion .eyebrow {
    animation: hero-fade-up .7s var(--hero-ease) .1s both;
  }

  .hero.hero-motion .hero-headline {
    animation: hero-fade-up .5s var(--hero-ease) .05s both;
  }

  .hero.hero-motion .hero-sub {
    animation: hero-fade-up .5s var(--hero-ease) .1s both;
  }

  .hero.hero-motion .hero-actions,
  .hero.hero-motion .hero-smallprint {
    animation: hero-fade-up .7s var(--hero-ease) .15s both;
  }

  .hero.hero-motion .motes {
    display: block;
  }

  .hero.hero-motion .mote {
    animation: hero-dust 1.6s linear 3.2s both;
  }

  .hero.hero-motion .mote:nth-child(2) { animation-delay: 3.4s; }
  .hero.hero-motion .mote:nth-child(3) { animation-delay: 3.6s; }
  .hero.hero-motion .mote:nth-child(4) { animation-delay: 3.8s; }
  .hero.hero-motion .mote:nth-child(5) { animation-delay: 4s; }
  .hero.hero-motion .mote:nth-child(6) { animation-delay: 4.2s; }

  .motion-enabled .reveal-pending {
    opacity: 0;
    transform: translateY(16px);
  }

  .motion-enabled .is-revealed[data-reveal-mode="fallback"] {
    animation: section-reveal 500ms ease-out var(--reveal-delay, 0ms) both;
  }

  @supports (animation-trigger: --section play-once none) and (timeline-trigger: --section view() entry 0% exit 100%) and (trigger-scope: --section) {
    .motion-enabled .reveal-pending[data-reveal-mode="native"] {
      trigger-scope: --section;
      timeline-trigger: --section view() entry 0% exit 100%;
      animation: section-reveal 500ms ease-out var(--reveal-delay, 0ms) both;
      animation-trigger: --section play-once none;
    }
  }

  @keyframes hero-sky-page {
    from { background: #161A31; }
    to { background: var(--color-night); }
  }

  @keyframes hero-sky {
    0% { fill: #141830; }
    40% { fill: #5B4A86; }
    65% { fill: #C9735F; }
    80% { fill: #F0B07A; }
    100% { fill: #FFE7B8; }
  }

  @keyframes hero-sunrise {
    from { transform: translateY(60px); }
    to { transform: translateY(0); }
  }

  @keyframes hero-draw {
    from { stroke-dashoffset: 260; }
    to { stroke-dashoffset: 0; }
  }

  @keyframes hero-frame-ink {
    0%, 100% { stroke: #FFFFFF; }
  }

  @keyframes hero-beam {
    from { opacity: 0; transform: scaleY(.2); }
    to { opacity: .9; transform: scaleY(1); }
  }

  @keyframes hero-glow {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes hero-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes hero-dust {
    0% { opacity: 0; transform: translate(0, 0); }
    20% { opacity: .65; }
    70% { opacity: .4; }
    100% { opacity: 0; transform: translate(-18px, -60px); }
  }

  @keyframes section-reveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

@media print {
  :root {
    --gutter: 0px;
    --section-space: 36px;
    --header-block-size: 0px;
  }

  @page { margin: 18mm; }

  .site-header {
    position: static;
  }

  .skip-link,
  .menu-toggle,
  .menu-enhanced .menu-toggle,
  .primary-nav,
  .footer-bottom nav,
  .hero .scene {
    display: none;
  }

  .hero,
  .page-hero {
    min-block-size: 0;
    padding-block: 24px;
  }

  .hero-grid,
  .section-grid,
  .footer-top,
  .bleed-layout {
    display: block;
  }

  .reveal,
  .motion-enabled .reveal-pending {
    opacity: 1;
    transform: none;
  }

  .table-scroll { overflow: visible; }
  .team-table-view { display: block; }
  .team-cards { display: none; }
  table { min-inline-size: 0; table-layout: fixed; }
  th, td { padding: 12px; overflow-wrap: anywhere; }
  thead { display: table-header-group; }
  h1, h2, h3, .step-title { break-after: avoid; }
  .timeline-step, .roadmap > li, tr { break-inside: avoid; }
  p { orphans: 3; widows: 3; }
  .band, .hero, .site-footer { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Explicit accessibility fallback; positive motion stays in no-preference. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero .sky { fill: #FFE7B8; }
  .hero .sun { transform: none; }
  .hero .ray { stroke-dashoffset: 0; }
  .hero .beam { opacity: .9; transform: none; }
  .hero .glow { opacity: 1; }
  .hero .motes { display: none; }
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .hero .eyebrow,
  .hero-smallprint,
  .reveal { opacity: 1; transform: none; }
}
