:root {
  --bg: #f5f7fb;
  --ink: #172027;
  --muted: #5b6673;
  --line: #d7dee8;
  --panel: #ffffff;
  --panel-strong: #eef3f8;
  --nav: #111827;
  --nav-soft: #1f2937;
  --green: #14845d;
  --green-dark: #0d6547;
  --blue: #2563a8;
  --violet: #635bff;
  --amber: #b45f06;
  --red: #9b1c1c;
  --shadow: 0 18px 50px rgba(23, 32, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #edf2f7 0, #f5f7fb 430px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(23, 33, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(16, 24, 22, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  min-width: max-content;
  color: #ffffff;
  text-decoration: none;
}

.brand span {
  font-weight: 800;
}

.brand small {
  color: #b7c5bf;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.site-nav a {
  color: #d7e2dd;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--nav-soft);
  color: #ffffff;
}

.site-nav a:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-download,
.button.primary {
  background: var(--green);
  color: #ffffff;
}

.nav-download:hover,
.button.primary:hover {
  background: var(--green-dark);
}

.button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(24, 33, 31, 0.07);
}

.button.ghost {
  background: transparent;
  border-color: rgba(40, 113, 79, 0.45);
  color: var(--green-dark);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--nav-soft);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

main {
  min-height: calc(100vh - 145px);
}

.hero,
.page-title,
.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 42px 0 30px;
}

.hero-copy {
  display: grid;
  align-content: center;
  max-width: none;
  min-height: 520px;
  padding: clamp(32px, 4.8vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-title h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 16px 0 12px;
  color: var(--green-dark);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow):not(.lead),
.page-title > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-panel,
.contact-card,
.contact-form,
.compact-card,
.highlight-card,
.video-card,
.focus-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  align-content: start;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.profile-head {
  display: grid;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.profile-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.profile-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.avatar-wrap {
  width: 150px;
  aspect-ratio: 4 / 5;
}

.avatar {
  width: 150px;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
  border: 0;
}

dl {
  margin: 24px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  color: var(--ink);
  margin: 4px 0 16px;
}

.hero-panel a {
  color: var(--green-dark);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.metric-strip span {
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.metric-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.section {
  padding: 34px 0;
}

.section + .section {
  border-top: 0;
}

.section-accent {
  width: min(1120px, calc(100% - 36px));
  max-width: 1120px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.section-accent .section-heading h2,
.section-accent .highlight-card p {
  color: var(--ink);
}

.section-accent .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.section-accent .highlight-card {
  background: #f8fafc;
  border-color: var(--line);
  box-shadow: none;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.contact-card h2,
.video-card h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
}

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

.highlight-card,
.compact-card,
.contact-card,
.contact-form,
.video-card,
.focus-card {
  padding: 22px;
}

.highlight-card {
  position: relative;
  padding-left: 48px;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(40, 113, 79, 0.13);
}

.highlight-card p,
.compact-card p {
  margin: 0;
}

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

.focus-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.focus-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9edff;
  color: var(--violet);
  font-weight: 850;
}

.focus-card h3 {
  margin: 0;
  font-size: 22px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
}

.split,
.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
}

.skill-cloud {
  display: grid;
  gap: 18px;
}

.skill-cloud section,
.simple-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.skill-cloud h3,
.compact-card h3,
.timeline-body h3,
.simple-list h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.tag-list,
.skill-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.page-title {
  padding: 58px 0 22px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}

.company,
.stack {
  color: var(--blue);
  font-weight: 850;
}

.timeline-body p {
  margin: 0 0 12px;
}

.timeline-body ul {
  margin: 0;
  padding-left: 20px;
}

.two-column {
  align-items: start;
}

.simple-list {
  display: grid;
  gap: 18px;
}

.simple-list p {
  margin: 0 0 6px;
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(40, 113, 79, 0.18);
  border-color: var(--green);
}

.notice {
  margin: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 750;
}

.notice.success {
  background: #e4f3e8;
  color: var(--green-dark);
}

.notice.error {
  background: #f9e7e7;
  color: var(--red);
}

.video-grid {
  display: grid;
  gap: 22px;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--nav);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .split,
  .two-column,
  .contact-layout,
  .video-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

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

  .highlight-grid,
  .card-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero,
  .page-title,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .page-title h1 {
    font-size: 38px;
  }

  .actions,
  .site-footer,
  .metric-strip {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-copy,
  .hero-panel {
    padding: 24px;
  }

  .site-footer {
    display: flex;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions {
    display: none;
  }

  body {
    background: white;
  }

  .page-title,
  .section {
    width: 100%;
    padding: 18px 0;
  }

  .compact-card,
  .highlight-card,
  .contact-card,
  .contact-form,
  .video-card,
  .focus-card,
  .timeline-item {
    box-shadow: none;
  }
}
