/* Self-hosted fonts (latin subset, variable weight). No request to
   third parties: better for privacy/LGPD and allows a strict CSP. */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/lexend-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
}

/* ════════════════════════════════════════════════════════════════
   QUALIFICA VS DESIGN SYSTEM
   Built from the brand logo: the blue of the "Q" ring and the
   blue / orange / green segments of its gauge.

   Three layers: primitive → semantic → component. The semantic layer is
   what each theme redefines; components that must change with the theme
   read it. Two kinds of component read primitives on purpose, because
   they look the same in both themes: the brand colours (filled buttons,
   gauge segments, the WhatsApp button) and the always-dark surfaces
   (marquee, contact, footer), which use the --on-dark-* tokens.
   ════════════════════════════════════════════════════════════════ */

/* ── LAYER 1 · PRIMITIVE ──────────────────────────────────────── */
:root {
  --blue-50:  #EEF6FC;
  --blue-100: #D6E9F7;
  --blue-200: #B3D5EF;
  --blue-300: #7FB6E0;
  --blue-400: #3E91CF;
  --blue-500: #0B6DB5;  /* brand anchor: the "Q" ring */
  --blue-600: #095B98;
  --blue-700: #084A7C;

  --navy-950: #04101D;
  --navy-900: #061526;
  --navy-850: #0A1E35;
  --navy-800: #0E2A47;
  --navy-700: #16395E;

  --steel-300: #A9C2CF;
  --steel-400: #8FAFBF;  /* secondary logo grey-blue */

  --orange-400: #F29A55;
  --orange-500: #E87722; /* gauge segment 2 */
  --orange-700: #A8500E;
  --green-400:  #3CC377;
  --green-500:  #12A150; /* gauge segment 3 */
  --green-700:  #0B7A3B;

  --ink-900: #0B1726;
  --ink-700: #2A3B4F;
  --ink-500: #4A5B6E;
  --paper:   #F5F9FC;
  --white:   #FFFFFF;
}

/* ── LAYER 2 · SEMANTIC ───────────────────────────────────────── */
:root,
[data-theme='light'] {
  --surface-base:   var(--paper);
  --surface-raised: var(--white);
  --surface-alt:    var(--blue-50);
  --surface-sunken: #E9F1F8;

  --content-primary:   var(--ink-900);
  --content-secondary: var(--ink-700);
  --content-muted:     var(--ink-500);

  --brand:          var(--blue-500);
  --brand-strong:   var(--blue-600);
  --brand-text:     var(--blue-600);   /* 6.4:1 on paper */
  --brand-soft:     var(--blue-100);
  --brand-on:       var(--white);

  --signal-attention: var(--orange-700);
  --signal-ok:        var(--green-700);

  --line-subtle: rgba(11, 45, 80, 0.10);
  --line-strong: rgba(11, 45, 80, 0.20);

  --material-thick: rgba(245, 249, 252, 0.86);
  --shadow-ambient: 0 18px 44px -24px rgba(7, 28, 51, 0.38);
  --shadow-raised:  0 30px 70px -30px rgba(7, 28, 51, 0.45);

  --logo-filter: none;
  color-scheme: light;
}

[data-theme='dark'] {
  --surface-base:   var(--navy-900);
  --surface-raised: var(--navy-850);
  --surface-alt:    var(--navy-950);
  --surface-sunken: var(--navy-950);

  --content-primary:   #E8F0F7;
  --content-secondary: #C3D2E0;
  --content-muted:     #93A7BB;

  --brand:          var(--blue-400);
  --brand-strong:   var(--blue-300);
  --brand-text:     var(--blue-300);   /* 7.9:1 on navy-900 */
  --brand-soft:     rgba(62, 145, 207, 0.16);
  --brand-on:       var(--navy-950);

  --signal-attention: var(--orange-400);
  --signal-ok:        var(--green-400);

  --line-subtle: rgba(169, 194, 207, 0.12);
  --line-strong: rgba(169, 194, 207, 0.24);

  --material-thick: rgba(6, 21, 38, 0.86);
  --shadow-ambient: 0 22px 50px -26px rgba(0, 0, 0, 0.8);
  --shadow-raised:  0 30px 70px -30px rgba(0, 0, 0, 0.85);

  /* the colour logo has blue type; on navy it is shown in white */
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}

