:root {
  --page: #f2f0ea;
  --paper: #fff;
  --ink: #17202a;
  --muted: #5e6972;
  --line: #d7dcd8;
  --accent: #b74c32;
  --accent-soft: #f7e7e1;
  --dark: #17202a;
  --dark-muted: #cbd2d7;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid rgba(183, 76, 50, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 240, 234, 0.92);
  border-bottom: 1px solid rgba(215, 220, 216, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav a,
.language-switch a,
.language-switch span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.language-switch a:hover {
  color: var(--ink);
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.language-switch a,
.language-switch span {
  min-width: 38px;
  padding: 6px 8px;
  text-align: center;
  border-radius: 7px;
}

.language-switch [aria-current="page"] {
  color: #fff;
  background: var(--dark);
}

.hero {
  padding: clamp(42px, 7vw, 92px) 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.hero-main,
.hero-proof,
.section-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  position: relative;
  padding: clamp(30px, 6vw, 72px);
  overflow: hidden;
  color: #f8f8f6;
  background: var(--dark);
  border-color: var(--dark);
}

.hero-main::after {
  position: absolute;
  right: -130px;
  bottom: -190px;
  width: 390px;
  height: 390px;
  content: "";
  border: 78px solid rgba(183, 76, 50, 0.24);
  border-radius: 50%;
}

.hero-main > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.card-index {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-main .eyebrow {
  color: #ef9a82;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.role {
  max-width: 58ch;
  margin-bottom: clamp(30px, 5vw, 52px);
  color: var(--dark-muted);
  font-weight: 700;
}

.hero-statement {
  max-width: 36ch;
  margin-bottom: 24px;
  padding-left: 20px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: -0.025em;
  border-left: 4px solid var(--accent);
}

.hero-support {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--dark-muted);
}

.hero-proof {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 46px);
  background: var(--paper);
}

.hero-number {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-proof strong {
  display: block;
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.hero-proof p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 11px;
}

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

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

.content-section {
  padding: clamp(66px, 9vw, 120px) 0 0;
  scroll-margin-top: 84px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 1.06rem;
}

.cards,
.metrics,
.proofs,
.continuations {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.proof,
.continuation,
.diagnostic {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card:last-child {
  grid-column: 1 / -1;
}

.card p,
.proof p,
.continuation p {
  margin-bottom: 0;
  color: var(--muted);
}

.fit-line,
.closing-line {
  margin: 16px 0 0;
  padding: 24px;
  font-weight: 700;
  background: var(--accent-soft);
  border-radius: 16px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.metric {
  min-height: 176px;
  padding: 24px;
  color: #fff;
  background: var(--dark);
  border-radius: 16px;
}

.metric strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--dark-muted);
  font-size: 0.9rem;
}

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

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.diagnostic h3 {
  font-size: 1.35rem;
}

ul {
  margin: 0;
  padding-left: 1.25em;
}

li + li {
  margin-top: 10px;
}

.continuations {
  margin-top: 16px;
}

.contact-panel {
  position: sticky;
  top: 98px;
  padding: clamp(26px, 4vw, 38px);
  color: #fff;
  background: var(--dark);
  border-radius: 18px;
}

.contact-panel .section-kicker {
  color: #ef9a82;
}

.contact-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
}

.contact-panel p {
  color: var(--dark-muted);
}

.contact-links {
  display: grid;
  gap: 11px;
  margin-top: 26px;
  font-style: normal;
}

.contact-links a {
  width: fit-content;
  color: #fff;
}

.site-footer {
  padding: 42px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

.footer-inner p {
  margin: 0;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-card {
  width: min(100%, 660px);
  padding: clamp(30px, 7vw, 70px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

  .hero-proof {
    min-height: 300px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 24px), var(--content));
  }

  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-main {
    padding: 32px 22px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-statement {
    padding-left: 16px;
    font-size: 1.3rem;
  }

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

  .card:last-child {
    grid-column: auto;
  }

  .metric {
    min-height: auto;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
