/* ============================================================
   Askable Labs — visual system
   Dark foundation, technical sans + mono only.
   No serif. No emoji. Restraint as confidence.
   Three accent registers, one per direction.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ----- Foundation: deep, layered, not pure black ----- */
  --bg:           #0b0c0e;          /* page (matches the body bg used in index.html and the artefact SVG fill colour, so cards/cells never read as a different shade) */
  --bg-elev-1:    #111214;          /* card */
  --bg-elev-2:    #16171a;          /* nested card */
  --bg-elev-3:    #1c1d21;          /* edge hover */
  --bg-paper:     #e8e6e1;          /* warm off-white (inverted moments) */
  --bg-paper-2:   #d8d5cc;

  /* ----- Text on dark ----- */
  --fg:           #f1efe9;          /* primary text — warm off-white */
  --fg-2:         #cdcac2;          /* secondary */
  --fg-3:         #8d8a82;          /* tertiary / metadata */
  --fg-4:         #5d5b54;          /* faint / dividers in text */
  --fg-on-paper:  #0d0e0f;

  /* ----- Hairlines / borders ----- */
  --line:         rgba(241,239,233,0.10);
  --line-2:       rgba(241,239,233,0.16);
  --line-strong:  rgba(241,239,233,0.28);
  --line-faint:   rgba(241,239,233,0.05);

  /* ----- Direction accents (set via [data-dir]) ----- */
  /* Default: Askable red */
  --accent:        #FB5153;
  --accent-soft:   #5a1418;
  --accent-faint:  rgba(251,81,83,0.16);
  --accent-bright: #ff7375;

  /* ----- Data palette (4-colour media palette) -----
     Audio amber, Video indigo, Screen sage, Mouse cyan.
     These sit at matching luminance/saturation and appear only on
     data being represented in illustrations — never as chrome.
     Legacy keys (text, keyboard, tool, agent) map to the nearest
     palette colour. */
  --d-audio:    #E89B5A;   /* primary amber  */
  --d-video:    #7C8FE8;   /* primary indigo */
  --d-screen:   #6FBF8E;   /* primary sage   */
  --d-mouse:    #58C2C2;   /* primary cyan   */
  --d-text:     #E89B5A;   /* → audio  */
  --d-keyboard: #58C2C2;   /* → mouse  */
  --d-tool:     #6FBF8E;   /* → screen */
  --d-agent:    #7C8FE8;   /* → video  */

  /* ----- Type ----- */
  --font-sans:  "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale (functional names, not heading numbers) */
  --fz-mega:     clamp(56px, 9vw, 132px);
  --fz-hero:     clamp(40px, 5.5vw, 80px);
  --fz-display:  clamp(32px, 3.8vw, 56px);
  --fz-title:    clamp(24px, 2.4vw, 36px);
  --fz-h:        20px;
  --fz-lead:     20px;
  --fz-body:     16px;
  --fz-sm:       14px;
  --fz-mono:     13px;
  --fz-micro:    11px;

  --lh-tight:    1.02;
  --lh-snug:     1.12;
  --lh-body:     1.55;

  /* Radii — soft but tight on dark. No giant 50px pills here. */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Spacing — uses 4px base */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px; --sp-40: 160px; --sp-48: 192px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur:  220ms;
}

/* Direction accent swaps */
[data-dir="quiet"] {
  --accent:        #FB5153;   /* Askable red */
  --accent-soft:   #5a1418;
  --accent-faint:  rgba(251,81,83,0.16);
  --accent-bright: #ff7375;
}
[data-dir="designed"] {
  --accent:        #8b7ed8;   /* desaturated violet */
  --accent-soft:   #322a52;
  --accent-faint:  rgba(139,126,216,0.16);
  --accent-bright: #a89dea;
}
[data-dir="live"] {
  --accent:        #d96b3a;   /* molten orange */
  --accent-soft:   #5e2a14;
  --accent-faint:  rgba(217,107,58,0.18);
  --accent-bright: #ed7e4a;
}

/* ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  /* Body text colour at 85% — softens the page without affecting
     decorative chrome that uses its own colours (canvases, accents,
     filled buttons, etc.). The --fg / --fg-* vars are overridden
     here (inside body) to be 85%-alpha versions so any element
     using color: var(--fg) etc. picks up the new alpha. The :root
     defaults stay untouched for any other consumer. */
  --fg:   rgba(241, 239, 233, 0.85);
  --fg-2: rgba(205, 202, 194, 0.85);
  --fg-3: rgba(141, 138, 130, 0.85);
  --fg-4: rgba(93,  91,  84,  0.85);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--accent); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ============================================================
   Type roles
   ============================================================ */

.mega {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fz-mega);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  color: var(--fg);
}
.hero {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fz-hero);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fz-display);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fz-title);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fz-lead);
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--fg-2);
}
.body { font-size: var(--fz-body); line-height: var(--lh-body); color: var(--fg-2); }
.small { font-size: var(--fz-sm); line-height: 1.5; color: var(--fg-2); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fz-mono);
  letter-spacing: 0.01em;
  font-weight: 400;
}
.mono-micro { font-family: var(--font-mono); font-size: var(--fz-micro); letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fz-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
}
.eyebrow.accent { color: var(--accent); }

/* ============================================================
   Layout primitives
   ============================================================ */

.page {
  width: 100%;
  min-height: 100vh;
}
.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-10);
}
.wrap-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--sp-10);
}
.section {
  padding: var(--sp-32) 0;
  border-top: 1px solid var(--line-faint);
}
.section.tight { padding: var(--sp-20) 0; }
.section.huge  { padding: var(--sp-40) 0; }

/* ============================================================
   Grain + ambient gradient utilities (x.ai-style atmosphere)
   ============================================================ */

/* Tileable SVG fractal noise — subtle, never dominant.
   Applied as a fixed/absolute layer with low opacity. */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95   0 0 0 0 0.95   0 0 0 0 0.95   0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.grain.strong { opacity: 1; }
.grain.subtle { opacity: 0.3; }

/* Soft radial gradient washes — drop into any section as a sibling.
   Tinted with --accent-faint, kept generous and slow. */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(0.5px);
  background: radial-gradient(circle, var(--accent-faint) 0%, transparent 60%);
}
.glow.warm  { background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 60%); }
.glow.cool  { background: radial-gradient(circle, rgba(241,239,233,0.08) 0%, transparent 65%); }
.glow.large { width: 900px; height: 900px; }
.glow.med   { width: 600px; height: 600px; }
.glow.small { width: 360px; height: 360px; }

/* Legacy alias — kept so older pages don't break. Same as grain now. */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95   0 0 0 0 0.95   0 0 0 0 0.95   0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* ============================================================
   Chrome — nav + footer
   ============================================================ */

/* ============================================================
   Mobile menu — hamburger toggle + full-screen overlay
   ------------------------------------------------------------
   Single source of truth: data-mobile-open on .nav. CSS uses
   visibility + opacity so we don't have to toggle `hidden` or
   classes from JS. Same 1024px breakpoint controls both the
   hamburger (visible < 1024) and the desktop nav (visible ≥ 1024).
   ============================================================ */
.site-nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-nav__hamburger {
  position: relative;
  display: inline-block;
  width: 22px; height: 16px;
}
.site-nav__hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), top 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav__hamburger span:nth-child(1) { top: 4px; }
.site-nav__hamburger span:nth-child(2) { top: 10px; }
.nav[data-mobile-open="true"] .site-nav__hamburger span:nth-child(1),
.site-nav-root[data-mobile-open="true"] .site-nav__hamburger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav[data-mobile-open="true"] .site-nav__hamburger span:nth-child(2),
.site-nav-root[data-mobile-open="true"] .site-nav__hamburger span:nth-child(2) { top: 7px; transform: rotate(-45deg); }

