:root {
  --bg: #faf6ef;
  --bg-alt: #f2eadd;
  --surface: #ffffff;
  --ink: #1d1712;
  --muted: #6b5f55;
  --line: #e4d9c8;
  --accent: #d9622b;
  --rust: #b84a3a;
  --accent-ink: #ffffff;
  --grid: rgba(22, 24, 29, 0.05);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f1a; --bg-alt: #131628; --surface: #1a1e33; --ink: #f3eee6;
    --muted: #a8a3b8; --line: #2a2e48; --accent: #f28c45; --accent-ink: #1a0f06; --rust: #e0735f;
    --grid: rgba(255, 255, 255, 0.04);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f1a; --bg-alt: #131628; --surface: #1a1e33; --ink: #f3eee6;
  --muted: #a8a3b8; --line: #2a2e48; --accent: #f28c45; --accent-ink: #1a0f06; --rust: #e0735f;
  --grid: rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 32px; }
h3 { font-size: 20px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { white-space: nowrap; display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -6px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 15px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { white-space: nowrap; display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 700; }
.brand-num { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.brand-logo { width: 30px; height: 30px; min-width: 30px; flex-shrink: 0; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; padding: 96px 0 56px; overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.eyebrow, .kicker { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 18px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { display: flex; flex-direction: column; gap: 4px; }
.hero-name { font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.04em; }
.hero-num { font-family: var(--mono); font-weight: 600; font-size: clamp(28px, 4vw, 44px); color: var(--accent); }
.hero-logo { --size: 400px; justify-self: center; width: var(--size); height: var(--size); max-width: 100%; flex-shrink: 0; overflow: hidden; border-radius: 50%; padding: calc(var(--size) * .07);
  background: radial-gradient(circle at 40% 35%, #fffdf8, #fbf1e1 70%); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent); animation: float 7s ease-in-out infinite; }
.hero-logo img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Banner */
.banner { background: var(--ink); color: var(--bg); font-size: 15px; }
.banner-inner { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.banner p { margin: 0; flex: 1; }
.banner-text { opacity: .75; }
.banner-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: 999px; }
.banner-link { white-space: nowrap; font-weight: 700; color: var(--accent); text-decoration: none; }
.banner-link:hover { text-decoration: underline; }
.lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 560px; margin: 24px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 28px; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 64px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; z-index: 1; }
.stats div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { font-size: 13px; color: var(--muted); order: 2; }
.stats dd { margin: 0; font-family: var(--mono); font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
.stats div { display: flex; flex-direction: column-reverse; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.prose { color: var(--muted); font-size: 18px; }
.prose p { margin: 0 0 16px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* Robot */
.robot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.robot-img { margin: 0; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.robot-img img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-family: var(--mono);
  background: repeating-linear-gradient(45deg, transparent 0 12px, var(--grid) 12px 24px); }
.placeholder small { font-size: 12px; opacity: .7; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 0; }
.specs div { background: var(--surface); padding: 16px 18px; }
.specs dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 700; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card-idx { display: block; font-family: var(--mono); color: var(--accent); font-size: 13px; margin-bottom: 14px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 0 0 36px 32px; }
.timeline > li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.timeline > li.upcoming::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.timeline time { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 2px; }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.awards { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.awards li { font-size: 14px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 4px 12px; border-radius: 999px; }

/* Members */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.member img, .avatar { width: 72px; height: 72px; min-height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.avatar { display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 24px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.member-role { color: var(--accent); font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.subteam + .subteam { margin-top: 40px; }
.subteam-name { font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.subteam-name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.subteam-name span { color: var(--accent); }
.mentors { margin-top: 32px; color: var(--muted); }
.mentors span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-right: 10px; }

/* Sponsors */
.tier { margin-bottom: 28px; }
.tier-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 12px; }
.logos { display: flex; flex-wrap: wrap; gap: 14px; }
.logo { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--muted); transition: border-color .2s, color .2s; }
.logo:hover { border-color: var(--accent); color: var(--ink); }
.logo img { max-height: 70%; max-width: 80%; object-fit: contain; }
.tier-platinum .logo { width: 300px; height: 130px; font-size: 22px; }
.tier-gold .logo { width: 220px; height: 100px; font-size: 18px; }
.tier-silver .logo { width: 160px; height: 76px; font-size: 15px; }
.callout { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.callout p { margin: 8px 0 0; opacity: .75; max-width: 560px; }

#donate .callout { margin-top: 0; }
.fine-print { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 720px; }

/* Current page in nav */
.nav-links a[aria-current="page"] { color: var(--accent) !important; }

/* Team preview (homepage) */
.team-teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.team-teaser h2 { margin-bottom: 16px; }
.team-teaser .prose { margin: 0 0 28px; }
.team-stack { display: flex; flex-wrap: wrap; justify-content: center; padding: 8px 0 8px 20px; text-decoration: none; }
.team-stack > span { margin-left: -20px; margin-bottom: 10px; transition: transform .2s; }
.team-stack > span:hover { transform: translateY(-4px); }
.team-stack .avatar, .team-stack img { width: 64px; height: 64px; min-height: 64px; flex-shrink: 0; margin: 0; border: 3px solid var(--bg) !important; font-size: 20px; border-radius: 50%; object-fit: cover; }
.section.alt .team-stack .avatar, .section.alt .team-stack img { border-color: var(--bg-alt) !important; }

/* Team page */
.page-hero { padding: 56px 0 8px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.04em; }
.page-hero .lede { margin: 16px 0 32px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back-link:hover { color: var(--accent); }
.team-page { padding-top: 24px; }
.member-bio { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Fundraiser */
.fundraiser { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.fundraiser h2 { margin-bottom: 0; }
.fundraiser .lede { margin: 16px 0 28px; }
.fr-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; }
.fr-details div { background: var(--surface); padding: 18px 20px; }
.fr-details dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.fr-details dd { margin: 0; font-weight: 500; }
.fr-details a { color: var(--muted); font-weight: 400; font-size: 15px; }
.fr-howto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fr-way { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fr-way p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.code { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: .12em; padding: 8px 16px; border-radius: 10px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px dashed var(--accent); position: relative; }
.code::after { content: "tap to copy"; display: block; font-size: 10px; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.code[data-copied]::after { content: "copied!"; color: var(--accent); }
.fr-flyer { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 60px -30px rgba(0,0,0,.35); transition: transform .2s; }
.fr-flyer:hover { transform: translateY(-4px) rotate(-.5deg); }

/* Instagram */
.ig-handle { font-size: .55em; color: var(--accent); text-decoration: none; margin-left: 10px; font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.ig-carousel { position: relative; }
.ig-posts { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 4px 4px 16px; align-items: flex-start; scrollbar-width: thin; }
.ig-posts > * { flex: 0 0 min(340px, 82vw) !important; scroll-snap-align: start; }
.ig-posts .instagram-media, .ig-posts iframe { margin: 0 !important; min-width: 0 !important; width: min(340px, 82vw) !important; max-width: none !important; }
.ig-arrow { position: absolute; top: 240px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 6px 20px -8px rgba(0,0,0,.3); }
.ig-arrow:hover { border-color: var(--accent); color: var(--accent); }
.ig-prev { left: -18px; }
.ig-next { right: -18px; }

/* Contact */
.contact-list { border-top: 1px solid var(--line); }
.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s, color .2s; }
.contact-row span { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-row:hover { padding-left: 12px; color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .split, .robot, .hero-inner, .fundraiser, .team-teaser { grid-template-columns: 1fr; gap: 28px; }
  .fr-flyer { max-width: 420px; }
  .hero-logo { order: -1; --size: 220px; }
  .cards.three { grid-template-columns: 1fr; }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(odd) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .nav-links a:not(.btn) { padding: 12px 0; width: 100%; font-size: 17px; }
  .nav-links .btn { margin: 8px 0; }
  .nav-open .nav-links { transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 40px; }
  .hero-logo { --size: 170px; }
  .banner-inner { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .banner-text { display: none; }
  .banner { font-size: 16px; line-height: 1.3; }
  .banner-tag { font-size: 12px; padding: 5px 11px; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
  .tier .logo { width: 100%; }
  .specs, .fr-details, .fr-howto { grid-template-columns: 1fr; }
  .ig-arrow { display: none; }
  .ig-handle { display: block; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
}
