/* ════════════════════════════════════════════════════════════════════════════
   LATTICE — about.css
   Stylesheet for the About / Manifesto page.
   Built on the Liquid Glass design system. See assets/css/tokens.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   TOKENS — Color, type, layout, and Liquid Glass tokens
   ────────────────────────────────────────────────────────────────── */
:root {
    --bg: #0a0908; --bg-soft: #12100e; --bg-card: #161310;
    --ink: #f5f1eb; --ink-soft: #a8a29a; --ink-mute: #9b9489;
    --line: rgba(245, 241, 235, 0.08);
    --line-strong: rgba(245, 241, 235, 0.18);
    --accent: #c4f542; --accent-glow: rgba(196, 245, 66, 0.35);
    --warn: #ff7849;
    --serif: 'Fraunces', 'Times New Roman', serif;
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --maxw: 1320px; --gutter: clamp(1.25rem, 3vw, 2.5rem);

    --lg-radius-sm: 10px; --lg-radius: 18px; --lg-radius-lg: 26px; --lg-radius-pill: 999px;
    --lg-bg: rgba(20, 17, 15, 0.42);
    --lg-bg-light: rgba(245, 241, 235, 0.05);
    --lg-bg-strong: rgba(20, 17, 15, 0.62);
    --lg-border: rgba(245, 241, 235, 0.14);
    --lg-border-strong: rgba(245, 241, 235, 0.24);
    --lg-blur: blur(20px) saturate(180%);
    --lg-shadow: inset 0 1px 0 rgba(245, 241, 235, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.20), 0 8px 32px rgba(0, 0, 0, 0.40);
    --lg-shadow-lg: inset 0 1px 0 rgba(245, 241, 235, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 18px 50px rgba(0, 0, 0, 0.50);
    --lg-accent-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 6px 22px rgba(196, 245, 66, 0.28);
    --lg-accent-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 14px 44px rgba(196, 245, 66, 0.45);
  }

/* ──────────────────────────────────────────────────────────────────
   RESET — Universal box-sizing / margin / padding
   ────────────────────────────────────────────────────────────────── */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg); color: var(--ink);
    font-family: var(--sans); line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; cursor: none;
  }
  body::before {
    content: ""; position: fixed; inset: 0;
    pointer-events: none; z-index: 100;
    opacity: 0.06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  }

/* ──────────────────────────────────────────────────────────────────
   SELECTION — Lime selection over warm-black
   ────────────────────────────────────────────────────────────────── */
  ::selection { background: var(--accent); color: var(--bg); }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
  .cursor-dot, .cursor-ring {
    position: fixed; pointer-events: none; z-index: 9999;
    top: 0; left: 0; transform: translate(-50%, -50%);
    transition: opacity 0.2s;
  }
  .cursor-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
  .cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid rgba(245, 241, 235, 0.4);
    border-radius: 50%;
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  }
  .cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent); background: rgba(196, 245, 66, 0.06); }
