/* ============================================================
   COMPONENTS — Nav, Footer, Buttons, Cards, Glass, Theme Toggle
   All class names follow BEM convention
   ============================================================ */


/* --- Glass morphism base --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  transition: background var(--duration-normal) var(--ease-standard),
              border-color var(--duration-normal) var(--ease-standard);
}

.glass:hover {
  background: var(--glass-bg-hover);
}

.glass--strong {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
}


/* ============================================================
   COLOPHON — the technical metadata strip that closes the page.
   Last child of the footer, in normal flow: it is full-bleed and
   flush with the bottom edge, so the three negative margins undo
   the footer's own padding.
   ============================================================ */
.status-bar {
  margin-top: var(--space-4xl);
  margin-inline: calc(var(--section-padding-x) * -1);
  margin-bottom: calc(var(--space-4xl) * -1);
  height: 2rem; /* 32px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: calc(var(--grid-line-x) + var(--space-md));
  padding-right: calc(var(--grid-line-x) + var(--space-md));
  font-family: var(--font-mono);
  font-size: 0.625rem; /* 10px */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-top: 0.5px solid var(--border-rule);
  background: transparent;
}

.status-bar__left,
.status-bar__center,
.status-bar__right {
  opacity: 0.62;
}

.status-bar__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-bar__pulse {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 4px #34d399, 0 0 8px rgba(52, 211, 153, 0.4);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 3px #34d399; }
  50% { opacity: 1; box-shadow: 0 0 6px #34d399, 0 0 12px rgba(52, 211, 153, 0.5); }
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Content edges align with grid lines + extra inset for logo/login breathing room */
  padding-left: calc(var(--grid-line-x) + var(--space-md));
  padding-right: calc(var(--grid-line-x) + var(--space-md));
  background: #000000;
  border-bottom: 1px solid var(--border-rule);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav__logo-img {
  height: 0.75rem; /* 12px — slightly smaller */
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.7;
}

[data-theme="light"] .nav__logo-img {
  filter: brightness(0);
}

/* Override generic img/svg sizing inside logo */
.nav__logo img,
.nav__logo svg {
  height: 0.75rem;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  /* Centred on the viewport, not on the space left over between the logo and
     the theme toggle — those two have different widths, so flex alone put the
     links slightly left of centre. */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav__link {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration-normal) var(--ease-standard),
              opacity var(--duration-normal) var(--ease-standard);
  position: relative;
  padding: var(--space-2xs) 0;
  margin-bottom: -1px;
  padding-bottom: calc(var(--space-2xs) + 1px);
  cursor: pointer;
}

.nav__link:hover {
  color: var(--text-primary);
}

/* Active section — prefix marker + brighter text */
.nav__link.is-active {
  color: var(--text-primary);
}

.nav__link::before {
  content: '//\00a0';
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
  color: var(--text-faint);
  font-size: 0.65rem;
}

.nav__link.is-active::before {
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile nav: no hamburger and no drawer. The bar is logo on the left, theme
   toggle on the right; the section links are desktop-only and visitors scroll. */
@media (max-width: 48rem) {
  .nav__links,
  .nav__hamburger,
  .nav__overlay {
    display: none !important;
  }

  /* Over the hero the divider reads as a stray line across the artwork, with
     no content below it yet. It arrives with the solid background instead,
     once the hero is behind you. */
  .nav {
    border-bottom-color: transparent;
    transition: border-bottom-color var(--duration-normal) var(--ease-standard);
  }

  .nav.nav--solid,
  [data-theme="light"] .nav.nav--solid {
    border-bottom-color: var(--border-rule);
  }
}

/* Mobile: no colophon — the footer's own copyright line carries it, where it
   sits directly under the wordmark instead of alone at the foot of the page. */
@media (max-width: 48rem) {
  .status-bar {
    display: none;
  }

  .nav {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }
}


/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.theme-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-primary);
}

.theme-toggle__icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(15deg);
}

/* Sun/moon visibility controlled by CSS custom properties */
.theme-toggle__sun  { display: var(--theme-icon-display-sun); }
.theme-toggle__moon { display: var(--theme-icon-display-moon); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-weight: var(--fw-medium);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2.5rem;
  padding: 0.875rem 1.75rem;
  transition: background var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              transform 0.2s var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal) var(--ease-standard);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.btn--primary:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

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

.btn--primary:active {
  transform: scale(0.98);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Gloss sheen layer — sweeps across on hover */
.btn--glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 80%
  );
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Plastic specular highlight — static top-edge sheen */
.btn--glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.0) 80%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: none;
}

.btn--glass:hover::before {
  left: 100%;
}

.btn--glass:hover::after {
  opacity: 1;
}

.btn--glass:active {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn--glass:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

[data-theme="light"] .btn--glass {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn--glass:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: none;
}

/* White gloss on a white button is nothing — invert the polarity so the
   sweep and the top seam actually read in light mode. */
[data-theme="light"] .btn--glass::before {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(15, 23, 32, 0.07) 35%,
    rgba(15, 23, 32, 0.14) 50%,
    rgba(15, 23, 32, 0.07) 65%,
    transparent 80%
  );
}