/* ── LAYER 3 · COMPONENT ──────────────────────────────────────── */
:root {
  --font-display: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --measure: 66ch;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --s-1: 0.5rem;  --s-2: 1rem;  --s-3: 1.5rem;
  --s-4: 2.5rem;  --s-5: 4rem;  --s-6: clamp(4.5rem, 9vw, 7.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* always-dark brand surfaces (marquee, contact, footer) keep these
     regardless of theme */
  --on-dark-primary:   #F2F7FB;
  --on-dark-secondary: rgba(242, 247, 251, 0.8);
  --on-dark-muted:     rgba(242, 247, 251, 0.6);
  --on-dark-accent:    var(--blue-300);
  --on-dark-line:      rgba(169, 194, 207, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--content-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--content-primary);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}
h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p { margin: 0 0 var(--s-2); max-width: var(--measure); text-wrap: pretty; }

a { color: var(--brand-text); text-underline-offset: 4px; }

/* Eyebrow carries the gauge's three colours as its rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 var(--s-2);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--blue-500) 0 30%, transparent 30% 35%,
    var(--orange-500) 35% 65%, transparent 65% 70%,
    var(--green-500) 70%);
}

.shell { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }

section { padding-block: var(--s-6); position: relative; }

.section-head { margin-bottom: var(--s-5); max-width: 760px; }
.section-head p:last-child {
  margin: var(--s-2) 0 0;
  color: var(--content-muted);
  font-size: 1.12rem;
}

::selection { background: var(--brand); color: var(--brand-on); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Reveal on scroll ──
   Hidden only while html.js is set. theme.js sets it and removes it again
   if main.js has not finished within 4s (failed, blocked or crashed), so
   content is never lost to a crawler or a failed script. --d staggers. */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.8s var(--ease) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; translate: none; }
/* Reveal uses `translate`, hover lifts use `transform`: the two never
   collide. Cards that are also reveals keep their hover transitions. */
.js .segment.reveal,
.js .service.reveal {
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.8s var(--ease) var(--d, 0s),
              transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* Image wipe: the photo is uncovered from the bottom up */
.js .wipe img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.12);
  transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .wipe.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* ════════════════ BUTTONS ════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--blue-500);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(11, 109, 181, 0.7);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.button:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(11, 109, 181, 0.75);
}
.button:active { transform: translateY(0) scale(0.98); }
.button svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.button:hover svg { transform: translateX(3px); }

.button--ghost {
  background: transparent;
  color: var(--content-primary);
  border-color: var(--line-strong);
  box-shadow: none;
}
.button--ghost:hover {
  background: var(--surface-raised);
  border-color: var(--brand);
  box-shadow: none;
}
.button--light {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5);
}
.button--light:hover { background: var(--blue-50); }
.button--small { min-height: 44px; padding: 0 1.15rem; font-size: 0.86rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--blue-500); color: var(--white);
  text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ════════════════ Q MARK (shared SVG motif) ════════════════
   The logo's "Q" rebuilt as SVG: a ring, three gauge segments and a
   needle. Every animation on the page is a variation of it. */
.qmark .q-ring { stroke: var(--brand); }
.qmark .q-needle { fill: var(--brand); transform-origin: 60px 60px; }
.qmark .q-seg-1 { stroke: var(--blue-500); }
.qmark .q-seg-2 { stroke: var(--orange-500); }
.qmark .q-seg-3 { stroke: var(--green-500); }

/* ════════════════ SCROLL PROGRESS ════════════════ */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue-500), var(--orange-500) 60%, var(--green-500));
  pointer-events: none;
}

