/* ═══════════════════════════════════════════════════════════════
   Zentarai Labs · shared UI
   The design system behind zentarailabs.com, used by every page
   except the home page (which carries its own hero machinery).
   Reference aesthetic: Inter Tight at weight 500, line-height 0.8
   display type, cream / blue / sun palette, "●"-free small labels.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue:   #2F4BA8;
  --blue-d: #23387d;
  --cream:  #FFFCF5;
  --ink:    #000000;
  --grey:   #484848;
  --sun:    #FCE9A8;
  --line:   rgba(255,255,255,0.22);
  --rule:   rgba(0,0,0,0.11);

  --pad:    clamp(20px, 5vw, 96px);
  --r-card: 18px;
  --r-pill: 8px;
  --r-btn:  4px;

  --d1: clamp(2.6rem, 8vw, 6rem);
  --d2: clamp(2rem, 4.6vw, 3.4rem);
  --d3: clamp(1.2rem, 2vw, 1.55rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--grey);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.d1 { font-size: var(--d1); line-height: 0.84; }
.d2 { font-size: var(--d2); line-height: 1;    }
.d3 { font-size: var(--d3); line-height: 1.15; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  opacity: 0.72;
}

.btn {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 13px 26px; border-radius: 99px;
  background: #1c1e26; color: #fff;
  transition: background 0.25s;
}
.btn:hover { background: var(--blue); }
.btn.ghost { background: rgba(0,0,0,0.06); color: var(--ink); }
.btn.ghost:hover { background: var(--blue); color: #fff; }

/* ── Nav: fixed, blends against whatever band is under it ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px var(--pad);
  mix-blend-mode: difference; color: #fff;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.nav.hide { transform: translateY(-120%); }
.nav .wordmark { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 10px; border-radius: var(--r-btn);
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 720px) { .nav-links .opt { display: none; } }

/* ── Page hero ── */
.page-hero {
  background: var(--cream);
  padding: clamp(120px, 18vh, 190px) var(--pad) clamp(50px, 8vh, 90px);
}
.page-hero .d1 { margin: 14px 0 0; max-width: 16ch; }
.page-hero .lede {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); line-height: 1.55; color: var(--grey);
}

/* ── Bands ── */
.band { padding: clamp(56px, 9vh, 110px) var(--pad); }
.band.cream { background: var(--cream); color: var(--ink); }
.band.white { background: #fff;         color: var(--ink); }
.band.blue  { background: var(--blue);  color: var(--cream); }
.band.ink   { background: var(--ink);   color: var(--cream); }
.band.blue h2, .band.blue h3, .band.ink h2, .band.ink h3 { color: var(--cream); }
.band.blue p,  .band.ink p  { color: rgba(255,252,245,0.74); }
.band.blue .eyebrow, .band.ink .eyebrow { color: var(--cream); }
.band + .band.cream, .band + .band.white { border-top: 1px solid var(--rule); }
.band.blue + .band.blue, .band.ink + .band.ink { border-top: 1px solid var(--line); }

.band .head { margin-bottom: clamp(30px, 5vh, 52px); }
.band .head .d2 { margin-top: 12px; max-width: 20ch; }

/* readable text column */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 16px; }
.prose h3 { margin: 34px 0 10px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.band.blue .prose a, .band.ink .prose a { color: var(--sun); }

/* ── Cards ── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--cream); border-radius: var(--r-card); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s;
}
.band.cream .card { background: #fff; }
.band.blue .card {
  background: rgba(255,252,245,0.07); border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(35,56,125,0.12); }
.band.blue .card:hover { box-shadow: none; border-color: var(--sun); }
.card p { font-size: 0.86rem; }
.card .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--blue); transition: gap 0.25s;
}
.band.blue .card .go { color: var(--sun); }
.card .go:hover { gap: 12px; }

/* numbered list, as on the home page's values rail */
.numbered { counter-reset: n; display: grid; gap: 28px; }
.numbered > li { counter-increment: n; list-style: none; border-top: 1px solid var(--rule); padding-top: 18px; }
.band.blue .numbered > li { border-top-color: var(--line); }
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.6;
}
.numbered h3 { margin-bottom: 8px; }
.numbered p { max-width: 68ch; }   /* line length, not container width */
.band.blue .numbered h3 { color: var(--sun); }

/* key / value fact rows */
.facts { display: grid; gap: 0; max-width: 80ch; }
.facts div {
  display: grid; grid-template-columns: minmax(140px, 24%) 1fr; gap: 18px;
  padding: 15px 0; border-top: 1px solid var(--rule); font-size: 0.88rem;
}
.band.blue .facts div { border-top-color: var(--line); }
.facts dt, .facts .k { color: var(--ink); }
.band.blue .facts .k { color: var(--cream); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ── Footer ── */
footer.site {
  background: var(--blue-d); color: var(--cream);
  padding: clamp(60px,8vh,100px) var(--pad) 34px;
}
.marquee {
  overflow: hidden; margin-bottom: clamp(50px,7vh,90px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee div {
  display: flex; gap: 0.4em; width: max-content;
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1;
  color: rgba(255,252,245,0.16); white-space: nowrap;
  animation: slide 26s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }
.fcols {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.fcol .eyebrow { color: var(--cream); margin-bottom: 14px; }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fcol a {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(255,252,245,0.72); transition: color 0.2s;
}
.fcol a:hover { color: var(--cream); }
.fbottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; font-size: 0.72rem; color: rgba(255,252,245,0.5);
}

/* ── Reveal on scroll ── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.k1 { transition-delay: .07s; }
.rv.k2 { transition-delay: .14s; }
.rv.k3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
