/* Here Be Agents · herebeagents.ai */

:root {
  --bg: #FAFAF6;
  --ink: #0B2545;
  --ink-2: #13315C;
  --muted: #5F6C7B;
  --hairline: #E6E4DA;
  --gold: #B8860B;
  --gold-soft: #E8C547;
  --card: #FFFFFF;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-weight: 800; letter-spacing: 0.18em; font-size: 0.82rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.wordmark .mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.wordmark .mark span { width: 3px; background: var(--gold); border-radius: 2px; display: inline-block; }
.wordmark .mark span:nth-child(1) { height: 6px; }
.wordmark .mark span:nth-child(2) { height: 14px; }
.wordmark .mark span:nth-child(3) { height: 9px; }
.wordmark .mark span:nth-child(4) { height: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }
.btn {
  display: inline-block; background: var(--ink); color: #fff !important;
  border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--gold); transform: translateY(-1px); }
.btn.large { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 110px 0 120px; position: relative; z-index: 2; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 22px;
}
h1.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 26px; font-size: 1.22rem; color: var(--muted); max-width: 54ch; line-height: 1.55;
}
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1rem; }
.text-link:hover { color: var(--gold); }

/* aurora */
.aurora {
  position: absolute; z-index: 1; pointer-events: none;
  width: 780px; height: 780px; right: -220px; top: -260px;
  background:
    radial-gradient(closest-side at 62% 40%, rgba(62, 146, 204, 0.35), transparent 70%),
    radial-gradient(closest-side at 30% 65%, rgba(39, 70, 144, 0.28), transparent 70%),
    radial-gradient(closest-side at 70% 72%, rgba(232, 197, 71, 0.30), transparent 70%),
    radial-gradient(closest-side at 45% 45%, rgba(124, 222, 220, 0.22), transparent 70%);
  filter: blur(38px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-50px, 36px, 0) scale(1.07); }
}
.dotgrid {
  position: absolute; z-index: 1; pointer-events: none;
  width: 340px; height: 220px; left: -60px; bottom: -40px; opacity: 0.5;
  background-image: radial-gradient(rgba(11, 37, 69, 0.22) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(closest-side, #000, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
}

/* waveform */
.wave { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 56px; }
.wave span {
  width: 4px; border-radius: 3px; background: var(--ink); opacity: 0.85;
  animation: pulse 1.6s ease-in-out infinite;
}
.wave span:nth-child(3n) { background: var(--gold); }
.wave span:nth-child(1)  { height: 30%; animation-delay: 0s; }
.wave span:nth-child(2)  { height: 62%; animation-delay: 0.12s; }
.wave span:nth-child(3)  { height: 44%; animation-delay: 0.24s; }
.wave span:nth-child(4)  { height: 88%; animation-delay: 0.36s; }
.wave span:nth-child(5)  { height: 55%; animation-delay: 0.48s; }
.wave span:nth-child(6)  { height: 96%; animation-delay: 0.60s; }
.wave span:nth-child(7)  { height: 40%; animation-delay: 0.72s; }
.wave span:nth-child(8)  { height: 70%; animation-delay: 0.84s; }
.wave span:nth-child(9)  { height: 34%; animation-delay: 0.96s; }
.wave span:nth-child(10) { height: 58%; animation-delay: 1.08s; }
.wave span:nth-child(11) { height: 24%; animation-delay: 1.20s; }
.wave span:nth-child(12) { height: 48%; animation-delay: 1.32s; }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .wave span { animation: none; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.hairline-top { border-top: 1px solid var(--hairline); }
.section-eyebrow { composes: eyebrow; }
h2.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.02em;
  line-height: 1.15; font-weight: 800; max-width: 24ch;
}
.section-lede { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.statement {
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; letter-spacing: -0.015em;
  font-weight: 600; max-width: 30ch;
}
.statement em { color: var(--gold); font-style: normal; }

/* three-up */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.card {
  border-top: 2px solid var(--gold); padding-top: 22px;
}
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.99rem; }

/* principles */
.principles { margin-top: 54px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.principle { background: var(--card); padding: 30px 30px 32px; }
.principle .num { font-size: 0.8rem; font-weight: 800; color: var(--gold); letter-spacing: 0.14em; }
.principle h3 { margin-top: 10px; font-size: 1.08rem; }
.principle p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 54px; }
.stat .num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .num sup { font-size: 1.1rem; color: var(--gold); }
.stat p { margin-top: 10px; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }

.partners-line { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.98rem; }
.partners-line strong { color: var(--ink); font-weight: 700; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .inner {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 64px 56px;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.12; max-width: 20ch; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, 0.72); max-width: 52ch; font-size: 1.08rem; }
.cta-band .btn { background: var(--gold); margin-top: 34px; }
.cta-band .btn:hover { background: var(--gold-soft); color: var(--ink) !important; }
.cta-aurora {
  position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; pointer-events: none;
  background:
    radial-gradient(closest-side at 60% 45%, rgba(232, 197, 71, 0.35), transparent 70%),
    radial-gradient(closest-side at 40% 60%, rgba(62, 146, 204, 0.35), transparent 70%);
  filter: blur(30px);
}

/* ---------- careers ---------- */
.page-hero { padding: 96px 0 64px; position: relative; overflow: hidden; }
.roles { margin-top: 30px; border-top: 1px solid var(--hairline); }
.role-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 6px; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink);
}
.role-row:hover .role-name { color: var(--gold); }
.role-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.role-meta { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.role-arrow { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }

/* ---------- role detail & prose ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); letter-spacing: -0.025em; line-height: 1.08; }
.prose .meta { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.prose h2 { font-size: 1.35rem; margin-top: 44px; margin-bottom: 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 8px; }
.prose p { margin-top: 12px; color: #33415C; }
.prose ul { margin: 14px 0 0 20px; color: #33415C; }
.prose ul li { margin-bottom: 9px; }
.prose .apply { margin-top: 44px; }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.prose a { color: var(--ink-2); }
.prose a:hover { color: var(--gold); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 48px 0 56px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-left .wordmark { margin-bottom: 12px; }
.footer-left p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.copyright { margin-top: 40px; color: var(--muted); font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; gap: 30px; }
  .principles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 80px 0 90px; }
  section { padding: 72px 0; }
  .cta-band .inner { padding: 44px 30px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a.plain { display: none; }
}