/* ──────────────────────────────────────────────────────────────────
   NAVIGATION — Floating Liquid Glass pill nav
   ────────────────────────────────────────────────────────────────── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; justify-content: center;
    padding: 1rem var(--gutter);
    pointer-events: none;
  }
  .nav-pill {
    pointer-events: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; width: 100%; max-width: 1100px;
    padding: 0.55rem 0.7rem 0.55rem 1.4rem;
    background: var(--lg-bg);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-pill);
    box-shadow: var(--lg-shadow);
    transition: padding 0.35s cubic-bezier(.2,.7,.2,1), background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s;
  }
  .nav.scrolled .nav-pill {
    padding-top: 0.45rem; padding-bottom: 0.45rem;
    background: var(--lg-bg-strong);
    border-color: var(--lg-border-strong);
    box-shadow: var(--lg-shadow-lg);
    transform: translateY(-2px);
  }
  .nav-brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 500; letter-spacing: 0.18em;
    font-size: 0.82rem; text-transform: uppercase;
  }
  .nav-mark { width: 22px; height: 22px; position: relative; }
  .nav-mark::before, .nav-mark::after {
    content: ""; position: absolute; inset: 0;
    border: 1.5px solid var(--ink);
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
  }
  .nav-mark::after { transform: rotate(45deg) scale(0.7); border-color: var(--accent); }
  .nav-brand:hover .nav-mark::before { transform: rotate(45deg); }
  .nav-brand:hover .nav-mark::after { transform: rotate(0) scale(1); }
  .nav-links { display: flex; gap: 2rem; font-size: 0.85rem; color: var(--ink-soft); }
  .nav-link { position: relative; padding: 0.4rem 0; transition: color 0.3s; }
  .nav-link.active { color: var(--ink); }
  .nav-link::after {
    content: ""; position: absolute; bottom: 0; left: 0;
    height: 1px; width: 100%; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
  }
  .nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
  .nav-link:hover { color: var(--ink); }
  .nav-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.05rem;
    background: var(--accent); color: var(--bg);
    font-weight: 500; font-size: 0.82rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(196, 245, 66, 0.5);
    border-radius: 999px;
    box-shadow: var(--lg-accent-shadow);
    transition: transform 0.3s, box-shadow 0.4s;
  }
  .nav-cta:hover { transform: translateY(-1px); box-shadow: var(--lg-accent-shadow-hover); }
  .nav-cta-arrow { display: inline-block; transition: transform 0.4s; }
  .nav-cta:hover .nav-cta-arrow { transform: translateX(4px); }
  @media (max-width: 820px) { .nav-links { display: none; } }
/* ──────────────────────────────────────────────────────────────────
   HERO — 3D canvas slot, veil, headline, eyebrow, sub
   ────────────────────────────────────────────────────────────────── */
  .hero {
    position: relative;
    min-height: 92vh;
    padding: clamp(8rem, 14vh, 11rem) var(--gutter) clamp(4rem, 8vh, 6rem);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
  }
  #about-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 0;
  }
  .hero-veil {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      radial-gradient(ellipse at 30% 50%, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0) 55%),
      linear-gradient(180deg, rgba(10,9,8,0) 0%, rgba(10,9,8,0.4) 100%);
  }
  .hero-inner {
    position: relative; z-index: 2;
    max-width: var(--maxw); margin: 0 auto; width: 100%;
  }

