/* ============================================================
   BUYARY PLATFORM — platform.buyary.com
   Dark theme on the Buyary brand system.
   Palette: navy #3C5266 · deep #1B2642 · ink-navy #142033
            orange #D9623C · green #3BAA3F · cream #F8F7F3
   Type:    Playfair Display · Josefin Sans · Inter
   ============================================================ */

:root {
  --navy: #4A4238;           /* warm umber (legacy token name) */
  --navy-deep: #24211E;      /* card surfaces */
  --navy-ink: #0D0C0B;       /* deepest bands */
  --bg: #131211;             /* night */
  --bg-2: #191714;           /* alternating sections */
  --panel: #1C1A18;
  --orange: #D9623C;
  --orange-soft: #E08A64;  /* buyary ember */
  --green: #3BAA3F;
  --green-light: #8BC34A;
  --green-bright: #57C25B;
  --yellow: #F9C718;         /* diverging / caution score band */
  --red: #D93C3C;            /* negative points */
  --cream: #F3F1EC;
  --cream-dim: rgba(243, 241, 236, 0.62);
  --cream-faint: rgba(243, 241, 236, 0.38);
  --line: rgba(243, 241, 236, 0.10);
  --line-strong: rgba(243, 241, 236, 0.18);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Josefin Sans", "Trebuchet MS", sans-serif;
  --data: "Inter", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --track: 0.16em;
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }

/* ============ SKIP LINK ============ */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10001;
  transform: translateY(-260%);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--orange); color: var(--cream);
  padding: 0.8rem 1.2rem; border-radius: 6px;
  transition: transform 0.25s;
}
.skip-link:focus { transform: none; }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9990;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-8%); } 20% { transform: translate(-12%,3%); }
  30% { transform: translate(6%,-10%); } 40% { transform: translate(-4%,12%); }
  50% { transform: translate(-10%,4%); } 60% { transform: translate(12%,0); }
  70% { transform: translate(0,10%); } 80% { transform: translate(-8%,-3%); }
  90% { transform: translate(9%,6%); }
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--orange-soft);
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.eyebrow__line { display: inline-block; width: 44px; height: 1px; background: var(--orange); flex-shrink: 0; }
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  opacity: 0.75;
}
.eyebrow--center { justify-content: center; }
.eyebrow__num {
  font-family: var(--data); font-weight: 500; font-size: 0.66rem;
  color: var(--cream-faint); letter-spacing: 0.06em;
  transform: translateY(1px);
}

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

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500; line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.h2 em, .cta__title em, .hero__title em { font-style: italic; color: var(--orange-soft); }

.section-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--cream-dim);
  max-width: 46rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.inline-code {
  font-family: var(--mono); font-size: 0.86em;
  background: rgba(243,241,236,0.07);
  border: 1px solid var(--line);
  padding: 0.14em 0.5em; border-radius: 5px;
  color: var(--cream);
}

/* line-mask reveal helpers */
.reveal-lines .rl-line { display: block; overflow: hidden; padding: 0.06em 0.15em 0.16em; margin: -0.06em -0.15em -0.16em; }
.reveal-lines .rl-in { display: block; }

/* ============ BUTTONS (pill + slide fill, as on the brief) ============ */
.btn {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  font-size: 0.72rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2.1rem 0.95rem;
  border-radius: 100px; cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--solid { background: var(--orange); color: var(--cream); }
.btn--solid::before { background: #A8431E; }
.btn--solid:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--cream); background: transparent; }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--navy-ink); border-color: var(--cream); }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--lg { padding: 1.25rem 2.6rem 1.15rem; font-size: 0.8rem; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem;
  padding: 1.15rem var(--pad);
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              padding 0.45s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(19, 18, 17, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.72rem var(--pad);
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav__logo img { flex-shrink: 0; }
.nav__logo img { height: 26px; width: auto; }
.nav__tag {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange-soft);
  border: 1px solid rgba(217, 98, 60, 0.45);
  border-radius: 2px;
  display: inline-flex; align-items: center;
  height: 2.1em;
  padding: 0.12em 0.55em 0;
  line-height: 1;
}
.nav__links { display: flex; gap: 1.9rem; flex-wrap: nowrap; min-width: 0; }
.nav__links a {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream-dim);
  position: relative; padding-bottom: 3px;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; }
