:root {
  --ink: #172026;
  --muted: #60707b;
  --paper: #f8f7f4;
  --surface: #ffffff;
  --line: #d9dedb;
  --accent: #0d7c72;
  --accent-strong: #075f58;
  --warm: #c94f32;
  --gold: #d79a2b;
  --shadow: 0 24px 80px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 247, 244, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.85rem;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a[aria-current] {
  color: var(--accent-strong);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.header-action {
  padding: 0 18px;
  color: white;
  background: var(--ink);
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding: clamp(36px, 7vw, 96px) clamp(18px, 6vw, 90px) 42px;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 124, 114, 0.9), rgba(7, 95, 88, 0.72)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-card {
  position: absolute;
  left: clamp(20px, 6vw, 52px);
  right: clamp(20px, 6vw, 52px);
  bottom: clamp(20px, 5vw, 44px);
  padding: 24px;
  color: white;
  background: rgba(23, 32, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.portrait-initials {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: 800;
}

.portrait-card p {
  margin: 0;
  max-width: 22rem;
  font-weight: 700;
}

.signal-card {
  position: absolute;
  display: grid;
  gap: 2px;
  width: 132px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 38, 0.22);
}

.signal-card strong {
  font-size: 1.45rem;
  line-height: 1;
}

.signal-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.signal-one {
  top: 28px;
  right: 24px;
}

.signal-two {
  top: 116px;
  left: 24px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.headline {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: clamp(1.3rem, 2.3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
}

.intro {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  border: 0;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
}

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

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

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hero-facts div {
  min-width: 0;
  padding: 16px;
  background: white;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.section,
.contact-section,
.footer {
  padding: clamp(54px, 8vw, 108px) clamp(18px, 6vw, 90px);
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

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

.project-card,
.cv-panel,
.skills-layout,
.certificate-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 340px;
  padding: 24px;
}

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

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

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.tag-list li {
  padding: 7px 10px;
  background: rgba(13, 124, 114, 0.1);
  border: 1px solid rgba(13, 124, 114, 0.18);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.featured .tag-list li {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 74px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef3f0;
}

.cv-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.timeline-item {
  padding: 24px;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

.date-range {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--warm);
  font-size: 0.8rem;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.skills-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 28px;
}

.skill-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.tag-list.large li {
  padding: 10px 12px;
  font-size: 0.92rem;
}

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

.certificate-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
}

.certificate-card.placeholder {
  background: #fbfaf7;
  border-style: dashed;
}

.text-link {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--ink);
  color: white;
}

.contact-section p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section h2 {
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(13, 124, 114, 0.15);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
}

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

.footer-links {
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

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

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

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

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

  .signal-card {
    width: 118px;
  }

  .footer {
    flex-direction: column;
  }
}