[data-theme="light"] .btn--glass::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(15, 23, 32, 0.0) 20%,
    rgba(15, 23, 32, 0.18) 50%,
    rgba(15, 23, 32, 0.0) 80%,
    transparent
  );
}

/* The base :active fill is a white wash that the later light rules outrank at
   equal specificity, so the press state did nothing in light mode. */
[data-theme="light"] .btn--glass:active {
  background: rgba(15, 23, 32, 0.08);
  box-shadow: inset 0 1px 3px rgba(15, 23, 32, 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
  padding: 0.875rem 0.5rem;
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--text-secondary);
  background: transparent;
}

.btn--ghost:active {
  transform: scale(0.97);
}

.btn--ghost:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.btn--label {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  border-radius: 0;
  background: var(--glass-bg);
  color: var(--accent-primary);
  border: 1px solid var(--border-rule);
}

.btn--label:hover {
  background: var(--glass-bg-hover);
}

/* Button icon */
.btn__icon {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s var(--ease-out-expo);
}

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

.btn:active .btn__icon {
  transform: translateX(1px);
}


/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full); /* pills stay rounded */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
}

.badge--accent {
  color: var(--accent-primary);
  border-color: rgba(178, 34, 34, 0.25);
}


/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  padding: var(--space-2xl);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  border-color: var(--border-primary);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__description {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* Glass card variant */
.card--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border-subtle);
}


/* ============================================================
   SECTION LABEL (colored category tags)
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs); /* Tighter — label sits close to its heading */
}

.section-label--blue   { color: var(--blue-500); }
.section-label--green  { color: var(--green-500); }
.section-label--orange { color: var(--orange-500); }


/* ============================================================
   MEDIA CONTAINER (for images/videos with gradient overlays)
   ============================================================ */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: var(--gradient-fade-bottom);
  pointer-events: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  padding-block: var(--space-4xl);
  padding-inline: var(--section-padding-x);
  font-family: var(--font-mono);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: calc(var(--container-max) - var(--section-padding-x) * 2);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer__logo-mark {
  height: 0.875rem;
  width: auto;
  filter: brightness(0) invert(0.85);
}

[data-theme="light"] .footer__logo-mark {
  filter: brightness(0) invert(0.2);
}

.footer__tagline {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  font-weight: var(--fw-book);
  line-height: 1.8;
  color: var(--text-primary);
  opacity: 0.6;
  max-width: 16rem;
}

/* Copyright line — mobile only; the colophon carries it everywhere else. */
.footer__copyright--mobile {
  display: none;
  margin-top: var(--space-xl);
}

@media (max-width: 48rem) {
  .footer__copyright--mobile {
    display: block;
  }
}

.footer__copyright {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: var(--fw-book);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-primary);
  opacity: 0.6;          /* 0.35 was 2.7:1 — below AA */
  margin-top: var(--space-xl);
}

.footer__nav {
  display: flex;
  gap: var(--space-3xl);
}

.footer__col {
  min-width: 9rem;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: var(--fw-book);
  letter-spacing: 0.11rem;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.6;          /* 0.45 failed AA against both backgrounds */
  margin-bottom: var(--space-md);
  line-height: 1;
}

.footer__link {
  display: block;
  font-size: 0.8125rem;
  font-weight: var(--fw-book);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.85;
  padding-block: 0.35rem;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.footer__link:hover {
  opacity: 1;
}

@media (max-width: 48rem) {
  .footer__grid {
    flex-direction: column;
    gap: var(--space-3xl);
    padding-inline: 0;   /* .footer already supplies the gutter; this doubled it */
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-2xl);
  }
}


/* ============================================================
   COMPLIANCE BADGES (Product/Sales page)
   ============================================================ */
.compliance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}

.compliance-badge__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--green-500);
  flex-shrink: 0;
}


/* ============================================================
   INPUT (email capture on sales page)
   ============================================================ */
.input-group {
  display: flex;
  gap: var(--space-xs);
  max-width: 28rem;
}

.input-group__field {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-rule);
  border-radius: 0;
  color: var(--text-primary);
  font-size: var(--fs-body-sm);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.input-group__field::placeholder {
  color: var(--text-muted);
}

.input-group__field:focus {
  border-color: var(--blue-500);
}

@media (max-width: 23.4375rem) {
  .input-group {
    flex-direction: column;
  }
}


/* ============================================================
   PAGE LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  transition: opacity 0.5s var(--ease-out-expo);
}

.loader--done {
  opacity: 0;
  pointer-events: none;
}

.loader__stage {
  position: relative;
  width: 280px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__wordmark svg {
  width: 176px;
  height: auto;
  display: block;
  opacity: 0;
}

.loader__ascii {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
  overflow: hidden;
}

.loader__ascii-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  width: 10px;
}

.loader__ascii-char {
  font-size: 9px;
  width: 9px;
  text-align: center;
  line-height: 1;
  font-family: 'Courier New', monospace;
  display: block;
  /* Colour is set inline per character by buildGrid() in js/loader.js, which
     resolves it against the current theme — nothing declared here can win. */
}