.nav__links a, .nav__signin, .nav__cta { white-space: nowrap; }
.nav__signin {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream-dim); transition: color 0.3s;
}
.nav__signin:hover { color: var(--cream); }
.nav__cta { padding: 0.78rem 1.4rem 0.68rem; font-size: 0.64rem; }
@media (max-width: 1460px) {
  .nav__links { gap: 1.2rem; }
  .nav__links a { font-size: 0.6rem; letter-spacing: 0.1em; }
}
@media (max-width: 1240px) { .nav__links { display: none; } }
@media (max-width: 900px) {
  .nav__signin { display: none; }
  .nav__actions { gap: 1rem; }
}
@media (max-width: 560px) {
  .nav { gap: 0.6rem; }
  .nav__logo { gap: 0.5rem; }
  .nav__logo img { height: 21px; }
  .nav__tag { font-size: 0.5rem; padding: 0.26em 0.45em 0.14em; }
  .nav__cta { padding: 0.66rem 1rem 0.56rem; font-size: 0.56rem; white-space: nowrap; letter-spacing: 0.12em; }
}
@media (max-width: 400px) {
  .nav__tag { display: none; }
  .nav__logo img { height: 22px; }
  .nav__actions { gap: 0.7rem; }
  .nav__cta { padding: 0.6rem 0.85rem 0.5rem; letter-spacing: 0.08em; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem var(--pad) 5rem;
}
#truth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; }
@media (max-width: 760px) { #truth-canvas { opacity: 0.45; } }
.hero__sub, .hero__eyebrow { text-shadow: 0 1px 14px rgba(19, 18, 17, 0.8); }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 62% at 50% 46%, rgba(19,18,17,0) 30%, rgba(19,18,17,0.55) 72%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(19,18,17,0.5), rgba(19,18,17,0) 22%, rgba(19,18,17,0) 70%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 60rem; }
.hero__eyebrow { justify-content: center; }
@media (max-width: 620px) {
  /* keep the tagline + side lines; drop the redundant "Buyary Platform ·"
     (already in the nav) so the long line doesn't crowd out the side rules */
  .hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.12em; }
  .hero__eyebrow-pre, .hero__eyebrow .eyebrow__dot { display: none; }
  .hero__eyebrow .eyebrow__line { width: 34px; }
}
.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 500; line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
}
.hero__line { display: block; overflow: hidden; padding: 0.05em 0.15em 0.16em; margin: -0.05em -0.15em -0.16em; }
.hero__line-in { display: block; }
.hero__sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--cream-dim);
  max-width: 44rem; margin: 0 auto 2.4rem;
  text-wrap: balance;   /* even the wrapped lines at every width */
}
.hero__sub em { color: var(--cream); }
/* lighter hierarchy: dim setup line → bright scannable deliverables → soft closer */
.hero__sub-lead { display: block; text-wrap: balance; }
.hero__sub-list {
  display: block; margin: 0.9rem auto 0.7rem;
  color: var(--cream); font-weight: 500; letter-spacing: 0.005em;
  text-wrap: balance;
}
.hero__sub-list > span:not(:last-child)::after {
  content: "·"; color: var(--orange); font-weight: 700; margin: 0 0.55em;
}
.hero__sub-tag { display: block; font-size: 0.9em; opacity: 0.9; }
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero__call {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  background: rgba(28, 26, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1.3rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__call { max-width: calc(100vw - 2 * var(--pad)); }
.hero__call-prompt { color: var(--orange); font-weight: 700; }
.hero__call code { color: var(--cream); white-space: nowrap; }
@media (max-width: 760px) {
  .hero__call code {
    white-space: normal; overflow-wrap: anywhere; text-align: left;
    min-height: 4.6em; /* three wrapped lines: the longest catalog name can't reflow the hero */
    display: block;
  }
  .hero__call-prompt { align-self: flex-start; }
  .hero__call-caret { align-self: flex-end; margin-bottom: 0.35em; }
}
.c-fn { color: var(--orange-soft); }
.c-str { color: var(--green-light); }
.c-key { color: var(--cream-dim); }
.hero__call-caret {
  width: 8px; height: 1.15em; background: var(--green-light);
  animation: caret-blink 1.1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero__protocols {
  margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.chip {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: rgba(248, 247, 243, 0.58);
}
.chip__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: 0.7; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero__scroll-line { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--orange);
  animation: scroll-drip 2.2s var(--ease-out) infinite;
}
@keyframes scroll-drip { 0% { top: -100%; } 60%,100% { top: 100%; } }
.hero__scroll-word {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-faint);
}

/* ============ WHY BUYARY ============ */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .why__grid { grid-template-columns: 1fr; }
  /* stacked: lead with the visual hook — headline, animation, then narrative */
  .why__objects { order: -1; max-width: 340px; margin: 0.5rem auto 0; width: 100%; }
}
.why__objects { position: relative; }
#why-canvas { width: 100%; aspect-ratio: 1 / 1.15; display: block; }
.why__objects-label {
  text-align: center;
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-faint);
  margin-top: 0.4rem;
}
.why__narrative {
  max-width: 50rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.why__narrative p {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.65;
  color: var(--cream-dim);
  margin-bottom: 1.5em;
}
.why__narrative em { color: var(--orange-soft); font-style: italic; }
.why__seek { color: var(--cream) !important; font-style: italic; }

.aud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
@media (max-width: 980px) { .aud { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .aud { grid-template-columns: 1fr; } }
.aud__card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.35rem;
  background: linear-gradient(160deg, rgba(36,33,30,0.5), rgba(28,26,24,0.25));
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.aud__card:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 3px; }
/* eyebrow hairline — same motif as the section headers */
.aud__card::before {
  content: "";
  display: block;
  width: 26px; height: 1px;
  background: var(--orange);
  opacity: 0.75;
  margin-bottom: 1rem;
  transition: width 0.4s var(--ease-out), opacity 0.4s;
}
.aud__card:hover { border-color: rgba(217,98,60,0.45); transform: translateY(-3px); }
.aud__card:hover::before { width: 44px; opacity: 1; }
.aud__who {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 0.55rem;
}
.aud__what { font-family: var(--data); font-size: 0.92rem; color: var(--cream-dim); line-height: 1.55; }

/* ============ ANATOMY ============ */
.anatomy { background: var(--bg-2); }
.anatomy__call {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  margin-bottom: 0.4rem;
  font-family: var(--mono); font-size: clamp(0.78rem, 1.6vw, 0.95rem);
}
.anatomy__call code {
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  background: var(--bg);
  color: var(--cream);
}
@media (max-width: 560px) {
  /* wrapped call reads better as a rounded card than a bulging stadium */
  .anatomy__call code { border-radius: 16px; padding: 0.7rem 1.1rem; }
}
.anatomy__call-meta { color: var(--cream-dim); font-size: 0.85em; }
.tick { color: var(--green-bright); }

.pchips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.4rem 0 0.2rem;
  max-width: 56rem;
}
.pchip {
  font-family: var(--data); font-size: 0.82rem; font-weight: 500;
  color: var(--cream-dim);
  background: rgba(28,26,24,0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem 0.45rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.pchip:hover { color: var(--cream); border-color: var(--line-strong); transform: translateY(-1px); }
.pchip.is-active {
  color: var(--orange-soft);
  border-color: var(--orange);
  background: rgba(217,98,60,0.08);
}

.anatomy__wire {
  width: 1px; height: 46px;
  margin: 0.3rem 0 0.9rem 2.2rem;
  background: repeating-linear-gradient(to bottom, var(--orange) 0 4px, transparent 4px 9px);
  transform-origin: top;
}
.js .pchips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.4rem 0 0.2rem;
  max-width: 56rem;
}
.pchip {
  font-family: var(--data); font-size: 0.82rem; font-weight: 500;
  color: var(--cream-dim);
  background: rgba(28,26,24,0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem 0.45rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.pchip:hover { color: var(--cream); border-color: var(--line-strong); transform: translateY(-1px); }
.pchip.is-active {
  color: var(--orange-soft);
  border-color: var(--orange);
  background: rgba(217,98,60,0.08);
}

.anatomy__wire { transform: scaleY(0); }

.acard__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1.1rem;
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--cream-faint);
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.2rem, 2.6vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}
.acard__meta b { color: var(--green-bright); font-weight: 500; }
.acard__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(243,241,236,0.25); }

