:root {
  --ink: #17313b;
  --ink-2: #284750;
  --paper: #fffaf4;
  --panel: #ffffff;
  --mist: #eaf4f1;
  --teal: #2f8f83;
  --coral: #e76f51;
  --amber: #e9a84e;
  --line: rgba(23, 49, 59, 0.14);
  --shadow: 0 24px 70px rgba(23, 49, 59, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: var(--ink);
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a {
  color: var(--ink-2);
}

.nav-links a:hover {
  background: var(--mist);
}

.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 54px 0 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.availability {
  position: absolute;
  left: -20px;
  bottom: 42px;
  max-width: 290px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.availability strong {
  display: block;
  margin-bottom: 3px;
}

.availability span {
  color: var(--ink-2);
  font-size: 0.93rem;
}

.section {
  scroll-margin-top: 192px;
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section.alt {
  background: #f3f8f6;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.lead {
  color: var(--ink-2);
  font-size: 1.06rem;
}

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

.card {
  min-height: 228px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  margin-bottom: 18px;
  color: white;
  background: var(--teal);
}

.card:nth-child(2) .icon {
  background: var(--coral);
}

.card:nth-child(3) .icon {
  background: var(--amber);
  color: var(--ink);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.card p,
.timeline p,
.project-copy p,
.contact-panel p {
  color: var(--ink-2);
}

.project {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.project-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.system-map {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.system-row {
  min-height: 62px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.system-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.project-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 11px;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink-2);
  font-weight: 750;
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.timeline-date {
  color: var(--teal);
  font-weight: 850;
}

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

.skill {
  min-height: 92px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.contact-panel {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 760;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(242, 179, 111, 0.95);
  box-shadow: 0 0 0 3px rgba(242, 179, 111, 0.18);
}

.form-button {
  width: 100%;
  margin-top: 4px;
  border-color: white;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.footer {
  padding: 28px 0;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

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

  .hero-visual {
    min-height: 420px;
  }

  .availability {
    left: 16px;
    bottom: 18px;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .stats,
  .skills {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .availability {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

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

  .footer .container {
    flex-direction: column;
  }
}
