:root {
  --ink: #141619;
  --ink-soft: #292d32;
  --paper: #fafafa;
  --paper-strong: #ffffff;
  --muted: #62666b;
  --line: rgba(11, 17, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --copper: #e5a05d;
  --copper-dark: #98551f;
  --blue: #527d9c;
  --radius: 8px;
  --shadow: 0 22px 80px rgba(9, 20, 24, 0.18);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: rgba(229, 160, 93, 0.3);
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, border 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 190px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--copper-dark);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--copper);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fcf4ec;
}

.nav-toggle {
  display: none;
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.3);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 10, 12, 0.96) 0%, rgba(7, 10, 12, 0.78) 33%, rgba(7, 10, 12, 0.24) 70%),
    linear-gradient(180deg, rgba(7, 10, 12, 0.6) 0%, rgba(7, 10, 12, 0.08) 52%, rgba(7, 10, 12, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 146px 0 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: 3.75rem;
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-dark .eyebrow {
  color: var(--copper);
}

.hero-intro {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button::after {
  content: "\2192";
  font-weight: 800;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--copper);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.button-secondary.light {
  border-color: rgba(255, 255, 255, 0.72);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.hero-proof span {
  border-left: 3px solid var(--copper);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.trust-strip {
  background: #1c1f23;
  color: #fff;
  border-top: 1px solid var(--line-dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
}

.trust-grid p {
  min-height: 118px;
  margin: 0;
  padding: 28px;
  background: #1c1f23;
  color: rgba(255, 255, 255, 0.75);
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: #eff1f3;
}

.section-heading {
  max-width: 760px;
  text-align: center;
  margin-bottom: 44px;
}

.section-heading.align-start {
  text-align: left;
  margin: 0;
}

.section-heading h2,
.cta-content h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-heading p:not(.eyebrow),
.cta-content p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card,
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 28px;
  box-shadow: 0 16px 44px rgba(11, 17, 20, 0.06);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(229, 160, 93, 0.18), rgba(82, 125, 156, 0.18)),
    linear-gradient(90deg, var(--copper), var(--blue));
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 64%, 64% 100%, 0 100%);
}

.service-card h3,
.case-card h3,
.timeline-item h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.service-card p,
.case-card p,
.timeline-item p,
.metric-panel p {
  color: var(--muted);
}

.service-card ul,
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.check-list li {
  position: relative;
  margin-top: 10px;
  padding-left: 24px;
  color: var(--ink-soft);
}

.service-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--copper-dark);
}

.split-layout,
.stack-layout,
.advantage-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.process .split-layout {
  display: block;
}

.process .section-heading {
  max-width: 720px;
  margin: 0 0 56px;
}

.process .timeline {
  --process-gap: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--process-gap);
  margin: 0;
}

.process .timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.process .timeline-item > span,
.process .timeline-item .step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin: 0;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: var(--paper-strong);
  color: var(--copper-dark);
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.process .timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 64px;
  right: calc(12px - var(--process-gap));
  height: 1px;
  background: #89939d;
}

.process .timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  right: calc(12px - var(--process-gap));
  width: 8px;
  height: 8px;
  border-top: 1px solid #89939d;
  border-right: 1px solid #89939d;
  transform: rotate(45deg);
}

.process .timeline-item > div {
  margin-top: 22px;
}

.process .timeline-item h3 {
  min-height: 2.5em;
  font-size: 1.15rem;
}

.process .timeline-item p:not(.step-number) {
  margin: 12px 0 0;
  font-size: .95rem;
}

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

.card-grid > .service-card,
.case-grid > .case-card,
.stack-layout > .stack-panel {
  margin: 0;
}

.service-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.service-details summary {
  padding: 12px 0 0;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--copper-dark);
}

.service-details ul {
  margin-top: 12px;
}

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

.case-card span {
  width: fit-content;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--copper);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card strong {
  display: block;
  margin-top: 28px;
  color: var(--copper-dark);
}

.stack {
  position: relative;
  overflow: hidden;
}

.stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(229, 160, 93, 0.09), transparent 40%);
  pointer-events: none;
}

.stack .shell {
  position: relative;
  z-index: 1;
}

.stack .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.stack-panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stack-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.stack-tab {
  min-height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.stack-tab.is-active {
  background: #fff;
  color: var(--ink);
}

.stack-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stack-items span {
  min-height: 74px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
}

.advantage-layout {
  align-items: center;
}

.metric-panel {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
}

.metric-panel span {
  grid-row: span 2;
  color: var(--copper-dark);
  font-weight: 800;
}

.metric-panel strong {
  font-size: 1.18rem;
}

.metric-panel p {
  margin: 0 0 24px;
}

.cta-section {
  padding: 104px 0;
  color: #fff;
  background: #25292e;
  border-top: 3px solid var(--copper);
}

.cta-content {
  max-width: 850px;
}

.cta-content .eyebrow {
  color: var(--copper);
}

.cta-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.cta-section .button-primary {
  background: var(--copper);
  color: var(--ink);
}

.site-footer {
  padding: 52px 0;
  background: #fff;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  width: fit-content;
}

.footer-brand .brand-logo {
  width: 260px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
}

.contact-direct { font-size: .95rem !important; }
.contact-direct a { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--copper-dark); outline-offset: 4px; }
.section-dark :focus-visible, .cta-section :focus-visible { outline-color: var(--copper); }

@media (min-width: 1600px) {
  .hero { min-height: 680px; }
  .hero h1 { font-size: 4.2rem; }
}

@media (max-width: 920px) {
  .process .section-heading {
    margin-bottom: 40px;
  }

  .process .timeline {
    grid-template-columns: 1fr;
  }

  .process .timeline-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 24px;
  }

  .process .timeline-item > div {
    margin-top: 0;
  }

  .process .timeline-item h3 {
    min-height: 0;
  }

  .process .timeline-item:not(:last-child)::after {
    top: 64px;
    bottom: calc(12px - var(--process-gap));
    left: 26px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process .timeline-item:not(:last-child)::before {
    top: auto;
    bottom: calc(12px - var(--process-gap));
    left: 22px;
    right: auto;
    border: 0;
    border-right: 1px solid #89939d;
    border-bottom: 1px solid #89939d;
  }

  .site-nav {
    position: fixed;
    top: 104px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .hero {
    min-height: 620px;
  }

  .trust-grid,
  .card-grid,
  .case-grid,
  .split-layout,
  .stack-layout,
  .advantage-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stack-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo {
    width: 164px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding-top: 122px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .section-heading h2,
  .cta-content h2 {
    font-size: 1.95rem;
  }

  .section,
  .cta-section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

  .service-card .card-icon {
    display: none;
  }

  .service-card > p {
    margin-bottom: 0;
    font-size: .95rem;
  }

  .hero-actions,
  .cta-actions,
  .hero-proof {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-grid p,
  .service-card,
  .case-card,
  .timeline-item,
  .metric-panel {
    padding: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .stack-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stack-tab {
    font-size: .875rem;
  }

  .stack-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stack-items span,
  .stack-items li {
    min-height: 52px;
    padding: 12px;
    font-size: .85rem;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 621px) and (max-width: 920px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
