/* ============================================================
   Resonance Ventures — styles
   Dark, warm, restrained. Boldness lives in one place: the
   resonance curve. Everything else stays quiet.
   ============================================================ */

:root {
  --ink:        #08090C;   /* base canvas */
  --ink-raise:  #0F1117;   /* cards / surfaces */
  --ink-hi:     #14161D;   /* hover surface */
  --line:       rgba(236, 238, 242, 0.09);
  --line-soft:  rgba(236, 238, 242, 0.055);
  --text:       #ECEEF2;
  --muted:      #8A91A0;
  --muted-2:    #5E6473;
  --gold:       #E7B252;   /* the single UI accent — analog amber */
  --gold-hi:    #F2C877;

  --ff-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --ff-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ff-mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap:       1120px;
  --pad:        clamp(20px, 5vw, 56px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint warm vignette toward the top, where the curve lives */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(231, 178, 82, 0.07), transparent 55%),
    radial-gradient(90% 60% at 85% 8%, rgba(126, 91, 230, 0.05), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── Eyebrow (mono utility) ───────────────────────────────── */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(231, 178, 82, 0.6);
  flex: none;
}

/* ── Header ───────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.wordmark-mark { color: var(--gold); display: inline-flex; }
.head-link {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.head-link:hover { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(72px, 13vh, 140px);
  padding-bottom: 0;
}
.hero-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  max-width: 16ch;
}
.hero-title .accent {
  color: var(--gold);
  font-style: normal;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 34px;
  line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #1A1304;
  font-weight: 700;
}
.btn-primary:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 17px 28px; font-size: 14px; }

/* ── Resonance curve (signature) ──────────────────────────── */
.resonance {
  margin-top: clamp(28px, 6vh, 64px);
  width: 100%;
  height: clamp(170px, 26vh, 280px);
  position: relative;
}
.resonance::after {
  /* hairline baseline the wave settles onto */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
#resonance-canvas { display: block; width: 100%; height: 100%; }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding-top: clamp(72px, 12vh, 130px);
  padding-bottom: clamp(8px, 2vh, 24px);
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 clamp(36px, 6vh, 64px);
  max-width: 18ch;
}

/* ── Pillars ──────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 36px clamp(20px, 3vw, 40px) 40px;
  border-bottom: 1px solid var(--line);
}
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar-tag {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}
.pillar h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.pillar p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ── Work ─────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 3vw, 40px);
  min-height: 290px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.work-card--feature {
  position: relative;
  overflow: hidden;
}
.work-card--feature::before {
  /* faint spectrum wash, only on the flagship card */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(126, 91, 230, 0.14), transparent 60%);
  pointer-events: none;
}
a.work-card:hover {
  border-color: rgba(231, 178, 82, 0.5);
  background: var(--ink-hi);
  transform: translateY(-3px);
}
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
}
.work-kind {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-status {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
}
.status-live .status-dot { background: var(--gold); box-shadow: 0 0 8px 1px rgba(231,178,82,0.6); }
.status-soon .status-dot { background: var(--muted-2); }
.work-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  margin: 30px 0 12px;
}
.work-desc { color: var(--muted); margin: 0 0 26px; max-width: 42ch; }
.work-go {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  transition: gap 0.2s ease;
}
.work-card:hover .work-go { gap: 14px; }

/* ── About ────────────────────────────────────────────────── */
.about-wrap { max-width: 880px; }
.about-lead {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: 0;
}
.about-dim { color: var(--muted-2); }

/* ── Contact ──────────────────────────────────────────────── */
.section-contact { padding-bottom: clamp(72px, 12vh, 130px); }
.contact-band {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 8vh, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.foot-brand { color: var(--muted); }
.foot-link { margin-left: auto; color: var(--muted); transition: color 0.2s ease; }
.foot-link:hover { color: var(--gold); }

/* ── Reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.pillar:nth-child(2).reveal { transition-delay: 0.08s; }
.pillar:nth-child(3).reveal { transition-delay: 0.16s; }
.work-card:nth-child(2).reveal { transition-delay: 0.08s; }

/* ── Focus visibility ─────────────────────────────────────── */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: none; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-link { display: none; }
  .hero-title { letter-spacing: -0.02em; }
  .contact-band { flex-direction: column; align-items: flex-start; }
}
