/* ============================================================
   venture.css — shared design layer for Selah Studio venture
   pages (/oneaklan/, /music-studio/). Mirrors the "Spec / Night"
   design system used by the React app (tailwind.config.js).
   Pure CSS: no JavaScript required anywhere on these pages.
   CSP-safe: served from 'self', no inline <script> needed.
   ============================================================ */

:root {
  /* Spec / Night tokens (source of truth: tailwind.config.js) */
  --night: #100f0c;
  --panel: #1a1813;
  --ink: #17150f;
  --cream: #f0ede4;
  --creambright: #fbfaf6;
  --creamsoft: #9b958a;
  --creamdim: #948e81;
  --nightline: rgba(240, 237, 228, 0.11);
  --accent: #2f49d6;
  --accentsoft: #5d72e6;
  --signal: #cdf24a;
  /* Brand accents for ventures */
  --aklan: #f2b43a;
  --aklan-deep: #d99a1b;
  --radius-spec: 2px;
  --radius-card: 6px;
  --font-sans: 'Archivo', 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Newsreader', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* Visible focus for keyboard users (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section {
  padding-block: 6rem;
  border-top: 1px solid var(--nightline);
  position: relative;
  overflow: hidden;
}

/* ---------- Type primitives ---------- */

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--creamsoft);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  height: 1px;
  width: 18px;
  background: var(--accent);
  flex-shrink: 0;
}

.h-display {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--creambright);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.h-section {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--creambright);
  letter-spacing: -0.03em;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.05;
  max-width: 46rem;
}

.em-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--creamsoft);
  max-width: 34rem;
}

/* ---------- Live signal ---------- */

.live-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 9999px;
  background: var(--signal);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(205, 242, 74, 0.9);
  flex-shrink: 0;
}
.live-dot--amber { background: var(--aklan); box-shadow: 0 0 10px rgba(242, 180, 58, 0.9); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-spec);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-signal { background: var(--signal); color: var(--night); }
.btn-signal:hover { background: var(--cream); color: var(--night); }

.btn-amber { background: var(--aklan); color: var(--night); }
.btn-amber:hover { background: var(--cream); color: var(--night); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--nightline);
}
.btn-ghost:hover { border-color: rgba(240, 237, 228, 0.4); color: var(--signal); }
.btn-ghost--amber:hover { border-color: rgba(242, 180, 58, 0.6); color: var(--aklan); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 15, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nightline);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}
.topbar-logo { height: 2rem; width: auto; filter: invert(1); }
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--creamsoft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.topbar-back:hover { color: var(--cream); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: 5rem 3rem;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.glow--cobalt { background: radial-gradient(circle, rgba(47, 73, 214, 0.22), transparent 62%); }
.glow--amber { background: radial-gradient(circle, rgba(242, 180, 58, 0.16), transparent 62%); }

/* ---------- Cards & grids ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--nightline);
  border-radius: var(--radius-card);
  padding: 2rem;
}
.card--accent { border-color: rgba(47, 73, 214, 0.4); }
.card--signal { border-color: rgba(205, 242, 74, 0.4); }
.card--amber { border-color: rgba(242, 180, 58, 0.45); }

.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; gap: 1px; background: var(--nightline); border: 1px solid var(--nightline); }
.grid-3 > * { background: var(--night); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: 1px; background: var(--nightline); border: 1px solid var(--nightline); }
.grid-4 > * { background: var(--night); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Spec table (AEO-friendly fact sheet) ---------- */

.spec-table {
  width: 100%;
  border: 1px solid var(--nightline);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--panel);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--nightline);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--creamsoft); flex-shrink: 0; }
.spec-row dd { color: var(--cream); text-align: right; }
.spec-row dd a { color: var(--signal); text-decoration: none; }
.spec-row dd a:hover { text-decoration: underline; }
.spec-row--amber dd a { color: var(--aklan); }

/* ---------- Checklist ---------- */

.check-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.65rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(240, 237, 228, 0.9);
}
.check-list li::before {
  content: '✓';
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.check-list--amber li::before { color: var(--aklan); }

/* ---------- Step rows ---------- */

.steps { border-top: 1px solid var(--nightline); margin-top: 3rem; }
.step-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--nightline);
}
@media (min-width: 768px) {
  .step-row { grid-template-columns: 90px 1fr 1.6fr; gap: 2rem; align-items: center; }
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--creamdim); }
.step-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--creambright); }
.step-desc { color: var(--creamsoft); font-size: 0.875rem; line-height: 1.6; }

/* ---------- FAQ (no-JS <details>) ---------- */

.faq { max-width: 56rem; border-top: 1px solid var(--nightline); margin-top: 3rem; }
.faq details { border-bottom: 1px solid var(--nightline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--creambright); }
.faq summary::after {
  content: '↓';
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--creamsoft);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--creamsoft);
  line-height: 1.7;
}
.faq details a { color: var(--signal); }

/* ---------- Marquee ticker ---------- */

.ticker {
  border-top: 1px solid var(--nightline);
  border-bottom: 1px solid var(--nightline);
  overflow: hidden;
  padding-block: 1rem;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--creamsoft);
  padding-inline: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}
.ticker-item::after { content: '·'; color: var(--accentsoft); }
.ticker--amber .ticker-item::after { color: var(--aklan); }

/* ---------- Audio equalizer (pure CSS) ---------- */

.wave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
}
.wave span {
  flex: 1;
  min-width: 3px;
  background: var(--signal);
  border-radius: 1px;
  height: 100%;
  transform-origin: bottom;
  animation: eq-bounce 1.15s ease-in-out infinite;
  opacity: 0.9;
}
.wave--amber span { background: var(--aklan); }
.wave--cobalt span { background: var(--accentsoft); }

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid rgba(205, 242, 74, 0.4);
  border-radius: var(--radius-card);
  background: var(--panel);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band--amber { border-color: rgba(242, 180, 58, 0.45); }
.cta-band h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--creambright); }
.cta-band p { color: var(--creamsoft); margin-top: 0.5rem; max-width: 34rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--nightline); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--creamdim);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.65rem; font-size: 0.875rem; }
.footer-grid a { color: var(--creamsoft); text-decoration: none; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--nightline);
  padding-block: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--creamdim);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a { color: var(--creamdim); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Entrance & scroll-driven motion ---------- */

/* Hero load-in — always applies (cheap, runs once) */
.rise { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.34s; }

/* Scroll-driven reveals — progressive enhancement: browsers that
   support animation-timeline: view() get on-scroll reveals; others
   get a plain load animation so nothing is ever invisible. */
.reveal { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
@supports (animation-timeline: view()) {
  .reveal {
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* ---------- Keyframes ---------- */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { animation: none; opacity: 1; transform: none; }
  .live-dot, .ticker-track, .wave span { animation: none; }
  .wave span { transform: scaleY(0.6); }
  .btn:hover { transform: none; }
}
