:root {
  --graphite: #111418;
  --graphite-2: #171b20;
  --graphite-deep: #0c0f12;
  --hero-depth: #0b0e11;
  --warm: #f7f5ef;
  --warm-2: #eceae3;
  --line: #d8d5cb;
  --muted: #5f666d;
  --cyan: #00a7b5;
  --cyan-text: #007c86;
  --lime: #b7e000;
  --amber: #f4a300;
  --ink-on-accent: #061013;
  --text-on-dark-strong: #bfc5c1;
  --text-on-dark: rgba(247, 245, 239, .82);
  --text-on-dark-muted: rgba(247, 245, 239, .72);
  --text-on-dark-soft: rgba(247, 245, 239, .7);
  --text-on-light-muted: rgba(17, 20, 24, .68);
  --border-on-light-soft: rgba(17, 20, 24, .1);
  --border-on-light: rgba(17, 20, 24, .22);
  --border-on-dark-soft: rgba(247, 245, 239, .14);
  --border-on-dark: rgba(247, 245, 239, .22);
  --border-on-dark-strong: rgba(247, 245, 239, .36);
  --surface-warm-soft: rgba(247, 245, 239, .42);
  --surface-warm-panel: rgba(247, 245, 239, .5);
  --surface-warm-raised: rgba(247, 245, 239, .94);
  --surface-dark-soft: rgba(247, 245, 239, .04);
  --surface-featured-start: rgba(17, 20, 24, .94);
  --surface-featured-end: rgba(23, 27, 32, .98);
  --header-surface: rgba(247, 245, 239, .98);
  --nav-text: rgba(17, 20, 24, .78);
  --control-border: rgba(17, 20, 24, .18);
  --border-on-dark-hairline: rgba(247, 245, 239, .12);
  --border-on-dark-medium: rgba(247, 245, 239, .18);
  --text-on-dark-readable: rgba(247, 245, 239, .74);
  --signal-cyan-soft: rgba(0, 167, 181, .18);
  --signal-cyan-shadow: rgba(0, 167, 181, .28);
  --shadow: 0 24px 70px rgba(17, 20, 24, .18);
  --shadow-raised: 0 18px 50px rgba(12, 15, 18, .28);
  --page-gutter: clamp(2rem, 5vw, 5.5rem);
  --radius-control: 8px;
  --radius-panel: 8px;
  --font-sans: Inter, "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: .78rem;
  --text-sm: .88rem;
  --text-base: 1rem;
  --text-md: 1.08rem;
  --text-lg: 1.16rem;
  --text-xl: clamp(1.95rem, 3.4vw, 3.45rem);
  --text-display: clamp(2.85rem, 5.8vw, 5.75rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  line-height: 1.58;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.nav-cta:focus-visible,
.language-switch a:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 4px;
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 6px var(--lime);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--cyan);
  color: var(--graphite);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-surface);
  border-bottom: 1px solid var(--border-on-light-soft);
}

.nav {
  width: min(1180px, calc(100% - var(--page-gutter) * 2));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  font-weight: 820;
}

.brand img {
  width: clamp(152px, 16vw, 188px);
  height: auto;
  object-fit: contain;
}

.brand span {
  font-size: 1.03rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--nav-text);
  font-size: var(--text-sm);
  font-weight: 650;
}

.nav-links a {
  padding: .3rem .05rem;
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}

.nav-links a:hover {
  color: var(--graphite);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-on-light-muted);
  font-weight: 700;
}

.language-switch a[aria-current="page"] {
  color: var(--cyan-text);
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  font-weight: 720;
  line-height: 1;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.nav-cta {
  background: var(--graphite);
  color: var(--warm);
  padding-inline: 1.9rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--ink-on-accent);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-panel);
  background: transparent;
  color: var(--graphite);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

main {
  overflow: hidden;
}

.hero {
  background:
    radial-gradient(circle at 82% 12%, var(--signal-cyan-soft), transparent 28rem),
    linear-gradient(135deg, var(--graphite) 0%, var(--hero-depth) 100%);
  color: var(--warm);
}

.hero-inner {
  width: min(1180px, calc(100% - var(--page-gutter) * 2));
  min-height: calc(100svh - 76px);
  max-height: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 3rem;
  align-items: center;
  padding: 4.6rem 0 3.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.4rem;
  color: var(--text-on-dark-strong);
  font-size: var(--text-xs);
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 12px 0 0 var(--lime);
}

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

h1 {
  max-width: 800px;
  margin-bottom: 1.3rem;
  font-size: var(--text-display);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 63ch;
  color: var(--text-on-dark);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.56;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.button-primary {
  background: var(--cyan);
  color: var(--ink-on-accent);
  box-shadow: 0 10px 26px rgba(0, 167, 181, .22);
}

.button-secondary {
  border-color: var(--border-on-dark-strong);
  color: var(--warm);
}

.button-secondary.dark {
  border-color: var(--border-on-light);
  color: var(--graphite);
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2.2rem;
}

.proof-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .66rem;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-panel);
  color: var(--text-on-dark);
  font-size: var(--text-sm);
  font-weight: 680;
}

.hero-panel {
  position: relative;
}