.site-nav__mobile {
  position: fixed;
  inset: 0;
  top: 60px;
  z-index: 80;
  background: var(--bg);
  overflow-y: auto;
  /* Hidden by default; visibility delays its removal until after the
     opacity transition completes so the fade-out is observable. */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity   240ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 240ms;
}
.site-nav-root[data-mobile-open="true"] .site-nav__mobile {
  opacity: 1;
  visibility: visible;
  transition:
    opacity   240ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}
/* Body scroll lock while the menu is open — modern browsers via :has() */
body:has(.site-nav-root[data-mobile-open="true"]) { overflow: hidden; }

.site-nav__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.site-nav__mlist {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav__mitem > a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
}
.site-nav__mitem.is-active > a { color: var(--fg); }
.site-nav__mfoot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-faint);
}
.site-nav__mfoot .btn {
  width: 100%;
  justify-content: center;
  height: 48px;
}

/* Stagger items in when overlay opens */
.site-nav__mobile .site-nav__mitem,
.site-nav__mobile .site-nav__mfoot {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity   280ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav-root[data-mobile-open="true"] .site-nav__mobile .site-nav__mitem,
.site-nav-root[data-mobile-open="true"] .site-nav__mobile .site-nav__mfoot { opacity: 1; transform: translateY(0); }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(1) { transition-delay:  60ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(2) { transition-delay: 100ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(3) { transition-delay: 140ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(4) { transition-delay: 180ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(5) { transition-delay: 220ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(6) { transition-delay: 260ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mlist > :nth-child(7) { transition-delay: 300ms; }
.site-nav-root[data-mobile-open="true"] .site-nav__mfoot { transition-delay: 340ms; }

/* ------------------------------------------------------------
   Single breakpoint controls both hamburger + desktop nav as
   inverses. Test viewports: 1280, 1024 → desktop / 1023, 768,
   414 → mobile.
   ------------------------------------------------------------ */
@media (min-width: 1024px) {
  .site-nav__toggle { display: none !important; }
  .site-nav__mobile { display: none !important; }
}
@media (max-width: 1023px) {
  .nav-links { display: none !important; }
  .nav-cta   { display: none !important; }
  .site-nav__toggle { display: inline-flex !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav__mobile,
  .site-nav__mobile .site-nav__mitem,
  .site-nav__mobile .site-nav__mfoot,
  .site-nav__hamburger span {
    transition-duration: 150ms !important;
    transform: none !important;
  }
}

/* The site-nav-root is a layout-transparent wrapper that exists only
   to carry the data-mobile-open attribute and group .nav + mobile
   overlay as siblings. `display: contents` removes the wrapper from
   the layout tree so .nav becomes effectively a direct child of
   <body>, restoring `position: sticky` (which only sticks within its
   containing block — a 60px-tall wrapper kills sticky immediately). */
.site-nav-root { display: contents; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-faint);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--sp-10);
  max-width: 1400px;
  margin: 0 auto;
}
.nav-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-size: 16px;
  height: 24px;
  /* Reserve enough width for the full wordmark so swapping to the
     compact mark doesn't shift the rest of the nav. flex-shrink: 0
     prevents the brand cell from collapsing as letters retract. */
  min-width: 170px;
  flex-shrink: 0;
}
.nav-brand .mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 14px var(--accent);
}

/* ============================================================
   Logo — per-letter scrub.
   Single mark with letters in spans. The persistent letters
   (a, /, l) stay visible at all times. The "deletable" letters
   collapse width-to-0 + fade out when .nav[data-scrolled="true"],
   with a left-to-right stagger via --i. Reverse direction reappears
   with the same stagger.
   ============================================================ */
.logo-mark {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 500;
}
.logo-keep,
.logo-fade {
  display: inline-block;
  white-space: pre;
  overflow: hidden;
  vertical-align: baseline;
}
.logo-fade {
  /* Default → scrolled (deleting): letters disappear right-to-left so
     the typewriter "deletes from the end" — rightmost letter goes
     first. Default state's transition rule defines what happens going
     back to default (left-to-right reappear). The scrolled state
     overrides with the reverse delay. */
  max-width: 1.1em;
  opacity: 1;
  /* Expanding (scrolled → default): letters appear left-to-right */
  transition:
    max-width 140ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i, 0) * 22ms),
    opacity 120ms cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i, 0) * 22ms);
}
.nav[data-scrolled="true"] .logo-fade {
  max-width: 0;
  opacity: 0;
  /* Detracting (default → scrolled): letters delete right-to-left.
     Max --i is 8 (9 fade letters), so (8 - i) inverts the order. */
  transition:
    max-width 140ms cubic-bezier(0.4, 0, 0.2, 1) calc((8 - var(--i, 0)) * 22ms),
    opacity 120ms cubic-bezier(0.4, 0, 0.2, 1) calc((8 - var(--i, 0)) * 22ms);
}
.logo-slash {
  color: var(--accent);
  margin: 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .logo-fade {
    transition: opacity 150ms ease, max-width 150ms ease;
  }
}

