/* Homies Adventures - Cinematic Expedition Archive */
:root {
  --charcoal: #10171D;
  --slate: #27353B;
  --gold: #B8A48A;
  --ivory: #EAE7DF;
  --stone: #7C837F;
  --dark-bg: #0A0E12;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.display {
  font-family: 'Cinzel', 'Times New Roman', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 23, 29, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 164, 138, 0.15);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-weight: 500;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--gold);
}

/* Hero */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8vw;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,18,0.2) 0%, rgba(10,14,18,0.1) 40%, rgba(10,14,18,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
  width: auto;
  text-align: right;
  position: relative;
  z-index: 2;
  background: rgba(16, 23, 29, 0.42);
  backdrop-filter: blur(4px);
  padding: 2.2rem 2.4rem 2rem;
  border: 1px solid rgba(184, 164, 138, 0.35);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
  color: var(--ivory);
  margin-bottom: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  word-break: normal;
  overflow-wrap: normal;
}

.hero-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--ivory);
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: all 0.3s;
  background: transparent;
}

.btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.hero-meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  text-transform: uppercase;
}

/* Sections */
section {
  padding: 8rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section-header p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--stone);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.portrait {
  position: relative;
}

.portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.portrait-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--stone);
  font-style: italic;
}

.origin {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.origin img {
  width: 100%;
  border: 1px solid rgba(184,164,138,0.3);
}

/* Expeditions */
.expedition {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
  align-items: center;
}

.expedition:nth-child(even) {
  direction: rtl;
}

.expedition:nth-child(even) > * {
  direction: ltr;
}

.expedition-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.expedition-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s;
}

.expedition-thumb:hover img {
  transform: scale(1.03);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.expedition-thumb:hover .play-overlay {
  opacity: 1;
}

.expedition-meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.expedition h3 {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.placeholder-thumb {
  background: linear-gradient(135deg, #1a2329, #0f1519);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184,164,138,0.2);
  text-align: center;
  padding: 2rem;
}

/* Medallions */
.medallions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.coin {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.coin:hover {
  transform: translateY(-8px);
}

.coin img {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
  transition: filter 0.3s;
}

.coin:hover img {
  filter: drop-shadow(0 25px 40px rgba(184,164,138,0.3));
}

.coin p {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
}

/* Archive */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.archive-item {
  position: relative;
  overflow: hidden;
}

.archive-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.1);
  transition: transform 0.4s;
}

.archive-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}

.archive-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,14,18,0.9));
  padding: 2rem 1rem 1rem;
  font-size: 0.85rem;
  font-style: italic;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(184,164,138,0.15);
  color: var(--stone);
  font-size: 0.9rem;
}

footer .display {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img, .modal-content iframe {
  max-width: 100%;
  max-height: 85vh;
  border: none;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--ivory);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    justify-content: center;
    text-align: center;
    padding: 0 5vw;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .founders-grid, .origin, .expedition {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .expedition:nth-child(even) {
    direction: ltr;
  }
  nav ul {
    gap: 1rem;
    font-size: 0.75rem;
  }
  section {
    padding: 5rem 4vw;
  }
}

/* Animated medallion viewer */
.modal-content video { max-width:100%; max-height:75vh; }
.coin { cursor:pointer; }
