:root {
  --bg: #0b0606;
  --panel: #0f0b0b;
  --muted: #98a2ab; /* cool gray */
  --accent: #d72e2e; /* dark red */
  --accent-2: #8b1f1c; /* deeper muted red */
  --highlight: #eac982;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --max-w: 1100px;
  --bright: #ffebe9;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: radial-gradient(
      800px 400px at 10% 10%,
      rgba(192, 57, 43, 0.06),
      transparent
    ),
    linear-gradient(180deg, #040203 0%, #0b0506 100%);
  color: #fff1f0;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--bright);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
}
.nav {
  display: flex;
  gap: 0.5rem;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}
.nav-link.active {
  background: var(--accent);
  color: #0b0505;
  box-shadow: 0 8px 30px rgba(60, 10, 10, 0.45);
}
.nav-toggle {
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.hero {
  padding: 3.5rem 0 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
}
.hero-copy {
  max-width: 60%;
}
.hero-title {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
  color: #fff1f0;
}
.hero-sub {
  color: var(--muted);
  margin-top: 0;
}
.hero-media img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(40, 10, 10, 0.45));
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
  text-decoration: none;
  margin-right: 0.5rem;
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0505;
  border: none;
  box-shadow: 0 12px 30px rgba(192, 57, 43, 0.08);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(177, 13, 13, 0.485);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(18, 10, 10, 0.6);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.4rem;
}
.card-icon img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.spread {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: center;
}
.spread-left h2 {
  margin-top: 0;
}
.spread-right img {
  width: 100%;
  border-radius: 12px;
}
.features {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

.page-hero {
  padding: 2rem 0 0 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.project-card {
  background: var(--glass);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
}
.project-card img {
  width: 100%;
  margin: 0 auto 0.5rem;
  opacity: 0.95;
}

.contact-card {
  background: linear-gradient(180deg, rgba(177, 13, 13, 0.485), transparent);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(177, 13, 13, 0.485);
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 1.5rem 4rem;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.video-embed iframe,
.video-embed video,
.video-embed object,
.video-embed embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.anecdote h2 {
  color: var(--highlight);
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.995);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .spread,
  .hero-copy {
    max-width: 100%;
  }
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: linear-gradient(
      180deg,
      rgba(5, 8, 15, 0.95),
      rgba(5, 8, 15, 0.98)
    );
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    display: none;
  }
  .nav.show {
    display: flex;
  }
  .nav-wrap {
    position: relative;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .show-on-mobile {
    display: block !important;
  }
}

/* Timeline styles */
.timeline {
  display: flex;
  gap: 0.6rem;
  overflow-y: visible;
  overflow-x: visible;
  flex-wrap: wrap;
  margin: 2rem 0 19rem;
  align-items: flex-start;
  height: auto;
  position: relative;
}

.timeline-item {
  min-width: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  border-radius: 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.timeline-item:focus {
  outline: 3px solid rgba(192, 57, 43, 0.12);
}
.timeline-item[aria-pressed="true"] {
  background: var(--accent);
  color: #0b0505;
}
.tl-short {
  color: var(--muted);
  margin-top: 0.25rem;
}
.tl-detail {
  display: none;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline-item .tl-detail {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 0.6rem;
  border-radius: 10px;
  z-index: 60;
  display: none;
  cursor: default;
}
.timeline-item[aria-pressed="true"] .tl-short {
  display: block;
  color: var(--bright);
}
.timeline-item[aria-pressed="true"] .tl-detail {
  display: block;
}
