/*
 * H Corps event-recap stylesheet.
 *
 * This file mirrors the H Corps global stylesheet so the page previews
 * locally with the correct look. On upload to hcorps.org, the global
 * stylesheet should already provide most of these rules — this file can be
 * dropped, or kept as an override (it is scoped to the same class names).
 */

:root {
  --orange-500: #d97b3a;
  --orange-600: #c46a2e;
  --orange-300: #f6b97a;
  --blue-50: #f0f7ff;
  --blue-200: #b6dcfe;
  --blue-300: #7cc1f8;
  --blue-400: #3ea5f4;
  --blue-600: #0c72bf;
  --grey-50: #fafaf9;
  --grey-100: #f5f5f4;
  --grey-200: #e7e5e4;
  --grey-300: #d6d3d1;
  --grey-400: #a8a29e;
  --grey-500: #78716c;
  --grey-600: #57534e;
  --grey-700: #44403c;
  --grey-800: #292524;
  --grey-900: #1c1917;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue-600); }

h1, h2, h3, .section-title, .hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--grey-900);
}
.nav-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--grey-600);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-600); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--orange-500); color: var(--white); }
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 123, 58, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-secondary { /* alias */
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
}
.btn-secondary:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-white { background: var(--white); color: var(--grey-800); }
.btn-white:hover {
  background: var(--grey-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-dark { background: var(--grey-800); color: var(--white); }
.btn-dark:hover {
  background: var(--grey-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grey-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(62,165,244,0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(217,123,58,0.25) 0%, transparent 45%);
}
.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  max-width: 760px;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  line-height: 1.7;
  margin: 0 0 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat { color: var(--white); }
.hero-stat .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- SECTIONS ---- */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--grey-900);
  margin: 0 0 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--grey-500);
  max-width: 720px;
  line-height: 1.7;
  margin: 0;
}

/* ---- ABOUT / PILLARS (4-up grid) ---- */
.about { background: var(--grey-50); }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pillar:hover {
  border-color: var(--blue-200);
  box-shadow: 0 4px 20px rgba(26, 143, 224, 0.08);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.pillar h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-800);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.55;
  margin: 0;
}

/* ---- STORY / ACTS ---- */
.story { background: var(--white); }
.story-acts > * + * { margin-top: 5rem; }
.act { max-width: 820px; margin: 0 auto; }
.act .section-label { color: var(--orange-500); }
.act .section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.5rem; }
.act-prose p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--grey-700);
  margin: 0 0 1.25rem;
}
.act-prose em { font-style: italic; color: var(--grey-800); }
.story-clip {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--grey-200);
  background: var(--grey-900);
}
.story-clip video { width: 100%; display: block; background: black; }
.story-clip-caption {
  padding: 0.75rem 1rem;
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  font-size: 0.82rem;
  color: var(--grey-600);
  letter-spacing: 0.01em;
}

/* ---- SPEAKERS ---- */
.speakers { background: var(--grey-50); }
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.speaker-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.speaker-card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 6px 24px rgba(26, 143, 224, 0.10);
  transform: translateY(-2px);
}
.speaker-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--grey-100);
  background-size: cover;
  background-position: center 35%;
  border-bottom: 1px solid var(--grey-100);
}
.speaker-card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.speaker-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-800);
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}
.speaker-role {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.5;
  margin: 0 0 0.85rem;
}
.panel-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-right: 0.35rem;
}

/* ---- BROWSE ---- */
.browse { background: var(--white); }
.browse-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey-200);
}
.chip {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--grey-700);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--blue-200); color: var(--blue-600); }
.chip.active {
  background: var(--grey-900);
  border-color: var(--grey-900);
  color: var(--white);
}
.chip-spacer { flex: 1; }
.search-input {
  flex: 0 1 280px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--grey-800);
  background: var(--grey-50);
  transition: border-color 0.18s, background 0.18s;
}
.search-input:focus {
  outline: none;
  border-color: var(--blue-400);
  background: var(--white);
}

