/* Text over the section grid, loader, header with the full-screen menu, scroll reveals and the marquee. */
/* Readability (owner, 2026-10-04): grid rules pass behind text blocks, never through letters.
   Text blocks carry the section colour, so a rule stops at the text and resumes after it. */
.section {
  --sec-bg: var(--bg);
}
.light {
  --sec-bg: var(--light);
}
.section :is(.h1, .h2, .h3, .lead, .label, .muted, .feat-h, .feat-title, .step-copy, .tl, .c-label > p) {
  position: relative;
  background-color: var(--sec-bg);
  box-shadow: 0 0 0 6px var(--sec-bg);
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.5s var(--ease) 0.1s,
    visibility 0s linear 0.7s;
}
.loader-word {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  display: flex;
  overflow: hidden;
}
.loader-word span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 0.7s var(--ease) forwards;
}
.loader-word i {
  color: var(--lime);
  font-style: normal;
}
.loaded .loader {
  opacity: 0;
  visibility: hidden;
}
.no-anim .loader {
  display: none;
}
@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lime);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.word {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}
.word i {
  color: var(--lime);
  font-style: normal;
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu-btn {
  display: grid;
  gap: 6px;
  width: 44px;
  height: 44px;
  place-content: center;
  justify-items: end;
}
.menu-btn i {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.menu-btn i:nth-child(2) {
  width: 18px;
}
.menu-btn[aria-expanded="true"] i:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] i:nth-child(2) {
  width: 26px;
  transform: translateY(-4px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 69px 0 0;
  z-index: 49;
  background: var(--bg);
  padding: clamp(28px, 5vw, 64px) var(--gut);
  display: grid;
  align-content: start;
  gap: 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
.menu.open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.menu ol {
  display: grid;
  gap: 4px;
  counter-reset: m;
}
.menu ol a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-decoration: none;
  counter-increment: m;
}
.menu ol a::before {
  content: "0" counter(m);
  font-size: 0.875rem;
  color: var(--lime);
  letter-spacing: 0;
}
.menu ol a:hover {
  color: var(--lime);
}
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Reveal on scroll; the page stays fully visible without JavaScript or with reduced motion. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.no-anim .reveal {
  transition: none;
}
.split .ch {
  display: inline-block;
  transform: translateY(0.4em);
  opacity: 0;
  transition:
    transform 0.6s var(--ease),
    opacity 0.6s var(--ease);
}
.split.in .ch {
  transform: none;
  opacity: 1;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: slide 32s linear infinite;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
}
.marquee-track li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lime);
  transform: rotate(45deg);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .loader-word span {
    animation: none;
    transform: none;
  }
  .split .ch {
    transition: none;
  }
}