.hero-asset {
  width: 100%;
  aspect-ratio: 1100 / 655;
  min-height: 390px;
  object-fit: cover;
  border: 0;
  border-radius: var(--radius-panel);
  box-shadow: none;
}

.status-card {
  position: absolute;
  left: -1.25rem;
  bottom: -1.25rem;
  width: min(340px, 80%);
  padding: 1rem;
  background: var(--surface-warm-raised);
  color: var(--graphite);
  border: 1px solid var(--border-on-light-soft);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-raised);
}

.status-card strong {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-card p {
  margin: .42rem 0 0;
  font-weight: 700;
  line-height: 1.42;
}

.section {
  padding: 5.7rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.section.warm {
  background: var(--warm);
}

.section.tint {
  background: var(--warm-2);
}

.section.dark {
  background: var(--graphite);
  color: var(--warm);
}

.container {
  width: min(1180px, calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .6fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.kicker {
  margin-bottom: .85rem;
  color: var(--cyan-text);
  font-size: var(--text-xs);
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.dark .kicker {
  color: var(--cyan);
}

.section h2 {
  margin-bottom: 0;
  max-width: 13ch;
  font-size: var(--text-xl);
  font-weight: 740;
  line-height: 1.06;
  letter-spacing: 0;
}

.section-lede {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--text-on-light-muted);
  font-size: var(--text-md);
  line-height: 1.62;
}

.dark .section-lede {
  color: var(--text-on-dark-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  grid-column: span 2;
  min-height: 248px;
  padding: 1.35rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-warm-soft);
}

.service-featured {
  grid-column: span 5;
  background: linear-gradient(135deg, var(--surface-featured-start), var(--surface-featured-end));
  color: var(--warm);
}

.service-grid .service:first-child {
  grid-column: span 3;
}

.service-featured p {
  color: var(--text-on-dark-readable);
}

.service-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 1.2rem;
  padding: .24rem .45rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--cyan-text);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.service-featured .service-label {
  color: var(--lime);
}

.service svg,
.process-step svg {
  width: 34px;
  height: 34px;
  margin-bottom: 1.6rem;
  color: var(--graphite);
}

.service-featured svg {
  color: var(--cyan);
}

.service h3,
.process-step h3,
.case h3 {
  margin-bottom: .65rem;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.18;
}

.service p,
.process-step p,
.case p {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--text-on-light-muted);
  line-height: 1.6;
}

.service-featured h3,
.service-featured p {
  color: var(--warm);
}

.service-featured p {
  color: var(--text-on-dark);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border-on-dark-soft);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.proof-item {
  min-height: 168px;
  padding: 1.35rem;
  border-right: 1px solid var(--border-on-dark-soft);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-value {
  color: var(--cyan);
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.proof-item h3 {
  margin: .85rem 0 .35rem;
  font-size: var(--text-lg);
  line-height: 1.18;
}

.proof-item p {
  margin: 0;
  color: var(--text-on-dark-soft);
}

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

.process-step {
  min-height: 300px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-warm-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1.4rem;
  border-radius: var(--radius-panel);
  background: var(--graphite);
  color: var(--warm);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(340px, .6fr);
  gap: 2rem;
  align-items: stretch;
}

.case {
  padding: 1.45rem;
  border: 1px solid var(--border-on-dark-medium);
  border-radius: var(--radius-panel);
  background: var(--surface-dark-soft);
}

.case p {
  color: var(--text-on-dark-readable);
}

.case-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  display: flex;
  gap: .75rem;
  padding: .7rem 0;
  border-top: 1px solid var(--border-on-dark-hairline);
}

.case-list li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: .48rem;
  border-radius: 3px;
  background: var(--lime);
}

.diagnostic {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(340px, .62fr);
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-warm-panel);
}

.contact-panel dl {
  margin: 0;
}

.contact-panel div {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-panel div:last-child {
  border-bottom: 0;
}

.contact-panel dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: .2rem 0 0;
  font-weight: 680;
  line-height: 1.42;
}

.site-footer {
  background: var(--graphite-deep);
  color: var(--text-on-dark-muted);
  padding: 2.2rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}

.footer-inner {
  width: min(1180px, calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner img {
  width: 184px;
  height: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  :root {
    --page-gutter: 1.25rem;
  }

  .nav {
    min-height: 68px;
  }

  .menu-button {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow);
  }

  .site-header[data-open="true"] .nav-links {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    padding-inline: 1.6rem;
  }

  .hero-inner,
  .section-head,
  .case-layout,
  .diagnostic {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 3.2rem 0 2.6rem;
    gap: 2rem;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 4.15rem);
  }

  .hero-copy {
    font-size: 1.06rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-asset {
    min-height: 270px;
  }

  .status-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: .75rem;
  }

  .section {
    padding: 4rem 0;
  }

  .service-grid,
  .proof-band,
  .process {
    grid-template-columns: 1fr;
  }

  .service,
  .service-featured {
    grid-column: 1;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--border-on-dark-soft);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 520px) {
  :root {
    --page-gutter: .9rem;
  }

  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    font-size: .96rem;
  }

  .brand img {
    width: 144px;
  }

  .proof-pills span {
    width: calc(50% - .35rem);
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