/* ════════════════ HEADER ════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header--compact {
  background: var(--material-thick);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-subtle);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: 0.8rem;
  transition: padding 0.35s var(--ease);
}
.header--compact .header__inner { padding-block: 0.45rem; }

.header__brand {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-right: auto;
}
.header__brand img {
  width: 150px;
  height: auto;
  filter: var(--logo-filter);
  transition: width 0.35s var(--ease), filter 0.5s var(--ease);
}
.header--compact .header__brand img { width: 128px; }

.header__nav { display: flex; gap: var(--s-3); }
.header__nav a {
  position: relative;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--content-secondary);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.header__nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.header__nav a:hover { color: var(--content-primary); }
.header__nav a:hover::after,
.header__nav a[aria-current='true']::after { transform: scaleX(1); }

.header__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--content-secondary);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.header__theme:hover { background: var(--surface-raised); color: var(--brand); }
.header__theme svg { width: 20px; height: 20px; }
.header__theme .icon-sun { display: none; }
[data-theme='dark'] .header__theme .icon-sun { display: block; }
[data-theme='dark'] .header__theme .icon-moon { display: none; }

.header__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.header__burger span,
.header__burger span::before,
.header__burger span::after {
  display: block;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--content-primary);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.header__burger span::before,
.header__burger span::after { content: ''; position: absolute; }
.header__burger span::before { transform: translateY(-7px); }
.header__burger span::after { transform: translateY(7px); }
.header__burger span.is-x { background: transparent; }
.header__burger span.is-x::before { transform: rotate(45deg); }
.header__burger span.is-x::after { transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--s-1) 1.25rem var(--s-3);
  background: var(--surface-raised);
  border-top: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-ambient);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 0.75rem 0.25rem;
  color: var(--content-secondary);
  font-family: var(--font-display);
  text-decoration: none;
  border-bottom: 1px solid var(--line-subtle);
}
.mobile-menu .button { margin-top: var(--s-2); color: var(--white); border-bottom: 0; }

@media (max-width: 960px) {
  .header__nav, .header__inner > .button { display: none; }
  .header__burger { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
  .header__inner.is-menu-open { background: var(--surface-raised); }
}

/* ════════════════ HERO ════════════════ */
.hero {
  padding-block: clamp(7.5rem, 13vw, 10rem) var(--s-6);
  overflow: hidden;
  isolation: isolate;
}
/* blueprint grid + glow, fading out toward the bottom */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, var(--brand-soft) 0%, transparent 70%),
    linear-gradient(var(--line-subtle) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

/* Kinetic questions, quoted from the brand video */
.ticker {
  position: relative;
  height: 1.7em;
  margin-bottom: var(--s-3);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--content-muted);
}
.ticker__item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.ticker__item::before {
  content: '';
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.18);
}
.ticker__item.is-active { opacity: 1; transform: none; }
.ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
/* without JS, the first question simply shows */
html:not(.js) .ticker__item:first-child { opacity: 1; transform: none; }

.hero__title { margin-bottom: var(--s-3); }
.hero__title .line { display: block; }

/* rotating verb: regularizar → certificar → capacitar → legalizar */
.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.rotator__word {
  grid-area: 1 / 1;
  color: var(--brand-text);
  opacity: 0;
  transform: translateY(0.9em) rotateX(-60deg);
  transform-origin: 50% 100%;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}
.rotator__word.is-active { opacity: 1; transform: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-0.9em) rotateX(60deg); }
html:not(.js) .rotator__word:first-child { opacity: 1; transform: none; }
/* gradient underline that draws itself under each verb as it arrives */
.rotator__word {
  padding-bottom: 0.06em;
  background: linear-gradient(90deg, var(--blue-500), var(--orange-500), var(--green-500)) no-repeat 0 100% / 0% 0.09em;
}
.rotator__word.is-active {
  background-size: 100% 0.09em;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), background-size 0.9s 0.35s var(--ease);
}
html:not(.js) .rotator__word:first-child { background-size: 100% 0.09em; }

.hero__lede {
  color: var(--content-secondary);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 48ch;
  margin-bottom: var(--s-4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin: 0; padding: var(--s-3) 0 0;
  list-style: none;
  border-top: 1px solid var(--line-subtle);
}
.hero__facts li {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--content-secondary);
}
.hero__facts svg { width: 18px; height: 18px; color: var(--signal-ok); flex: none; }

/* ── Hero visual: photo, Q gauge and floating status cards ── */
.hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1.02;
}
.hero__photo {
  position: absolute;
  inset: 6% 0 0 12%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(6, 21, 38, 0.55));
}

.hero__q {
  position: absolute;
  left: -4%; top: -2%;
  width: 46%;
  padding: 7%;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised);
  z-index: 2;
}

