/* BlockSeed Labs public site. Design tokens: teal + gold on deep navy,
   sharp edges, Cabinet Grotesk / Instrument Sans / IBM Plex Mono. No framework. */

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/assets/fonts/cabinet-grotesk-800.woff2') format('woff2');
  font-weight: 800; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 100 900; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-display: swap; font-style: normal;
}

:root {
  color-scheme: dark;
  --bg: #0D1117;
  --surface: #161B22;
  --surface-raised: #1C2129;
  --text: #E6EDF3;
  --text-muted: #8B949E;
  --accent: #2D9B7B;
  --accent-light: #5BB89A;
  --accent-dim: #1E7A6B;
  --gold: #C4A46C;
  --gold-dim: #9A7F4E;
  --success: #3FB950;
  --error: #F47067;
  --rule: #21262D;
  --rule-strong: #30363D;
  --display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --gutter: 20px;
}
@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-light); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 200;
  background: var(--gold); color: var(--bg); padding: 10px 16px;
  font-family: var(--mono); font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.02; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.muted { color: var(--text-muted); }

/* grain, same weight as the previous page */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── Header ───────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
#seed { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
#seed svg { transition: transform 1.5s cubic-bezier(.3,0,.2,1), filter 1.5s ease; }
#seed.seed-hold svg { transform: scale(1.22) rotate(8deg); filter: drop-shadow(0 0 8px var(--gold)); }
#seed.seed-wake svg { filter: drop-shadow(0 0 12px var(--gold)); }
#seed.seed-no svg { animation: seed-no .7s steps(2, jump-none) 1; }
@keyframes seed-no { 0%, 40%, 80% { opacity: .25; } 20%, 60%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #seed svg { transition: none; } }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; padding: 10px 10px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 640px) {
  .nav a:not(.nav-keep) { display: none; }
  .brand span { letter-spacing: 0.08em; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center; line-height: 1.3;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-light); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--text-muted); }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 24px 0 48px; }
.hero::before {
  content: ''; position: absolute; width: 720px; height: 720px; left: -260px; top: -240px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(45, 155, 123, 0.13) 0%, rgba(45, 155, 123, 0.03) 50%, transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  grid-template-areas: "title" "actions" "show" "sub";
}
.h-title { grid-area: title; }
.h-sub { grid-area: sub; }
.h-actions { grid-area: actions; }
.showcase { grid-area: show; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); column-gap: 64px; row-gap: 0;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". show" "title show" "sub show" "actions show";
    align-items: start;
  }
  .h-title { align-self: end; }
  .showcase { align-self: center; }
  .h-actions { align-self: start; }
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent-light); margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.8vw, 68px); max-width: 18ch; margin-bottom: 0; }
@media (min-width: 900px) { .hero h1 { margin-bottom: 24px; } }
.hero h1 .t { color: var(--accent-light); }
.hero h1 .g { color: var(--gold); }
.hero-sub { color: var(--text-muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-bottom: 12px; }
.hero-actions { display: flex; flex-direction: row; gap: 10px; }
.hero-actions .btn { flex: 1; padding: 14px 10px; }
@media (min-width: 480px) { .hero-actions .btn { flex: none; padding: 14px 26px; } }
.tagline { margin: 0 0 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ── Showcase (the interactive centrepiece) ───────── */
.showcase { width: 100%; max-width: 420px; margin: 0 auto; }
@media (min-width: 900px) { .showcase { margin: 0 0 0 auto; } }
.stage {
  position: relative; aspect-ratio: 6 / 7; width: 100%;
  background: var(--surface); border: 1px solid var(--rule-strong); overflow: hidden;
  touch-action: pan-y;
}
@media (min-width: 900px) { .stage { aspect-ratio: 4 / 5; } }
.stage img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img { object-fit: cover; object-position: 50% 8%; }
.stage canvas { display: none; }
.showcase[data-gl="on"] .stage canvas { display: block; }
.showcase[data-gl="on"] .stage img { opacity: 0; }
.stage::before, .stage::after {
  content: ''; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none;
}
.stage::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.stage::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.stage-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 8px;
  background: rgba(13, 17, 23, 0.82); color: var(--text); pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.picker { display: none; margin-top: 12px; gap: 8px; }
.showcase.ready .picker { display: flex; }
.picker button {
  flex: 1; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 10px; cursor: pointer; background: transparent; color: var(--text-muted);
  border: 1px solid var(--rule-strong);
}
.picker button:hover { color: var(--text); border-color: var(--text-muted); }
.picker button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.caption { margin-top: 14px; min-height: 5.6em; }
.caption .name { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; display: block; }
.caption .line { color: var(--text-muted); font-size: 15px; display: block; margin: 2px 0 6px; }
.caption a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.hint { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 72px 0; border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section > .wrap > .label { margin-bottom: 20px; }
.section h2 { font-size: clamp(26px, 4vw, 48px); max-width: 20ch; margin-bottom: 20px; }
.lede { color: var(--text-muted); max-width: 60ch; margin-bottom: 48px; font-size: clamp(16px, 1.3vw, 19px); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Roster ───────────────────────────────────────── */
.roster { display: grid; grid-template-columns: 1fr; gap: 24px; list-style: none; }
@media (min-width: 720px) { .roster { grid-template-columns: 1fr 1fr; gap: 32px; } }
.artist { background: var(--surface); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.artist-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-raised); }
.artist-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform 0.6s ease-out; }
.artist:hover .artist-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .artist:hover .artist-media img { transform: none; } }
.artist-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.artist-body .idx { color: var(--accent-light); }
.artist-body h3 { font-size: 28px; }
.artist-body p { color: var(--text-muted); font-size: 16px; }
.artist-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }
.artist-link {
  margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-light); text-decoration: none;
}
.artist-link span { display: inline-block; border-bottom: 1px solid var(--rule-strong); padding-bottom: 3px; }
.artist-link:hover span { border-bottom-color: var(--accent-light); }

