/* ==========================================================================
   DigitAlpes Solutions — main stylesheet
   Structure:
     1. Fonts            5. Header & navigation    9. Contact / quote form
     2. Design tokens    6. Buttons & UI atoms    10. About page
     3. Reset & base     7. Home page             11. Legal & 404 pages
     4. Layout helpers   8. Shared sections       12. Motion & reduced motion
   No inline styles are used anywhere so the CSP can stay at style-src 'self'.
   ========================================================================== */

/* 1. Fonts — self-hosted (no third-party requests, GDPR-friendly) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens --------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Palette — "morning over the Alps" with glacier and alpenglow accents.
     Accent colours are dark enough for text (>= 4.5:1 on every background). */
  --bg-sunken: #eef2f8;
  --bg: #f8fafd;
  --bg-raised: #ffffff;
  --heading: #0b1728;
  --text: #33435a;
  --muted: #54657e;
  --on-accent: #ffffff;
  --glacier: #0b7285;
  --violet: #6450d8;
  --alpenglow: #c2481f;
  --success: #157a4a;
  --danger: #c0263a;

  --line: rgb(11 23 40 / 0.1);
  --line-strong: rgb(11 23 40 / 0.18);
  --surface: rgb(255 255 255 / 0.75);
  --surface-hover: rgb(11 23 40 / 0.04);

  --gradient-brand: linear-gradient(120deg, var(--glacier) 0%, var(--violet) 55%, var(--alpenglow) 100%);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);

  /* Spacing & shape */
  --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: 4.5rem;
  --space-9: 7rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.375rem;
  --radius-pill: 999px;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgb(11 23 40 / 0.04), 0 14px 32px -20px rgb(11 23 40 / 0.2);
  --shadow-glow: 0 0 0 1px var(--line), 0 24px 50px -22px rgb(11 114 133 / 0.45);
}

/* 3. Reset & base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

img,
svg,
picture,
video {
  display: block;
}

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

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--glacier);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

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

:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgb(43 183 199 / 0.3);
  color: var(--heading);
}

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

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--glacier);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--on-accent);
}

/* 4. Layout helpers -------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

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

.section--alt {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(124 104 240 / 0.07), transparent 70%),
    var(--bg-sunken);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--glacier);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}

.lead {
  color: var(--muted);
  font-size: var(--fs-lg);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgb(255 255 255 / 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--heading);
}

.brand__logo {
  height: 6rem;
  flex-shrink: 0;
}

.brand__name span {
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: var(--heading);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Without JS the menu cannot be toggled: hide the button, links stay in the footer */
.no-js .nav-toggle {
  display: none;
}

/* Positioned against the header, not the viewport: the header's
   backdrop-filter makes it the containing block of fixed descendants. */
.site-nav {
  position: absolute;
  inset: 100% 0 auto;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: none;
  padding: var(--space-6) var(--gutter);
  background: var(--bg);
  overflow-y: auto;
}

.site-nav.is-open {
  display: block;
  animation: nav-in 0.35s var(--ease-out);
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: none; }
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: var(--fs-xl);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  color: var(--glacier);
}

.site-nav__cta {
  margin-top: var(--space-5);
}

@media (min-width: 56rem) {
  .nav-toggle { display: none; }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: block;
    height: auto;
    padding: 0;
    background: none;
    overflow: visible;
    animation: none;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
  }

  .site-nav__link {
    position: relative;
    padding: var(--space-2) var(--space-3);
    border: 0;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 0.15rem;
    height: 1px;
    background: var(--glacier);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }

  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .site-nav__cta {
    margin: 0 0 0 var(--space-3);
  }
}