/* intro choreography: ring draws, segments light in turn, needle swings */
.js .hero__q .q-ring {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.4s 0.2s var(--ease) forwards;
}
.js .hero__q .q-seg {
  opacity: 0;
  animation: seg-in 0.5s var(--ease-spring) forwards;
}
.js .hero__q .q-seg-1 { animation-delay: 1.1s; }
.js .hero__q .q-seg-2 { animation-delay: 1.3s; }
.js .hero__q .q-seg-3 { animation-delay: 1.5s; }
.js .hero__q .q-needle {
  transform: rotate(-200deg);
  opacity: 0;
  animation: needle-in 1.6s 0.6s var(--ease-spring) forwards;
}
/* after the intro the needle idles, like a live instrument */
.hero__q.is-live .q-needle {
  opacity: 1;
  transform: none; /* resting pose if the idle loop is cut short (reduced motion) */
  animation: needle-idle 5s ease-in-out infinite;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes seg-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes needle-in {
  0%   { transform: rotate(-200deg); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: rotate(0deg); opacity: 1; }
}
@keyframes needle-idle {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-7deg); }
}

.status {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.8rem;
  border-radius: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-ambient);
  font-family: var(--font-display);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.status__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  flex: none;
}
.status__icon svg { width: 20px; height: 20px; }
.status--ok .status__icon { background: rgba(18, 161, 80, 0.14); color: var(--signal-ok); }
.status--doc .status__icon { background: var(--brand-soft); color: var(--brand-text); }
.status--warn .status__icon { background: rgba(232, 119, 34, 0.14); color: var(--signal-attention); }
.status strong { display: block; font-size: 0.86rem; font-weight: 500; color: var(--content-primary); line-height: 1.2; }
.status small { font-size: 0.76rem; color: var(--content-muted); }

.status--a { right: -3%; top: 16%; animation-delay: -1s; }
.status--b { left: 2%; bottom: 14%; animation-delay: -3s; }
.status--c { right: 6%; bottom: -3%; animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* cards arrive after the gauge finishes */
.js .status { opacity: 0; }
.js .hero.is-ready .status { opacity: 1; transition: opacity 0.6s var(--ease); }
.js .hero.is-ready .status--a { transition-delay: 1.6s; }
.js .hero.is-ready .status--b { transition-delay: 1.9s; }
.js .hero.is-ready .status--c { transition-delay: 2.2s; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .status { padding: 0.55rem 0.75rem 0.55rem 0.55rem; }
  .status__icon { width: 30px; height: 30px; }
  .status small { display: none; }
  .status--a { right: -2%; }
  .ticker { font-size: 0.78rem; letter-spacing: 0.02em; }
  .ticker__item { white-space: normal; line-height: 1.25; }
  .ticker { height: 2.6em; }
}

/* ════════════════ MARQUEE ════════════════ */
.marquee {
  padding-block: 1.4rem;
  background: var(--navy-900);
  color: var(--on-dark-primary);
  overflow: hidden;
  border-block: 1px solid var(--on-dark-line);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center;
  gap: 2.5rem; padding-right: 2.5rem;
  margin: 0; list-style: none; padding-left: 0;
}
.marquee__group li {
  display: flex; align-items: center; gap: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
/* separator: the three gauge segments */
.marquee__group li::after {
  content: '';
  width: 28px; height: 8px;
  background: linear-gradient(90deg,
    var(--blue-400) 0 28%, transparent 28% 36%,
    var(--orange-500) 36% 64%, transparent 64% 72%,
    var(--green-500) 72%);
  border-radius: 2px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ════════════════ SEGMENTS ════════════════ */
.segments__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  list-style: none; margin: 0; padding: 0;
}

.segment {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface-raised);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.segment:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-raised);
  border-color: var(--line-strong);
}
.segment__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}
.segment__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.segment__media img { transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
.segment:hover .segment__media img { transform: scale(1.05); }
.segment__ref {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 21, 38, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.segment__body { padding: var(--s-3) var(--s-3) var(--s-4); }
.segment__body h3 {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-bottom: 0.6rem;
}
.segment__num {
  font-size: 0.8rem; font-weight: 500;
  color: var(--brand-text);
  letter-spacing: 0.08em;
}
.segment__body > p { color: var(--content-muted); }
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.2rem;
  margin: var(--s-2) 0 0; padding: 0;
  list-style: none;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--content-secondary);
  line-height: 1.4;
}
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--signal-ok); }

