:root {
  --bg: #f7f3ec;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #18201f;
  --muted: #5c6661;
  --line: #ded6ca;
  --accent: #087f7b;
  --accent-dark: #075e5c;
  --accent-soft: #d7efeb;
  --gold: #b8832f;
  --shadow: 0 24px 70px rgba(24, 32, 31, 0.11);
  --radius: 8px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(215, 239, 235, 0.72), rgba(247, 243, 236, 0) 420px),
    var(--bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 214, 202, 0.72);
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand,
.nav-links,
.hero-actions,
.contact-links,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
}

.nav-links {
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-links a:hover,
.site-footer a:hover,
.project-card a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding-top: 62px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(8, 127, 123, 0.24);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.profile-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow);
}

.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.profile-details {
  padding: 18px 2px 2px;
}

.profile-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-role {
  margin: 5px 0 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 60px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-body p,
.contact-section p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.timeline-item,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-item {
  padding: 26px;
}

.timeline-item p,
.project-card p {
  color: var(--muted);
}

.item-meta {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

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

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

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.project-card a,
.project-note,
.contact-links a {
  font-weight: 800;
  color: var(--accent-dark);
}

.skill-groups {
  display: grid;
  gap: 26px;
}

.skill-groups h3 {
  margin-bottom: 12px;
}

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

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--surface-strong);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-links {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.contact-links a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.site-footer {
  width: min(var(--content), calc(100% - 40px));
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-radius: var(--radius);
  }

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

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 54px;
  }

  .profile-panel {
    max-width: 430px;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--content));
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-text {
    font-size: 1.04rem;
  }

  .button {
    width: 100%;
  }

  .timeline-item,
  .project-card {
    padding: 20px;
  }

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