:root {
  --ink: #16202a;
  --muted: #66717d;
  --line: rgba(20, 31, 42, 0.14);
  --paper: #fbfbf7;
  --white: #ffffff;
  --blue: #0c6f8e;
  --gold: #7a5a20;
  --green: #53705f;
  --shadow: 0 24px 60px rgba(20, 31, 42, 0.12);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--paper);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

.page {
  overflow: hidden;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.button.light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

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

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: end;
  padding: 80px 0 48px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: end;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 800;
}

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

h1 {
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: #34414d;
  max-width: 760px;
}

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

.media-frame {
  min-height: 540px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #dfe6e5;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 auto;
}

.stat {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

section {
  position: relative;
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.service p,
.proof p,
.faq p,
.contact p {
  color: var(--muted);
  line-height: 1.55;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proof {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.band {
  background: var(--ink);
  color: var(--white);
}

.band .lead,
.band p {
  color: rgba(255, 255, 255, 0.72);
}

.band .service,
.band .proof {
  background: #17242f;
  border-color: rgba(255, 255, 255, 0.18);
}

.clinic-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.path-card {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
}

.path-card.dark {
  background: #0f1922;
  color: var(--white);
}

.path-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq {
  padding: 22px;
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.variant-b {
  --ink: #192019;
  --paper: #f7f3ea;
  --gold: #73551e;
  --muted: #667066;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.variant-b .nav,
.variant-b p,
.variant-b .button,
.variant-b .eyebrow,
.variant-b footer,
.variant-b .stat span,
.variant-b .service p,
.variant-b .proof p,
.variant-b .faq p {
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.variant-b .hero {
  min-height: 92svh;
  color: var(--white);
  background-color: #101d15;
  background-image: linear-gradient(90deg, rgba(12, 18, 13, 0.86), rgba(12, 18, 13, 0.24)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.variant-b .hero::after {
  background: linear-gradient(0deg, var(--paper), transparent);
}

.variant-b .hero-grid {
  display: block;
  max-width: 850px;
}

.variant-b .hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.variant-b .hero .eyebrow {
  color: #d2b06f;
}

.variant-b h1,
.variant-b h2,
.variant-b h3 {
  font-weight: 600;
}

.variant-b h1 {
  font-size: clamp(54px, 9vw, 118px);
}

.variant-b .editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: stretch;
}

.variant-b .portrait {
  min-height: 620px;
  background: #d9d1c2;
  overflow: hidden;
}

.variant-b .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-b .essay {
  padding: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.variant-b .essay p {
  font-size: 18px;
  line-height: 1.7;
}

html,
body,
section,
.page,
.nav {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='240' viewBox='0 0 420 240'%3E%3Cg transform='rotate(-32 210 120)'%3E%3Ctext x='-40' y='126' fill='%23000000' fill-opacity='.055' font-family='Arial' font-size='18' font-weight='700' letter-spacing='3'%3EAI AUTOMATION STUDIO · DRAFT%3C/text%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
}

body::before,
body::after {
  content: "AI AUTOMATION STUDIO · DRAFT" !important;
  position: fixed !important;
  z-index: 2147483646 !important;
  pointer-events: none !important;
  color: rgba(0, 0, 0, 0.14) !important;
  font: 800 18px/1 Arial, sans-serif !important;
  letter-spacing: 0.18em !important;
  transform: rotate(-32deg) !important;
  text-transform: uppercase !important;
}

body::before {
  top: 18% !important;
  left: -2% !important;
}

body::after {
  right: -4% !important;
  bottom: 18% !important;
}

section::before {
  content: "AI AUTOMATION STUDIO · DRAFT" !important;
  position: absolute !important;
  inset: 48px auto auto 6% !important;
  z-index: 5 !important;
  pointer-events: none !important;
  color: rgba(0, 0, 0, 0.1) !important;
  font: 800 13px/1 Arial, sans-serif !important;
  letter-spacing: 0.16em !important;
  transform: rotate(-32deg) !important;
}

@media (max-width: 860px) {
  .nav {
    position: static;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 36px;
  }

  .hero-grid,
  .split,
  .variant-b .editorial,
  .clinic-path,
  .contact {
    grid-template-columns: 1fr;
  }

  .media-frame,
  .variant-b .portrait {
    min-height: 360px;
  }

  .stat-row,
  .service-grid,
  .proof-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  section {
    padding: 64px 0;
  }

  .wrap {
    width: min(100% - 28px, 1180px);
  }
}
