* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #120b07;
  color: #fff5e8;
  line-height: 1.65;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 80px 7vw;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 177, 90, .25), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(80, 160, 255, .18), transparent 28%),
    linear-gradient(135deg, #1c0f08 0%, #3b1f11 45%, #130b07 100%);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: .95;
  margin: 0 0 24px;
  letter-spacing: -3px;
}

.hero p {
  max-width: 680px;
  font-size: 20px;
  color: #f4d9c0;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ffd9a7;
  font-size: 14px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.18);
  transition: .25s ease;
}

.btn-primary {
  background: #ffb45c;
  color: #170c07;
  box-shadow: 0 16px 36px rgba(255, 180, 92, .28);
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff5e8;
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-art {
  position: relative;
  min-height: 540px;
}

.hero-card {
  position: absolute;
  width: 66%;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.16);
  transition: .35s ease;
}

.hero-card:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.02);
}

.hero-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
}

.hero-card span {
  display: block;
  padding: 14px 16px;
  color: #ffe2bc;
  font-weight: 800;
}

.hero-card.one {
  top: 0;
  right: 6%;
  transform: rotate(4deg);
}

.hero-card.two {
  left: 0;
  bottom: 0;
  transform: rotate(-7deg);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(18, 11, 7, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: #f7d7b7;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(255,255,255,.1);
}

.section {
  padding: 84px 7vw;
}

.section-light {
  background: #f4eadc;
  color: #25150c;
}

.section-dark {
  background: #120b07;
}

.section-title {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -1.6px;
}

.section-title p {
  font-size: 18px;
  opacity: .78;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.type-card {
  position: relative;
  min-height: 390px;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  background: #2b1b12;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  transform: translateY(0);
  transition: .28s ease;
}

.type-card:hover {
  transform: translateY(-10px);
}

.type-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
  transition: .35s ease;
}

.type-card:hover img {
  transform: scale(1.08);
}

.type-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82));
}

.type-card-content {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.type-card-content h3 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #ffffff;
}

.type-card-content p {
  margin: 0;
  color: #ffe2c1;
  font-size: 15px;
}

.timeline {
  display: grid;
  gap: 26px;
}

.era {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 18px;
  transition: .25s ease;
}

.era:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,.12);
}

.era img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
}

.era small {
  color: #ffbe78;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.era h3 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.era p {
  margin: 0;
  color: #f1d7be;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #30180c;
  background: #ead5bf;
  transition: .2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ffb45c;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  background: #2b1b12;
  text-align: left;
  color: white;
  position: relative;
  min-height: 330px;
}

.gallery-item img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
  transition: .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fact {
  padding: 24px;
  border-radius: 24px;
  background: #fff8ef;
  color: #25150c;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.fact b {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
  color: #8c4d24;
}

dialog {
  width: min(860px, calc(100% - 32px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff7ec;
  color: #25150c;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}

dialog::backdrop {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
}

.modal-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 26px;
}

.modal-body h3 {
  font-size: 34px;
  margin: 0 0 10px;
}

.close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  background: rgba(0,0,0,.62);
  color: white;
}

.footer {
  padding: 30px 7vw;
  background: #090503;
  color: #d9b995;
  text-align: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 520px;
  }

  .grid,
  .gallery,
  .fact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .era {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 22px;
  }

  .section {
    padding: 60px 22px;
  }

  .grid,
  .gallery,
  .fact-strip {
    grid-template-columns: 1fr;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-card {
    width: 78%;
  }
}
