:root {
  --bg: #060809;
  --bg-soft: #09100e;
  --panel: rgba(8, 13, 12, 0.82);
  --text: #f4f8f6;
  --muted: #8ba09a;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #ff6229;
  --accent-strong: #e8501f;
  --orange: #ff6229;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 92% -5%, rgba(255, 98, 41, 0.30), transparent 42%),
    radial-gradient(ellipse at -8% 45%, rgba(255, 98, 41, 0.12), transparent 48%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  min-height: 100vh;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100vw - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 0.9rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

nav a.is-active {
  color: var(--text);
}

main {
  padding-bottom: 2.8rem;
}

.hero {
  padding: 4rem 0 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  color: var(--orange);
}

.lead {
  margin: 1.2rem 0 0;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 32px rgba(255, 98, 41, 0.40);
}

.btn-primary:hover {
  background: #ff7840;
  box-shadow: 0 12px 36px rgba(255, 98, 41, 0.52);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 98, 41, 0.40);
  background: rgba(255, 98, 41, 0.05);
}

.btn-ghost:hover {
  border-color: var(--orange);
  background: rgba(255, 98, 41, 0.12);
  color: var(--orange);
}

.hero-image-wrap {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 98, 41, 0.25);
  box-shadow: var(--shadow), 0 0 40px rgba(255, 98, 41, 0.10);
  background: linear-gradient(160deg, rgba(255, 98, 41, 0.06), rgba(255, 98, 41, 0.04));
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
}

.section {
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.page-intro h1 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

.section-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 0.8rem 0 0;
  max-width: 94ch;
}

.route-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.route-card {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.route-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.route-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.route-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.route-card span {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.card-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.video-preview {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.video-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0b0f14;
  transition: transform 0.25s ease;
}

.video-preview:hover img {
  transform: scale(1.02);
}

.video-preview-generic {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 98, 41, 0.28), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(255, 98, 41, 0.15), transparent 42%),
    linear-gradient(150deg, #0d1210, #070a09);
}

.play-chip {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #eaf1ff;
  background: rgba(8, 13, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.project-link {
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.project-link:hover {
  color: #5ed9bf;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.email-link {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255, 98, 41, 0.30);
  background: rgba(255, 98, 41, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.linkedin-link:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255, 98, 41, 0.12);
}

/* ── About page ───────────────────────────────────── */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-items: center;
}

.about-image-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 98, 41, 0.25);
  box-shadow: 0 0 40px rgba(255, 98, 41, 0.08);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.about-text {
  width: 100%;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-text .btn {
  margin-top: 0.8rem;
}

@media (max-width: 768px) {
  .about-bio {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-wrap {
    max-width: 320px;
  }
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  padding: 0.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.6s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.12s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.2s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.28s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.3rem;
  }

  .hero-image-wrap {
    max-width: 450px;
  }

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

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

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .section {
    padding: 1.2rem;
  }
}
