:root {
  --bg: #ffffff;
  --surface-alt: #f4f5f6;
  --ink: #121212;
  --muted: #5f6773;
  --brand: #3db4bf;
  --brand-dark: #2a8f98;
  --line: #dde1e6;
  --sans: "DM Sans", system-ui, sans-serif;
  --max: 1080px;
  --narrow: 720px;
  --gutter: clamp(20px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: url("logo.png") right -3rem top 35% / 240px no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

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

a:focus-visible,
.button:focus-visible,
.contact-form button:focus-visible,
.contact-form input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--ink);
  transform: translateY(-200%);
}

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

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

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  max-width: 48ch;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section-lead {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Yeti marks */
.yeti-mark {
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.yeti-mark--small {
  width: 24px;
  height: 24px;
}

.yeti-mark--large {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.brand-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-icon--head {
  width: 40px;
  height: 40px;
}

.process--dark .brand-icon {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-inline: var(--gutter);
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.875rem 0;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

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

.brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.header-cta {
  flex-shrink: 0;
  margin-left: auto;
}

/* Buttons */
.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.button-primary,
.contact-form button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-nav {
  min-height: 38px;
  padding-inline: 1rem;
  font-size: 0.8125rem;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button-nav:hover,
.button-nav:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Layout */
.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--narrow), calc(100% - var(--gutter) * 2));
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

.section-head--compact {
  margin-bottom: 1.5rem;
}

/* Soft band — groups related sections */
.band--soft {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.section--in-band {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 0;
}

.band--soft .section--in-band:last-child {
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot {
  width: min(100%, 18rem);
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}

/* Process — dark band */
.process--dark {
  color: #fff;
  background: var(--ink);
  border-bottom: 0;
}

.process--dark .section-head h2,
.process--dark h3 {
  color: #fff;
}

.process--dark .section-lead {
  color: rgb(255 255 255 / 75%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: rgb(255 255 255 / 15%);
  border: 1px solid rgb(255 255 255 / 15%);
}

.process-grid li {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--ink);
}

.process-grid p {
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid li {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem;
  background: var(--bg);
}

.service-grid__highlight {
  box-shadow: inset 3px 0 0 var(--brand);
}

.service-grid p {
  margin: 0;
  font-size: 0.9375rem;
}

.service-grid a {
  color: var(--brand-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Connectors */
.connectors-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  background: var(--bg);
}

.feature-list h3 {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.feature-list p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.connectors-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  color: #fff;
  background: var(--ink);
}

.connectors-aside .yeti-mark--large {
  width: 56px;
  height: 56px;
  margin-bottom: 0.25rem;
  border: 2px solid rgb(255 255 255 / 15%);
}

.connectors-aside .eyebrow {
  margin-bottom: 0;
  color: var(--brand);
}

.connectors-aside__lead {
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.process-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.25rem 0 0.5rem;
  list-style: none;
}

.process-chips li {
  padding: 0.3rem 0.65rem;
  color: rgb(255 255 255 / 90%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 14%);
}

.connectors-aside .button-primary {
  align-self: flex-start;
  margin-top: auto;
  color: var(--ink);
  background: var(--brand);
  border-color: var(--brand);
}

.connectors-aside .button-primary:hover,
.connectors-aside .button-primary:focus-visible {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.procurement-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.procurement-link:hover,
.procurement-link:focus-visible {
  color: #fff;
}

/* Logo carousel */
.logo-carousel {
  padding: 1.5rem 0;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.logo-carousel-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.logo-carousel-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 50s linear infinite;
}

.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

.logo-carousel-group {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.logo-carousel-group li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 0.75rem;
}

.logo-carousel-group img {
  width: auto;
  max-width: 9rem;
  max-height: 2rem;
  object-fit: contain;
  opacity: 0.88;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.work-grid article {
  display: grid;
  grid-template-rows: auto minmax(2.75rem, auto) 1fr;
  gap: 0.65rem;
  align-content: start;
  height: 100%;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--brand);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.work-grid article:hover {
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand-dark), 0 4px 16px rgb(18 18 18 / 6%);
}

.work-meta {
  display: flex;
  align-items: center;
  min-height: 1.625rem;
  margin: 0;
}

.work-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  color: var(--brand-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgb(61 180 191 / 12%);
  border-radius: 2px;
}

.work-grid h3 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.work-grid p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Procurement page */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.page-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.page-hero__logo {
  width: min(100%, 12rem);
  height: auto;
  object-fit: contain;
}

.platform-logos {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.platform-logos img {
  width: auto;
  max-width: 9rem;
  max-height: 2.5rem;
  object-fit: contain;
}

.model-panels {
  display: grid;
  gap: 1.5rem;
}

.section--automations {
  background: var(--ink);
  color: #fff;
  border-bottom: 0;
}

.section--automations .section-head h2,
.section--automations h3 {
  color: #fff;
}

.section--automations .section-lead {
  color: rgb(255 255 255 / 75%);
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 14%);
}

.automation-grid li {
  padding: 1.35rem 1.5rem;
  background: var(--ink);
}

.automation-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.automation-grid p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 72%);
}

.automation-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 75%);
}

.procurement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.procurement-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  background: var(--bg);
}

.procurement-list h3 {
  font-size: 0.9375rem;
}

.procurement-list p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.section--model {
  background: var(--surface-alt);
}

.model-panel {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--brand);
}

.model-panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.model-panel__head p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.field-item {
  padding: 1rem 1.15rem;
  background: var(--bg);
}

.field-item dt {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.field-item dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.model-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.process-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-inline li {
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.process-inline strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.9375rem;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 1rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

/* Contact */
.contact--dark {
  color: #fff;
  background: var(--ink);
  border-bottom: 0;
}

.contact--dark h2 {
  color: #fff;
}

.contact--dark .section-lead {
  color: rgb(255 255 255 / 75%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-form {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.contact-form input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 0.75rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  background: var(--bg);
  border: 1px solid var(--line);
  outline: none;
}

.contact-form input:focus {
  border-color: var(--ink);
}

.contact-form input::placeholder {
  color: #8b939c;
}

.form-message {
  min-height: 1.25em;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.contact-email {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.contact-email a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.footer-inner p {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner,
  .connectors-block,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .connectors-aside {
    order: -1;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mascot {
    width: min(100%, 10rem);
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-hero__inner {
    grid-template-columns: 1fr;
  }

  .page-hero__visual {
    order: -1;
  }

  .procurement-list {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 0.875rem;
  }

  .nav {
    flex-basis: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
  }

  .header-cta {
    margin-left: auto;
  }

  h1 {
    max-width: none;
  }

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

  .field-grid,
  .process-inline,
  .automation-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .contact-form button {
    width: 100%;
  }
}

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

  .logo-carousel-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .logo-carousel-group[aria-hidden="true"] {
    display: none;
  }

  .logo-carousel-viewport {
    mask-image: none;
  }
}