/* ──────────────────────────────────────────────────────────────────
   HERO META — Mono editorial signature line at the bottom
   ────────────────────────────────────────────────────────────────── */
  .hero-meta {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.6rem;
    z-index: 2;
    display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute);
    opacity: 0; animation: fadeUp 1.2s 1.5s cubic-bezier(.2,.7,.2,1) forwards;
    pointer-events: none;
  }
  @media (max-width: 600px) { .hero-meta { display: none; } }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.95rem 0.55rem 0.85rem;
    background: var(--lg-bg);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-pill);
    box-shadow: var(--lg-shadow);
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 1.8rem;
    opacity: 0; animation: fadeUp 0.9s 0.1s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 14px var(--accent-glow);
    animation: pulse 2.4s ease-in-out infinite;
  }
  .hero-headline {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2.8rem, 9vw, 8.4rem);
    line-height: 0.95; letter-spacing: -0.03em;
    max-width: 14ch;
  }
  .hero-headline em { font-style: italic; color: var(--accent); }
  .hero-headline .word {
    display: inline-block; opacity: 0; transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero-headline .word:nth-child(1) { animation-delay: 0.30s; }
  .hero-headline .word:nth-child(2) { animation-delay: 0.40s; }
  .hero-headline .word:nth-child(3) { animation-delay: 0.50s; }
  .hero-headline .word:nth-child(4) { animation-delay: 0.60s; }
  .hero-sub {
    margin-top: 2rem;
    max-width: 56ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    font-weight: 300;
    opacity: 0; animation: fadeUp 1s 0.95s cubic-bezier(.2,.7,.2,1) forwards;
  }

  /* SECTIONS */
  .section { padding: clamp(5rem, 12vh, 8rem) 0; position: relative; }

/* ──────────────────────────────────────────────────────────────────
   LAYOUT — Container max-width and gutter
   ────────────────────────────────────────────────────────────────── */
  .container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

  .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  .section-label {
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
  }
  .section-label::before { content: "§ "; color: var(--accent); }
  .section-title {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: -0.02em; line-height: 1;
    max-width: 16ch; margin-top: 1rem;
  }
  .section-title em { font-style: italic; color: var(--accent); }
  .section-aside { max-width: 42ch; color: var(--ink-soft); font-size: 0.95rem; }

  /* ORIGIN — long-form prose with pull quote */
  .prose {
    max-width: 720px; margin: 0 auto;
    padding: 0 var(--gutter);
    font-size: 1.1rem; line-height: 1.7;
    color: var(--ink-soft);
  }
  .prose p { margin-bottom: 1.4rem; }
  .prose p strong { color: var(--ink); font-weight: 500; }
  .prose p em { color: var(--accent); font-style: italic; }
  .prose .lead {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.4;
    color: var(--ink); margin-bottom: 2rem;
  }
  .pull {
    margin: 3.5rem 0;
    padding: 2rem 2.4rem;
    background: var(--lg-bg-light);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.35; color: var(--ink);
  }
  .pull em { font-style: normal; color: var(--accent); }

  /* PRINCIPLES — 6-up grid of glass cards */
  .principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  @media (max-width: 920px) { .principles { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }
  .principle {
    background: var(--lg-bg-light);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 1.8rem;
    transition: transform 0.4s, border-color 0.4s, background 0.4s;
  }
  .principle:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 245, 66, 0.35);
    background: rgba(196, 245, 66, 0.04);
  }
  .principle-num {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: 2.4rem; line-height: 1; color: var(--accent);
    margin-bottom: 1rem; letter-spacing: -0.02em;
  }
  .principle-name {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.3rem; letter-spacing: -0.01em;
    color: var(--ink); margin-bottom: 0.6rem;
    line-height: 1.2;
  }
  .principle-name em { font-style: italic; color: var(--accent); }
  .principle-body { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

  /* TIMELINE — vertical with glass tiles */
  .timeline {
    max-width: 880px; margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
  }
  .timeline::before {
    content: "";
    position: absolute; left: calc(var(--gutter) + 50px); top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  }
  .epoch {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 2.5rem;
    padding: 1.6rem 0;
    align-items: baseline;
    position: relative;
  }
  .epoch::before {
    content: "";
    position: absolute; left: 47px; top: 1.95rem;
    width: 7px; height: 7px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
  }
  .epoch-year {
    font-family: var(--mono); font-size: 0.78rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
  }
  .epoch-body {
    background: var(--lg-bg-light);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 1.4rem 1.6rem;
    transition: transform 0.4s, border-color 0.4s;
  }
  .epoch-body:hover { transform: translateX(4px); border-color: var(--lg-border-strong); }
  .epoch-title {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.25rem; line-height: 1.2; color: var(--ink);
    margin-bottom: 0.5rem; letter-spacing: -0.01em;
  }
  .epoch-title em { font-style: italic; color: var(--accent); }
  .epoch-desc { font-size: 0.92rem; color: var(--ink-soft); }
  @media (max-width: 600px) {
    .timeline::before { left: 0; }
    .epoch { grid-template-columns: 1fr; gap: 0.8rem; padding-left: 1.2rem; }
    .epoch::before { left: -3px; }
  }

  /* FOUNDERS — 2-up portraits + bios */
  .founders {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
  }
  @media (max-width: 820px) { .founders { grid-template-columns: 1fr; } }
  .founder {
    background: var(--lg-bg-light);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius-lg);
    box-shadow: var(--lg-shadow);
    padding: 1.8rem;
    transition: transform 0.4s, border-color 0.4s;
  }
  .founder:hover { transform: translateY(-4px); border-color: var(--lg-border-strong); }
  .founder-portrait {
    width: 100%; aspect-ratio: 16/10;
    background:
      radial-gradient(circle at 30% 30%, rgba(196, 245, 66, 0.18), transparent 50%),
      radial-gradient(circle at 70% 70%, rgba(255, 120, 73, 0.12), transparent 50%),
      linear-gradient(135deg, #1a1714 0%, #0c0a09 100%);
    border-radius: var(--lg-radius);
    margin-bottom: 1.4rem;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .founder-portrait::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 2;                            /* sits above the image */
    pointer-events: none;
    background-image:
      linear-gradient(0deg, rgba(245, 241, 235, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(245, 241, 235, 0.05) 1px, transparent 1px);
    background-size: 24px 24px; mix-blend-mode: overlay;
  }
  .founder-portrait img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;            /* landscape crop — focus upper-middle */
    z-index: 1;                              /* covers initials when loaded */
    filter: grayscale(0.85) contrast(1.05) brightness(0.85) sepia(0.15);
    transition: filter 0.9s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1);
  }
  .founder:hover .founder-portrait img {
    filter: grayscale(0.2) contrast(1.05) brightness(1) sepia(0);
    transform: scale(1.03);
  }
  .founder-initials {
    position: relative; z-index: 0;          /* fallback layer behind the image */
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(3rem, 6vw, 5rem); color: var(--ink);
    letter-spacing: -0.04em;
  }
  .founder-meta {
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute); margin-bottom: 0.6rem;
  }
  .founder-name {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.6rem; letter-spacing: -0.01em;
    margin-bottom: 0.3rem; line-height: 1.1;
  }
  .founder-name em { font-style: italic; color: var(--accent); }
  .founder-role { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; }
  .founder-bio { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
/* ──────────────────────────────────────────────────────────────────
   CTA — Bottom call-to-action section
   ────────────────────────────────────────────────────────────────── */
  .cta {
    border-top: 1px solid var(--line);
    padding: clamp(4rem, 10vh, 7rem) var(--gutter);
    background: var(--bg);
  }
  .cta-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 3rem; align-items: end;
  }
  @media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; } }
  .cta-headline {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1; letter-spacing: -0.02em;
  }
  .cta-headline em { font-style: italic; color: var(--accent); }
  .cta-aside { color: var(--ink-soft); max-width: 36ch; font-size: 0.95rem; }

/* ──────────────────────────────────────────────────────────────────
   BUTTONS — Lime pill primary CTA + variants
   ────────────────────────────────────────────────────────────────── */
  .btn-primary {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 1.05rem 1.7rem;
    background: var(--accent); color: var(--bg);
    font-weight: 500; font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(196, 245, 66, 0.5);
    border-radius: var(--lg-radius-pill);
    box-shadow: var(--lg-accent-shadow);
    margin-top: 1.6rem;
    transition: transform 0.4s, box-shadow 0.4s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--lg-accent-shadow-hover); }
  .btn-primary svg { transition: transform 0.4s; }
  .btn-primary:hover svg { transform: translate(4px, -4px); }
/* ──────────────────────────────────────────────────────────────────
   FOOTER — Mono uppercase footer strip
   ────────────────────────────────────────────────────────────────── */
  footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem var(--gutter) 1.6rem;
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-mute);
  }
  .foot-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  }

  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ──────────────────────────────────────────────────────────────────
   REDUCED MOTION — Disable animations + restore system cursor
   ────────────────────────────────────────────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    body { cursor: auto; } .cursor-dot, .cursor-ring { display: none; }
    a, button { cursor: pointer; }
  }