.acard {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, #2A2521 0%, var(--navy-deep) 45%, #1A1815 100%);
  padding: clamp(1.4rem, 3.4vw, 2.6rem);
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55);
}
.acard__glare {
  position: absolute; inset: 0; border-radius: 14px;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(243,241,236,0.08), transparent 45%);
  pointer-events: none;
}

.acard__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) { .acard__head { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
/* the aggregate Buyary Score reads as a SOLID disc with white numerals — hollow
   rings are reserved for individual source scores */
.acard__score-wrap { position: relative; width: clamp(124px, 16vw, 152px); }
/* overflow:visible so the disc's glow isn't clipped square by the viewBox */
.acard__ring { width: 100%; height: auto; overflow: visible; }
.acard__ring-bg { display: none; }
.acard__ring-fg {
  fill: var(--green); stroke: none;
  filter: drop-shadow(0 0 18px rgba(59,170,63,0.28));
}
.acard__score {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.acard__score b {
  font-family: var(--data); font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw, 2.8rem);
  color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* label lives BELOW the disc — inside it there's no contrast against the fill */
.acard__score span {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 0.6rem; white-space: nowrap;
  font-family: var(--sans); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-dim);
}
.acard__score-wrap { margin-bottom: 1.5rem; }
.acard__composites-label, .acard__pricing-label {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 0.7rem;
}
.acard__chips { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.score-chip {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  background: rgba(19,18,17,0.45);
}
.score-chip i {
  font-family: var(--sans); font-style: normal; font-size: 0.6rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim);
}
.score-chip b {
  font-family: var(--data); font-weight: 700; font-size: 1.25rem;
  color: var(--green-bright); font-variant-numeric: tabular-nums;
}
.acard__pricing-line { font-family: var(--data); font-size: 1rem; color: var(--cream-dim); }
.acard__pricing-line b { color: var(--cream); font-weight: 600; font-size: 1.15em; }
.strike { text-decoration: line-through; opacity: 0.55; }

.acard__claims {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3.4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) { .acard__claims { grid-template-columns: 1fr; } }
.acard__claims-head {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.acard__claims-head--plus { color: var(--green-light); }
.acard__claims-head--minus { color: var(--red); }
.acard__claims ul { list-style: none; }
.acard__claims li {
  font-family: var(--data); font-size: 0.88rem; font-weight: 400;
  color: var(--cream-dim);
  padding: 0.42rem 0 0.42rem 1.15rem;
  position: relative;
  border-bottom: 1px dashed rgba(243,241,236,0.07);
}
.acard__claims li::before {
  content: ""; position: absolute; left: 0; top: 0.95em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
}
.acard__claims-neg li::before { background: var(--red); }

.acard__sources { padding-top: clamp(1.4rem, 3vw, 2rem); }
.acard__sources-head {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream); margin-bottom: 1.1rem;
}
.acard__sources-head span { color: var(--cream-faint); font-weight: 400; text-transform: none; letter-spacing: 0.05em; }
.source-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr 2.4rem 4.4rem;
  align-items: center; gap: 1rem;
  padding: 0.5rem 0;
}
.source-row__name { font-family: var(--data); font-size: 0.86rem; color: var(--cream-dim); }
@media (max-width: 560px) {
  /* phones: name · score · stance on one line; the bar can't earn its width */
  .source-row { grid-template-columns: 1fr auto auto; gap: 0.8rem; }
  .source-row__bar { display: none; }
}
.source-row__bar { height: 4px; background: rgba(243,241,236,0.08); border-radius: 2px; position: relative; overflow: hidden; }
.source-row__bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--val) * 1%);
  background: var(--green);
  border-radius: 2px;
  transform-origin: left;
}
.js .source-row__bar i { transform: scaleX(0); }
.source-row__num {
  font-family: var(--data); font-weight: 700; font-size: 0.95rem;
  color: var(--green-bright); text-align: right;
  font-variant-numeric: tabular-nums;
}
.source-row__tag {
  font-family: var(--sans); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-faint); text-align: right;
}
/* per-source score colour follows the rating bands: 80+ green, 70-79 light, 60-69 yellow, <=59 red */
.source-row.s-mid .source-row__bar i { background: var(--green-light); }
.source-row.s-mid .source-row__num, .source-row.s-mid .source-row__tag { color: var(--green-light); }
.source-row.s-avg .source-row__bar i { background: var(--yellow); }
.source-row.s-avg .source-row__num, .source-row.s-avg .source-row__tag { color: var(--yellow); }
.source-row.s-low .source-row__bar i { background: var(--red); }
.source-row.s-low .source-row__num, .source-row.s-low .source-row__tag { color: var(--red); }
.source-row--diverges .source-row__bar { background: repeating-linear-gradient(90deg, rgba(243,241,236,0.1) 0 5px, transparent 5px 10px); }
.acard__sources-foot {
  margin-top: 1.3rem;
  font-size: 0.92rem; font-style: italic;
  color: var(--cream-dim);
}
.acard__sources-foot a {
  color: var(--orange-soft); font-style: normal;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-left: 0.5rem;
  border-bottom: 1px solid rgba(217,98,60,0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.acard__sources-foot a:hover { border-color: var(--orange); }

/* ============ DIMENSIONS ============ */
.dimensions__grid {
  display: grid; grid-template-columns: minmax(0, 460px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 960px) { .dimensions__grid { grid-template-columns: 1fr; } }
.dimensions__radar-wrap { position: sticky; top: 90px; }
@media (max-width: 960px) { .dimensions__radar-wrap { position: static; max-width: 460px; margin: 0 auto; } }
#radar { width: 100%; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: rgba(243,241,236,0.09); stroke-width: 1; }
.radar-axis { stroke: rgba(243,241,236,0.09); stroke-width: 1; }
.radar-shape {
  fill: rgba(59,170,63,0.13);
  stroke: var(--green); stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(59,170,63,0.25));
}
.radar-dot { fill: var(--bg); stroke: var(--green); stroke-width: 2; }
.radar-dot--low { stroke: var(--red); }
.radar-label {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  fill: var(--cream-dim);
}
.radar-value {
  font-family: var(--data); font-size: 13px; font-weight: 700;
  fill: var(--green-bright);
}
.radar-value--low { fill: var(--red); }
.dimensions__radar-note {
  text-align: center; margin-top: 0.7rem;
  font-size: 0.85rem; font-style: italic; color: var(--cream-faint);
}

.dim {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36,33,30,0.35);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.dim summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem 0.9rem;
  user-select: none;
  transition: background 0.3s;
}
.dim summary::-webkit-details-marker { display: none; }
.dim summary:hover { background: rgba(243,241,236,0.03); }
.dim__name {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream);
}
.dim__count {
  font-family: var(--data); font-size: 0.72rem;
  color: var(--cream-faint); margin-left: auto;
}
.dim__chev {
  width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid var(--cream-faint);
  border-bottom: 1.5px solid var(--cream-faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.35s var(--ease-out);
}
.dim[open] .dim__chev { transform: rotate(225deg) translateY(-1px); }
.dim__rows { padding: 0.2rem 1.3rem 1.1rem; }
.crit {
  display: grid;
  grid-template-columns: minmax(150px, 250px) 1fr 2.2rem;
  align-items: center; gap: 1rem;
  padding: 0.4rem 0;
}
@media (max-width: 560px) { .crit { grid-template-columns: 1fr 2.2rem; } .crit__bar { display: none; } }
.crit span:first-child { font-family: var(--data); font-size: 0.84rem; color: var(--cream-dim); }
.crit__bar { height: 3px; background: rgba(243,241,236,0.07); border-radius: 2px; position: relative; overflow: hidden; }
.crit__bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--val) * 1%);
  background: var(--green); border-radius: 2px;
  transform-origin: left;
}
.js .crit__bar i { transform: scaleX(0); }
.crit__bar i.mid { background: var(--green-light); }
.crit__bar i.avg { background: var(--yellow); }
.crit__bar i.low { background: var(--red); }
.crit b {
  font-family: var(--data); font-weight: 700; font-size: 0.88rem;
  color: var(--green-bright); text-align: right;
  font-variant-numeric: tabular-nums;
}
.crit b.mid { color: var(--green-light); }
.crit b.avg { color: var(--yellow); }
.crit b.low { color: var(--red); }

