/* ═══════════════════════════════════════════════════════════════
   PRAANA — TAB 1 · HERO
   Every colour is a token. Every custom class is prefixed `h-`.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. hero block ────────────────────────────────────────────── */
.h-hero {
  position: relative;
  isolation: isolate;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: clamp(1.9rem, 3.6vh, 2.6rem) 0 clamp(3.75rem, 9.5vh, 6.25rem);
  overflow: hidden;
  background:
    radial-gradient(135% 105% at 50% 8%, var(--paper) 0%, var(--paper) 46%, var(--paper-2) 100%);
}

/* the ambient field — edge to edge, behind everything */
.h-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.h-hero-in { position: relative; z-index: 1; width: 100%; }
.h-copy { max-width: 100%; }

/* main title — very bold */
.h-title {
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.045em;
  color: var(--ink);
  margin: .5rem 0 0;
  max-width: 19ch;
  text-wrap: balance;
}
.h-title-b {
  display: block;
  color: var(--accent);
  margin-top: .12em;
}
/* the kinetic word masks must not clip descenders. The mask height is the
   line box, so anything with a line-height below ~1.25 needs the shortfall
   added back as padding and taken off again as margin. */
.h-title .kw { padding-bottom: .19em; margin-bottom: -.19em; }

/* one-liner — also very bold */
.h-say {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2.4rem);
  margin-top: clamp(1.1rem, 2vh, 1.5rem);
}
.h-one {
  font-family: var(--display);
  font-size: calc(var(--t-h2) * .82);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.038em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0;
  text-wrap: balance;
}

/* bold para */
.h-para {
  font-size: var(--t-lede);
  font-weight: 560;
  line-height: 1.48;
  letter-spacing: -.016em;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0;
}
.h-para b, .h-para strong { font-weight: 680; color: var(--ink); }

/* CTA row */
.h-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1rem;
  margin-top: clamp(1.3rem, 2.7vh, 1.75rem);
}
.h-link {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 560;
  letter-spacing: -.01em;
  color: var(--ink-3);
  padding: .4rem .15rem;
  border-bottom: 1px solid var(--rule-2);
  border-radius: 0;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.h-link:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.h-link::after { content: ' →'; }

/* proof strip */
.h-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 0;
  margin: clamp(1rem, 1.8vh, 1.3rem) 0 0;
  padding: .7rem 0 0;
  border-top: 1px solid var(--rule);
  max-width: 100ch;
  font-family: var(--mono);
  font-size: var(--t-fine);
  letter-spacing: -.01em;
  color: var(--ink-3);
}
.h-proof li { display: inline-flex; align-items: baseline; gap: .38rem; }
.h-proof li + li::before {
  content: '·';
  color: var(--rule-strong);
  margin: 0 .7rem;
}
.h-proof b {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent);
}

/* scroll cue */
.h-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.1rem, 3vh, 2rem);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  pointer-events: none;
}
.h-scroll i {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--rule-strong));
  animation: hScroll 2.6s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes hScroll {
  0%   { transform: scaleY(.2); opacity: 0; }
  40%  { transform: scaleY(1);  opacity: 1; }
  100% { transform: scaleY(1);  opacity: 0; }
}

/* ── marquee ─────────────────────────────────────────────────── */
.h-marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--card-tint);
  padding: .95rem 0;
  user-select: none;
}
.h-mq-inner {
  display: flex;
  width: max-content;
  animation: hMq 54s linear infinite;
  will-change: transform;
}
.h-mq-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.h-mq-track span {
  font-family: var(--display);
  font-size: clamp(.95rem, 1.35vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--ink-3);
  white-space: nowrap;
  padding: 0 1.6rem;
}
.h-mq-track em {
  font-style: normal;
  color: var(--green);
  opacity: .6;
  font-size: 1.1rem;
}
@keyframes hMq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── shared band headings ────────────────────────────────────── */
.h-h2 {
  font-size: var(--t-h2);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 22ch;
  margin: 1.1rem 0 clamp(2.2rem, 5vh, 3.6rem);
}
.h-h2 .kw { padding-bottom: .15em; margin-bottom: -.15em; }

/* ── 2. problem band — tighter vertical rhythm ─────────────────── */
.h-problem, .h-asym { padding: clamp(3rem, 6vh, 5rem) 0; }
.h-problem .h-h2 { max-width: 26ch; }
.h-asym .h-h2 { max-width: 24ch; }
.h-final { padding-bottom: clamp(5rem, 11vh, 8rem); }

.h-problem-lede {
  font-size: var(--t-lede);
  line-height: 1.58;
  letter-spacing: -.014em;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: .3rem;
}

