:root {
  --machili-bg: #07111d;
  --machili-surface: rgba(8, 24, 38, 0.86);
  --machili-panel: rgba(13, 34, 53, 0.92);
  --machili-border: rgba(255, 255, 255, 0.12);
  --machili-text: #f5f7fb;
  --machili-muted: #aab7c4;
  --machili-accent: #34d399;
  --machili-gold: #f7b731;
  --machili-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] {
  --machili-bg: #f4f7fb;
  --machili-surface: rgba(255, 255, 255, 0.9);
  --machili-panel: rgba(255, 255, 255, 0.95);
  --machili-border: rgba(6, 22, 37, 0.1);
  --machili-text: #0f172a;
  --machili-muted: #475569;
  --machili-accent: #0f766e;
  --machili-gold: #b45309;
  --machili-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

.machili-page {
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.16), transparent 26%), var(--machili-bg);
  color: var(--machili-text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.hero-section {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 120px 1.25rem 64px;
  background: linear-gradient(135deg, rgba(7, 17, 29, 0.8), rgba(7, 17, 29, 0.45)), url('https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1400&q=80') center/cover;
  text-align: center;
}

[data-theme="light"] .hero-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.84), rgba(241, 245, 249, 0.76)), url('https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1400&q=80') center/cover;
}

.hero-content {
  width: min(860px, 100%);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(2, 8, 23, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: var(--machili-shadow);
}

[data-theme="light"] .hero-content {
  background: rgba(255, 255, 255, 0.76);
}

.hero-kicker,
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--machili-accent);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.24);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.07;
  margin: 0 0 1rem;
}

.hero-content h1 span {
  color: var(--machili-gold);
}

.hero-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--machili-muted);
  margin: 0 auto 1.75rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.content-section {
  width: min(1160px, 92%);
  margin: 0 auto;
  padding: 4.25rem 0;
}

.alt-section {
  padding: 4.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.section-heading p {
  color: var(--machili-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.card-grid,
.export-grid,
.gallery-grid {
  display: grid;
  gap: 1.2rem;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.text-card,
.stats-card,
.export-card,
.gallery-card,
.reference-card {
  border: 1px solid var(--machili-border);
  border-radius: 24px;
  padding: 1.35rem;
  background: var(--machili-surface);
  box-shadow: var(--machili-shadow);
}

.info-card h3,
.text-card h3,
.stats-card h3,
.export-card h3,
.gallery-card strong {
  margin: 0 0 0.7rem;
  color: var(--machili-gold);
}

.info-card p,
.text-card p,
.stats-card li,
.export-card p,
.gallery-card span,
.reference-card {
  color: var(--machili-muted);
  line-height: 1.7;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.stats-card ul {
  padding-left: 1rem;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.export-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--machili-accent);
  border-radius: 0 16px 16px 0;
  background: var(--machili-panel);
  box-shadow: var(--machili-shadow);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--machili-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-visual {
  display: grid;
  place-items: center;
  min-height: 170px;
  font-size: 3rem;
  border-radius: 18px;
  margin-bottom: 0.9rem;
  color: white;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(15, 118, 110, 0.95));
}

.visual-two {
  background: linear-gradient(135deg, rgba(247, 183, 49, 0.95), rgba(180, 83, 9, 0.95));
}

.visual-three {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(30, 64, 175, 0.95));
}

.reference-list {
  display: grid;
  gap: 1rem;
}

.reference-card {
  text-decoration: none;
  display: block;
}

.reference-card:hover {
  border-color: var(--machili-accent);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .card-grid,
  .split-grid,
  .export-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2.2rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .content-section {
    width: min(100%, 94%);
    padding: 3.25rem 0;
  }

  .hero-section {
    padding-top: 100px;
  }

  .hero-actions {
    flex-direction: column;
  }
}
