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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #000;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(64,196,99,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(64,196,99,0.4); }
html { scrollbar-width: thin; scrollbar-color: rgba(64,196,99,0.25) transparent; }

/* Top navigation */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* On the landing page, the nav overlays the animated hero */
.site > .site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.site-nav .brand-mark {
  width: 28px;
  height: 28px;
}

.site-nav .nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.site-nav .nav-links a {
  color: #a1a1aa;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a[aria-current="page"] {
  color: #40c463;
}

/* Content page wrapper (non-landing pages) */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
}

.page h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page .lede {
  font-size: 1.2rem;
  color: #a1a1aa;
  margin-bottom: 2.5rem;
}

.page h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

/* Event / talk card list */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.card-list a {
  display: block;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background 0.15s, border-color 0.15s;
}

.card-list a:hover {
  background: rgba(64, 196, 99, 0.08);
  border-color: rgba(64, 196, 99, 0.4);
}

.card-list .card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.card-list .card-meta {
  font-size: 0.9rem;
  color: #a1a1aa;
}

/* Event page: header */
.page .event-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  text-align: center;
}

.event-date {
  font-size: 1rem;
  color: #a1a1aa;
  margin-bottom: 2rem;
  text-align: center;
}

/* Event page: photo grid (4-column bento) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, 180px);
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  width: 100vw;
  max-width: 1200px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f g g e"
    "f h h i"
    "j j k l"
    "j j m n"
    "o p p q"
    "o r r q";
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.15s;
  cursor: zoom-in;
}

.photo-grid img:hover {
  opacity: 0.85;
}

.photo-grid img:nth-child(1)  { grid-area: a; }
.photo-grid img:nth-child(2)  { grid-area: b; }
.photo-grid img:nth-child(3)  { grid-area: c; }
.photo-grid img:nth-child(4)  { grid-area: d; }
.photo-grid img:nth-child(5)  { grid-area: e; }
.photo-grid img:nth-child(6)  { grid-area: f; }
.photo-grid img:nth-child(7)  { grid-area: g; }
.photo-grid img:nth-child(8)  { grid-area: h; }
.photo-grid img:nth-child(9)  { grid-area: i; }
.photo-grid img:nth-child(10) { grid-area: j; }
.photo-grid img:nth-child(11) { grid-area: k; }
.photo-grid img:nth-child(12) { grid-area: l; }
.photo-grid img:nth-child(13) { grid-area: m; }
.photo-grid img:nth-child(14) { grid-area: n; }
.photo-grid img:nth-child(15) { grid-area: o; }
.photo-grid img:nth-child(16) { grid-area: p; }
.photo-grid img:nth-child(17) { grid-area: q; }
.photo-grid img:nth-child(18) { grid-area: r; }

/* Event page: quote */
.event-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: #d4d4d8;
  line-height: 1.6;
  text-align: center;
  padding: 1.5rem 2rem;
  margin-bottom: 0.5rem;
}

.event-quote-attr {
  font-size: 0.85rem;
  color: #71717a;
  text-align: center;
  margin-bottom: 2rem;
}

/* Event page: inline stats */
.stats-inline {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.stat-inline {
  font-size: 1.15rem;
  color: #a1a1aa;
}

.stat-inline strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: #40c463;
}

/* Event page: section heading */
.page .event-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
  letter-spacing: -0.01em;
}

/* Event page: talk items */
.talk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.talk-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(64,196,99,0.15);
  color: #40c463;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.talk-info {
  flex: 1;
}

.talk-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.talk-speaker {
  font-size: 0.8rem;
  color: #71717a;
}

.talk-company-link {
  color: #a1a1aa;
  transition: color 0.15s;
}

.talk-company-link:hover {
  color: #40c463;
}

.talk-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.talk-link {
  color: #40c463;
  transition: opacity 0.15s;
}

.talk-link:hover {
  opacity: 0.7;
}

/* Event page: hosts section */
.hosts-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hosts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.host-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: all 0.15s;
}

.host-logo:hover {
  background: rgba(64,196,99,0.08);
  border-color: rgba(64,196,99,0.4);
}

.host-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.host-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #d4d4d8;
}

/* Utility: logo visibility on dark bg */
.logo-on-dark {
  background: rgba(255,255,255,0.12);
  padding: 3px;
}

.logo-invert-dark {
  filter: brightness(0) invert(1);
}

.photo-carousel-hint {
  display: none;
}

@media (max-width: 600px) {
  .site-nav { padding: 1rem 1.25rem; }
  .site-nav .nav-links { gap: 1rem; }
  .page { padding: 1rem 1.25rem 3rem; }
  .page h1 { font-size: 2rem; }
  .page .lede { font-size: 1.05rem; }
  .photo-carousel-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    color: #40c463;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .photo-carousel-hint::after {
    content: '->';
    font-size: 1rem;
  }
  .photo-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: none;
    width: auto;
    left: auto;
    transform: none;
    gap: 0.75rem;
    padding: 0 1.25rem 0.25rem 0;
    mask-image: linear-gradient(to right, #000 0%, #000 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 82%, transparent 100%);
  }
  .photo-grid::-webkit-scrollbar { display: none; }
  .photo-grid img {
    flex-shrink: 0;
    flex-basis: 82%;
    height: auto;
    aspect-ratio: 4/3;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 12px;
  }
  .page .event-title { font-size: 1.6rem; }
  .event-quote { font-size: 1.05rem; padding: 1rem; }
  .talk-item { flex-direction: column; align-items: flex-start; }
  .talk-links { margin-top: 0.5rem; }
  .stats-inline { gap: 1rem; flex-wrap: wrap; }
}
