/* Callalo marketing site.
   Colours, type and spacing come from brand/tokens/callalo-tokens.css (copied to
   /assets/callalo-tokens.css at build time). This file adds layout only; if you need a new
   colour, add it to the tokens JSON first. Logical properties (inline-start, not left) keep
   the Arabic build a mirror image without a separate stylesheet. */

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

/* Dark bands (hero, evidence, pilot) stay dark in both themes. */
:root {
  --band: #0D1526;
  --band-2: #172745;
  --band-text: #FBF7EE;
  --band-muted: #BEC3CB;
  --band-line: rgba(251, 247, 238, 0.12);
  --nav-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cl-bg);
  color: var(--cl-text);
  font-family: var(--cl-font-family-sans);
  font-size: 1.0625rem;
  line-height: var(--cl-font-lineHeight-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: var(--cl-font-lineHeight-arabic); }
/* Blocks tipped back in 3D before they reveal are wider than the screen for a moment.
   clip (not hidden) so the sticky outcomes heading keeps working. */
main { overflow-x: clip; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: var(--cl-font-weight-extrabold); }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--cl-focus); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section--dark :focus-visible, .nav :focus-visible, .footer :focus-visible { outline-color: var(--cl-saffron-400); }

.container {
  width: 100%;
  max-width: var(--cl-layout-container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 720px) { .container { padding-inline: var(--cl-layout-gutter); } }

.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;
}