.browse-meta {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.clip-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.clip-card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 4px 20px rgba(26, 143, 224, 0.08);
  transform: translateY(-2px);
}
.clip-card.playing {
  border-color: var(--blue-400);
  box-shadow: 0 4px 24px rgba(62, 165, 244, 0.15);
}
.clip-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.clip-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}
.clip-pill.panel-6 { background: var(--blue-50); color: var(--blue-600); }
.clip-pill.panel-9 { background: #fef3eb; color: var(--orange-600); }
.clip-pill.panel-10 { background: var(--grey-100); color: var(--grey-700); }
.clip-pill.type-aroll { background: var(--grey-900); color: var(--white); }
.clip-pill.type-broll {
  background: var(--white);
  color: var(--grey-700);
  border: 1px solid var(--grey-300);
}
.clip-pill.sub { background: var(--orange-300); color: var(--grey-900); }
.clip-topic {
  font-size: 0.95rem;
  color: var(--grey-800);
  line-height: 1.45;
  font-weight: 500;
  margin: 0;
}
.clip-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--grey-500);
  letter-spacing: 0.01em;
}
.clip-speaker { color: var(--grey-600); font-weight: 500; }
.clip-duration { font-variant-numeric: tabular-nums; }
.clip-video {
  margin-top: 0.4rem;
  border-radius: 8px;
  overflow: hidden;
  background: black;
}
.clip-video video { width: 100%; display: block; }
.clip-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--grey-500);
  font-size: 0.95rem;
  border: 1px dashed var(--grey-200);
  border-radius: 12px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
  max-width: 360px;
  line-height: 1.5;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-top: 0.5rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  margin: 0 0 0.75rem;
  font-family: 'Inter', sans-serif;
}
.footer-col p, .footer-col a {
  display: block;
  color: var(--grey-400);
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange-300); }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-800);
  font-size: 0.78rem;
  color: var(--grey-600);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: var(--grey-500); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--orange-300); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-pillars { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 2rem; }
  .nav-links li:not(:last-child) { display: none; }
}
@media (max-width: 640px) {
  section { padding: 4rem 1.25rem; }
  .about-pillars { grid-template-columns: 1fr; }
  .hero-inner { padding: 7rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .browse-controls { gap: 0.4rem; }
  .search-input { flex: 1 1 100%; }
}

/* ---- TRANSCRIPTS ---- */
.transcripts {
  background: var(--grey-50);
}

.transcripts-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 1.75rem;
}

.transcript-panel {
  margin-bottom: 2.5rem;
}

.transcript-panel-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-600);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transcript-block {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.transcript-block:hover {
  border-color: var(--blue-200);
}

.transcript-block[open] {
  border-color: var(--blue-300);
  box-shadow: 0 4px 20px rgba(26, 143, 224, 0.06);
}

.transcript-block-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  user-select: none;
  position: relative;
}

.transcript-block-summary::-webkit-details-marker { display: none; }
.transcript-block-summary::marker { content: ''; }

.transcript-block-summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--grey-400);
  font-weight: 400;
  line-height: 1;
}

.transcript-block[open] > .transcript-block-summary::after {
  content: '\2212'; /* minus sign */
  color: var(--blue-600);
}

.transcript-block-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
  padding-right: 2.5rem;
}

.transcript-block-idx {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.transcript-block-topic {
  font-size: 1rem;
  color: var(--grey-800);
  font-weight: 500;
  line-height: 1.4;
}

.transcript-block-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--grey-500);
  padding-right: 2.5rem;
}

.transcript-block-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--grey-100);
  max-height: 60vh;
  overflow-y: auto;
}

.transcript-paragraph {
  margin: 0 0 0.95rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--grey-700);
}

.transcript-paragraph:last-child { margin-bottom: 0; }

.transcript-speaker {
  font-weight: 600;
  color: var(--blue-600);
  margin-right: 0.4rem;
  font-size: 0.92rem;
}