@media (max-width: 860px) {
  .segments__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ════════════════ SERVICES ════════════════ */
.services { background: var(--surface-raised); border-block: 1px solid var(--line-subtle); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  list-style: none; margin: 0; padding: 0;
}
.service {
  position: relative;
  padding: var(--s-3);
  border-radius: var(--r);
  background: var(--surface-base);
  border: 1px solid var(--line-subtle);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              opacity 0.8s var(--ease);
}
/* hover: a gauge-coloured bar sweeps across the top edge */
.service::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--orange-500), var(--green-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-ambient); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--s-2);
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-text);
  transition: transform 0.4s var(--ease-spring), background 0.3s var(--ease), color 0.3s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); background: var(--blue-500); color: var(--white); }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 0.45rem; }
.service p { margin: 0; font-size: 0.96rem; color: var(--content-muted); line-height: 1.6; }

@media (max-width: 1080px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .services__grid { grid-template-columns: 1fr; } }

/* ════════════════ METHOD (sticky gauge) ════════════════ */
.method__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.method__aside {
  position: sticky;
  top: 110px;
}
.gauge {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-top: var(--s-3);
  padding: 9%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--surface-raised) 58%, transparent 59%),
    conic-gradient(from 0deg, var(--line-subtle) 0 100%);
  box-shadow: var(--shadow-raised);
  background-color: var(--surface-raised);
}
/* tick marks around the dial */
.gauge::before {
  content: '';
  position: absolute; inset: 3.5%;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--line-strong) 0 0.6deg, transparent 0.6deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%);
}
.gauge .q-needle {
  /* shortened so the tip lands on the lit segment instead of covering it */
  transform: rotate(var(--needle, -150deg)) scale(0.74);
  transition: transform 1.1s var(--ease-spring), fill 0.5s var(--ease);
}
.gauge .q-seg { opacity: 0.18; transition: opacity 0.5s var(--ease), stroke-width 0.5s var(--ease); }
.gauge[data-step='1'] .q-seg-1,
.gauge[data-step='2'] .q-seg-2,
.gauge[data-step='3'] .q-seg-3 { opacity: 1; stroke-width: 16; }
.gauge[data-step='3'] .q-seg { opacity: 1; }
.gauge[data-step='1'] .q-needle { fill: var(--blue-500); }
.gauge[data-step='2'] .q-needle { fill: var(--orange-500); }
.gauge[data-step='3'] .q-needle { fill: var(--green-500); }

.gauge__label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: var(--s-3);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--line-subtle);
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--content-primary);
  box-shadow: var(--shadow-ambient);
}
.gauge__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-500);
  transition: background 0.4s var(--ease);
  animation: pulse 2s ease-out infinite;
}
.gauge__label[data-step='2'] .gauge__dot { background: var(--orange-500); }
.gauge__label[data-step='3'] .gauge__dot { background: var(--green-500); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  min-height: 46vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-4) 0 var(--s-4) var(--s-4);
  border-left: 2px solid var(--line-subtle);
  transition: opacity 0.5s var(--ease);
}
.js .step { opacity: 0.38; }
.js .step.is-current { opacity: 1; }
/* the active step lights its section of the rail */
.step::before {
  content: '';
  position: absolute; left: -2px; top: 0; bottom: 0;
  width: 2px;
  background: var(--step-color, var(--blue-500));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.7s var(--ease);
}
.step.is-current::before, html:not(.js) .step::before { transform: scaleY(1); }
.step:nth-child(1) { --step-color: var(--blue-500); }
.step:nth-child(2) { --step-color: var(--orange-500); }
.step:nth-child(3) { --step-color: var(--green-500); }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 200;
  line-height: 1;
  color: var(--step-color);
  margin-bottom: var(--s-2);
}
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6rem; }
.step p { color: var(--content-muted); font-size: 1.08rem; margin: 0; }
.step__tag {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--content-muted);
}

