@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --ink: #07111f;
  --ink-soft: #334155;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #d9ddd7;
  --accent: #ff5c35;
  --accent-soft: #ffe4dc;
  --mint: #86efac;
  --dark-surface: #0b1728;
  --dark-line: #26364a;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(217, 221, 215, 0.8);
  background: rgba(247, 248, 244, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 80px;
  padding-block: 90px;
}

.eyebrow,
.section-number {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.08;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -0.065em;
}

h2 {
  max-width: 780px;
  margin-bottom: 56px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.hero-intro {
  max-width: 670px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
}

.social-links a,
.text-link {
  font-size: 14px;
  font-weight: 700;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 380px);
  margin-left: auto;
}

.portrait-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 53, 0.28), rgba(255, 228, 220, 0) 68%);
  filter: blur(14px);
}

.portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 12px solid var(--white);
  border-radius: 50% 50% 44% 56% / 51% 46% 54% 49%;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(7, 17, 31, 0.18);
}

.portrait-label {
  position: absolute;
  right: -18px;
  bottom: 16px;
  min-width: 200px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.12);
}

.portrait-label span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-label strong {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.3;
}

.section {
  padding-block: 130px;
}

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

.about-grid,
.airflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.lead {
  margin-top: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.about-copy {
  color: var(--ink-soft);
}

.about-copy p:first-child {
  margin-top: 0;
}

.expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 68px;
}

.expertise span,
.project-tech span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.section-dark {
  color: var(--white);
  background: var(--dark-surface);
}

.section-heading.light {
  border-color: var(--dark-line);
}

.light-text {
  color: #d8e1ec;
}

.text-link {
  color: var(--mint);
}

.contribution-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 30px;
}

.contribution-list article > span {
  color: var(--mint);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.contribution-list h3 {
  margin-bottom: 8px;
}

.contribution-list p {
  margin: 0;
  color: #aebdd0;
  font-size: 15px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(7, 17, 31, 0.09);
}

.project-card.featured {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.project-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 54px 0 12px;
  font-size: 1.75rem;
}

.project-card p {
  max-width: 500px;
  margin: 0 0 26px;
  color: var(--ink-soft);
}

.project-card.featured p {
  color: #fff0eb;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-card.featured .project-tech span {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.contact-panel {
  display: grid;
  align-items: end;
  padding: 58px;
  border-radius: 24px;
  color: var(--white);
  background: var(--ink);
  grid-template-columns: 1fr auto;
  gap: 60px;
}

.contact-panel h2 {
  margin-bottom: 20px;
}

.contact-panel p:not(.section-number) {
  max-width: 650px;
  margin-bottom: 0;
  color: #b8c4d3;
}

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

.button.dark-border {
  color: var(--white);
  border-color: #607086;
}

.button.dark-border:hover,
.button.dark-border:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding-block: 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .portrait-wrap {
    width: min(78vw, 380px);
    margin-inline: auto;
  }

  .about-grid,
  .airflow-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

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

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 76px 100px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .section {
    padding-block: 90px;
  }

  h2 {
    margin-bottom: 40px;
  }

  .portrait-label {
    right: -4px;
  }

  .project-card {
    min-height: 300px;
    padding: 26px;
  }

  .contact-panel {
    padding: 34px 26px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
