:root {
  --ink: #15211b;
  --muted: #5f6c63;
  --line: #d9e2dc;
  --paper: #f7faf7;
  --surface: #ffffff;
  --accent: #0f6b57;
  --accent-strong: #0a4d41;
  --gold: #c89b3c;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 107, 87, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfdfb 0%, var(--paper) 100%);
}

.home-page {
  padding-top: 0;
}

.home-page > .wrapper {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.portfolio-header {
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.portfolio-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(calc(100vw - 10cm), 1280px);
  min-height: 64px;
  margin: 0 auto;
}

.cv-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.cv-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cv-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.home-shell {
  width: min(calc(100vw - 10cm), 1280px);
  max-width: none;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 140px);
  min-height: 62vh;
}

.hero-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 900px;
  padding: clamp(28px, 5vw, 64px) 0;
}

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

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.65;
}

.lead a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration-color: rgba(15, 107, 87, 0.45);
  text-underline-offset: 3px;
}

.lead a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

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

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

.profile-photo {
  flex: 0 0 auto;
  display: block;
  width: min(280px, 28vw);
  height: auto;
  margin-left: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(21, 33, 27, 0.08);
}

@media (max-width: 780px) {
  .portfolio-header-inner,
  .home-shell {
    width: min(calc(100vw - 36px), 1600px);
  }

  .home-shell {
    padding: 28px 0 56px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 8px;
  }

  .profile-photo {
    width: min(100%, 280px);
    margin-left: 0;
    margin-bottom: 32px;
  }
}