.skip {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--cl-saffron-500); color: var(--cl-midnight-900);
  padding: 10px 16px; border-radius: var(--cl-radius-sm); font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--cl-radius-pill);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform var(--cl-duration-base) var(--cl-easing-standard),
              background-color var(--cl-duration-base), box-shadow var(--cl-duration-base);
  white-space: nowrap;
}
.btn--accent { background: var(--cl-saffron-500); color: var(--cl-midnight-900); box-shadow: 0 8px 24px rgba(215, 157, 33, 0.28); }
.btn--accent:hover { background: var(--cl-saffron-400); transform: translateY(-2px); }
.btn--ghost { color: var(--band-text); border: 1.5px solid rgba(251, 247, 238, 0.35); }
.btn--ghost:hover { border-color: var(--band-text); background: rgba(251, 247, 238, 0.06); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--nav-h);
  color: var(--band-text);
  transition: background-color var(--cl-duration-slow), box-shadow var(--cl-duration-slow), backdrop-filter var(--cl-duration-slow);
}
.nav.is-scrolled, .nav--solid {
  background: rgba(13, 21, 38, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--band-line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { flex-shrink: 0; }
.nav__logo { height: 34px; width: auto; }
.nav__links { display: none; gap: 28px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--band-muted); transition: color var(--cl-duration-base); }
.nav__links a:hover { color: var(--band-text); }
.nav__actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
/* Language menu */
.langmenu { position: relative; }
.langmenu__button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  padding: 8px 10px; border-radius: var(--cl-radius-pill);
  font-weight: 600; font-size: 0.9375rem; color: var(--band-muted);
  transition: color var(--cl-duration-base), background-color var(--cl-duration-base);
}
.langmenu__button::-webkit-details-marker { display: none; }
.langmenu__button:hover, .langmenu[open] .langmenu__button { color: var(--band-text); background: rgba(251, 247, 238, 0.08); }
.langmenu__globe { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langmenu__list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70;
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--band-2); border: 1px solid var(--band-line); border-radius: var(--cl-radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.langmenu__list a {
  display: block; padding: 9px 12px; border-radius: var(--cl-radius-sm);
  color: var(--band-muted); text-decoration: none; font-weight: 600;
}
.langmenu__list a:hover { color: var(--band-text); background: rgba(251, 247, 238, 0.08); }
.langmenu__list a[aria-current="page"] { color: var(--cl-saffron-400); }
.langmenu__list a:lang(ar), .footer__links a:lang(ar) { font-family: var(--cl-font-family-arabic); }
.langmenu__list a:lang(en), .langmenu__list a:lang(tr), .langmenu__list a:lang(ru),
.footer__links a:lang(en), .footer__links a:lang(tr), .footer__links a:lang(ru) { font-family: var(--cl-font-family-sans); }
@media (max-width: 420px) { .langmenu__button span { display: none; } }
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__actions { margin-inline-start: 12px; }
}
@media (max-width: 420px) { .nav__logo { height: 28px; } .nav .btn--sm { padding: 0 14px; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cl-accent-text);
  margin-bottom: 18px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--on-dark { color: var(--cl-saffron-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 32%, #1d3158 0%, var(--band-2) 42%, var(--band) 100%);
  color: var(--band-text);
  padding: calc(var(--nav-h) + 8px) 0 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__glow {
  position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%;
  left: 50%; top: -120px; translate: -50% 0;
  background: radial-gradient(circle, rgba(215, 157, 33, 0.16), transparent 62%);
  filter: blur(10px);
}
.hero__center {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-bottom: 32px;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }

.hero__title {
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: var(--cl-font-letterSpacing-display);
  margin-bottom: 20px;
  max-width: 1000px;
}
[dir="rtl"] .hero__title { line-height: 1.3; letter-spacing: 0; font-size: clamp(1.85rem, 3vw, 2.9rem); }
.hero__line { display: block; text-wrap: balance; }
.hero__title--long { font-size: clamp(1.9rem, 3.2vw, 3.1rem); }
.hero__line--accent { color: var(--cl-saffron-400); }
/* The mask each word slides up out of. Padding keeps descenders and Arabic dots inside it. */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.06em 0.12em; margin-block: -0.06em -0.12em; }
.word__in { display: inline-block; }
.hero__line--accent .word__in {
  -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(92deg, var(--cl-saffron-300), var(--cl-saffron-500) 55%, #e8b95a);
  color: transparent;
}
.hero__lede { font-size: clamp(1rem, 1.3vw, 1.1875rem); color: var(--band-muted); max-width: 62ch; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .eyebrow { margin-bottom: 16px; }

/* Section links along the bottom edge of the hero (after terawulf.com). */
.hero__bar {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--band-line);
}
.hero__bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 12px;
  color: var(--band-muted); text-decoration: none; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color var(--cl-duration-base), background-color var(--cl-duration-base);
}
[dir="rtl"] .hero__bar a { letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }
.hero__bar a + a { border-inline-start: 1px solid var(--band-line); }
.hero__bar a:hover { color: var(--band-text); background: rgba(251, 247, 238, 0.04); }
.hero__bar span { color: var(--cl-saffron-400); transition: transform var(--cl-duration-base); }
.hero__bar a:hover span { transform: translateY(3px); }
@media (max-width: 560px) { .hero__bar a { font-size: 0.6875rem; padding: 16px 6px; gap: 6px; } }

/* 3D visual: the orb, centred above the headline, its lower edge tucked behind the title. */
.hero__visual { position: relative; width: min(360px, 39vh, 78vw); margin-bottom: -3%; z-index: 1; }
.orb {
  position: relative; width: 100%; aspect-ratio: 1 / 1; margin-inline: auto;
}
/* The fallback sphere: what a visitor without WebGL, or who asked for reduced motion before
   the first frame, sees. Hidden once the 3D orb has drawn. */
.orb::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(243, 226, 188, 0.55), transparent 32%),
    radial-gradient(circle at 60% 70%, rgba(30, 122, 108, 0.75), transparent 55%),
    radial-gradient(circle at 50% 50%, #1d3158, #0d1526 72%);
  box-shadow: 0 0 80px rgba(215, 157, 33, 0.25), inset 0 0 40px rgba(243, 226, 188, 0.15);
  transition: opacity 0.6s;
}
.orb.is-3d::before { opacity: 0; }
.orb__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb__langs { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.orb__lang {
  position: absolute; top: 0; left: 0; /* physical on purpose: positions come from the 3D projection */
  display: none;
  padding: 5px 12px; border-radius: var(--cl-radius-pill);
  background: rgba(13, 21, 38, 0.55); border: 1px solid rgba(251, 247, 238, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--band-text); font-weight: 700; font-size: 0.9375rem; white-space: nowrap;
  will-change: transform, opacity;
}
.orb.is-3d .orb__lang { display: block; }
.orb__lang:lang(prs), .orb__lang:lang(ur), .orb__lang:lang(ar) { font-family: var(--cl-font-family-arabic); }
.orb__lang:lang(tr), .orb__lang:lang(ru), .orb__lang:lang(en) { font-family: var(--cl-font-family-sans); }

/* Illustration card */
.call-card {
  margin: 0;
  background: linear-gradient(180deg, rgba(251, 247, 238, 0.09), rgba(251, 247, 238, 0.04));
  border: 1px solid var(--band-line);
  border-radius: var(--cl-radius-xl);
  padding: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.call-card__head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; border-bottom: 1px solid var(--band-line); margin-bottom: 10px; }
.call-card__live { width: 9px; height: 9px; border-radius: 50%; background: var(--cl-teal-400); box-shadow: 0 0 0 0 rgba(86, 155, 145, 0.6); animation: live 2.2s infinite; flex-shrink: 0; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(86, 155, 145, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(86, 155, 145, 0); } 100% { box-shadow: 0 0 0 0 rgba(86, 155, 145, 0); } }
@media (prefers-reduced-motion: reduce) { .call-card__live { animation: none; } }
.call-card__title { font-weight: 700; font-size: 0.9375rem; }
.call-card__label { margin-inline-start: auto; font-size: 0.75rem; color: var(--band-muted); border: 1px solid var(--band-line); padding: 3px 10px; border-radius: var(--cl-radius-pill); white-space: nowrap; }
.call-card__rows { list-style: none; margin: 0; padding: 0; }
.call-row { display: grid; gap: 10px; padding: 14px 6px; border-bottom: 1px solid var(--band-line); }
.call-row:last-child { border-bottom: 0; }
@media (min-width: 520px) { .call-row { grid-template-columns: 1fr auto; align-items: center; } }
.call-row__who { display: flex; align-items: center; gap: 12px; }
.call-row__who strong { display: block; font-size: 0.9375rem; }
.call-row__lang { display: block; font-size: 0.8125rem; color: var(--band-muted); }
.call-row__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(251, 247, 238, 0.1); font-weight: 800; font-size: 0.875rem;
}
.call-row__out { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
@media (min-width: 520px) { .call-row__out { align-items: flex-end; text-align: end; } }
.call-row__detail { font-size: 0.8125rem; color: var(--band-muted); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8125rem; font-weight: 700; padding: 4px 12px; border-radius: var(--cl-radius-pill);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; }
.pill--verified { background: var(--cl-status-verified-bg); color: var(--cl-status-verified-fg); }
.pill--verified .pill__dot { background: var(--cl-status-verified-dot); }
.pill--wants-human { background: var(--cl-status-wants-human-bg); color: var(--cl-status-wants-human-fg); }
.pill--wants-human .pill__dot { background: var(--cl-status-wants-human-dot); }
.pill--callback { background: var(--cl-status-callback-bg); color: var(--cl-status-callback-fg); }
.pill--callback .pill__dot { background: var(--cl-status-callback-dot); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--sunken { background: var(--cl-surface-sunken); }
.section--dark { background: linear-gradient(180deg, var(--band-2), var(--band)); color: var(--band-text); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: var(--cl-font-letterSpacing-heading);
}
[dir="rtl"] .section__title { line-height: 1.35; letter-spacing: 0; }
.section__lede { margin-top: 18px; font-size: 1.1875rem; color: var(--cl-text-muted); max-width: 60ch; }
.section__head--center .section__lede { margin-inline: auto; }
.section--dark .section__lede { color: var(--band-muted); }
.section__note { margin-top: 40px; font-size: 0.9375rem; color: var(--cl-text-muted); max-width: 72ch; }
.section__note--center { margin-inline: auto; text-align: center; }
.section--dark .section__note { color: var(--band-muted); border-top: 1px solid var(--band-line); padding-top: 24px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  padding: 32px 28px;
  transition: transform var(--cl-duration-slow) var(--cl-easing-standard), box-shadow var(--cl-duration-slow), border-color var(--cl-duration-slow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--cl-shadow-lg); border-color: var(--cl-border-strong); }
.card p { color: var(--cl-text-muted); }
.card__index { display: block; font-weight: 800; color: var(--cl-accent-text); font-size: 0.875rem; margin-bottom: 28px; font-family: var(--cl-font-family-sans); }
.card__title { font-size: 1.3125rem; line-height: 1.3; margin-bottom: 12px; }
.card__where { font-size: 0.875rem; font-weight: 700; color: var(--cl-accent-text); margin-bottom: 14px !important; }
.card--tall { padding: 40px 36px; }

/* Stats */
.stats { display: grid; gap: 1px; margin: 0; background: var(--band-line); border: 1px solid var(--band-line); border-radius: var(--cl-radius-lg); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--band); padding: 36px 28px; }
.stat__value {
  font-family: var(--cl-font-family-sans);
  font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 800; line-height: 1;
  color: var(--cl-saffron-400); margin-bottom: 16px; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin: 0; color: var(--band-muted); font-size: 0.9375rem; }

/* Outcomes */
.split { display: grid; gap: 48px; }
@media (min-width: 980px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } .split__head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--cl-surface); border: 1px solid var(--cl-border); border-radius: var(--cl-radius-lg); padding: 28px;
}
.check__icon { width: 32px; height: 32px; flex-shrink: 0; fill: var(--cl-status-verified-bg); stroke: var(--cl-teal-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check__icon circle { stroke: var(--cl-teal-300); stroke-width: 1.5; }
.check__title { font-size: 1.1875rem; margin-bottom: 8px; }
.check p { color: var(--cl-text-muted); }

/* Languages */
.langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .langs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .langs { grid-template-columns: repeat(6, 1fr); } }
.lang {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 16px; text-align: center;
  background: var(--cl-surface); border: 1px solid var(--cl-border); border-radius: var(--cl-radius-lg);
  transition: transform var(--cl-duration-slow) var(--cl-easing-standard), border-color var(--cl-duration-slow);
}
.lang:hover { transform: translateY(-4px); border-color: var(--cl-saffron-400); }
.lang__native { font-size: 1.75rem; font-weight: 800; line-height: 1.4; }
.lang__native:lang(prs), .lang__native:lang(ur), .lang__native:lang(ar) { font-family: var(--cl-font-family-arabic); }
.lang__native:lang(tr), .lang__native:lang(ru), .lang__native:lang(en) { font-family: var(--cl-font-family-sans); }
.lang__name { font-size: 0.875rem; color: var(--cl-text-muted); font-weight: 600; }

/* Pilot */
.pilot { overflow: hidden; }
.pilot::before {
  content: ""; position: absolute; width: 680px; height: 680px; border-radius: 50%;
  inset-inline-start: -260px; bottom: -380px;
  background: radial-gradient(circle, rgba(30, 122, 108, 0.35), transparent 62%);
}
.pilot__inner { position: relative; display: grid; gap: 48px; }
@media (min-width: 980px) { .pilot__inner { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.pilot__box { background: rgba(251, 247, 238, 0.06); border: 1px solid var(--band-line); border-radius: var(--cl-radius-xl); padding: clamp(28px, 4vw, 44px); }
.pilot__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.pilot__list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.pilot__list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--cl-saffron-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230D1526' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.pilot__box .btn { width: 100%; }
.pilot__note { margin-top: 16px; text-align: center; font-size: 0.875rem; color: var(--band-muted); }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--band-2), var(--band)); color: var(--band-text); padding: calc(var(--nav-h) + 64px) 0 64px; }
.page-hero--full { min-height: 100svh; display: flex; align-items: center; }
.page-hero__title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.15; margin-bottom: 14px; }
.page-hero__meta { color: var(--band-muted); margin-bottom: 28px; }
.page-hero__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; color: var(--cl-saffron-400); margin-bottom: 12px; font-family: var(--cl-font-family-sans); }
.prose { max-width: var(--cl-layout-reading); }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--cl-text-muted); margin-bottom: 12px; }
.prose a { color: var(--cl-accent-text); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--band); color: var(--band-text); padding: 64px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid var(--band-line); }
.footer__tagline { margin-top: 16px; color: var(--band-muted); max-width: 36ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--band-muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--band-text); }
.footer__legal { padding-top: 24px; font-size: 0.875rem; color: var(--band-muted); }

