:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --page-gutter: max(24px, 6.8vw);
  --pill-radius: 999px;
}

.hero { padding: var(--space-4) var(--page-gutter) var(--space-8); height: 744px; }
.hero:after { display: none; }
.site-header { height: 44px; gap: var(--space-8); }
.site-header nav { gap: var(--space-12); }
.hero-grid { margin-top: var(--space-6); height: 482px; }
.hero-copy { padding-top: var(--space-6); min-width: 0; }
.eyebrow-line { margin-bottom: var(--space-6); }
.hero-copy p { margin: var(--space-6) 0; }
.services-intro { gap: var(--space-4); margin-bottom: var(--space-4); }
.service-grid { gap: var(--space-8); }
.service-card { border-radius: var(--space-4); }

/* All pill controls share the same sizing, type, and icon alignment. */
.button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6);
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--pill-radius);
  font: 500 14px/20px 'DM Sans', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.talk-button, .solid-button { background: #76072b; color: #fff8f1; }
.outline-button { border-color: #78062b; color: #78062b; background: transparent; }
.talk-button { padding-block: var(--space-1); }
.button:hover { box-shadow: 0 3px 10px #6f06281f; }
.outline-button:hover { background: #fff8ef26; }
.control-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: var(--space-2); min-height: 44px; }
.menu-button, .process-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: var(--space-2);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.menu-button .control-icon { width: 28px; height: 28px; flex-basis: 28px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
:where(a, button, input, textarea):focus-visible { outline: 2px solid #76072b; outline-offset: 4px; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 2px solid #76072b; outline-offset: 4px; }
.impact { padding: var(--space-12) var(--page-gutter); align-items: start; column-gap: var(--space-6); grid-template-columns: 30% 1fr 44px; }
.impact:before {
  top: -1px; left: 0; width: 100%; height: 40px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 40' preserveAspectRatio='none'%3E%3Cpath fill='%23b9c9e3' d='M0 0h1280v40C1120-6 1020-10 840 10S600 50 360 20 120-2 0 10Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.impact:after { pointer-events: none; opacity: .65; }
.impact-title { padding-top: var(--space-2); }
.step-grid { gap: var(--space-4); padding-top: var(--space-2); }
.step-icon { margin-bottom: var(--space-2); }
.step-icon .control-icon { width: 24px; height: 24px; flex-basis: 24px; }
.process-next { margin-top: var(--space-8); border-radius: 50%; border-color: currentColor; color: #fff8ef; position: relative; z-index: 1; }
.process-next .control-icon { width: 24px; height: 24px; flex-basis: 24px; }
.impact :where(a, button):focus-visible { outline-color: #fff8ef; }
.work-section, .contact, footer { padding-inline: var(--page-gutter); }

@media (min-width: 681px) and (max-width: 1000px) {
  .site-header { gap: var(--space-4); }
  .site-header nav { gap: var(--space-6); }
  .hero h1 { font-size: clamp(40px, 5vw, 56px); }
}
@media (max-width: 680px) {
  :root { --page-gutter: 24px; }
  .hero { height: auto; padding: var(--space-4) var(--page-gutter) var(--space-8); }
  .site-header { height: 44px; gap: var(--space-2); }
  .site-header .wordmark { font-size: 21px; }
  .site-header .talk-button { display: inline-flex; margin-left: auto; font-size: 12px; padding-inline: var(--space-3); }
  .site-header nav { display: none; }
  .site-header nav.is-open {
    display: flex; flex-direction: column; gap: 0; position: absolute;
    top: 52px; right: 0; width: 180px; padding: var(--space-2) var(--space-4);
    border: 1px solid #fff8; border-radius: var(--space-4); background: #bdcbe3;
    box-shadow: 0 8px 24px #6f06281a;
  }
  .menu-button { margin-left: 0; }
  .button { min-height: 44px; }
  .hero-grid { height: auto; margin-top: var(--space-8); grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(48px, 14vw, 58px); letter-spacing: -2px; }
  .hero-copy p { margin-block: var(--space-6); }
  .scene-wrap { min-width: 0; width: 100%; margin-top: var(--space-4); }
  .scene-wrap img { width: 100%; margin: 0; }
  .services-intro { margin-top: var(--space-6); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .impact { display: grid; height: auto; grid-template-columns: minmax(0, 1fr) 44px; row-gap: var(--space-8); padding-block: var(--space-12); }
  .impact-title { grid-column: 1 / -1; margin: 0; }
  .step-grid { grid-row: 2; grid-column: 1 / -1; gap: var(--space-2); }
  .process-next { grid-column: 2; margin: 0; }
  .work-section, .contact { padding-block: var(--space-12); }
  .contact form { margin-top: var(--space-8); }
  .contact input, .contact textarea { min-height: 44px; }
  footer { gap: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Every service card reserves the same three rows, including empty subtitles. */
.service-card {
  display: grid;
  grid-template-rows: 32px 34px 12px;
  justify-items: center;
  align-items: start;
  align-content: start;
  justify-content: stretch;
  row-gap: 4px;
  height: 114px;
  padding: 12px 8px;
  min-width: 0;
}
.service-icon-slot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.service-icon-slot svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  fill: none;
  stroke: #76072b;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon-slot .growth-chart { color: #76072b; }
.service-card h3 {
  margin: 0;
  height: 34px;
  font-size: 15px;
  line-height: 17px;
}
.service-card .service-subtitle {
  display: block;
  margin: 0;
  height: 12px;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}
