:root {
  --bg: #090909;
  --bg-soft: #101010;
  --surface: rgba(22, 23, 24, 0.82);
  --surface-strong: rgba(31, 32, 34, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7f7;
  --muted: #b2b8b8;
  --muted-2: #7f8787;
  --teal: #16d6c6;
  --amber: #f2aa3f;
  --magenta: #ef4f9a;
  --graphite: #191a1c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(22, 214, 198, 0.05), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(239, 79, 154, 0.16), transparent 26rem),
    linear-gradient(180deg, #070707 0%, #111 42%, #080808 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(8, 8, 8, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: 100%;
  max-width: 1212px;
  padding-inline: 16px;
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(22, 214, 198, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 214, 198, 0.16), rgba(242, 170, 63, 0.12));
  color: var(--teal);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: currentColor;
}

.section-band {
  position: relative;
  padding: 96px 0;
}

.section-inner {
  width: 100%;
  max-width: 1212px;
  padding-inline: 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 118px;
  padding-bottom: 64px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.82) 38%, rgba(5, 5, 5, 0.35) 68%, rgba(5, 5, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.22) 0%, #090909 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 42px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 800;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 800;
}

h3 {
  font-size: 1.04rem;
  font-weight: 800;
}

.hero-title {
  max-width: 720px;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(1.16rem, 2vw, 1.65rem);
  font-weight: 700;
}

.hero-summary {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.hero-stats span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.hero-stats strong {
  color: var(--amber);
}

.cta-row,
.download-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), #86fff2);
  color: #071010;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.download-row {
  margin-top: 18px;
}

.download-row a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(242, 170, 63, 0.28);
  border-radius: var(--radius);
  background: rgba(242, 170, 63, 0.08);
  color: #ffe4b4;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 14, 15, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list span {
  padding: 12px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 700;
}

.about-band,
.timeline-band,
.training-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--bg-soft);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: 54px;
}

.section-heading.compact {
  max-width: 820px;
  margin-bottom: 38px;
}

.body-copy p,
.timeline-item p,
.skill-card p,
.project-card p,
.achievement-grid p {
  color: var(--muted);
}

.body-copy p {
  margin: 0 0 20px;
  font-size: 1.02rem;
}

.skills-grid,
.featured-grid,
.project-grid,
.achievement-grid {
  display: grid;
  gap: 16px;
}

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

.skill-card,
.project-card,
.achievement-grid article,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.skill-card {
  min-height: 198px;
  padding: 22px;
}

.skill-card h3 {
  margin-bottom: 14px;
}

.skill-card p {
  margin: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.timeline-item {
  padding: 22px;
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-item p {
  margin: 12px 0 0;
}

.project-band {
  background:
    linear-gradient(135deg, rgba(22, 214, 198, 0.06), transparent 34%),
    linear-gradient(315deg, rgba(239, 79, 154, 0.07), transparent 38%),
    #080808;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 72px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
}

.project-card.featured {
  background:
    linear-gradient(135deg, rgba(22, 214, 198, 0.1), transparent 42%),
    linear-gradient(315deg, rgba(242, 170, 63, 0.08), transparent 36%),
    var(--surface-strong);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag,
.metric {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.tag {
  border: 1px solid rgba(22, 214, 198, 0.28);
  color: #bafff8;
  background: rgba(22, 214, 198, 0.08);
}

.metric {
  border: 1px solid rgba(239, 79, 154, 0.28);
  color: #ffd0e3;
  background: rgba(239, 79, 154, 0.08);
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  margin: 0 0 12px;
  font-size: 0.94rem;
}

.project-label {
  color: var(--text);
  font-weight: 800;
}

.portfolio-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.88fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 18px;
}

.portfolio-controls {
  display: grid;
  gap: 12px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(22, 214, 198, 0.7);
  box-shadow: 0 0 0 3px rgba(22, 214, 198, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(242, 170, 63, 0.64);
  background: rgba(242, 170, 63, 0.14);
  color: #ffe6bd;
}

.project-results-meta {
  min-height: 28px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

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

.achievement-grid article {
  padding: 22px;
}

.achievement-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 800;
}

.achievement-grid p {
  margin: 0;
}

.contact-band {
  padding-bottom: 120px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(22, 214, 198, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22, 214, 198, 0.1), transparent 40%),
    linear-gradient(315deg, rgba(239, 79, 154, 0.1), transparent 38%),
    var(--surface-strong);
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.footer-inner a {
  color: var(--teal);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .skills-grid,
  .featured-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-layout,
  .portfolio-header,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 540px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 4px;
  }

  .nav-links a {
    padding: 10px 8px;
  }

  .section-band {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-copy,
  .hero-panel,
  .portfolio-controls,
  .contact-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: clamp(2.65rem, 11vw, 3.25rem);
    line-height: 1;
  }

  .hero-title,
  .hero-summary {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 0.96rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.74) 46%, #090909 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.55));
  }

  .hero-stats {
    display: grid;
  }

  .skills-grid,
  .featured-grid,
  .project-grid,
  .timeline,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-header {
    align-items: start;
  }

  .button,
  .download-row a {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .contact-layout {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