/* ---------- Motion ----------
   Initial states apply only when html.motion is set (motion-flag.js): the visitor has not
   asked for reduced motion and GSAP is expected. Without it, everything renders visible. */
.motion [data-reveal] { opacity: 0; transform: translateY(32px); }
.motion .word__in { transform: translateY(110%); }
.motion [data-hero-fade] { opacity: 0; transform: translateY(20px); }
.motion [data-hero-orb] { opacity: 0; transform: scale(0.86); }
/* With GSAP driving the tilt, CSS must not also animate transform on hover. */
.motion [data-tilt] { transition: box-shadow var(--cl-duration-slow), border-color var(--cl-duration-slow); }
.motion [data-tilt]:hover { transform: none; }
.motion [data-card-row] { opacity: 0; transform: translateY(12px); }

/* ---------- Site-wide motion (second pass) ---------- */

/* Scroll progress, above the nav. The logo and nav stay exactly as they are. */
.progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--cl-saffron-500), var(--cl-teal-400));
  transform: scaleX(0); transform-origin: left center;
}
[dir="rtl"] .progress { transform-origin: right center; background: linear-gradient(270deg, var(--cl-saffron-500), var(--cl-teal-400)); }
html:not(.motion) .progress { display: none; }

/* Section titles use the same masked words as the hero. */
.section__title .word, .page-hero__title .word { padding-block: 0.08em 0.14em; margin-block: -0.08em -0.14em; }

