:root {
  --surface: #fbf9f8;
  --surface-low: #f5f3f3;
  --surface-container: #efeded;
  --surface-high: #e4e2e2;
  --ink: #1b1c1c;
  --charcoal: #121212;
  --muted: #5e5e5d;
  --muted-2: #747878;
  --line: #c4c7c7;
  --gold: #c5a059;
  --gold-light: #e9c176;
  --success: #17824d;
  --danger: #93000a;
  --container: 1280px;
  --gutter: 32px;
  --margin: 64px;
  --section: 128px;
  --font-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-body: "Metropolis", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 248, 0.94);
  border-bottom: 1px solid var(--charcoal);
  backdrop-filter: blur(14px);
}

.nav {
  /* width: min(100%, var(--container)); */
  height: 80px;
  margin: 0 auto;
  padding: 0 var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.container {
  /*width: min(100%, var(--container));*/
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section-tight {
  padding-top: 88px;
  padding-bottom: 88px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.gold {
  color: var(--gold);
  letter-spacing: 0.28em;
}

h1,
h2,
h3,
.display,
.headline,
.quote {
  font-family: var(--font-display);
  letter-spacing: 0;
}

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

.display {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.05;
  max-width: 980px;
}

.headline {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.18;
}

.body-lg {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.measure {
  max-width: 650px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

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

.button.ghost {
  border-color: var(--charcoal);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

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

.button.gold:hover,
.shimmer-hover:hover {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  color: var(--charcoal);
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero {
  min-height: calc(100vh - 80px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 120%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), var(--hero-image);
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 42px;
}

.page-hero {
  padding-top: 112px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--charcoal);
}

.page-hero .display {
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
}

.image-frame {
  position: relative;
  border: 1px solid var(--charcoal);
  padding: 16px;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 500ms ease;
}

.image-frame:hover img {
  filter: grayscale(0);
}

.metric-badge {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 170px;
  min-height: 170px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--charcoal);
  color: #fff;
}

.metric-badge strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.metric-badge span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote {
  margin-top: 42px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
  font-size: clamp(26px, 3vw, 38px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-grid {
  background-color: var(--surface-low);
  background-image: radial-gradient(circle, var(--surface-high) 1px, transparent 1px);
  background-size: 32px 32px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}

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

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

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 34px;
}

.metric-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-value {
  margin: 28px 0 10px;
  color: #000;
  font-family: var(--font-display);
  font-size: clamp(58px, 7vw, 86px);
  font-weight: 800;
  line-height: 0.98;
}

.metric-value small {
  font-family: var(--font-display);
  font-size: 28px;
}

.metric-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.card-footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.list-rows {
  border-bottom: 1px solid rgba(18, 18, 18, 0.22);
}

.row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 4fr) minmax(0, 7fr);
  gap: 32px;
  padding: 42px 0;
  border-top: 1px solid rgba(18, 18, 18, 0.22);
  transition: background 180ms ease;
}

.row:hover {
  background: rgba(228, 226, 226, 0.35);
}

.row-number {
  color: var(--line);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  transition: color 180ms ease;
}

.row:hover .row-number {
  color: var(--gold);
}

.row h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
}

.row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.dark-cta {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
  padding: clamp(48px, 7vw, 96px);
}

.dark-cta::after {
  content: "OPTIMUS";
  position: absolute;
  right: -40px;
  bottom: -50px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 220px);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.dark-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.dark-cta p {
  color: rgba(255, 255, 255, 0.62);
}

.process-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
}

.sticky-note {
  position: sticky;
  top: 112px;
  align-self: start;
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.step strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.case-list {
  display: grid;
  gap: 32px;
}

.case-item {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.case-item img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: grayscale(1);
}

.case-content {
  padding: 38px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
}

.stat {
  background: var(--surface);
  padding: 20px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
  outline: none;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-width: 2px;
}

.legal {
  max-width: 840px;
}

.legal h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.2;
}

.legal p,
.legal li {
  color: var(--muted);
}

.site-footer {
  margin-top: var(--section);
  background: #000;
  color: var(--surface);
  border-top: 1px solid #000;
}

.footer-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 34px var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a,
.copyright {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  :root {
    --margin: 24px;
    --section: 88px;
  }

  .nav {
    height: 72px;
  }

  .brand {
    font-size: 24px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--charcoal);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .button {
    margin-top: 20px;
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

  .split,
  .split.reverse,
  .process-grid,
  .case-item {
    grid-template-columns: 1fr;
  }

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

  .section-heading-row,
  .dark-cta-inner,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric-badge {
    right: 16px;
    bottom: 16px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .display {
    font-size: 46px;
  }

  .headline {
    font-size: 36px;
  }

  .card,
  .case-content {
    padding: 26px;
  }
}