.h-interlock-wrap { margin: 1.1rem 0 1.4rem; }

/* ── 3. asymmetry band ───────────────────────────────────────── */
.h-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: -.2rem;
}
.h-pillar {
  position: relative;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
}
.h-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--accent-line);
}
.h-p-n {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: .8rem;
}
.h-pillar h3 {
  font-size: var(--t-h3);
  font-weight: 750;
  letter-spacing: -.035em;
  margin-bottom: .7rem;
}
.h-pillar p { font-size: .94rem; line-height: 1.55; color: var(--ink-2); }

.h-close {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.032em;
  color: var(--ink);
  max-width: 46ch;
  margin: clamp(2.4rem, 5vh, 3.6rem) 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

/* ── 4. vision band ──────────────────────────────────────────── */
.h-centre { text-align: center; }
.h-vision .eyebrow::before { display: none; }
.h-vh {
  font-size: var(--t-h1);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.045em;
  margin: 1.2rem auto clamp(1.6rem, 3.5vh, 2.4rem);
  max-width: 16ch;
}
.h-vh .kw { padding-bottom: .17em; margin-bottom: -.17em; }
.h-beat {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.038em;
  color: var(--ink);
  max-width: 26ch;
  margin: clamp(2.6rem, 6vh, 4rem) auto clamp(2.6rem, 6vh, 4rem);
  text-wrap: balance;
}

.h-adj {
  padding-top: clamp(1.8rem, 4vh, 2.6rem);
  border-top: 1px solid var(--rule);
}
.h-adj-k {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .95rem;
}
.h-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 0;
}

/* ── 5. final CTA ────────────────────────────────────────────── */
.h-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.h-card {
  appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
}
.h-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--accent-line);
}
.h-card-k {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.h-card-h {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--ink);
}
.h-card-p {
  font-size: .97rem;
  line-height: 1.56;
  color: var(--ink-2);
  max-width: 46ch;
}
.h-card-go {
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: var(--t-fine);
  letter-spacing: -.01em;
  color: var(--accent);
}

/* ── responsive ──────────────────────────────────────────────── */
@media (min-width: 1080px) {
  .h-say {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: start;
  }
  .h-one { max-width: 20ch; }
}

@media (max-width: 1080px) {
  .h-title { max-width: 16ch; }
  .h-problem-lede { max-width: none; }
  .h-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  /* one screen, exactly — the hero block must never push its own CTAs
     or the proof strip below the fold */
  .h-hero {
    min-height: calc(100svh - var(--bar-h, 116px));
    align-items: flex-start;
    padding: 1.4rem 0 2.6rem;
  }
  .h-title {
    max-width: 15ch;
    font-size: clamp(1.95rem, 8.1vw, 2.8rem);
    line-height: .96;
    letter-spacing: -.04em;
  }
  .h-say { gap: .75rem; margin-top: .85rem; }
  .h-one { max-width: 26ch; font-size: 1.12rem; line-height: 1.14; }
  .h-para { max-width: 60ch; font-size: .95rem; line-height: 1.42; }
  .h-cta { margin-top: .9rem; }
  .h-proof { margin-top: .7rem; }
  .h-cta .btn { flex: 1 1 auto; justify-content: center; }
  /* stacked, so a separator never orphans onto the start of a line */
  .h-proof {
    font-size: var(--t-micro);
    flex-direction: column;
    align-items: flex-start;
    gap: .32rem;
  }
  .h-proof li + li::before { display: none; }
  .h-scroll { display: none; }
  .h-pillars { grid-template-columns: minmax(0, 1fr); }
  .h-final-grid { grid-template-columns: minmax(0, 1fr); }
  .h-h2, .h-title { text-wrap: pretty; }
}

/* short desktop viewports (1280×720 and similar) — the whole hero block,
   CTAs and proof strip included, still has to land above the fold */
@media (min-width: 761px) and (max-height: 800px) {
  .h-hero { min-height: 0; padding: 1.1rem 0 2.4rem; }
  .h-title { font-size: clamp(2.6rem, 4.4vw, 3.7rem); line-height: .95; }
  .h-say { margin-top: 1rem; gap: 1rem 2rem; }
  .h-one { font-size: 1.4rem; line-height: 1.1; }
  .h-para { font-size: 1.02rem; line-height: 1.45; }
  .h-cta { margin-top: 1.1rem; }
  .h-proof { margin-top: .85rem; }
  .h-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h-mq-inner { animation: none; transform: none; }
  .h-scroll i { animation: none; opacity: .5; transform: none; }
}