@media (max-width: 860px) {
  .method__grid { grid-template-columns: 1fr; }
  .method__aside { position: relative; top: 0; }
  .gauge { width: 220px; margin-inline: 0; }
  .step { min-height: 0; padding-block: var(--s-3); }
  .js .step { opacity: 1; }
}

/* ════════════════ REGISTRATION (photo band) ════════════════ */
.feature {
  padding-block: 0;
  overflow: hidden;
}
.feature__inner {
  position: relative;
  min-height: clamp(460px, 62vh, 620px);
  display: grid;
  align-items: center;
  border-radius: 0;
  color: var(--on-dark-primary);
  isolation: isolate;
  overflow: hidden;
}
.feature__bg {
  position: absolute; inset: -12% 0; z-index: -2;
  will-change: transform;
}
.feature__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.feature__inner::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 16, 29, 0.92) 0%, rgba(4, 16, 29, 0.72) 45%, rgba(4, 16, 29, 0.15) 100%);
}
.feature__content { padding-block: var(--s-5); }
.feature h2 { color: var(--on-dark-primary); max-width: 16ch; }
.feature .eyebrow { color: var(--on-dark-accent); }
.feature__lede { color: var(--on-dark-secondary); margin-top: var(--s-2); max-width: 46ch; }
.chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: var(--s-3) 0 0; padding: 0; list-style: none;
  max-width: 560px;
}
.chips li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--on-dark-line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

/* ════════════════ ABOUT ════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media {
  position: relative;
  margin: 0;
}
.about__media .frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-raised);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  right: -1.25rem; bottom: 2rem;
  width: 132px; aspect-ratio: 1;
  padding: 20px;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised);
}
.about__badge .q-needle { animation: needle-idle 5s ease-in-out infinite; }

.about__quote {
  margin: var(--s-3) 0;
  padding: var(--s-1) 0 var(--s-1) var(--s-3);
  border-left: 3px solid var(--brand);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--content-primary);
}
.about__text > p { color: var(--content-secondary); }

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: var(--s-4) 0 0; padding: 0;
  list-style: none;
  background: var(--line-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r);
  overflow: hidden;
}
.values li { background: var(--surface-raised); padding: var(--s-3); }
.values h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.values p { margin: 0; font-size: 0.94rem; color: var(--content-muted); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .about__badge { right: 0.75rem; width: 104px; padding: 16px; }
}
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* ════════════════ FAQ ════════════════ */
.faq { background: var(--surface-raised); border-top: 1px solid var(--line-subtle); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--s-5);
  align-items: start;
}
.faq__intro { margin-top: var(--s-2); color: var(--content-muted); }
.faq__list { list-style: none; margin: 0; padding: 0; }
.faq-item { border-bottom: 1px solid var(--line-subtle); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-item__button {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
  width: 100%;
  min-height: 56px;
  padding: var(--s-2) 0;
  background: none; border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--content-primary);
  transition: color 0.25s var(--ease);
}
.faq-item__button:hover { color: var(--brand-text); }
.faq-item__icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--brand-text);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item__button[aria-expanded='true'] .faq-item__icon { background: var(--blue-500); border-color: var(--blue-500); transform: rotate(180deg); }
.faq-item__button[aria-expanded='true'] .faq-item__icon::before,
.faq-item__button[aria-expanded='true'] .faq-item__icon::after { background: var(--white); }
.faq-item__button[aria-expanded='true'] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-item__answer[hidden] { display: none; }
.faq-item__answer p {
  margin: 0;
  padding: 0 3rem var(--s-3) 0;
  color: var(--content-muted);
  line-height: 1.75;
  animation: answer-in 0.45s var(--ease);
}
@keyframes answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .faq-item__answer p { padding-right: 0; }
}

/* ════════════════ CONTACT ════════════════ */
.contact {
  /* brand surface: navy in both themes */
  background:
    radial-gradient(70% 80% at 12% 0%, rgba(11, 109, 181, 0.45) 0%, transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(18, 161, 80, 0.16) 0%, transparent 60%),
    var(--navy-900);
  color: var(--on-dark-primary);
  overflow: hidden;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.contact .eyebrow { color: var(--on-dark-accent); }
.contact__title { color: var(--on-dark-primary); }
.contact__lede { margin-top: var(--s-2); color: var(--on-dark-secondary); max-width: 44ch; }

.contact__facts { margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.contact__facts dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-accent);
  margin-bottom: 0.2rem;
}
.contact__facts dd { margin: 0; font-family: var(--font-display); font-size: 1.12rem; }
.contact__facts a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--on-dark-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--on-dark-line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__facts a:hover { color: var(--on-dark-accent); border-color: var(--on-dark-accent); }