/* ============ SPEED ============ */
.speed { background: var(--navy-ink); }
.race { max-width: 56rem; }
.race__row { margin-bottom: 1.9rem; }
.race__label {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.race__name {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
}
.race__name i { font-style: normal; color: var(--cream-faint); font-weight: 400; text-transform: none; letter-spacing: 0.04em; }
.race__desc { font-family: var(--data); font-size: 0.74rem; color: var(--cream-faint); }
.race__track {
  position: relative; height: 30px;
  background: rgba(243,241,236,0.05);
  border-radius: 4px;
  display: flex; align-items: center;
}
.race__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: rgba(243,241,236,0.22);
  border-radius: 4px;
}
.race__bar--buyary {
  background: var(--green);
  box-shadow: 0 0 18px rgba(59,170,63,0.45);
}
.race__time {
  position: absolute;
  left: min(calc(var(--pct, 0) * 1%), calc(100% - 5rem));
  margin-left: 0.7rem;
  font-family: var(--data); font-weight: 700; font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  white-space: nowrap;
}
.race__row--done .race__time { color: var(--green-bright); }
.race__row:not(:first-child).race__row--done .race__time { color: var(--cream-dim); }
.race__axis {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem; margin-top: 0.4rem;
  font-family: var(--data); font-size: 0.68rem; color: var(--cream-faint);
}
.speed__verdict {
  display: flex; align-items: center; gap: 1.6rem;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  max-width: 40rem;
}
.speed__multiple {
  font-family: var(--data); font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem);
  color: var(--green-bright); line-height: 1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.speed__verdict p { color: var(--cream-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.speed__footnote {
  margin-top: 1.6rem;
  font-family: var(--data); font-size: 0.74rem; color: var(--cream-faint);
}

/* ============ CATALOG ============ */
.catalog { overflow: hidden; }
.catalog__wash {
  position: absolute; inset: -20% 0;
  background: url("../assets/wash-umber-field.jpg") center / cover no-repeat;
  opacity: 0.5;
}
.catalog::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(19,18,17,0.25) 30%, rgba(19,18,17,0.25) 70%, var(--bg));
  pointer-events: none;
}
.catalog .wrap { position: relative; z-index: 2; }
.catalog__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1rem;
}
@media (max-width: 720px) { .catalog__stats { grid-template-columns: 1fr; } }
.stat { border-left: 1px solid var(--line-strong); padding-left: 1.4rem; }
.stat__num {
  display: block;
  font-family: var(--data); font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream-dim);
  display: block; margin-top: 0.5rem;
}
.catalog__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-style: italic; color: var(--cream-dim); font-size: 0.95rem;
}

