/* ════════════════════════════════════════════════════════════════════════════
   LATTICE — careers.css
   Stylesheet for the Careers / Open Positions 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, 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; padding: clamp(8rem, 14vh, 11rem) var(--gutter) clamp(4rem, 8vh, 6rem); border-bottom: 1px solid var(--line); }
  .hero-inner { max-width: var(--maxw); margin: 0 auto; }
  .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: 13ch; }
  .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-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; }

/* ──────────────────────────────────────────────────────────────────
   LAYOUT — Container max-width and gutter
   ────────────────────────────────────────────────────────────────── */
  .container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
  .section { padding: clamp(5rem, 12vh, 8rem) 0; }
  .section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 3.5rem; 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; }

  /* OPEN POSITIONS */
  .roles { display: flex; flex-direction: column; gap: 1.2rem; }
  .role {
    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: 2rem 2.2rem;
    transition: transform 0.5s cubic-bezier(.2,.7,.2,1), border-color 0.4s, background 0.4s;
    cursor: none;
  }
  .role:hover { transform: translateY(-3px); border-color: rgba(196, 245, 66, 0.35); background: rgba(196, 245, 66, 0.04); }
  .role-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
  .role-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .role-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding: 0.35rem 0.7rem; background: var(--lg-bg-light); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(245, 241, 235, 0.05); }
  .role-tag.urgent { color: var(--accent); border-color: rgba(196, 245, 66, 0.5); }
  .role-num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.4rem; color: var(--ink-mute); letter-spacing: -0.02em; line-height: 1; }
  .role-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
  .role-title em { font-style: italic; color: var(--accent); }
  .role-tagline { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
  .role-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
  @media (max-width: 700px) { .role-grid { grid-template-columns: 1fr 1fr; } }
  .role-cell { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
  .role-cell strong { display: block; color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0; text-transform: none; margin-top: 0.3rem; }
  .role-desc { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.4rem; max-width: 70ch; }
  .role-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .role-deadline { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
  .role-deadline em { color: var(--accent); font-style: normal; }
  .role-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; background: var(--lg-bg); border: 1px solid rgba(196, 245, 66, 0.5); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); color: var(--accent); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.04em; transition: background 0.4s, color 0.3s, transform 0.3s; }
  .role-cta:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
  .role-cta svg { transition: transform 0.4s; }
  .role-cta:hover svg { transform: translate(3px, -3px); }

  /* WHAT WE OFFER */
  .offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  @media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }
  .offer {
    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;
  }
  .offer:hover { transform: translateY(-2px); border-color: rgba(196, 245, 66, 0.35); background: rgba(196, 245, 66, 0.04); }
  .offer-num { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
  .offer-title { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
  .offer-title em { font-style: italic; color: var(--accent); }
  .offer-body { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

  /* PROCESS */
  .process { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
  .step { display: grid; grid-template-columns: 100px 1fr; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px dashed var(--line); align-items: baseline; transition: padding 0.4s; }
  .step:hover { padding-left: 0.6rem; }
  .step:last-child { border-bottom: none; }
  .step-num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
  .step-title { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
  .step-title em { font-style: italic; color: var(--accent); }
  .step-body { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }
  @media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 0.5rem; } }
/* ──────────────────────────────────────────────────────────────────
   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, .role { cursor: pointer; } }