@media (max-width: 640px) {
  /* Force compact state on mobile so the layout doesn't shift wider */
  .nav-brand { min-width: 0; }
  .logo-fade {
    max-width: 0;
    opacity: 0;
    transition: none;
  }
}
.nav-links {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg);
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  border: 1px solid var(--line-2);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.btn:hover { border-color: var(--fg); }
.btn.primary {
  /* Inverted pill — warm off-white surface, ink text.
     Uses the full #f1efe9 rather than var(--fg) so the alpha-softened
     body override doesn't make the button look translucent. */
  background: #f1efe9;
  color: #0b0c0d;
  border-color: #f1efe9;
}
.btn.primary:hover { background: #ffffff; border-color: #ffffff; }
.btn.ghost { border-color: transparent; padding-left: 0; padding-right: 0; }
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Footer */
.footer {
  border-top: 0;
  /* Generous top padding so the bottom-anchored horizon glow has
     room to develop upward inside the footer's box without being
     clipped abruptly. */
  padding: 160px 0 var(--sp-10);
  position: relative;
  /* overflow: hidden keeps the glow pseudo-elements from extending
     past the footer's bounds — without this, the 1800px-wide outer
     glow forces a horizontal scrollbar and the -400px bottom offset
     adds blank space below the footer. */
  overflow: hidden;
  isolation: isolate;
}

/* xAI-style atmospheric glow under the footer — two layers (wider
   soft bloom + tighter inner core), brand ember at low opacity, blurred.
   Static, decorative, purely environmental. Reads as a horizon-line
   light source just below the page edge. */
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  z-index: 0;
}
/* Outer glow — wide, soft. Sized so its upper falloff lands well
   inside the footer's padded top area (it gets clipped by .footer's
   overflow: hidden, so the falloff has to be naturally faded before
   that clip point). */
.footer::before {
  bottom: -300px;
  width: 1800px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(251, 81, 83, 0.20) 0%,
    rgba(251, 81, 83, 0.06) 35%,
    transparent 65%
  );
  filter: blur(60px);
}
/* Inner glow — smaller, brighter */
.footer::after {
  bottom: -180px;
  width: 800px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(251, 81, 83, 0.40) 0%,
    rgba(251, 81, 83, 0.12) 40%,
    transparent 70%
  );
  filter: blur(30px);
}
/* Footer content sits above the glow layers */
.footer .wrap { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .footer::before { width: 1100px; height: 550px; bottom: -300px; filter: blur(40px); }
  .footer::after  { width: 600px;  height: 380px; bottom: -160px; filter: blur(25px); }
}
@media (max-width: 640px) {
  .footer::before { width: 700px; height: 350px; bottom: -200px; filter: blur(28px); }
  .footer::after  { width: 420px; height: 260px; bottom: -120px; filter: blur(18px); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
}
.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--sp-5);
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-2); font-size: 14px; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  border-top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.footer-parent {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-2);
  max-width: 320px;
  line-height: 1.5;
  margin-top: var(--sp-3);
}
.footer-parent-link {
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
}

/* ============================================================
   Cards — sample / module
   ============================================================ */

.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }

/* ============================================================
   Askable Labs wordmark — single mono text run.
   Replaces the legacy .seak-wordmark which is no longer rendered
   but its styles stay below for backward compat with stray markup.
   ============================================================ */
.al-wordmark {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 22px;
  line-height: 1;
  text-transform: lowercase;
  color: currentColor;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
/* ============================================================
   Seak Lab wordmark — sub-brand of Askable.
   The letters of "askable" rearranged 2-7-1-3 / 6-4-5 spell
   "seak lab"; the numerals encode that etymology and are
   load-bearing brand, not decoration.
   ============================================================ */
.seak-wordmark {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 36px;                /* default — override per context */
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: currentColor;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.seak-wordmark .l {
  display: inline-block;
  position: relative;
  padding-right: 0.25em;          /* reserved space for the numeral */
}
.seak-wordmark .l sup {
  position: absolute;
  top: -0.05em;
  right: 0.18em;                  /* now uses the wordmark's em — pulls the numeral toward its letter */
  font-family: inherit;
  font-weight: 400;
  font-size: 1em;                 /* inherit wordmark size; we scale via transform below */
  line-height: 1;
  opacity: 0.58;
  vertical-align: baseline;
  /* Scale here instead of via font-size so the positioning units stay
     in the wordmark's em, not the sup's own (shrunk) em. */
  transform: scale(0.20);
  transform-origin: top right;
}
.seak-wordmark .gap {
  display: inline-block;
  width: 0.6em;                   /* roughly one mono character */
}
/* At small sizes the 15% numerals become noise; drop them.
   Trigger via .no-num modifier rather than a media query because
   sizing is set inline per placement. */
.seak-wordmark.no-num .l sup { display: none; }
.seak-wordmark.no-num .l     { padding-right: 0; }
/* ============================================================
   Modality pip — small data colour swatch
   ============================================================ */

.pip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.pip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}
.pip[data-m="video"]    { color: var(--d-video); }
.pip[data-m="audio"]    { color: var(--d-audio); }
.pip[data-m="screen"]   { color: var(--d-screen); }
.pip[data-m="text"]     { color: var(--d-text); }
.pip[data-m="keyboard"] { color: var(--d-keyboard); }
.pip[data-m="mouse"]    { color: var(--d-mouse); }
.pip[data-m="tool"]     { color: var(--d-tool); }
.pip[data-m="agent"]    { color: var(--d-agent); }

/* ============================================================
   Pre-render moment + page-load entrance
   ------------------------------------------------------------
   chrome.js injects a .prerender overlay on every page (except
   the homepage, which has its own bespoke version). The overlay
   sits over the page for ~1.3s, fades out, and main content
   fades up underneath.
   ============================================================ */
.prerender {
  position: fixed;
  inset: 0;
  background: #08080a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
}
/* Generic prerender wordmark style — applies to .al-wordmark and to
   the legacy .seak-wordmark when used inside .prerender. */
.prerender .al-wordmark,
.prerender .seak-wordmark {
  color: var(--fg);
  opacity: 0;
  animation: prerender-mark-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}
@keyframes prerender-mark-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.is-loaded .prerender {
  opacity: 0;
  pointer-events: none;
}
/* Generic page-content entrance — main fades up once the overlay
   fades out. The homepage uses its own bespoke staged sequence so
   excludes main from this rule via :not(.has-hero-anim). */
main.page {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity   600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
body.is-loaded main.page {
  opacity: 1;
  transform: translateY(0);
}
/* Homepage opts out — its hero has a per-element staged entrance */
body.has-hero-anim main.page {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .prerender { transition: opacity 200ms ease !important; }
  .prerender .al-wordmark,
  .prerender .seak-wordmark { animation: none !important; opacity: 1 !important; }
  main.page { transition: opacity 200ms ease !important; transform: none !important; }
}

/* Mobile / small screens — only non-nav rules (nav breakpoint above) */
@media (max-width: 800px) {
  .wrap, .nav-inner { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .section { padding: var(--sp-16) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