/* 6. Buttons & UI atoms ---------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--heading);
  --btn-border: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  color: var(--btn-fg);
  border-color: var(--glacier);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  --btn-bg: var(--heading);
  --btn-fg: var(--on-accent);
  --btn-border: transparent;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover {
  border-color: transparent;
  box-shadow: 0 12px 30px -10px rgb(11 23 40 / 0.35);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.tag__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgb(31 157 99 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(31 157 99 / 0.55); }
  70% { box-shadow: 0 0 0 0.6rem rgb(31 157 99 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(31 157 99 / 0); }
}

.card {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out), background-color 0.3s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgb(43 183 199 / 0.08);
  color: var(--glacier);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card__title {
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}

.card__text {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.check-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--glacier);
  transform: rotate(45deg) translateY(-0.1rem);
}

/* 7. Home page ------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--space-7)) var(--mountains-h);
  overflow: hidden;
  isolation: isolate;
  --mountains-h: clamp(9rem, 26vh, 16rem);
  background:
    radial-gradient(50rem 30rem at 15% 10%, rgb(43 183 199 / 0.12), transparent 65%),
    radial-gradient(45rem 28rem at 90% 20%, rgb(124 104 240 / 0.14), transparent 65%),
    var(--bg-sunken);
}

/* Pointer-following glow — position set via CSSOM custom properties in JS */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(28rem circle at var(--glow-x, 50%) var(--glow-y, 40%), rgb(43 183 199 / 0.1), transparent 60%);
  pointer-events: none;
  transition: background-position 0.2s linear;
}

.hero__topo {
  position: absolute;
  inset: -10% -10% auto;
  z-index: -2;
  width: 120%;
  height: 120%;
  color: rgb(11 23 40 / 0.06);
  animation: topo-drift 40s ease-in-out infinite alternate;
}

@keyframes topo-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-3%, 2%, 0) rotate(2deg); }
}

.hero__mountains {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  width: 100%;
  height: var(--mountains-h);
  pointer-events: none;
}

.ridge {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: ridge-draw 3.2s var(--ease-out) forwards;
}

.ridge--back { stroke: rgb(124 104 240 / 0.5); stroke-width: 1.5; animation-delay: 0.2s; }
.ridge--mid { stroke: rgb(43 183 199 / 0.7); stroke-width: 1.5; animation-delay: 0.5s; }
.ridge--front { stroke: url(#ridge-gradient); stroke-width: 2.5; animation-delay: 0.8s; }

.ridge-fill {
  opacity: 0;
  animation: fade-in 2s ease 1.6s forwards;
}

@keyframes ridge-draw {
  to { stroke-dashoffset: 0; }
}

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

.hero__star {
  fill: var(--glacier);
  animation: twinkle 3.5s ease-in-out infinite;
}

.hero__star:nth-child(2n) { animation-delay: 1.1s; }
.hero__star:nth-child(3n) { animation-delay: 2.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

.hero__content {
  position: relative;
  max-width: 54rem;
}

.hero__badge {
  margin-bottom: var(--space-5);
}

.hero__title {
  margin-bottom: var(--space-5);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__title-inner {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease-out) forwards;
}

.hero__title-line:nth-child(2) .hero__title-inner { animation-delay: 0.12s; }
.hero__title-line:nth-child(3) .hero__title-inner { animation-delay: 0.24s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.rotator {
  display: inline-block;
  min-width: 1ch;
}

.rotator__word {
  display: inline-block;
}

.rotator__word.is-leaving {
  animation: word-out 0.4s var(--ease-out) forwards;
}

.rotator__word.is-entering {
  animation: word-in 0.5s var(--ease-out) forwards;
}

@keyframes word-out {
  to { opacity: 0; transform: translateY(-0.4em); filter: blur(6px); }
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(0.4em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero__lead {
  max-width: 38rem;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.45s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.6s forwards;
}

.hero__badge {
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) forwards;
}

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

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  display: none;
  width: 1.5rem;
  height: 2.4rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 3px;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--glacier);
  transform: translateX(-50%);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 0.8rem); }
}

@media (min-width: 48rem) and (min-height: 44rem) {
  .hero__scroll { display: block; }
}

/* Technology marquee */
.marquee {
  position: relative;
  padding-block: var(--space-5);
  border-block: 1px solid var(--line);
  background: var(--bg-sunken);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--space-7);
  width: max-content;
  padding: 0;
  list-style: none;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.marquee__item::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--glacier);
  transform: rotate(45deg);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Services grid — 3 cards on the first row, 2 centred on the second */