/* ── What we build ────────────────────────────────── */
.build { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); list-style: none; }
@media (min-width: 720px) { .build { grid-template-columns: 1fr 1fr; } }
.build li { background: var(--surface); padding: 28px 24px; }
@media (min-width: 768px) { .build li { padding: 36px 32px; } }
.build .n { color: var(--accent-light); margin-bottom: 14px; display: block; }
.build h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 10px; }
.build p { color: var(--text-muted); font-size: 16px; }
.positioning { margin-top: 40px; max-width: 62ch; font-size: clamp(17px, 1.6vw, 20px); }
.positioning strong { color: var(--accent-light); font-weight: 600; }

/* ── Releases ─────────────────────────────────────── */
.releases { display: grid; grid-template-columns: 1fr; gap: 32px; list-style: none; align-items: start; }
@media (min-width: 900px) { .releases { grid-template-columns: 1fr 1fr; gap: 40px; } }
.release { border: 1px solid var(--rule); background: var(--surface); display: grid; grid-template-columns: 1fr; }
@media (min-width: 520px) { .release { grid-template-columns: 220px 1fr; } }
@media (min-width: 900px) { .release { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .release { grid-template-columns: 300px 1fr; } }
.release-art { position: relative; background: var(--surface-raised); aspect-ratio: 1 / 1; overflow: hidden; align-self: start; }
.release-art.wide { aspect-ratio: 1200 / 630; }
.release.stack { grid-template-columns: 1fr; }
.release-art img { width: 100%; height: 100%; object-fit: cover; }
.release-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.release-body .kind { color: var(--gold); }
.release-body h3 { font-size: 26px; }
.release-body .by { color: var(--text-muted); font-size: 16px; }
.release-body .facts { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; margin: 6px 0 12px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: auto; }
.links a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.merch { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--text-muted); }
.merch img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--rule); }

/* ── Team ─────────────────────────────────────────── */
.team { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .team { grid-template-columns: 1fr 1fr; gap: 64px; } }
.team h3 { font-size: clamp(20px, 2.5vw, 24px); margin-bottom: 4px; }
.team h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.team h3 a:hover { border-bottom-color: var(--accent-light); }
.team .role { color: var(--accent-light); margin-bottom: 16px; }
.team p.bio { color: var(--text-muted); font-size: 16px; max-width: 52ch; }

/* ── FAQ ──────────────────────────────────────────── */
.faq details { border-top: 1px solid var(--rule); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 800; font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--accent-light); flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--text-muted); margin-top: 14px; max-width: 64ch; font-size: 16px; }

/* ── Contact ──────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact-form-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .contact-form-row { flex-direction: row; } }
.contact-form input, .contact-form textarea {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--text-muted); color: var(--text);
  font-family: var(--body); font-size: 16px; padding: 14px 16px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-light); outline-offset: 0; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form button {
  align-self: flex-start; background: var(--gold); color: var(--bg); border: 1px solid var(--gold);
  font-family: var(--body); font-weight: 600; font-size: 15px; padding: 14px 28px; cursor: pointer;
}
.contact-form button:hover { background: var(--gold-dim); border-color: var(--gold-dim); }
.contact-form button:disabled { opacity: 0.7; cursor: progress; }
.form-message { font-family: var(--mono); font-size: 13px; margin-top: 12px; display: none; }
.form-message.success { color: var(--success); display: block; }
.form-message.error { color: var(--error); display: block; }
.hp { display: none !important; }

/* ── Footer ───────────────────────────────────────── */
.footer { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer p { font-family: var(--mono); font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer .copy { font-size: 12px; margin-top: 8px; }
.footer .label { margin-bottom: 12px; }
.footer a { font-family: var(--mono); font-size: 14px; color: var(--accent-light); display: block; margin-bottom: 8px; text-decoration: none; border-bottom: 1px solid transparent; width: fit-content; }
.footer a:hover { border-bottom-color: var(--accent-light); }

/* Print: never print a hidden section, whatever has been scrolled. */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .top, .picker, .hint, body::after { display: none !important; }
}