/* ============ INTEGRATE ============ */
.integrate { background: var(--bg-2); }
.integrate__grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
@media (max-width: 920px) { .integrate__grid { grid-template-columns: 1fr; } }
.proto {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(165deg, rgba(36,33,30,0.5), rgba(19,18,17,0.4));
  display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.proto:hover { border-color: var(--line-strong); }
.proto__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.proto__name {
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.proto__for {
  font-family: var(--data); font-size: 0.76rem;
  color: var(--orange-soft);
}
.proto__desc { color: var(--cream-dim); font-size: 0.98rem; margin-bottom: 1.5rem; }
.codeblock {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0D0C0B;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.codeblock__bar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243,241,236,0.03);
}
.codeblock__dots { display: flex; gap: 5px; }
.codeblock__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(243,241,236,0.16);
}
.codeblock__file {
  font-family: var(--mono); font-size: 0.68rem; color: var(--cream-faint);
}
.codeblock__copy {
  margin-left: auto;
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim);
  background: none; border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 0.35em 0.7em 0.25em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.codeblock__copy:hover { color: var(--cream); border-color: var(--cream-faint); }
.codeblock__copy.is-copied { color: var(--green-light); border-color: rgba(139,195,74,0.5); }
.codeblock pre {
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  line-height: 1.7;
  color: var(--cream);
}
.proto__link {
  margin-top: auto;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--orange-soft);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.3s var(--ease-out);
}
.proto__link:hover { gap: 0.85rem; }

