:root {
  --bg: #0d0f14;
  --bg-soft: #151a23;
  --panel: rgba(19, 24, 34, 0.88);
  --panel-strong: #111621;
  --text: #edf2ff;
  --muted: #b4bfd6;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #4f7cff;
  --accent-strong: #3055cf;
  --accent-soft: rgba(79, 124, 255, 0.16);
  --accent-2: #cb1f3f;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(203, 31, 63, 0.14), transparent 24%),
    linear-gradient(180deg, #0a0c12 0%, #0d0f14 100%);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 18, 0.74);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  position: fixed;
  top: 72px;
  right: 1rem;
  left: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 19, 28, 0.98);
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 4rem 0 1.4rem;
}

.hero-grid,
.projects-layout,
.skills-grid,
.focus-grid,
.project-summary-grid,
.two-column-panels,
.contact-grid,
.stat-grid,
.project-detail-grid {
  display: grid;
  gap: 1rem;
}

.hero-copy,
.panel,
.portrait-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 1.5rem;
  border-radius: 28px;
}

.hero-side,
.hero-media {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.eyebrow,
.section-label,
.timeline-year,
.card-eyebrow {
  margin: 0 0 0.85rem;
  color: #9bb2ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.section-heading h2,
.project-panel h3,
.skill-card h3,
.timeline-item h3,
.summary-card h3,
.focus-card h3,
.text-panel h3,
.detail-box h4,
.stat-grid strong {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.hero-text,
.text-panel p,
.project-panel p,
.contact-intro,
.timeline-item p,
.skill-card li,
.summary-card p,
.focus-card p,
.detail-box li,
.stat-grid span {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  margin: 1.15rem 0 0;
  max-width: 64ch;
}

.hero-actions,
.quick-links,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.quick-links {
  margin-top: 1rem;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.quick-links a:hover,
.quick-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.button-small {
  min-height: 40px;
  padding: 0.65rem 0.9rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-points li,
.tags span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.portrait-card {
  border-radius: 28px;
  padding: 1rem;
}

.portrait-card img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 22px;
}

.section {
  padding: 1.5rem 0 4rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
}

.panel {
  padding: 1.35rem;
  border-radius: var(--radius);
}

.focus-card ul,
.skill-card ul,
.detail-box ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.focus-card-wide {
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.16), rgba(203, 31, 63, 0.07));
}

.summary-card,
.focus-card,
.text-panel,
.skill-card,
.timeline-item {
  height: 100%;
}

.summary-card p,
.focus-card p,
.text-panel p,
.timeline-item p,
.project-panel p,
.contact-intro {
  margin: 0.95rem 0 0;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #b8c7ff;
  font-weight: 700;
}

.projects-layout {
  margin-top: 1.5rem;
  align-items: start;
}

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

.project-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.9rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.project-tab img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.project-tab span {
  font-weight: 700;
  line-height: 1.2;
}

.project-tab.active {
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.18), rgba(203, 31, 63, 0.15));
  border-color: rgba(155, 178, 255, 0.4);
}

.project-panel {
  display: none;
}

.project-panel.active {
  display: block;
}

.project-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-detail-grid {
  margin-top: 1.2rem;
}

.detail-box {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.detail-box h4 {
  font-size: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.gallery img,
.media-block video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0b0f18;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.contact-grid a {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-wrap: anywhere;
}

.contact-grid a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2.2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

@media (min-width: 720px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .two-column-panels,
  .project-summary-grid,
  .project-detail-grid,
  .focus-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-card-wide {
    grid-column: 1 / -1;
  }

  .projects-layout {
    grid-template-columns: 280px 1fr;
  }

  .project-tabs {
    grid-template-columns: 1fr;
    position: sticky;
    top: 92px;
  }

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

  .gallery-large-first img:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.65rem 0.9rem;
  }

  .panel,
  .hero-copy,
  .portrait-card {
    border-radius: 26px;
  }

  .project-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

.media-block {
  margin-top: 1.5rem;
}

.project-panel .tags {
  margin-top: 0.85rem;
}

.project-detail-grid + .media-block,
.project-panel p + .media-block {
  margin-top: 1.7rem;
}

.summary-card {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 178, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.video-embed {
  width: 100%;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.focus-showcase {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

.focus-showcase-copy {
  min-width: 0;
}

.showcase-video-card {
  padding: 1rem;
  border: 1px solid rgba(155, 178, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(5, 8, 15, 0.5);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.showcase-video-copy {
  margin-bottom: 1rem;
}

.showcase-video-copy h4 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  letter-spacing: -0.04em;
}

.showcase-video-copy p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #05070d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-watch-link {
  margin-top: 1rem;
  width: 100%;
}

@media (min-width: 900px) {
  .focus-showcase {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  }

  .video-watch-link {
    width: auto;
  }
}

@media (max-width: 520px) {
  .showcase-video-card {
    padding: 0.75rem;
    border-radius: 18px;
  }

  .video-embed {
    border-radius: 14px;
  }
}