/* Drifting background blobs */
.section { isolation: isolate; }
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(520px, 70vw); aspect-ratio: 1; border-radius: 50%;
  inset-inline-end: -140px; top: 10%;
  background: radial-gradient(circle, rgba(215, 157, 33, 0.16), transparent 65%);
  filter: blur(8px);
}
#outcomes .blob, #audience .blob { inset-inline-end: auto; inset-inline-start: -160px; background: radial-gradient(circle, rgba(30, 122, 108, 0.16), transparent 65%); }
.motion .blob { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { translate: -40px 60px; scale: 1.15; } }

/* Stat rings (percentages only) */
.stat { position: relative; }
.stat__ring { position: absolute; top: 28px; inset-inline-end: 24px; width: 48px; height: 48px; transform: rotate(-90deg); }
.stat__ring circle { fill: none; stroke-width: 4; }
.stat__ring-bg { stroke: rgba(251, 247, 238, 0.12); }
.stat__ring-fg { stroke: var(--cl-teal-400); stroke-linecap: round; }

/* Checkmarks draw themselves */
.motion .check__path { stroke-dasharray: 16; stroke-dashoffset: 16; }

/* Accent buttons: a light sweep every few seconds */
.btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.motion .btn--accent::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  translate: -120% 0; animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { translate: -120% 0; } 85%, 100% { translate: 120% 0; } }