/* ============ MONETIZE ============ */
.monetize__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .monetize__grid { grid-template-columns: 1fr; } }
.monetize__copy {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  color: var(--cream-dim);
}
.monetize__copy em { color: var(--cream); }
.monetize__list { list-style: none; }
.monetize__list li {
  font-family: var(--data); font-size: 0.98rem; color: var(--cream);
  padding: 0.95rem 0 0.95rem 2.4rem;
  border-bottom: 1px dashed rgba(243,241,236,0.1);
  position: relative;
}
.monetize__list li:first-child { border-top: 1px dashed rgba(243,241,236,0.1); }
.monetize__list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--green);
  background: rgba(59,170,63,0.1);
}
.monetize__list li::after {
  content: ""; position: absolute; left: 5px; top: 50%;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--green-bright);
  border-bottom: 1.5px solid var(--green-bright);
  transform: translateY(-70%) rotate(-45deg);
}

/* ============ CTA ============ */
.cta {
  position: relative;
  padding: clamp(7rem, 15vw, 12rem) 0;
  text-align: center;
  overflow: hidden;
  background: var(--navy-ink);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/wash-ember-brown.jpg") center bottom / cover no-repeat;
  opacity: 0.55;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--navy-ink), rgba(23,21,19,0.25) 40%, rgba(23,21,19,0.06) 72%, rgba(19,18,17,0.55) 90%, var(--bg));
  pointer-events: none;
}
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; z-index: 1; }
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-size: clamp(2.6rem, 6.8vw, 5.2rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 2.6rem;
  text-wrap: balance;
}
/* Below ~560px the 2.6rem floor wraps "Give your agent or app" and strands
   the italic payoff; size each half to stay on its own line. */
