/* Vega holding page — Direction C · Signal, hero only, no navigation.
   Logo and type updated 2026-10-13/14 to the new brand (see docs/brand/).
   Built from Figma node 31:210 ("01 · Hero · Temp").
   Colour, type and motion tokens come from tokens.css; nothing is re-declared here.
   The page itself is one static frame; the only JavaScript is the optional intro
   (intro-gate.js, intro.js — see the intro section below). */

/* Type pairing chosen 2026-10-14 against the new logo (design board P2):
   Outfit for the headline, Mulish for text, DM Mono for captions.
   Self-hosted latin subsets from Google Fonts, OFL licences alongside.
   The font tokens come from tokens.css (shared with /site since 2026-10-14);
   the faces are declared here so this page does not depend on main.css. */
@font-face{
  font-family:'Outfit'; font-weight:500; font-style:normal; font-display:swap;
  src:url('assets/fonts/outfit-500.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Mulish'; font-weight:400 600; font-style:normal; font-display:swap;
  src:url('assets/fonts/mulish-variable.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'DM Mono'; font-weight:400; font-style:normal; font-display:swap;
  src:url('assets/fonts/dm-mono-400.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'DM Mono'; font-weight:500; font-style:normal; font-display:swap;
  src:url('assets/fonts/dm-mono-500.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-ondark-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- layout ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Figma: 200 top / 160 bottom / 128 sides at 1440. Scales down on small screens. */
  padding: clamp(72px, 13.9vw, 200px) clamp(24px, 8.9vw, 128px) clamp(64px, 11.1vw, 160px);
}
/* Desktop: shorter top clearance (2026-10-15) — at 200px the hero overflowed a
   1440×900 screen. 120px at 1440, 96px floor at 1024. */
@media (min-width: 1024px) {
  .hero { padding-top: clamp(96px, 8.3vw, 120px); }
}

.hero-inner {
  width: 100%;
  max-width: 1184px;   /* 1440 − 2 × 128 */
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* ---------- logo ---------- */

/* Stacked lockup from the brand sheet (docs/brand/vega-logo-stacked.svg),
   outlined paths in one colour. 200px keeps "REGULATORY SOLUTIONS" at an
   8px cap height; below that the descriptor stops being readable. */
.logo {
  display: block;
  width: 200px;
  line-height: 0;
  border-radius: 2px;
  color: var(--anchor);
  margin-bottom: 12px;   /* the taller lockup needs more air than the 28px column gap */
}
.logo svg { width: 100%; height: auto; display: block; }

/* ---------- kicker ---------- */

.kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ondark-secondary);
}
.kicker-rule {
  flex: none;
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* ---------- headline ---------- */

.hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.2;            /* Outfit sets tighter than Unbounded did (was 1.6) */
  letter-spacing: -0.005em;
  color: var(--text-ondark-primary);
  text-wrap: balance;
}
/* The three lines are authored, not wrapped — they hold their shape down to
   the width where the longest line no longer fits, then wrap naturally. */
.h1-line { display: block; }

/* ---------- subhead ---------- */

.hero-sub {
  margin: 0;
  max-width: 707px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-ondark-secondary);
  text-wrap: pretty;
}
.hero-sub .emph {
  font-weight: 500;
  color: var(--signal);
}

/* ---------- call to action ---------- */

.cta-row { padding-block: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink-900);          /* 7.35:1 — white on this orange fails */
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color var(--dur-micro-2) var(--ease-resolve);
}
.btn:hover { background: #FF8A4F; }
.btn:active { background: var(--signal-deep); color: #FFFFFF; }

/* ---------- platforms ---------- */

.platforms {
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-ondark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platforms-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ondark-secondary);
}

.platform-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
/* Platform captions, restored from /site (2026-10-15): a real <button> trigger
   (unambiguous for assistive tech and for a touch tap) with the full name in a
   role="tooltip" caption. Hover and keyboard focus show it in CSS alone;
   platforms.js adds tap-to-toggle, Escape and outside-click dismissal (WCAG 1.4.13). */
.platform { position: relative; }
.platform-abbr {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-ondark-primary);
  text-decoration: underline dotted;
  text-decoration-color: rgba(204, 219, 255, .55);
  text-underline-offset: 5px;
  cursor: pointer;
}
.platform-abbr abbr { text-decoration: none; }
/* Hit area to the 24×24px WCAG 2.5.8 target without changing the glyph */
.platform-abbr::after { content: ""; position: absolute; inset: -7px -4px; }
.platform-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5;
  white-space: nowrap;
  padding: 8px 12px;
  background: var(--ink-800);
  border: 1px solid rgba(204, 219, 255, .35);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-ondark-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
/* Hover bridge, so the pointer can move onto the caption without it closing */
.platform-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.platform:hover .platform-tip,
.platform:focus-within .platform-tip,
.platform.tip-open .platform-tip { opacity: 1; visibility: visible; transition: opacity .15s ease; }
.platform.tip-dismissed .platform-tip { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .platform-tip { transition: none; } }

/* The separator is the mark's own 45° angle, not a slash glyph. */
.platform-list .sep {
  flex: none;
  width: 12px;
  height: 16px;
  background: var(--hairline-ondark);
  clip-path: polygon(0 100%, 1px 100%, 12px 0, 11px 0);
}

/* ---------- intro (intro-gate.js + intro.js) ----------
   Six dots → the "v" mark → a shutter that opens onto the hero. Only runs when
   intro-gate.js adds .intro-pending (motion allowed, first visit this session);
   without JS the page is the static frame above. Transparent only, never inert:
   screen readers can read the hero while the intro plays. */

.intro-pending .hero-inner { opacity: 0; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  color: var(--signal);
}
.intro-origin { position: relative; width: 0; height: 0; }
.intro-dot { position: absolute; width: 20px; height: 20px; left: -10px; top: -10px; opacity: 0; }
.intro-dot svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- focus ---------- */

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .hero { align-items: flex-start; }
  .hero-inner { gap: 24px; }
  .h1-line { display: inline; }   /* let the headline wrap to the column */
  .platform-list { gap: 14px; }
  /* The kicker wraps to two or three lines here; the rule belongs against the
     first line, not floating at the vertical centre of the block. */
  .kicker { align-items: flex-start; }
  .kicker-rule { margin-top: 10px; }
  /* The last platform caption opens leftwards so it never runs off the screen */
  .platform:last-child .platform-tip { left: auto; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