.loader__spacer {
  height: 28px;
}

.loader__progress {
  width: 176px;
  height: 3px;
  background: var(--rule-color);
  overflow: hidden;
  border-radius: 0;
}

.loader__progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 0;
}

.loader__status {
  margin-top: 7px;
  width: 176px;
  display: flex;
  justify-content: space-between;
}

.loader__label {
  font-size: 9px;
  color: #333;
  letter-spacing: 0.1em;
}

.loader__pct {
  font-size: 9px;
  color: #555;
  letter-spacing: 0.05em;
}

/* Nav hidden state — revealed after loader */
.nav--hidden {
  opacity: 0;
  pointer-events: none;
}

.nav--revealed {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease-out-expo);
}

/* Hero hidden state — revealed after loader */
.hero--hidden {
  opacity: 0;
}

.hero--revealed {
  opacity: 1;
  transition: opacity 0.8s var(--ease-out-expo);
}


/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */

/* --- Navigation --- */
[data-theme="light"] .nav {
  background: transparent;
  /* Keep the divider over the hero — only the fill is transparent up there */
  border-bottom-color: var(--border-rule);
  transition: background 0.3s ease, border-bottom-color 0.3s ease;
}

[data-theme="light"] .nav.nav--solid {
  background: #ffffff;
  border-bottom-color: var(--titanium-200);
}

[data-theme="light"] .nav__link {
  color: var(--graphite-600);
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.is-active {
  color: var(--graphite-950);
}

/* The scroll-spy '//' marker inherits --text-faint, which is near-invisible
   on a white nav and worse over the hero. */
[data-theme="light"] .nav__link::before {
  color: var(--graphite-600);
}

/* --glass-bg is a white scrim — correct for cards over photography, but it
   makes this button disappear against the white nav. Scoped inversion. */
/* Full opacity in light mode. The strip is transparent and used to be pinned
   over the hero photograph, where 0.62 measured 3.4:1 against the darkest
   columns of hero-light.webp; it sits on the page background now and reads
   19.6:1, so this is no longer load-bearing for contrast — 0.62 would still
   clear AA on the white footer at 5.6:1. Kept for the weight it gives the
   line, which is the last thing on the page. */
[data-theme="light"] .status-bar__left,
[data-theme="light"] .status-bar__center,
[data-theme="light"] .status-bar__right {
  opacity: 1;
}

[data-theme="light"] .theme-toggle {
  background: rgba(15, 23, 32, 0.06);
  border-color: rgba(15, 23, 32, 0.18);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(15, 23, 32, 0.1);
  border-color: rgba(15, 23, 32, 0.3);
}

/* --- Loader --- */
[data-theme="light"] .loader {
  background: #f8f8f8;
}

[data-theme="light"] .loader__wordmark svg path {
  fill: var(--graphite-950);
}

[data-theme="light"] .loader__progress {
  background: var(--titanium-200);
}

[data-theme="light"] .loader__progress-fill {
  background: var(--graphite-950);
}

[data-theme="light"] .loader__label {
  color: var(--graphite-400);
}

[data-theme="light"] .loader__pct {
  color: var(--graphite-500);
}


/* ============================================================
   SCROLL HINT — Cursor follower at bottom of sections
   ============================================================ */
.scroll-hint {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
  /* Offset so it doesn't overlap the system cursor tip */
  margin-left: 18px;
  margin-top: -10px;
}

.scroll-hint.is-visible {
  opacity: 1;
}

.scroll-hint__icon {
  width: 13px;
  height: 21px;
  flex-shrink: 0;
  color: inherit;
}

/* Scroll-wheel pill — drops down and fades to simulate scrolling */
@keyframes scroll-wheel-drop {
  0%   { transform: translateY(0);   opacity: 1;   }
  55%  { transform: translateY(5px); opacity: 0;   }
  56%  { transform: translateY(0);   opacity: 0;   }
  100% { transform: translateY(0);   opacity: 1;   }
}

.scroll-hint__wheel {
  animation: scroll-wheel-drop 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  transform-box: fill-box;
  transform-origin: center top;
}

.scroll-hint__text {
  line-height: 1;
}

[data-theme="light"] .scroll-hint {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.7);
}

/* External nav link — the arrow marks a destination that leaves the site */
.nav__link--external {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.nav__link-icon {
  width: 0.6em;
  height: 0.6em;
  opacity: 0.65;
  transform: translateY(-0.12em);
  transition: transform var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}

.nav__link--external:hover .nav__link-icon {
  opacity: 1;
  transform: translate(0.08em, -0.2em);
}

/* It never becomes the active section, so it should not reserve the '//' slot */
.nav__link--external::before {
  content: none;
}