@media (max-width: 560px) {
  .cta__title { font-size: clamp(1.85rem, 8.4vw, 2.5rem); line-height: 1.14; }
}
.cta__actions { margin-bottom: 1.8rem; }
.cta__contact { color: var(--cream-dim); font-size: 0.98rem; font-style: italic; }
.cta__contact a {
  color: var(--orange-soft); font-style: normal;
  border-bottom: 1px solid rgba(217,98,60,0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.cta__contact a:hover { border-color: var(--orange); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr 1fr 1.9fr 1fr;
  gap: 2.2rem clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
.footer__col--wide .footer__links { columns: 2; column-gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.footer__col--wide .footer__links a { break-inside: avoid; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--wide { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  /* phones: keep the two-up pairing (like the menu overlay). DOM order:
     Platform|Products pair, Solutions spans both (inner 2-col), and the
     lone Resources column tapers the footer at the end. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
  .footer__col--wide { grid-column: 1 / -1; }
}
.footer__bar {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
}
.footer__brand { display: flex; gap: 0.85rem; align-items: center; }
.footer__brand img { opacity: 0.85; display: block; }
.footer__brand p { font-family: var(--data); font-size: 0.8rem; color: var(--cream-dim); line-height: 1.5; }
.footer__brand span { color: var(--cream-faint); font-style: italic; font-family: var(--serif); }
.footer__ext { display: flex; gap: 1.8rem; }
.footer__ext a { font-family: var(--data); font-size: 0.82rem; color: var(--cream-dim); transition: color 0.3s; }
.footer__ext a:hover { color: var(--cream); }
.footer__head {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.9rem;
}
.footer__col a {
  display: block; width: fit-content;
  transform: translateX(0);
  font-family: var(--data); font-size: 0.86rem;
  color: var(--cream-dim);
  padding: 0.22rem 0;
  transition: color 0.3s, transform 0.25s var(--ease-out);
}
.footer__col a:hover { color: var(--cream); transform: translateX(2px); }

/* brand block (footer sibling anatomy — see FOOTER-SPEC.md) */
@media (min-width: 1101px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.9fr 1fr; } }
.footer__brandcol { padding-right: clamp(0.5rem, 2vw, 2rem); }
.footer__logo { display: block; width: 168px; height: auto; margin-bottom: 1.25rem; }
.footer__tagline {
  font-family: var(--serif); font-style: italic;
  /* dimmed like the menu overlay's tagline — it's a brand aside, not a heading */
  font-size: 1.18rem; line-height: 1.4; color: var(--cream-dim);
  margin-bottom: 0.75rem;
}
@media (max-width: 1100px) { .footer__brandcol { grid-column: 1 / -1; } }
/* only the tablet band gets the 4-track grid; below 900px the earlier
   2-column rules must win again (this block outranks them by source order) */
@media (min-width: 901px) and (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1.9fr 1fr; }
}
/* whenever the brand block owns a full row (<=1100px) and there's room, lay it
   across — logo + tagline left, mission pushed right — instead of stacking in
   the left corner and leaving the right half of the row empty */
@media (min-width: 700px) and (max-width: 1100px) {
  .footer__brandcol {
    display: flex; align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-right: 0;
  }
  .footer__brandcol .footer__logo { margin-bottom: 0; }
  .footer__tagline { margin-bottom: 0; }
}
.footer__ext a {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
/* spec floor: styled focus, not just UA default */
.footer a:focus-visible, .footer__logolink:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
/* one-time entrance (menu.js arms it; hidden only when JS is live) */
@media (prefers-reduced-motion: no-preference) {
  .footer.is-armed .footer__grid > * { opacity: 0; transform: translateY(14px); }
  .footer.is-armed.is-inview .footer__grid > * {
    opacity: 1; transform: none;
    transition: opacity 0.55s ease, transform 0.65s var(--ease-out);
  }
  .footer.is-armed.is-inview .footer__grid > :nth-child(2) { transition-delay: 70ms; }
  .footer.is-armed.is-inview .footer__grid > :nth-child(3) { transition-delay: 140ms; }
  .footer.is-armed.is-inview .footer__grid > :nth-child(4) { transition-delay: 210ms; }
  .footer.is-armed.is-inview .footer__grid > :nth-child(5) { transition-delay: 280ms; }
}

/* ============ FAQ / KNOWLEDGE CENTER ============ */
.faq { background: var(--bg-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.faq__controls { margin: clamp(1.8rem, 4vw, 2.6rem) 0 clamp(1.6rem, 3vw, 2.2rem); }
.faq__search {
  position: relative; max-width: 30rem;
  display: flex; align-items: center;
}
.faq__search-icon {
  position: absolute; left: 1rem; width: 17px; height: 17px;
  fill: none; stroke: var(--cream-faint); stroke-width: 1.7; stroke-linecap: round;
  pointer-events: none;
}
#faq-q {
  width: 100%;
  font-family: var(--data); font-size: 0.95rem;
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.8rem 1.1rem 0.8rem 2.7rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
#faq-q::placeholder { color: var(--cream-faint); }
#faq-q:focus { border-color: rgba(217,98,60,0.55); }
#faq-q::-webkit-search-cancel-button { display: none; }
/* make room for the Clear pill only while it's visible */
#faq-q:has(+ .faq__reset:not([hidden])) { padding-right: 5.4rem; }
.faq__reset {
  position: absolute; right: 0.55rem;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(243,241,236,0.07);
  border: 0; border-radius: 999px;
  padding: 0.5rem 0.9rem 0.4rem;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.faq__reset:hover { color: var(--cream); background: rgba(243,241,236,0.12); }
.faq__chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .faq__chips { flex-wrap: nowrap; overflow-x: auto; margin: 1rem calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 0.4rem; scrollbar-width: none; }
  .faq__chips::-webkit-scrollbar { display: none; }
}
.faq__chip {
  flex-shrink: 0;
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim);
  background: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1rem 0.45rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.faq__chip:hover { color: var(--cream); border-color: var(--line-strong); }
.faq__chip.is-active { color: var(--orange-soft); border-color: rgba(217,98,60,0.55); background: rgba(217,98,60,0.08); }
.faq__chip:focus-visible, .faq__reset:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 2px; }
.faq__count {
  font-family: var(--data); font-size: 0.8rem; color: var(--cream-faint);
  margin-top: 0.9rem; min-height: 1.2em;
}
.faq__list { max-width: 50rem; }
.faq__group { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.faq__cat {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.7rem;
}
.faq__item {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer;
  min-height: 56px;
  padding: 1.05rem 0.2rem;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  font-family: var(--data); font-size: 1.02rem; font-weight: 500;
  color: var(--cream); line-height: 1.4;
}
.faq__item summary:hover .faq__q { color: var(--orange-soft); }
.faq__item summary:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 3px; border-radius: 4px; }
.faq__chev {
  flex-shrink: 0; width: 9px; height: 9px;
  border-right: 1.6px solid var(--cream-faint); border-bottom: 1.6px solid var(--cream-faint);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  margin-right: 0.2rem;
}
.faq__item[open] .faq__chev { transform: rotate(225deg); }
.faq__item[open] summary .faq__q { color: var(--orange-soft); }
.faq__a { padding: 0.15rem 0.2rem 1.35rem; max-width: 46rem; }
.faq__a p {
  font-family: var(--data); font-size: 0.94rem; line-height: 1.7;
  color: var(--cream-dim);
  margin-bottom: 0.85em;
}
.faq__a code {
  font-family: var(--mono); font-size: 0.85em;
  color: var(--cream);
  background: rgba(243,241,236,0.07);
  border-radius: 4px; padding: 0.1em 0.35em;
}
.faq__rel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.55rem;
  margin-top: 1.05rem; margin-bottom: 0 !important;
}
.faq__rel span {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-faint); margin-right: 0.25rem;
}
.faq__rel a {
  font-family: var(--data); font-size: 0.78rem;
  color: var(--cream-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.28rem 0.75rem 0.24rem;
  transition: color 0.3s, border-color 0.3s;
}
.faq__rel a:hover { color: var(--orange-soft); border-color: rgba(217,98,60,0.45); }
.faq__empty {
  font-family: var(--data); font-size: 0.95rem; color: var(--cream-dim);
  padding: 1.6rem 0 0.4rem;
}
.faq__empty b { color: var(--cream); font-weight: 600; }
.faq__empty button {
  font-family: var(--data); font-size: 0.9rem;
  color: var(--orange-soft); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .faq__chev, .faq__chip, .faq__rel a, #faq-q { transition: none; }
}

/* ============ REVEAL DEFAULTS (JS-driven) ============ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero__line-in { transform: translateY(110%); }
.js .hero__eyebrow, .js .hero__sub, .js .hero__ctas, .js .hero__call,
.js .hero__protocols, .js .hero__scroll { opacity: 0; }
.js [data-claim] { opacity: 0; transform: translateY(10px); }
.js .reveal-lines { visibility: hidden; }

/* ?static screenshot mode: cap viewport-sized sections */
.static .hero { min-height: 780px; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll-line::after { animation: none; }
  .hero__call-caret { animation: none; opacity: 1; }
  .js [data-reveal], .js .hero__line-in, .js .hero__eyebrow, .js .hero__sub,
  .js .hero__ctas, .js .hero__call, .js .hero__protocols, .js .hero__scroll,
  .js [data-claim] {
    opacity: 1 !important; transform: none !important;
  }
  .js .reveal-lines { visibility: visible; }
  .source-row__bar i, .crit__bar i { transform: none !important; }
  * { scroll-behavior: auto !important; }
}
