:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5d6a64;
  --paper: #f8f7f1;
  --surface: #ffffff;
  --line: #d9ddd2;
  --sage: #5f7d68;
  --moss: #213d34;
  --coral: #d96f51;
  --gold: #d4a63f;
  --sky: #7bb0bd;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 247, 241, 0) 420px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 31, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.header-menu,
.nav-links,
.button {
  display: inline-flex;
  align-items: center;
}

.header-menu {
  gap: 8px;
  justify-content: flex-end;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 33, 31, 0.16);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.nav-links a {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(95, 125, 104, 0.12);
  outline: none;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.lang-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.lang-button:hover,
.lang-button:focus-visible,
.lang-button.is-active {
  background: var(--ink);
  color: #fff;
  outline: none;
}

.hero,
.section,
.split-section,
.metrics,
.contact-inner,
.intro-band {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 86px) 0 clamp(38px, 7vw, 72px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 100%;
  font-size: clamp(3.65rem, 6.6vw, 6.8rem);
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  max-width: 840px;
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.12;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.14rem, 1.7vw, 1.45rem);
}

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

.button {
  min-height: 48px;
  gap: 10px;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-weight: 820;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 32px rgba(23, 33, 31, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
}

.button.linkedin {
  border-color: rgba(23, 33, 31, 0.22);
  background: #0a66c2;
  color: #fff;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-links a {
  padding: 8px 11px;
  border: 1px solid rgba(23, 33, 31, 0.14);
  background: rgba(255, 255, 255, 0.65);
  color: var(--moss);
  font-size: 0.9rem;
  font-weight: 760;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  border-color: rgba(23, 33, 31, 0.32);
  outline: none;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 470px);
  margin: 0;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(23, 33, 31, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 176, 189, 0.18), transparent 44%),
    linear-gradient(315deg, rgba(217, 111, 81, 0.2), transparent 42%),
    #fff;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.portrait-image {
  filter: saturate(0.96) contrast(1.02);
}

.portrait-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 2px;
  min-width: 188px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 241, 220, 0.34);
  border-radius: 8px;
  background: rgba(55, 68, 72, 0.72);
  color: #f8f1dc;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.portrait-badge span {
  font-size: 1.05rem;
  font-weight: 880;
}

.portrait-badge small {
  color: rgba(248, 241, 220, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-visual figcaption {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.intro-band {
  padding: clamp(28px, 5vw, 46px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  max-width: 950px;
  margin: 0;
  color: var(--moss);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.section,
.split-section {
  padding: clamp(76px, 12vw, 140px) 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

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

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(23, 33, 31, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 40px rgba(23, 33, 31, 0.06);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 44px;
  border: 1px solid rgba(23, 33, 31, 0.18);
  background: #f1efe5;
  color: var(--moss);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.accent-fill,
.blue-fill {
  stroke: none;
}

.accent-fill {
  fill: var(--coral);
}

.blue-fill {
  fill: var(--sky);
}

.card p,
.principles p,
.contact p {
  color: var(--muted);
}

.card p {
  margin: 16px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: clamp(32px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

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

.principles article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--coral);
  font-weight: 880;
}

.principles h3 {
  line-height: 1.16;
}

.principles p {
  grid-column: 2;
  margin: 10px 0 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--moss);
  color: #fff;
}

.metrics div {
  min-height: 176px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.9;
}

.metrics .metric-value {
  white-space: nowrap;
}

.metrics .metric-value span {
  display: inline;
  max-width: none;
  margin-top: 0;
  color: inherit;
  font-weight: inherit;
}

.metrics span {
  display: block;
  max-width: 220px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.contact {
  padding: clamp(76px, 12vw, 138px) 0 48px;
}

.contact-inner {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding: clamp(36px, 7vw, 74px);
  border: 1px solid rgba(23, 33, 31, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(123, 176, 189, 0.2), transparent 36%),
    linear-gradient(290deg, rgba(217, 111, 81, 0.18), transparent 42%),
    #fff;
  box-shadow: var(--shadow);
}

.contact-inner h2 {
  max-width: 900px;
}

.contact-inner p {
  max-width: 720px;
  margin: 0;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer,
.legal-page {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer a {
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

.legal-page {
  padding: clamp(54px, 8vw, 92px) 0 clamp(60px, 9vw, 110px);
}

.legal-hero {
  max-width: 860px;
  margin-bottom: clamp(38px, 7vw, 70px);
}

.legal-hero h1 {
  max-width: none;
}

.legal-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.legal-content article {
  padding: 28px;
  border: 1px solid rgba(23, 33, 31, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.legal-content h2 {
  max-width: none;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.legal-content p,
.legal-content dl {
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-content dl {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px 20px;
}

.legal-content dt {
  color: var(--ink);
  font-weight: 850;
}

.legal-content dd {
  margin: 0;
}

.legal-content a {
  color: var(--moss);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 640px;
    margin-inline: auto;
  }

  .three-up,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .header-menu {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .hero,
  .section,
  .split-section,
  .metrics,
  .contact-inner,
  .intro-band,
  .site-footer,
  .legal-page {
    width: min(100% - 24px, var(--max));
  }

  .legal-content dl {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.5rem);
  }

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

  .contact-actions {
    display: grid;
  }

  .card {
    min-height: auto;
  }

  .principles article {
    grid-template-columns: 1fr;
  }

  .principles p {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
