:root {
  --ink: #172033;
  --muted: #617086;
  --line: #d9e1e8;
  --paper: #f7f4ef;
  --panel: #ffffff;
  --teal: #067a7a;
  --coral: #d85c4a;
  --gold: #c68b32;
  --blue: #224b8d;
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(6, 122, 122, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 75, 141, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--teal);
}

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

.hero {
  min-height: calc(100vh - 83px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding-top: 58px;
  padding-bottom: 58px;
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: var(--panel);
}

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

.profile-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  background: #d8ddd8;
}

.profile-panel div {
  padding: 26px;
  border-top: 2px solid var(--ink);
}

.profile-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.profile-panel p,
.profile-panel a {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
}

.stats div {
  min-height: 154px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 104px;
}

.section-heading.compact {
  position: static;
  max-width: 850px;
  margin-bottom: 36px;
}

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

.timeline article,
.skill-groups div,
.workflow article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.timeline article {
  padding: 24px;
}

.timeline span,
.project-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline p,
.project-card p,
.skill-groups p,
.workflow p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

.project-card.featured {
  grid-column: span 2;
  color: #fff;
  background: var(--ink);
}

.project-card.featured p,
.project-card.featured .tech {
  color: rgba(255, 255, 255, 0.76);
}

.project-card.featured span {
  color: #84d7cc;
}

.tech {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(97, 112, 134, 0.24);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.skill-groups div {
  padding: 22px 24px;
}

.skills-section {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ai-section {
  padding-bottom: 96px;
}

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

.workflow article {
  min-height: 226px;
  padding: 26px;
  border-top: 6px solid var(--teal);
}

.workflow article:nth-child(2) {
  border-top-color: var(--coral);
}

.workflow article:nth-child(3) {
  border-top-color: var(--blue);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: end;
  padding: 70px clamp(20px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.footer h2 {
  max-width: 720px;
}

.footer .eyebrow {
  color: #84d7cc;
}

.footer-links {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .hero {
    min-height: auto;
  }

  .section-heading {
    position: static;
  }

  .stats,
  .project-grid,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: span 2;
  }

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .section {
    width: min(100% - 28px, 1160px);
    padding: 58px 0;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

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

  .profile-panel {
    grid-template-rows: 360px auto;
  }

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

  .project-card.featured {
    grid-column: auto;
  }

  .project-card,
  .workflow article {
    min-height: auto;
  }
}
