:root {
  --ink: #20262c;
  --ink-soft: #4d5861;
  --paper: #ffffff;
  --canvas: #f3f5f2;
  --sage: #7da395;
  --sage-deep: #416a5c;
  --blue: #1648c5;
  --coral: #e55d47;
  --lime: #b8f400;
  --line: #d8ded9;
  --max: 1180px;
  --shadow: 0 20px 60px rgba(32, 38, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(22, 72, 197, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-color: rgba(216, 222, 217, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.site-header:not(.scrolled):not(.menu-active) .brand,
.site-header:not(.scrolled):not(.menu-active) .main-nav a:not(.nav-cta) {
  color: white;
}

.site-header:not(.scrolled):not(.menu-active) .nav-cta {
  border-color: rgba(255, 255, 255, 0.7);
  color: white !important;
}

.site-header:not(.scrolled):not(.menu-active) .nav-cta:hover {
  color: var(--ink) !important;
  background: white;
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 40px;
  height: 40px;
}

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

.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
}

.nav-cta:hover {
  color: white !important;
  background: var(--ink);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-button.is-open .menu-icon {
  background: transparent;
}

.menu-button.is-open .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button.is-open .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  min-height: min(860px, 94svh);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: #171c20;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 22, 25, 0.94) 0%, rgba(18, 22, 25, 0.77) 48%, rgba(18, 22, 25, 0.12) 100%);
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(18, 22, 25, 0.6), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  padding: 150px 0 74px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b7d6cb;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 600;
  line-height: 0.98;
  max-width: 920px;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
}

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

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

.button-primary:hover {
  background: #e9eeeb;
}

.button-dark {
  color: white;
  background: var(--ink);
}

.button-dark:hover {
  background: #313940;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.48);
  color: white;
  background: rgba(32, 38, 44, 0.3);
}

.button-outline:hover {
  border-color: white;
  background: rgba(32, 38, 44, 0.58);
}

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

.button-line:hover {
  border-color: var(--ink);
}

.section {
  padding: 110px 0;
  scroll-margin-top: 76px;
}

.section-compact {
  padding: 76px 0;
}

.section-muted {
  background: var(--canvas);
}

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

.section-heading {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-heading.row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: end;
  gap: 72px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.8vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.section-dark .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
}

.intro-copy {
  padding-top: 8px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

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

.service-item,
.feature-item {
  min-height: 270px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-item:hover,
.feature-item:hover {
  z-index: 1;
  background: #f8faf8;
  transform: translateY(-4px);
}

.icon-box {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  color: var(--sage-deep);
  background: #e3ece7;
}

.icon-box svg {
  width: 21px;
  height: 21px;
}

.service-item h3,
.feature-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.service-item p,
.feature-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 10px 36px rgba(32, 38, 44, 0.06);
}

.product-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  min-height: 500px;
}

.product-card-grid > * {
  min-width: 0;
}

.product-card:nth-child(even) .product-card-grid {
  grid-template-columns: minmax(340px, 0.75fr) minmax(0, 1.25fr);
}

.product-card:nth-child(even) .product-visual {
  order: 2;
}

.product-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #eaedea;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-visual img {
  transform: scale(1.025);
}

.product-number {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(32, 38, 44, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 70px);
}

.product-tag {
  width: fit-content;
  margin-bottom: 24px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-logo {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 8px;
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-logo-intensync {
  padding: 9px;
  background: #0b1f2a;
}

.product-copy h3 {
  margin-bottom: 17px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
}

.product-copy p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.product-copy .button-row {
  margin-top: 25px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.metric {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.metric strong {
  display: block;
  margin-bottom: 14px;
  color: #b7d6cb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
  font-weight: 600;
}

.metric span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.process-list {
  counter-reset: process;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.process-step {
  counter-increment: process;
  position: relative;
  min-height: 230px;
  padding: 31px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-step:not(:last-child) {
  margin-right: 28px;
}

.process-step::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 56px;
  color: var(--sage-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.process-step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -1px;
  width: calc(100% - 52px);
  height: 1px;
  background: var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 9vw, 120px);
}

.contact-intro h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 600;
  line-height: 0.98;
}

.contact-intro > p {
  color: var(--ink-soft);
}

.contact-details {
  display: grid;
  gap: 17px;
  margin-top: 34px;
}

.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-details svg {
  width: 18px;
  height: 18px;
  color: var(--sage-deep);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

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

.form-field.full,
.human-check,
.form-actions,
.form-feedback {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--sage-deep);
  box-shadow: 0 1px 0 var(--sage-deep);
}

.human-check {
  overflow: hidden;
}

.check-note {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-actions button {
  border: 0;
  cursor: pointer;
}

.form-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid;
  font-size: 0.84rem;
}

.form-feedback.show {
  display: block;
}

.form-feedback.error {
  border-color: var(--coral);
  background: #fff0ed;
}

.form-feedback.success {
  border-color: var(--sage-deep);
  background: #e8f2ed;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-footer {
  padding: 74px 0 26px;
  color: white;
  background: #181d21;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 44px;
  padding-bottom: 60px;
}

.footer-brand .brand {
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-column h3 {
  margin-bottom: 17px;
  color: white;
  font-size: 0.77rem;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 9px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.footer-column a:hover {
  color: white;
}

.footer-fine {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
}

.page-hero {
  padding: 170px 0 90px;
  color: white;
  background: var(--ink);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  align-items: end;
}

.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.page-hero-copy {
  color: rgba(255, 255, 255, 0.67);
  font-size: 1.04rem;
}

.page-hero-copy p:last-child {
  margin-bottom: 0;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 68px;
}

.portfolio-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.proof-item {
  min-height: 240px;
  padding: 28px;
  border: 1px dashed #aeb8b0;
  background: white;
}

.proof-item svg {
  width: 23px;
  height: 23px;
  margin-bottom: 48px;
  color: var(--sage-deep);
}

.proof-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.proof-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.cta-band h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1;
}

.cta-band .button-row {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .service-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card-grid,
  .product-card:nth-child(even) .product-card-grid {
    grid-template-columns: 1fr;
  }

  .product-card:nth-child(even) .product-visual {
    order: 0;
  }

  .product-visual {
    aspect-ratio: 16 / 10;
    min-height: auto;
  }

  .metric-band,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
  }
}

@media (max-width: 800px) {
  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto;
    height: calc(100svh - 76px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 30px 20px;
    background: white;
  }

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

  .main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 20px;
    border: 1px solid var(--ink) !important;
    text-align: center;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media {
    object-position: 54% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(18, 22, 25, 0.96) 0%, rgba(18, 22, 25, 0.7) 64%, rgba(18, 22, 25, 0.25) 100%);
  }

  .section-heading.row,
  .intro-grid,
  .page-hero-grid,
  .cta-band {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .portfolio-strip img:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.3rem);
  }

  .section {
    padding: 78px 0;
  }

  .section-compact {
    padding: 58px 0;
  }

  .service-grid,
  .feature-grid,
  .metric-band,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-item,
  .feature-item {
    min-height: 235px;
    padding: 25px;
  }

  .product-copy {
    padding: 30px 22px 36px;
  }

  .product-visual {
    aspect-ratio: 1 / 1;
  }

  .product-visual img {
    object-position: center;
  }

  .process-step:not(:last-child) {
    margin-right: 0;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .process-step {
    min-height: 190px;
  }

  .process-step::before {
    margin-bottom: 32px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-fine {
    flex-direction: column;
  }

  .page-hero {
    padding: 130px 0 70px;
  }

  .portfolio-strip {
    display: none;
  }

  .human-check .g-recaptcha {
    transform: scale(0.88);
    transform-origin: top left;
  }
}

@media (max-width: 380px) {
  .hero-content {
    padding-bottom: 36px;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }
}

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

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