@media (min-width: 48rem) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid > * { grid-column: span 2; }
  .services-grid > :nth-child(4) { grid-column: 2 / span 2; }
}

/* Services cards — subtle spotlight follows the pointer */
.service-card {
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(18rem circle at var(--spot-x, 50%) var(--spot-y, 0%), rgb(43 183 199 / 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Audience split */
.audience {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 40rem) {
  .audience { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .audience { grid-template-columns: repeat(4, 1fr); }
}

.audience__item {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.audience__item h3 {
  margin-bottom: var(--space-2);
  font-size: 1.0625rem;
}

.audience__item p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Process / "ascension" timeline */
.process {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 56rem) {
  .process { grid-template-columns: repeat(4, 1fr); }

  .process::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    /* End on the centre of the last marker: one column width minus half a marker */
    right: calc((100% - 3 * var(--space-5)) / 4 - 1.5rem);
    height: 1px;
    background: linear-gradient(90deg, var(--glacier), var(--violet), var(--alpenglow));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    transition: transform 1.6s var(--ease-out);
  }

  .process.is-visible::before {
    --progress: 1;
  }
}

.process__step {
  position: relative;
  counter-increment: step;
}

.process__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--glacier);
  font-family: var(--font-display);
  font-weight: 700;
}

.process__marker::before {
  content: counter(step, decimal-leading-zero);
}

.process__title {
  margin-bottom: var(--space-2);
  font-size: 1.125rem;
}

.process__text {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Project-type showcase with CSS-only browser mockups */
.showcase {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 56rem) {
  .showcase { grid-template-columns: repeat(3, 1fr); }
}

.project {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mockup {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}

.project:hover .mockup {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: var(--shadow-glow);
}

.mockup__bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.mockup__bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.mockup__body {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
}

.mockup__block {
  height: 0.55rem;
  border-radius: 3px;
  background: var(--line-strong);
}

.mockup__block--hero {
  height: 4.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgb(43 183 199 / 0.35), rgb(124 104 240 / 0.3));
}

.mockup__block--hero-warm {
  background: linear-gradient(120deg, rgb(240 118 74 / 0.35), rgb(124 104 240 / 0.25));
}

.mockup__block--hero-green {
  background: linear-gradient(120deg, rgb(31 157 99 / 0.3), rgb(43 183 199 / 0.25));
}

.mockup__block--w60 { width: 60%; }
.mockup__block--w40 { width: 40%; }
.mockup__block--w80 { width: 80%; }

.mockup__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.mockup__cols span {
  height: 2.2rem;
  border-radius: 4px;
  background: var(--surface-hover);
  border: 1px solid var(--line);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project__title {
  font-size: 1.25rem;
}

.project__text {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* 8. Shared sections ------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(240 118 74 / 0.16), transparent 70%),
    radial-gradient(40rem 20rem at 0% 100%, rgb(43 183 199 / 0.14), transparent 70%),
    var(--bg-raised);
  text-align: center;
  overflow: hidden;
}

.cta-band__title {
  max-width: 36rem;
  margin: 0 auto var(--space-4);
  font-size: var(--fs-2xl);
}

.cta-band__text {
  max-width: 34rem;
  margin: 0 auto var(--space-6);
  color: var(--muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-7);
  background:
    radial-gradient(45rem 22rem at 10% 0%, rgb(43 183 199 / 0.1), transparent 70%),
    radial-gradient(40rem 22rem at 95% 10%, rgb(124 104 240 / 0.12), transparent 70%),
    var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__title {
  max-width: 48rem;
  margin-bottom: var(--space-4);
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.page-hero__lead {
  max-width: 40rem;
}

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  font-size: var(--fs-sm);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer__about {
  max-width: 24rem;
  margin-top: var(--space-4);
  color: var(--muted);
}

.site-footer__title {
  margin-bottom: var(--space-4);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__list {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.site-footer__list a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__list a:hover {
  color: var(--heading);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* 9. Contact / quote form -------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 64rem) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
}

.contact-aside {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 64rem) {
  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

.contact-aside .card {
  padding: var(--space-5);
}

.contact-aside h2 {
  margin-bottom: var(--space-3);
  font-size: 1.0625rem;
}

.contact-aside p,
.contact-aside li {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.quote-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
}

.form-progress {
  display: none;
  margin-bottom: var(--space-6);
}

.quote-form.is-stepped .form-progress {
  display: block;
}

.form-progress__labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.form-progress__labels li {
  color: var(--muted);
  transition: color 0.3s ease;
}

.form-progress__labels li.is-active,
.form-progress__labels li.is-done {
  color: var(--heading);
}

.form-progress__labels li.is-done::before {
  content: "✓ ";
  color: var(--success);
}

.form-progress__bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}

.form-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-brand);
  transform: scaleX(0.3333);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.form-progress__fill[data-step="2"] { transform: scaleX(0.6666); }
.form-progress__fill[data-step="3"] { transform: scaleX(1); }

.form-step {
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-step + .form-step {
  margin-top: var(--space-7);
}

.quote-form.is-stepped .form-step + .form-step {
  margin-top: 0;
}

.quote-form.is-stepped .form-step:not(.is-current) {
  display: none;
}

.quote-form.is-stepped .form-step.is-current {
  animation: fade-up 0.45s var(--ease-out);
}

.form-step__legend {
  margin-bottom: var(--space-5);
  padding: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  min-width: 0;
}

.field__label,
.field__group-label {
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.field__required {
  color: var(--alpenglow);
}

.field__hint {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--heading);
  font-size: 1rem; /* >= 16px avoids iOS zoom on focus */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field__input::placeholder {
  color: rgb(84 101 126 / 0.85);
}

.field__input:hover {
  border-color: rgb(11 23 40 / 0.34);
}

.field__input:focus {
  outline: none;
  border-color: var(--glacier);
  box-shadow: 0 0 0 3px rgb(43 183 199 / 0.18);
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgb(200 40 60 / 0.2);
}

select.field__input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2354657e' stroke-width='1.8'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

select.field__input option {
  background: var(--bg);
  color: var(--heading);
}

textarea.field__input {
  min-height: 10rem;
  resize: vertical;
}

.field__counter {
  justify-self: end;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.field__error {
  display: none;
  color: var(--danger);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.field__error.is-visible {
  display: block;
}

/* Choice chips (radio / checkbox) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: var(--space-3);
  padding: 0;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.chip input:hover + label {
  border-color: rgb(11 23 40 / 0.34);
}

.chip input:checked + label {
  border-color: var(--glacier);
  background: rgb(43 183 199 / 0.12);
  color: var(--heading);
}

.chip input:focus-visible + label {
  outline: 2px solid var(--glacier);
  outline-offset: 2px;
}

/* Native consent checkbox */
.consent {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
}

.consent input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--glacier);
}

/* Drop zone */
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.6);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone.is-dragover {
  border-color: var(--glacier);
  background: rgb(43 183 199 / 0.08);
}

.dropzone__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--glacier);
}

.dropzone__title {
  color: var(--heading);
  font-weight: 500;
}

.dropzone__browse {
  color: var(--glacier);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone:focus-within {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
}

/* Without JS the native file input stays visible and usable */
.no-js .dropzone input[type="file"] {
  position: static;
  opacity: 1;
  margin-top: var(--space-3);
}

.file-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: 0;
  list-style: none;
}

.file-list:empty {
  display: none;
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  animation: fade-up 0.3s var(--ease-out);
}

.file-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--glacier);
}

.file-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item__size {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.file-item__remove {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.file-item__remove:hover {
  background: rgb(200 40 60 / 0.12);
  color: var(--danger);
}

.file-item__remove svg {
  width: 1rem;
  height: 1rem;
}

/* Honeypot: hidden from humans, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-required-note {
  margin-top: var(--space-5);
}

.form-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.form-nav__prev,
.form-nav__next {
  display: none;
}

.quote-form.is-stepped .form-nav__prev,
.quote-form.is-stepped .form-nav__next {
  display: inline-flex;
}

.form-nav__end {
  margin-left: auto;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .btn__label {
  opacity: 0.6;
}

.spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}

.form-status:empty {
  display: none;
}

.form-status--success {
  border-color: rgb(31 157 99 / 0.4);
  background: rgb(31 157 99 / 0.08);
  color: var(--heading);
}

.form-status--error {
  border-color: rgb(200 40 60 / 0.4);
  background: rgb(200 40 60 / 0.08);
  color: var(--heading);
}

.form-success {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.form-success__icon {
  width: 4rem;
  height: 4rem;
  color: var(--success);
}

.form-success__icon circle,
.form-success__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success__icon circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: ridge-draw 0.8s var(--ease-out) forwards;
}

.form-success__icon path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ridge-draw 0.5s var(--ease-out) 0.6s forwards;
}

.form-success h2 {
  font-size: var(--fs-xl);
}

.form-success p {
  max-width: 30rem;
  color: var(--muted);
}

/* 10. About page ----------------------------------------------------------- */
.about-intro {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 56rem) {
  .about-intro { grid-template-columns: 12.5rem minmax(0, 1fr); }
}

.portrait {
  position: relative;
  aspect-ratio: 1;
  max-width: 12.5rem; /* the photo is 200 px wide: never upscale it */
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(14rem 10rem at 30% 20%, rgb(43 183 199 / 0.25), transparent 70%),
    radial-gradient(14rem 10rem at 80% 90%, rgb(240 118 74 / 0.2), transparent 70%),
    var(--bg-raised);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
}

.about-body p {
  color: var(--text);
}

.facts {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.facts li {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.facts strong {
  display: block;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.facts span {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.skills {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 48rem) {
  .skills { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .skills { grid-template-columns: repeat(4, 1fr); }
}

.skills__group h3 {
  margin-bottom: var(--space-4);
  font-size: 1.0625rem;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.timeline {
  position: relative;
  display: grid;
  gap: var(--space-6);
  max-width: 48rem;
  padding: 0 0 0 var(--space-6);
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.3rem;
  width: 1px;
  background: linear-gradient(180deg, var(--glacier), var(--violet), transparent);
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: calc(-1 * var(--space-6) + 0.05rem);
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--glacier);
  border-radius: 50%;
  background: var(--bg);
}

.timeline__period {
  color: var(--glacier);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline__title {
  margin-block: var(--space-1) var(--space-2);
  font-size: 1.125rem;
}

.timeline__text {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.certs {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .certs { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .certs { grid-template-columns: repeat(3, 1fr); }
}

.certs__item {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
}

.certs__title {
  margin-block: var(--space-1) var(--space-2);
  font-size: 1.0625rem;
}

.certs__issuer {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.journey-subtitle {
  margin-block: var(--space-8) var(--space-5);
  font-size: var(--fs-xl);
}

/* 11. Legal & 404 pages ---------------------------------------------------- */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-block: var(--space-7) var(--space-4);
  font-size: var(--fs-xl);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-block: var(--space-5) var(--space-3);
  font-size: 1.125rem;
}

.prose p,
.prose ul {
  margin-bottom: var(--space-4);
}

.prose ul {
  padding-left: var(--space-5);
}

.prose li + li {
  margin-top: var(--space-2);
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-8);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-page p {
  max-width: 28rem;
  margin: var(--space-4) auto var(--space-6);
  color: var(--muted);
}

/* 12. Motion: scroll reveal & reduced motion ------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { --reveal-delay: 0.08s; }
[data-reveal-delay="2"] { --reveal-delay: 0.16s; }
[data-reveal-delay="3"] { --reveal-delay: 0.24s; }
[data-reveal-delay="4"] { --reveal-delay: 0.32s; }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .marquee__track [aria-hidden="true"] {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__mountains,
  .hero__topo,
  .marquee {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