.contact__panel {
  background: var(--surface-raised);
  color: var(--content-primary);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.form { display: grid; gap: var(--s-3); }
.form[hidden] { display: none; }
.field { display: grid; gap: 0.4rem; }
.field label,
.field legend {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--content-secondary);
  padding: 0;
}
.field__optional { font-weight: 400; color: var(--content-muted); }
.field input[type='text'],
.field input[type='tel'],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--content-primary);
  background: var(--surface-base);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field input[aria-invalid='true'] { border-color: #C2410C; }
.field__error { margin: 0; font-size: 0.86rem; font-weight: 600; color: #B4380B; }
[data-theme='dark'] .field__error { color: #FDA67A; }
.field__error[hidden] { display: none; }

.field--options { border: 0; margin: 0; padding: 0; }
.field--options legend { margin-bottom: 0.6rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field--options .choice {
  display: flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--content-secondary);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.choice:hover { border-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--content-primary); }
.choice input { accent-color: var(--blue-500); width: 16px; height: 16px; margin: 0; }

.form .button { width: 100%; }
.form__note { margin: -0.5rem 0 0; font-size: 0.84rem; color: var(--content-muted); text-align: center; max-width: none; }

.success { text-align: center; padding: var(--s-3) 0; }
.success[hidden] { display: none; }
.success svg { width: 56px; height: 56px; color: var(--signal-ok); margin-inline: auto; }
.success svg circle { stroke-dasharray: 64; stroke-dashoffset: 64; animation: draw-64 0.8s var(--ease) forwards; }
.success svg path { stroke-dasharray: 14; stroke-dashoffset: 14; animation: draw-14 0.5s 0.6s var(--ease) forwards; }
@keyframes draw-64 { to { stroke-dashoffset: 0; } }
@keyframes draw-14 { to { stroke-dashoffset: 0; } }
.success h3 { margin: var(--s-2) 0 0.4rem; }
.success p { margin: 0 auto var(--s-2); color: var(--content-muted); max-width: 36ch; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .contact__panel { padding: var(--s-3); }
}

/* ════════════════ FOOTER ════════════════ */
.footer {
  background: var(--navy-950);
  color: var(--on-dark-secondary);
  padding-block: var(--s-5) var(--s-3);
  font-size: 0.92rem;
}
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer__brand img { width: 190px; height: auto; filter: brightness(0) invert(1); }
.footer__brand p { margin: var(--s-2) 0 0; max-width: 36ch; color: var(--on-dark-muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); align-items: center; }
.footer__nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--on-dark-secondary);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.footer__nav a:hover { color: var(--on-dark-accent); }
.footer__credits {
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--on-dark-line);
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}
.footer__credits p { max-width: none; margin: 0; }
.footer__credits a { color: var(--on-dark-secondary); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
}
.footer__base p { margin: 0; font-size: 0.8rem; color: var(--on-dark-muted); max-width: 56ch; }

/* ════════════════ WHATSAPP FAB ════════════════ */
.fab {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 40;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1FAF55;
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(31, 175, 85, 0.7);
  transform: scale(0);
  transition: transform 0.45s var(--ease-spring);
}
.fab.is-visible { transform: scale(1); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
html:not(.js) .fab { transform: scale(1); }

/* ════════════════ REDUCED MOTION ════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .wipe img { opacity: 1; translate: none; transform: none; clip-path: none; }
  .marquee__track { animation: none; }
  .js .status { opacity: 1; }
}

/* stagger delays as classes: inline style="" attributes are blocked by the CSP */
.d1 { --d: .05s; } .d2 { --d: .1s; } .d3 { --d: .15s; }
.d4 { --d: .2s; }  .d5 { --d: .25s; } .d6 { --d: .3s; }

.notfound-logo { margin-bottom: 3rem; width: 220px; height: auto; filter: var(--logo-filter); }
