:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5a6670;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --mist: #e9f0ee;
  --line: #d7ddd8;
  --blue: #2858c7;
  --blue-dark: #173174;
  --amber: #f1a72d;
  --green: #25845a;
  --rose: #cc5273;
  --shadow: 0 24px 60px rgba(23, 32, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 5rem;
  color: #ffffff;
  background: rgba(23, 32, 38, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--amber);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 18, 22, 0.9) 0%, rgba(9, 18, 22, 0.7) 42%, rgba(9, 18, 22, 0.26) 100%),
    linear-gradient(0deg, rgba(9, 18, 22, 0.66) 0%, rgba(9, 18, 22, 0.02) 48%);
}

.hero-content {
  width: min(1120px, calc(100% - 10rem));
  margin: 0 auto;
  padding: 9rem 0 4.5rem;
  color: #ffffff;
}

.eyebrow,
.section-label,
.project-type {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact-section .eyebrow {
  color: var(--amber);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 5rem;
  line-height: 0.98;
  font-weight: 850;
}

.hero-copy {
  max-width: 650px;
  margin: 1.5rem 0 0;
  font-size: 1.35rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.button.primary {
  background: var(--amber);
  color: #1b1710;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.light {
  background: #ffffff;
  color: var(--ink);
}

.button.secondary.light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 820px;
  margin: 3rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt,
.hero-facts dd {
  margin: 0;
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  color: #ffffff;
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 10rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.intro-section {
  padding-top: 4.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: start;
}

.about-grid {
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
}

.profile-photo {
  position: sticky;
  top: 6rem;
  margin: 0;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
}

.intro-copy {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0 0 1rem;
}

.profile-section {
  padding-top: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-points {
  color: var(--muted);
  font-size: 1.05rem;
}

.profile-points p {
  margin: 0 0 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-head h2,
.skills-section h2,
.timeline-section h2 {
  max-width: 720px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-button {
  min-width: 76px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active {
  background: var(--ink);
  color: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(23, 32, 38, 0.08);
}

.project-card.hidden {
  display: none;
}

.project-visual {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.project-visual span {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(23, 32, 38, 0.12);
}

.visual-dashboard {
  background:
    radial-gradient(circle at 78% 24%, rgba(241, 167, 45, 0.95), transparent 26%),
    linear-gradient(135deg, #173174, #2858c7 55%, #e9f0ee);
}

.visual-dashboard span:nth-child(1) {
  width: 64%;
  height: 46%;
  left: 10%;
  top: 18%;
}

.visual-dashboard span:nth-child(2) {
  width: 32%;
  height: 22%;
  right: 11%;
  bottom: 16%;
}

.visual-dashboard span:nth-child(3) {
  width: 22%;
  height: 58%;
  left: 16%;
  bottom: -22%;
  background: rgba(37, 132, 90, 0.85);
}

.visual-atlas {
  background:
    radial-gradient(circle at 22% 28%, rgba(204, 82, 115, 0.9), transparent 25%),
    linear-gradient(135deg, #f6efe2, #25845a 54%, #172026);
}

.visual-atlas span:nth-child(1) {
  width: 52%;
  height: 58%;
  right: 12%;
  top: 17%;
}

.visual-atlas span:nth-child(2) {
  width: 28%;
  height: 28%;
  left: 13%;
  bottom: 14%;
  background: rgba(241, 167, 45, 0.88);
}

.visual-atlas span:nth-child(3) {
  width: 36%;
  height: 8%;
  right: 20%;
  bottom: 12%;
}

.visual-notes {
  background:
    radial-gradient(circle at 78% 70%, rgba(37, 132, 90, 0.9), transparent 25%),
    linear-gradient(135deg, #cc5273, #f1a72d 52%, #fbfaf6);
}

.visual-notes span:nth-child(1) {
  width: 62%;
  height: 55%;
  left: 13%;
  top: 16%;
}

.visual-notes span:nth-child(2) {
  width: 36%;
  height: 12%;
  left: 20%;
  top: 30%;
  background: rgba(40, 88, 199, 0.86);
}

.visual-notes span:nth-child(3) {
  width: 44%;
  height: 10%;
  left: 20%;
  top: 50%;
}

.project-body {
  padding: 1.35rem;
}

.project-type {
  color: var(--blue);
}

.project-body h3,
.skill-row h3,
.timeline h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.project-body p,
.skill-row p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2rem;
}

.skills-section {
  border-top: 1px solid var(--line);
}

.skill-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.skill-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-section {
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 1.1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--green);
  font-weight: 850;
}

.contact-section {
  background:
    radial-gradient(circle at 88% 22%, rgba(241, 167, 45, 0.26), transparent 24%),
    radial-gradient(circle at 12% 84%, rgba(37, 132, 90, 0.22), transparent 22%),
    var(--ink);
  color: #ffffff;
}

.contact-inner {
  width: min(1120px, calc(100% - 10rem));
  margin: 0 auto;
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.contact-inner h2 {
  max-width: 760px;
}

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

.site-footer {
  width: min(1120px, calc(100% - 10rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    padding: 0.9rem 1.25rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .hero-content,
  .section,
  .contact-inner,
  .site-footer {
    width: min(100% - 2rem, 720px);
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-copy {
    font-size: 1.18rem;
  }

  .hero-facts,
  .intro-grid,
  .profile-grid,
  .section-head,
  .project-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    position: static;
    max-width: 420px;
  }

  .section-head,
  .contact-inner {
    align-items: stretch;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
  }

  .filter-button {
    flex: 1 0 auto;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: 8rem 0 3rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    gap: 0.85rem;
  }

  .section {
    padding: 4rem 0;
  }

  .intro-section {
    padding-top: 1.35rem;
  }

  .profile-section {
    padding-top: 0;
  }

  .profile-grid {
    gap: 1.2rem;
    padding: 2rem 0;
  }

  h2 {
    font-size: 2rem;
  }

  .project-visual {
    height: 185px;
  }

  .skill-row,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

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