:root {
  --ink: #0f1720;
  --soft-ink: #26323d;
  --muted: #66737f;
  --line: #d9e0e7;
  --paper: #f6f8f9;
  --white: #ffffff;
  --blue: #0b74bb;
  --blue-dark: #103755;
  --green: #0f8a5f;
  --sand: #f0eee8;
  --shadow: 0 20px 50px rgba(16, 55, 85, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.section-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(217, 224, 231, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 32, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #eef3f6;
  outline: none;
}

.mobile-nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meeting-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.meeting-link {
  min-height: 38px;
  padding: 9px 13px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  padding: 128px 0 76px;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.industry-label,
.result-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-section h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.1vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
}

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

.button {
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 14px 30px rgba(16, 55, 85, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0b2b43;
}

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

.button.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics div,
.metric-card,
.service-card,
.process-item,
.build-card,
.lead-form,
.contact-panel,
.result-card,
.industry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15, 23, 32, 0.06);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-proof {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-proof img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: left center;
}

.hero-proof figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.hero-proof figcaption span {
  color: var(--muted);
  font-weight: 800;
}

.hero-proof figcaption strong {
  color: var(--ink);
  text-align: right;
}

.hero-form {
  align-self: center;
  box-shadow: var(--shadow);
}

.form-heading {
  display: grid;
  gap: 4px;
}

.form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.conditional-field[hidden] {
  display: none;
}

.proof-section,
.services-section,
.industries-section,
.process-section,
.build-section,
.contact-section {
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 28px 42px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 820px;
}

.section-heading.compact,
.section-heading.compact h2 {
  display: block;
}

.section-heading h2,
.split-section h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-intro {
  grid-column: 2;
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 22px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.58rem;
  line-height: 1.08;
}

.metric-card p,
.service-card p,
.build-card p,
.industry-card p,
.process-item p,
.contact-copy p,
.split-section > p,
.result-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.result-gallery {
  display: grid;
  gap: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  overflow: hidden;
}

.result-frame {
  overflow-x: auto;
  background: #f0f4f7;
  border-right: 1px solid var(--line);
}

.result-frame img {
  width: 100%;
  min-height: 230px;
  object-fit: contain;
  object-position: left center;
}

.result-copy {
  align-self: center;
  padding: 28px;
}

.result-copy h3,
.service-card h3,
.build-card h3,
.industry-card h3,
.process-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.15;
}

.quiet-band {
  background: var(--sand);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 76px 0;
}

.split-section > p {
  margin: 0;
  max-width: 640px;
  font-size: 1.1rem;
}

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

.service-card,
.process-item,
.build-card {
  padding: 22px;
}

.service-card span,
.process-item span,
.build-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 6px;
  color: var(--blue-dark);
  background: #e8f2f8;
  font-weight: 900;
}

.build-section {
  padding-bottom: 76px;
}

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

.build-card {
  background: var(--white);
}

.industries-section {
  padding-top: 0;
}

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

.industry-card {
  overflow: hidden;
}

.industry-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.industry-card div {
  padding: 24px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.62fr);
  gap: 48px;
  align-items: start;
}

.contact-copy p {
  max-width: 560px;
  font-size: 1.05rem;
}

.lead-form {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--soft-ink);
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 116, 187, 0.12);
  background: var(--white);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.contact-panel {
  padding: 22px;
}

.contact-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
}

.contact-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.contact-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.contact-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.site-footer {
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

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

.footer-brand {
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #e3eaf0;
    background: #f8fafb;
    color: var(--soft-ink);
    text-align: center;
  }

  .site-nav .mobile-nav-cta {
    display: flex;
    grid-column: 1 / -1;
    color: var(--white);
    background: var(--blue-dark);
    border-color: var(--blue-dark);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-grid,
  .section-heading,
  .split-section,
  .result-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-intro {
    grid-column: auto;
  }

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

  .service-grid,
  .proof-metrics,
  .process-list,
  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section-shell,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    top: 8px;
    width: min(100% - 20px, var(--max));
    min-height: 52px;
    padding: 7px 8px;
    border-radius: 10px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand {
    gap: 7px;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .header-actions .meeting-link {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .site-nav {
    top: calc(100% + 8px);
    border-radius: 10px;
  }

  .site-nav a {
    min-height: 46px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 88px 0 46px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.1vw, 2.82rem);
    line-height: 1.03;
  }

  .hero-copy {
    margin-top: 16px;
    color: #34404b;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.58fr);
    gap: 8px;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    padding: 12px 13px;
    width: auto;
    font-size: 0.92rem;
  }

  .button.full {
    width: 100%;
  }

  .service-grid,
  .proof-metrics,
  .process-list,
  .build-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
  }

  .hero-metrics div {
    min-height: 82px;
    padding: 11px 9px;
  }

  .hero-metrics strong {
    font-size: 1.42rem;
  }

  .hero-metrics span {
    margin-top: 6px;
    font-size: 0.64rem;
    line-height: 1.22;
  }

  .hero-proof img {
    min-height: 0;
    aspect-ratio: 16 / 8;
    object-fit: cover;
  }

  .hero-proof figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
  }

  .hero-proof figcaption strong {
    text-align: left;
  }

  .proof-section,
  .services-section,
  .industries-section,
  .process-section,
  .build-section,
  .contact-section {
    padding: 56px 0;
  }

  .split-section {
    padding: 50px 0;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 22px;
  }

  .section-heading h2,
  .split-section h2,
  .contact-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.85rem);
    line-height: 1.02;
  }

  .metric-card,
  .service-card,
  .process-item,
  .build-card,
  .result-copy,
  .industry-card div,
  .lead-form,
  .contact-panel {
    padding: 16px;
    border-radius: 10px;
  }

  .lead-form {
    gap: 12px;
    box-shadow: 0 18px 44px rgba(16, 55, 85, 0.12);
  }

  .form-heading h2 {
    font-size: 1.36rem;
    line-height: 1.1;
  }

  .lead-form label {
    gap: 6px;
    font-size: 0.84rem;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .lead-form textarea {
    min-height: 92px;
  }

  .result-frame img {
    min-width: 720px;
    min-height: auto;
  }

  .result-copy h3,
  .service-card h3,
  .industry-card h3,
  .process-item h3,
  .build-card h3 {
    font-size: 1.2rem;
  }

  .contact-section {
    gap: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 410px) {
  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-metrics strong {
    font-size: 1.28rem;
  }

  .hero-metrics span {
    font-size: 0.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
