/* Gatherlab — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0c0d0a;
  --ink-soft: #15160f;
  --panel: #17180f;
  --line: rgba(233, 236, 210, 0.12);
  --paper: #ecede0;
  --paper-dim: #a7a99a;
  --paper-faint: #6f7164;
  --signal: #d6ff3f;
  --signal-deep: #b6e017;
  --amber: #ff8a3d;
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 78% -8%, rgba(214, 255, 63, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 138, 61, 0.06), transparent 55%);
  background-attachment: fixed;
}

::selection { background: var(--signal); color: var(--ink); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-faint); }

.serif { font-family: 'Fraunces', serif; }

/* grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(12,13,10,0.82), rgba(12,13,10,0.4));
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--signal); color: var(--ink);
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand .glyph svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--paper-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  color: var(--paper) !important; transition: all 0.25s var(--ease);
}
.nav-cta:hover { background: var(--signal); color: var(--ink) !important; border-color: var(--signal); }

/* ---------- hero ---------- */
.hero { padding: 110px 0 80px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

h1.display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
h1.display em { font-style: italic; color: var(--signal); }
.hero p.lede {
  margin-top: 28px; max-width: 560px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--paper-dim);
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: all 0.28s var(--ease); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(214,255,63,0.28); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(236,237,224,0.04); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}.d4{animation-delay:.35s}.d5{animation-delay:.45s}

/* ---------- section ---------- */
section { padding: 76px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; }

/* ---------- projects ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--ink-soft));
  padding: 28px; overflow: hidden; transition: all 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(214,255,63,0.4); }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px 200px at 80% -10%, rgba(214,255,63,0.12), transparent 70%);
}
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--ink); border: 1px solid var(--line); }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tag.live { color: var(--signal); border: 1px solid rgba(214,255,63,0.35); background: rgba(214,255,63,0.06); }
.tag.soon { color: var(--paper-faint); border: 1px solid var(--line); }
.card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--paper-dim); font-size: 0.96rem; }
.card .more { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; color: var(--signal); font-weight: 600; font-size: 0.9rem; }
.card .more svg { width: 15px; height: 15px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- article / support ---------- */
.lede-block { max-width: 720px; }
.prose { max-width: 720px; }
.prose h2 { font-family:'Fraunces',serif; font-weight:500; font-size:1.7rem; margin: 48px 0 14px; letter-spacing:-0.01em; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; font-weight: 700; }
.prose p { color: var(--paper-dim); margin-bottom: 14px; }
.prose ul { color: var(--paper-dim); margin: 0 0 16px 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--signal); border-bottom: 1px solid rgba(214,255,63,0.3); }
.prose strong { color: var(--paper); }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--signal);
  background: var(--ink-soft); border-radius: 12px; padding: 22px 24px; margin: 28px 0;
}
.callout .mono { margin-bottom: 8px; }

.contact-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--ink-soft));
  padding: 30px; margin-top: 20px;
}
.contact-card .big { font-family:'Fraunces',serif; font-size: 1.4rem; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 1.4rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--paper-dim); margin-top: 12px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 60px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--paper-dim); font-size: 0.92rem; transition: color .2s; }
.foot-links a:hover { color: var(--signal); }

.breadcrumb { margin: 90px 0 10px; }
.breadcrumb a { color: var(--paper-faint); }
.breadcrumb a:hover { color: var(--signal); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 70px 0 50px; }
}