/* ---------- After terawulf.com ---------- */

/* Ink-fill headings: units start faint and fill in as the heading enters. */
.ink__word { display: inline-block; white-space: nowrap; }
.ink__u { display: inline-block; }
.motion [data-ink] .ink__u { opacity: 0.2; }

/* Eyebrow labels: the rule sweeps out and the text wipes in behind it. */
.motion .eyebrow::before { transform: scaleX(0); transform-origin: left center; transition: transform 0.7s var(--cl-easing-standard); }
[dir="rtl"] .motion .eyebrow::before { transform-origin: right center; }
.motion .eyebrow { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s var(--cl-easing-standard) 0.1s; }
[dir="rtl"] .motion .eyebrow { clip-path: inset(0 0 0 100%); }
.motion .eyebrow.is-in { clip-path: inset(0 0 0 0); }
.motion .eyebrow.is-in::before { transform: scaleX(1); }

/* Hero: words and supporting copy arrive out of a blur. */
.motion .hero .word__in, .motion .page-hero .word__in { filter: blur(12px); }
.motion .hero [data-hero-fade] { filter: blur(8px); }

/* Fly-through-the-logo transition */
.evidence { padding-top: 0; }
.zoom__scene { padding: clamp(72px, 10vw, 128px) 0 clamp(24px, 4vw, 48px); }
.zoom__overlay { display: none; }
.motion .zoom { height: 300vh; position: relative; }
.motion .zoom__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .zoom__scene {
  position: absolute; inset: 0; display: flex; align-items: center; padding: var(--nav-h) 0 0;
  background: radial-gradient(90% 70% at 50% 60%, #1d3158 0%, var(--band-2) 45%, var(--band) 100%);
}
.motion .zoom__scene .section__head { margin-bottom: 0; }
.motion .zoom__overlay { display: block; position: absolute; inset: 0; pointer-events: none; }
.zoom__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zoom__paper { fill: var(--cl-sand-100); }
.zoom__holes path { fill: #000 !important; }
.zoom__cloud {
  position: absolute; width: 70vw; height: 45vh; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side at 35% 55%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(closest-side at 60% 40%, rgba(241, 234, 220, 0.9), transparent),
    radial-gradient(closest-side at 75% 65%, rgba(255, 255, 255, 0.8), transparent);
  filter: blur(10px);
}
.zoom__cloud--a { left: -22vw; bottom: 4vh; }
.zoom__cloud--b { right: -24vw; top: 8vh; }
.zoom__hint {
  position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cl-midnight-400);
}
[dir="rtl"] .zoom__hint { letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }

/* Stacked step cards */
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 14vh; }
.stack__card { position: sticky; top: calc(var(--nav-h) + 28px + var(--i) * 26px); }
.stack__inner {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: auto 1fr; grid-template-areas: "num icon" "body body";
  padding: clamp(28px, 4vw, 56px);
  min-height: min(52vh, 420px);
  border-radius: var(--cl-radius-xl);
  background: var(--cl-surface); border: 1px solid var(--cl-border);
  box-shadow: 0 -12px 40px rgba(23, 39, 69, 0.08);
  transform-origin: 50% 0%;
}
@media (min-width: 900px) {
  .stack__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "num body icon"; gap: 48px; }
}
.stack__card:nth-child(2) .stack__inner { background: var(--cl-sand-50); }
.stack__card:nth-child(3) .stack__inner { background: var(--cl-midnight-700); color: var(--band-text); border-color: transparent; }
.stack__card:nth-child(4) .stack__inner { background: var(--cl-teal-700); color: var(--band-text); border-color: transparent; }
.stack__num { grid-area: num; font-family: var(--cl-font-family-sans); font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 800; line-height: 1; color: var(--cl-saffron-500); letter-spacing: -0.04em; }
.stack__body { grid-area: body; }
.stack__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 14px; line-height: 1.2; }
.stack__body p { font-size: 1.125rem; color: var(--cl-text-muted); max-width: 46ch; }
.stack__card:nth-child(n+3) .stack__body p { color: var(--band-muted); }
.stack__icon { grid-area: icon; justify-self: end; width: clamp(56px, 9vw, 120px); aspect-ratio: 1; }
.stack__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--cl-saffron-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The illustration card now sits in "Verified outcomes", on the light band, so it carries its
   own dark ground instead of relying on the hero behind it. */
.split__head .call-card {
  margin-top: 36px; max-width: 480px; color: var(--band-text);
  background: linear-gradient(180deg, #1d3158, var(--band));
  border-color: transparent; box-shadow: var(--cl-shadow-lg);
}
@media (max-width: 560px) { .hero .eyebrow::before { display: none; } }
